Received: by 10.223.185.116 with SMTP id b49csp1122709wrg; Fri, 23 Feb 2018 12:19:20 -0800 (PST) X-Google-Smtp-Source: AH8x224LTpmzJ7qYWui8LdM5QfUcCS2za+WK/Wygizsqtc6Sz/8mIkgAI86RLjOHF3KIusP44ksH X-Received: by 2002:a17:902:d24:: with SMTP id 33-v6mr2714436plu.8.1519417160372; Fri, 23 Feb 2018 12:19:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519417160; cv=none; d=google.com; s=arc-20160816; b=xYqRPpOf6QSXZglXPEJWJcKCGKLPXUPsz+H0RaCTMK/gxE6cIXU2pdQ15L+wwkGy/s w+quWMsLLiJWzJsGP5gTntcmjiTH9sBVMvVSAdKd2P8d7ZbwLpQbKOBtCfM7r7XSM89y gjkJjUY/T2QBP1yckk2VNuwVXmsp7w1WkY5HS+9S7GgNYcoYspbeEAMKYNrJnb+EgBhB eTtz0nmCxnXakrfTpUVPI9J+aDXfHb4SkqpX5AJg2W0xJGgw1DYbZXnRegBJef6BMYvx Rh6uye3W6S0KNZlGFP3YFOFUdvQ+QrYneth8QaQgCT81Mldd3NWsox7ShChO8uzy2aA4 YSBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=o85u9QsjRI9naKUhDN5ZwS4H4+p4pPG6FW3DFqgoZpI=; b=lrUalwmAEuIPUOGsb+17IOpXe66/YOKu9IYniRx9VyUP9Wx7SEOkTBmmQ4mQNg0JCN JbPGahTiEnYg/TlxQbvuQk2R12K0Gc4muGmpgpmiPyVFBMzqkNd2vQQzPE7/uEIVpfL4 eVswDR6xhSWm6eSRZT5yfXEiNSNzfAp39ewqiatGDAM752dh4h61lOs18zzTMeL0bDCh zld7jGkkdtvUlrqaqolDBRcS+0PFc0hGKSpti1evYI4JhMI93nqS57dkyB4hhZ48olAv jIj3JHNalsnJrqEHHVdPrR6mdJM7vhA0XkeIz/xwsyqO1OqlSNqMzrqn46d4c7rkshMq /T/g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q26si1706216pfh.129.2018.02.23.12.19.05; Fri, 23 Feb 2018 12:19:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754401AbeBWSju (ORCPT + 99 others); Fri, 23 Feb 2018 13:39:50 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:39830 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754387AbeBWSjr (ORCPT ); Fri, 23 Feb 2018 13:39:47 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 924E91182; Fri, 23 Feb 2018 18:39:46 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Greg Kroah-Hartman , Arnd Bergmann Subject: [PATCH 4.4 150/193] power: bq27xxx_battery: mark some symbols __maybe_unused Date: Fri, 23 Feb 2018 19:26:23 +0100 Message-Id: <20180223170349.449642834@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170325.997716448@linuxfoundation.org> References: <20180223170325.997716448@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann Without the I2C driver, we get a few warnings: drivers/power/bq27xxx_battery.c:288:12: error: 'bq27xxx_regs' defined but not used [-Werror=unused-variable] static u8 *bq27xxx_regs[] = { ^ drivers/power/bq27xxx_battery.c:994:12: error: 'bq27xxx_powersupply_init' defined but not used [-Werror=unused-function] static int bq27xxx_powersupply_init(struct bq27xxx_device_info *di, ^ drivers/power/bq27xxx_battery.c:1029:13: error: 'bq27xxx_powersupply_unregister' defined but not used [-Werror=unused-function] static void bq27xxx_powersupply_unregister(struct bq27xxx_device_info *di) ^ In mainline kernels, this was addressed by a larger rework in 703df6c09795 ("power: bq27xxx_battery: Reorganize I2C into a module"). We probably don't want this backported into stable kernels, so instead let's shut up the warnings by marking the symbols as __maybe_unused. Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- drivers/power/bq27xxx_battery.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/power/bq27xxx_battery.c +++ b/drivers/power/bq27xxx_battery.c @@ -285,7 +285,7 @@ static u8 bq27421_regs[] = { 0x18, /* AP */ }; -static u8 *bq27xxx_regs[] = { +static u8 *bq27xxx_regs[] __maybe_unused = { [BQ27000] = bq27000_regs, [BQ27010] = bq27010_regs, [BQ27500] = bq27500_regs, @@ -991,7 +991,7 @@ static void bq27xxx_external_power_chang schedule_delayed_work(&di->work, 0); } -static int bq27xxx_powersupply_init(struct bq27xxx_device_info *di, +static int __maybe_unused bq27xxx_powersupply_init(struct bq27xxx_device_info *di, const char *name) { int ret; @@ -1026,7 +1026,7 @@ static int bq27xxx_powersupply_init(stru return 0; } -static void bq27xxx_powersupply_unregister(struct bq27xxx_device_info *di) +static void __maybe_unused bq27xxx_powersupply_unregister(struct bq27xxx_device_info *di) { /* * power_supply_unregister call bq27xxx_battery_get_property which