From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751565AbcL1QE3 (ORCPT ); Wed, 28 Dec 2016 11:04:29 -0500 Received: from mail-wj0-f193.google.com ([209.85.210.193]:34254 "EHLO mail-wj0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750796AbcL1QE1 (ORCPT ); Wed, 28 Dec 2016 11:04:27 -0500 From: Augusto Mecking Caringi To: netdev@vger.kernel.org Cc: Augusto Mecking Caringi , "David S. Miller" , Felipe Balbi , Kees Cook , Mugunthan V N , Jarod Wilson , Javier Martinez Canillas , Florian Westphal , linux-kernel@vger.kernel.org Subject: [PATCH] net: atm: Fix warnings in net/atm/lec.c when !CONFIG_PROC_FS Date: Wed, 28 Dec 2016 16:02:05 +0000 Message-Id: <1482941006-28052-1-git-send-email-augustocaringi@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes the following warnings when CONFIG_PROC_FS is not set: linux/net/atm/lec.c: In function ‘lane_module_cleanup’: linux/net/atm/lec.c:1062:27: error: ‘atm_proc_root’ undeclared (first use in this function) remove_proc_entry("lec", atm_proc_root); ^ linux/net/atm/lec.c:1062:27: note: each undeclared identifier is reported only once for each function it appears in Signed-off-by: Augusto Mecking Caringi --- net/atm/lec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/atm/lec.c b/net/atm/lec.c index 019557d..09cfe87 100644 --- a/net/atm/lec.c +++ b/net/atm/lec.c @@ -1059,7 +1059,9 @@ static void __exit lane_module_cleanup(void) { int i; +#ifdef CONFIG_PROC_FS remove_proc_entry("lec", atm_proc_root); +#endif deregister_atm_ioctl(&lane_ioctl_ops); -- 2.7.4