From: Randy Dunlap <randy.dunlap@oracle.com>
To: Stephen Rothwell <sfr@canb.auug.org.au>, linux-wireless@vger.kernel.org
Cc: linux-next@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
linville@tuxdriver.com
Subject: [PATCH -next] wireless: improve airo when PROC_FS is disabled
Date: Tue, 17 May 2011 12:34:20 -0700 [thread overview]
Message-ID: <20110517123420.68f4288d.randy.dunlap@oracle.com> (raw)
In-Reply-To: <20110517142749.8927b65b.sfr@canb.auug.org.au>
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 ) {
prev parent reply other threads:[~2011-05-17 19:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[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 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110517123420.68f4288d.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=sfr@canb.auug.org.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).