From patchwork Tue Jan 10 13:40:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corey Minyard X-Patchwork-Id: 9507243 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C66C6606E1 for ; Tue, 10 Jan 2017 13:40:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B9D0A284F8 for ; Tue, 10 Jan 2017 13:40:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AE7FF2850E; Tue, 10 Jan 2017 13:40:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD64C28562 for ; Tue, 10 Jan 2017 13:40:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967813AbdAJNkY (ORCPT ); Tue, 10 Jan 2017 08:40:24 -0500 Received: from mail-oi0-f68.google.com ([209.85.218.68]:34108 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967808AbdAJNkW (ORCPT ); Tue, 10 Jan 2017 08:40:22 -0500 Received: by mail-oi0-f68.google.com with SMTP id 3so69648370oih.1; Tue, 10 Jan 2017 05:40:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=GgtMRYtXuztC92aj9lBpxXQXIgn7KxnSQhf8d9ihj8Q=; b=lqFPbf7RpSWUmCRCj9rcP5Wssh8DuwKccpF2Ma7vp/3B76VuMVcssz66PhZZtgPbQW 3NsiH36EGq0iYGOQJKM1qv0IC6fPJsR7ch6a8BVcSQMXlvPe4I1PGoVZoJGB+RnB+cuu EzOfDczrEXWTDcjcw8e3GrNkLVLX4vFeQIpFoX1j3dMmJi9roIVCv6/KirsCbMxW7dSK hwDkfr5jwysbH3kHc0Hua0YHk8FOgMGZXM16NaGCuNagNxFcLyMG/onOtKfJ81I48GwW EWyN6pZXdjhXRCCXreS7JtJ93L6HJ10EjpnYe7cn5/pF012rURWx3udt3oTRHBZDuKjz 8cYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=GgtMRYtXuztC92aj9lBpxXQXIgn7KxnSQhf8d9ihj8Q=; b=jXHt+7gLV5I8NjGwAG4r4wYZJ6L0yaWM/cXdr0Sf9pZKBCZSrIvt0eN53Jg3AAvuCY zEoMlRE0m2dIBNRxbJhqpAgZjydRb4yqPsSVqYKzWJRYq3knIW9ysuSO4sSHQKR/rDf9 6tVH8439htLSir9pAvRAPkFtTARNidaQIUa2wWpUWZ8H6hWX7t3FAXw2ewaHHUiJ3E1V GN6bEKz/lNPY1t9o5a2WC0ktOY4VzI9nzUYEGh9T8wS1tTzsq228p6TI6JZJAAi9dzNz FhhQFadxmlOJGth2MEa0yYqz8gYmRSe9vXnQNr7BjOhgJRqKfAKueUt3OJxttCB6BARp hd1A== X-Gm-Message-State: AIkVDXJoYTF3Me39uBi76mDsWE85Mnds5HyqB31GNkBx+JpwMitLqB1JqxHAEREn378BDg== X-Received: by 10.157.5.106 with SMTP id 97mr1688873otw.62.1484055621460; Tue, 10 Jan 2017 05:40:21 -0800 (PST) Received: from serve.minyard.net ([47.184.183.230]) by smtp.gmail.com with ESMTPSA id 9sm850002otm.2.2017.01.10.05.40.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Jan 2017 05:40:19 -0800 (PST) Received: from t430.minyard.net (unknown [IPv6:2001:470:b8f6:1b:899c:25ee:4b62:1359]) by serve.minyard.net (Postfix) with ESMTPA id 45EBD9FFE; Tue, 10 Jan 2017 07:40:18 -0600 (CST) Received: by t430.minyard.net (Postfix, from userid 1000) id 8DC19300038; Tue, 10 Jan 2017 07:40:15 -0600 (CST) From: minyard@acm.org To: linux-kernel@vger.kernel.org, openipmi-developer@lists.sourceforge.net Cc: Corey Minyard , linux-acpi@vger.kernel.org, Zhao Yakui , Lv Zheng Subject: [PATCH 2/2] acpi:ipmi: Make IPMI user handler const Date: Tue, 10 Jan 2017 07:40:13 -0600 Message-Id: <1484055613-31286-3-git-send-email-minyard@acm.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1484055613-31286-1-git-send-email-minyard@acm.org> References: <1484055613-31286-1-git-send-email-minyard@acm.org> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Corey Minyard ipmi_create_user() now takes the user handlers as const, make it const in the ACPI IPMI code. Cc: linux-acpi@vger.kernel.org Cc: Zhao Yakui Cc: Lv Zheng Signed-off-by: Corey Minyard --- drivers/acpi/acpi_ipmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/acpi_ipmi.c b/drivers/acpi/acpi_ipmi.c index f77956c..747c2ba 100644 --- a/drivers/acpi/acpi_ipmi.c +++ b/drivers/acpi/acpi_ipmi.c @@ -56,7 +56,7 @@ struct acpi_ipmi_device { struct ipmi_driver_data { struct list_head ipmi_devices; struct ipmi_smi_watcher bmc_events; - struct ipmi_user_hndl ipmi_hndlrs; + const struct ipmi_user_hndl ipmi_hndlrs; struct mutex ipmi_lock; /*