Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3931886imm; Mon, 8 Oct 2018 11:54:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV62XzBiBJQpnHQohl1VvBQX92Zj5UsEG+RUgCJ111lXETDKhlkErjSAO6a81LGp0xTt8NLgD X-Received: by 2002:a62:7f8c:: with SMTP id a134-v6mr26368625pfd.257.1539024853161; Mon, 08 Oct 2018 11:54:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539024853; cv=none; d=google.com; s=arc-20160816; b=dqaAXjpGsFxeapfz5a86C2llBP82nIoYGxtgOJwQgKSQT+UpEbuMxYcIlUXa4+BVrp dEVmYjYhWnaP8StkIst4qHwI0Lmnc36gGIlXKfCtfu9vxk42J2KX4hFRLZM7qOMLID/d siSR1vEU4gsRDEW94Tt+0y8/qInwgfboObuFYTyKqEW7Sq8zsycfnYbD8/SEg9esByiE UGFXCSasCVrpy5RM+1AC5yZY205rVtxWyQI79gns2BKqEHz9bdDNAu4BA+V0ClqFPKv7 HjSq1bs5BpKtGQnUc9Hg2Iq4T9BuM2WDAtdklFewkueVYhaAJv/4g3kgPvtrZGVJtrwv 13XA== 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:dkim-signature; bh=EhvlD3gl0zWHnkyzKCjOGhrMDRlMFKmDxPYbXn8j+Uc=; b=YLYXLg2FUnLClzt1VVfMuR7sEAZy2ZQlHOI8cVIFXeJq1soZ6ZFwHsVlCvtKqw8bj/ 3j69d+1+Sz4qke2jFgZo5azsIuj5SNdvjyBnOt01q4X4ZuSon5eOQboEJP5KuM/NHXVX zByQQsEBwFORMR9olMOpaEED3fi/G7Yg47esSXVrheSj3B4hm0k4350SdBktMgPo/qxv ZYz/r1K6Lt08BmnZx4WxYLD7gbKlWqZNkozBpzcx3WtmqO3kEYiVsrJiNAi0RTWxXW86 z9Ewp9LuQYEICsJlkTqcNEwhBue3Z0bvQTphblccFF/XV2ZCBc0hNsocpwo0nLgxYnvv KHfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=N1yvrPdB; 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 a8-v6si18991487ple.80.2018.10.08.11.53.58; Mon, 08 Oct 2018 11:54:13 -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; dkim=pass header.i=@kernel.org header.s=default header.b=N1yvrPdB; 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 S1732813AbeJICG6 (ORCPT + 99 others); Mon, 8 Oct 2018 22:06:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:57392 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727670AbeJICG5 (ORCPT ); Mon, 8 Oct 2018 22:06:57 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E3AE621479; Mon, 8 Oct 2018 18:53:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539024829; bh=aupAkWcA6lkxDz4iYf5q9bORRPeGshpxP4IHba95Kzw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N1yvrPdBGT7WXYlV45ceWRLIaPSBW3laMc0L0cV0xmpQS7E23+jpPWr91X77mnZFF 5wv6M5U/yCBtEfJq4P4FWtxjLx1lMc+N5G4J8PxEQL0djkbGBjROiEqhoq8Zy8eA/8 vpRwQBFK9joxk1CXwVhzM/Mhh+6jzLj3XyQIdhW4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Thomas Gleixner , Christoph Hellwig , Jiri Kosina , Sasha Levin Subject: [PATCH 4.18 143/168] x86/APM: Fix build warning when PROC_FS is not enabled Date: Mon, 8 Oct 2018 20:32:03 +0200 Message-Id: <20181008175625.465225053@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181008175620.043587728@linuxfoundation.org> References: <20181008175620.043587728@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 002b87d2aace62b4f3841c3aa43309d2380092be ] Fix build warning in apm_32.c when CONFIG_PROC_FS is not enabled: ../arch/x86/kernel/apm_32.c:1643:12: warning: 'proc_apm_show' defined but not used [-Wunused-function] static int proc_apm_show(struct seq_file *m, void *v) Fixes: 3f3942aca6da ("proc: introduce proc_create_single{,_data}") Signed-off-by: Randy Dunlap Signed-off-by: Thomas Gleixner Reviewed-by: Christoph Hellwig Cc: Jiri Kosina Link: https://lkml.kernel.org/r/be39ac12-44c2-4715-247f-4dcc3c525b8b@infradead.org Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/x86/kernel/apm_32.c | 2 ++ 1 file changed, 2 insertions(+) --- a/arch/x86/kernel/apm_32.c +++ b/arch/x86/kernel/apm_32.c @@ -1640,6 +1640,7 @@ static int do_open(struct inode *inode, return 0; } +#ifdef CONFIG_PROC_FS static int proc_apm_show(struct seq_file *m, void *v) { unsigned short bx; @@ -1719,6 +1720,7 @@ static int proc_apm_show(struct seq_file units); return 0; } +#endif static int apm(void *unused) {