From patchwork Tue May 17 19:31:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 792212 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4HJWW9Q004951 for ; Tue, 17 May 2011 19:32:32 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932102Ab1EQTcP (ORCPT ); Tue, 17 May 2011 15:32:15 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:35180 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756492Ab1EQTcL (ORCPT ); Tue, 17 May 2011 15:32:11 -0400 Received: from rtcsinet21.oracle.com (rtcsinet21.oracle.com [66.248.204.29]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p4HJW2QA001690 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 17 May 2011 19:32:04 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by rtcsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p4HJW1jO009178 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 17 May 2011 19:32:02 GMT Received: from abhmt015.oracle.com (abhmt015.oracle.com [141.146.116.24]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p4HJVtnE023701; Tue, 17 May 2011 14:31:55 -0500 Received: from chimera.site (/50.53.38.135) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 17 May 2011 12:31:54 -0700 Date: Tue, 17 May 2011 12:31:53 -0700 From: Randy Dunlap To: Stephen Rothwell , Alexey Dobriyan , akpm Cc: linux-next@vger.kernel.org, LKML , linux-wireless@vger.kernel.org Subject: [PATCH -next] proc_fs: add stub for proc_mkdir_mode Message-Id: <20110517123153.6fed984d.randy.dunlap@oracle.com> In-Reply-To: <20110517142749.8927b65b.sfr@canb.auug.org.au> References: <20110517142749.8927b65b.sfr@canb.auug.org.au> Organization: Oracle Linux Eng. X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; x86_64-unknown-linux-gnu) Mime-Version: 1.0 X-Source-IP: rtcsinet21.oracle.com [66.248.204.29] X-CT-RefId: str=0001.0A090203.4DD2CD35.0046:SCFSTAT5015188,ss=1,fgs=0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 17 May 2011 19:32:32 +0000 (UTC) From: Randy Dunlap Provide a stub for proc_mkdir_mode() when CONFIG_PROC_FS is not enabled, just like the stub for proc_mkdir(). Fixes this build error: drivers/net/wireless/airo.c:4504: error: implicit declaration of function 'proc_mkdir_mode' Signed-off-by: Randy Dunlap --- include/linux/proc_fs.h | 2 ++ 1 file changed, 2 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- linux-next-20110517.orig/include/linux/proc_fs.h +++ linux-next-20110517/include/linux/proc_fs.h @@ -210,6 +210,8 @@ static inline struct proc_dir_entry *pro struct proc_dir_entry *parent,const char *dest) {return NULL;} static inline struct proc_dir_entry *proc_mkdir(const char *name, struct proc_dir_entry *parent) {return NULL;} +static inline struct proc_dir_entry *proc_mkdir_mode(const char *name, + mode_t mode, struct proc_dir_entry *parent) { return NULL; } static inline struct proc_dir_entry *create_proc_read_entry(const char *name, mode_t mode, struct proc_dir_entry *base,