* [PATCH -next] proc_fs: add stub for proc_mkdir_mode
[not found] <20110517142749.8927b65b.sfr@canb.auug.org.au>
@ 2011-05-17 19:31 ` Randy Dunlap
2011-05-17 19:34 ` [PATCH -next] wireless: improve airo when PROC_FS is disabled Randy Dunlap
1 sibling, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2011-05-17 19:31 UTC (permalink / raw)
To: Stephen Rothwell, Alexey Dobriyan, akpm; +Cc: linux-next, LKML, linux-wireless
From: Randy Dunlap <randy.dunlap@oracle.com>
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 <randy.dunlap@oracle.com>
---
include/linux/proc_fs.h | 2 ++
1 file changed, 2 insertions(+)
--- 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,
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH -next] wireless: improve airo when PROC_FS is disabled
[not found] <20110517142749.8927b65b.sfr@canb.auug.org.au>
2011-05-17 19:31 ` [PATCH -next] proc_fs: add stub for proc_mkdir_mode Randy Dunlap
@ 2011-05-17 19:34 ` Randy Dunlap
1 sibling, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2011-05-17 19:34 UTC (permalink / raw)
To: Stephen Rothwell, linux-wireless; +Cc: linux-next, LKML, linville
From: Randy Dunlap <randy.dunlap@oracle.com>
Skip all of the procfs-related calls when PROC_FS is not enabled.
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
drivers/net/wireless/airo.c | 7 +++++++
1 file changed, 7 insertions(+)
--- linux-next-20110517.orig/drivers/net/wireless/airo.c
+++ linux-next-20110517/drivers/net/wireless/airo.c
@@ -4496,6 +4496,7 @@ struct proc_data {
void (*on_close) (struct inode *, struct file *);
};
+#ifdef CONFIG_PROC_FS
static int setup_proc_entry( struct net_device *dev,
struct airo_info *apriv ) {
struct proc_dir_entry *entry;
@@ -4593,6 +4594,12 @@ fail_stats_delta:
fail:
return -ENOMEM;
}
+#else
+static int setup_proc_entry( struct net_device *dev,
+ struct airo_info *apriv ) {
+ return 0;
+}
+#endif
static int takedown_proc_entry( struct net_device *dev,
struct airo_info *apriv ) {
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-05-17 19:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20110517142749.8927b65b.sfr@canb.auug.org.au>
2011-05-17 19:31 ` [PATCH -next] proc_fs: add stub for proc_mkdir_mode Randy Dunlap
2011-05-17 19:34 ` [PATCH -next] wireless: improve airo when PROC_FS is disabled Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).