Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2513667imm; Mon, 24 Sep 2018 05:44:53 -0700 (PDT) X-Google-Smtp-Source: ACcGV609qCxuX2Y5gLVtrpZDp3k7L58hJTNxASDZfgJbX68kspJAOu+RBvFC07P2cCnkWTZXJyhs X-Received: by 2002:a17:902:7803:: with SMTP id p3-v6mr10520097pll.119.1537793093055; Mon, 24 Sep 2018 05:44:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537793093; cv=none; d=google.com; s=arc-20160816; b=Tn8HYMjaRIzCKLsz5igv7gg/VuJQx2Llv4dKk8eCRcT+qOErgRDlNGR9gQ8MYaIqAm 6WAdUYHeGAbWGuwtpPmgF8KFQHKS966WbGdkYkokCSCOkOjMlLz9LnTcmEzinMbi1YEO RPXdGulmwVmdq0F3JatyJt7C2h9PBKH2x7i3RO2Q7WTv8ZjYWh3FVCVSQsjNOIvE3GR/ 7KX++dK/zJkyEuTEMHyTkfJ2T3qgJj3qqIXXDSx7zfkoTVcYkPQRCFkkvunl3kI6n8ID shfkuLZKA0qaRt+9N9yjZfeq8wcHuz6nWtmdR26lI2aU1G2F08fpelg0t/lRagCIrGec m60A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=NDSjHBtp6ESdW53ggcRlhc4lREOoRjTnyYsKIOg9/YA=; b=aDAwwMOf7dKeCYNjmJeVfMXjC0oQOTGsrNB4KxeNiokCyhwe+4rGilJyvGs4N1UDpT IjHQRLyOlg1ao3eoxxYEJzEj6TBDjplnCp4QSEyhI56QNRUWdEkTraocE4rMFrDMY+a/ pf6mff3D1BngUvrKOHWpU7+9Rw/mTRRUK5NK5hTyotmXv92JNmu8T0P1xZqUNn+CeYRL IfPXjQD4txPpkG7MoDhjHEC9IFEm8mnxeNdYUHskTKtsXKMrqyJMHJEDdalBdiQEiSzd QjGKXeElTM/iJzDf+6BOSEUHZ1ljB81GOPzOwIj2/+502LMLjf7hTi5B6eV4ZZHLStka fYmA== 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 73-v6si3302176pfv.139.2018.09.24.05.44.37; Mon, 24 Sep 2018 05:44:53 -0700 (PDT) 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 S2388743AbeIXSp1 (ORCPT + 99 others); Mon, 24 Sep 2018 14:45:27 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:59456 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387721AbeIXSp0 (ORCPT ); Mon, 24 Sep 2018 14:45:26 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 4C16B1099; Mon, 24 Sep 2018 12:43:27 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andy Shevchenko , Linus Walleij , Sasha Levin Subject: [PATCH 4.18 201/235] gpiolib: Mark gpio_suffixes array with __maybe_unused Date: Mon, 24 Sep 2018 13:53:07 +0200 Message-Id: <20180924113124.234547147@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180924113103.999624566@linuxfoundation.org> References: <20180924113103.999624566@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Andy Shevchenko [ Upstream commit b23ec59926faf05b0c43680d05671c484e810ac4 ] Since we put static variable to a header file it's copied to each module that includes the header. But not all of them are actually used it. Mark gpio_suffixes array with __maybe_unused to hide a compiler warning: In file included from drivers/gpio/gpiolib-legacy.c:6:0: drivers/gpio/gpiolib.h:95:27: warning: ‘gpio_suffixes’ defined but not used [-Wunused-const-variable=] static const char * const gpio_suffixes[] = { "gpios", "gpio" }; ^~~~~~~~~~~~~ In file included from drivers/gpio/gpiolib-devprop.c:17:0: drivers/gpio/gpiolib.h:95:27: warning: ‘gpio_suffixes’ defined but not used [-Wunused-const-variable=] static const char * const gpio_suffixes[] = { "gpios", "gpio" }; ^~~~~~~~~~~~~ Signed-off-by: Andy Shevchenko Signed-off-by: Linus Walleij Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/gpio/gpiolib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpio/gpiolib.h +++ b/drivers/gpio/gpiolib.h @@ -92,7 +92,7 @@ struct acpi_gpio_info { }; /* gpio suffixes used for ACPI and device tree lookup */ -static const char * const gpio_suffixes[] = { "gpios", "gpio" }; +static __maybe_unused const char * const gpio_suffixes[] = { "gpios", "gpio" }; #ifdef CONFIG_OF_GPIO struct gpio_desc *of_find_gpio(struct device *dev,