From patchwork Sat Dec 23 11:04:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kernel test robot X-Patchwork-Id: 10131503 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 083DA60318 for ; Sat, 23 Dec 2017 11:05:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EDD6328FEA for ; Sat, 23 Dec 2017 11:05:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E2B7029B5B; Sat, 23 Dec 2017 11:05:20 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 812B628FEA for ; Sat, 23 Dec 2017 11:05:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752828AbdLWLE6 (ORCPT ); Sat, 23 Dec 2017 06:04:58 -0500 Received: from mga03.intel.com ([134.134.136.65]:32800 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750800AbdLWLEn (ORCPT ); Sat, 23 Dec 2017 06:04:43 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Dec 2017 03:04:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,445,1508828400"; d="scan'208";a="5088831" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by orsmga008.jf.intel.com with ESMTP; 23 Dec 2017 03:04:39 -0800 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1eShhU-00057v-RL; Sat, 23 Dec 2017 19:10:44 +0800 Date: Sat, 23 Dec 2017 19:04:30 +0800 From: kbuild test robot To: Ognjen Galic Cc: kbuild-all@01.org, Andy Shevchenko , "Rafael J. Wysocki" , Ognjen =?utf-8?B?R2FsacSH?= , "Rafael J. Wysocki" , Len Brown , Robert Moore , Lv Zheng , ACPI Devel Maling List , devel@acpica.org, Darren Hart , Andy Shevchenko , Henrique de Moraes Holschuh , Sebastian Reichel , Platform Driver , ibm-acpi-devel@lists.sourceforge.net, Linux PM , Christoph =?iso-8859-1?Q?B=F6hmwalder?= , Kevin Locke Subject: [RFC PATCH] battery: hook_mutex can be static Message-ID: <20171223110430.GA50455@xian> References: <20171220151536.GA12278@thinkpad> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20171220151536.GA12278@thinkpad> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false 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 Fixes: 19380b8e214c ("battery: Add the battery hooking API") Signed-off-by: Fengguang Wu --- battery.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 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/battery.c b/drivers/acpi/battery.c index 1794408..9324591 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c @@ -640,9 +640,9 @@ static const struct device_attribute alarm_attr = { LIST_HEAD(acpi_battery_list); LIST_HEAD(battery_hook_list); -DEFINE_MUTEX(hook_mutex); +static DEFINE_MUTEX(hook_mutex); -void __battery_hook_unregister(struct acpi_battery_hook *hook, int force) +static void __battery_hook_unregister(struct acpi_battery_hook *hook, int force) { struct list_head *position; struct acpi_battery *battery;