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: 90699 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp623314qgi; Tue, 10 Jan 2017 05:40:27 -0800 (PST) X-Received: by 10.99.60.76 with SMTP id i12mr4137216pgn.170.1484055627284; Tue, 10 Jan 2017 05:40:27 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j19si2173237pgk.236.2017.01.10.05.40.27; Tue, 10 Jan 2017 05:40:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; spf=pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967813AbdAJNkY (ORCPT + 7 others); 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 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(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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; /*