Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2506770imm; Mon, 24 Sep 2018 05:37:42 -0700 (PDT) X-Google-Smtp-Source: ACcGV61EMMmJmiYwdjRZZVeVE1P8fItxEoyvoLMpC9iI29xvGYM0Jhk5Ti8/H1qJ1oTmz/HPl/xA X-Received: by 2002:a17:902:14e:: with SMTP id 72-v6mr10463457plb.299.1537792662101; Mon, 24 Sep 2018 05:37:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537792662; cv=none; d=google.com; s=arc-20160816; b=p1UXEI9gk6jYJYR6BwHJenSlXc6pz+YAGdxv8unB6DKfW2M+iWVhnkaKs7gz1tNpGN UPdJ0FQ4bvFLv8FWTMXaBbIaKbK6QtG7JON8DtZ78KvMFGKQAbh5nz7sqNdNSe4sqCUI krn55awBow75SWWnuEhb8nGqvAMuQ1WiwAoBzKYASsHKquuIFlasu0anCNDdXEeAeg8g BLkBXNIWBzBC1TsmAfERDS3eBwAyC3exzxP4UJ+qTz5ZyQhjeeK2gINw5V4OiSZCYVB4 7tX7jKQz/P1iMyqJxdAR/VTzdCN/LTgI4fho3K/qxm0oLa4+Jh0kDwCRWK1omCMF9Weh mPrg== 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=zg34jVVc/Q3TJT0igtSjzEXrgd3ZNX39hw5uoy97GDM=; b=B8v33Dp29LAzY3Dro6j9TRZEOZc1NJdvkm90yZfSwcJ5Xwm5stn5Cmof6NPL36cDNw P18KXuWIXuauWq0fvTYr1/cQZcIeZyX60zksROn1HQeIhntA9QGdtV4j9ef9cFBNsA4y /7kxsh0iG5m4OZzRcjB25L9ArMm7NwjfxuJDRV6ieSzgWQoxJcRsKkS7GIRH32pvFAqH y8vXvzPhUhgQgbtfc/3l5kuRFdpxL0rl5QLNCKtNWDNpHq5Bfz9gfIIf8bfPqvKkejia 3B/AZfJoM2YRYaQTwg1j2ind9IdDwPHBtiPK8HQ34Ugr6shvbCR5AjOi+jQ8C1WlaSTN S6nw== 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 m2-v6si37033907pfi.351.2018.09.24.05.37.26; Mon, 24 Sep 2018 05:37:42 -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 S2388419AbeIXShJ (ORCPT + 99 others); Mon, 24 Sep 2018 14:37:09 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58512 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387468AbeIXShI (ORCPT ); Mon, 24 Sep 2018 14:37:08 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id D71831092; Mon, 24 Sep 2018 12:35:11 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Azael Avalos , platform-driver-x86@vger.kernel.org, Andy Shevchenko , "Darren Hart (VMware)" , Sasha Levin Subject: [PATCH 4.18 084/235] platform/x86: toshiba_acpi: Fix defined but not used build warnings Date: Mon, 24 Sep 2018 13:51:10 +0200 Message-Id: <20180924113113.427659361@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: Randy Dunlap [ Upstream commit c2e2a618eb7104e18fdcf739d4d911563812a81c ] Fix a build warning in toshiba_acpi.c when CONFIG_PROC_FS is not enabled by marking the unused function as __maybe_unused. ../drivers/platform/x86/toshiba_acpi.c:1685:12: warning: 'version_proc_show' defined but not used [-Wunused-function] Signed-off-by: Randy Dunlap Cc: Azael Avalos Cc: platform-driver-x86@vger.kernel.org Cc: Andy Shevchenko Signed-off-by: Darren Hart (VMware) Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/platform/x86/toshiba_acpi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/platform/x86/toshiba_acpi.c +++ b/drivers/platform/x86/toshiba_acpi.c @@ -34,6 +34,7 @@ #define TOSHIBA_ACPI_VERSION "0.24" #define PROC_INTERFACE_VERSION 1 +#include #include #include #include @@ -1682,7 +1683,7 @@ static const struct file_operations keys .write = keys_proc_write, }; -static int version_proc_show(struct seq_file *m, void *v) +static int __maybe_unused version_proc_show(struct seq_file *m, void *v) { seq_printf(m, "driver: %s\n", TOSHIBA_ACPI_VERSION); seq_printf(m, "proc_interface: %d\n", PROC_INTERFACE_VERSION);