From: "J.R. Mauro" <jrm8005@gmail.com>
To: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Greg KH <greg@kroah.com>, Stephen Rothwell <sfr@canb.auug.org.au>,
linux-next@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
abbotti@mev.co.uk, fmhess@users.sourceforge.net, ds@schleef.org
Subject: Re: linux-next: Tree for November 14 (staging)
Date: Fri, 14 Nov 2008 20:01:14 -0500 [thread overview]
Message-ID: <20081115010114.GA29057@tuxbook-pro> (raw)
In-Reply-To: <491DC1CC.8020502@oracle.com>
On Fri, Nov 14, 2008 at 10:22:04AM -0800, Randy Dunlap wrote:
> Greg KH wrote:
> > On Fri, Nov 14, 2008 at 09:52:47AM -0800, Randy Dunlap wrote:
> >> On Fri, 14 Nov 2008 18:40:21 +1100 Stephen Rothwell wrote:
> >>
> >>> Hi all,
> >>>
> >>> Changes since 20081113:
> >>>
> >>> New tree:
> >>> staging
> >>
> >> drivers/staging/benet/mpu.c:146: error: implicit declaration of function 'udelay'
> >>
> >> drivers/staging/comedi/proc.c:89: error: redefinition of 'comedi_proc_init'
> >> drivers/staging/comedi/comedidev.h:359: error: previous definition of 'comedi_proc_init' was here
> >> drivers/staging/comedi/proc.c:98: error: redefinition of 'comedi_proc_cleanup'
> >> drivers/staging/comedi/comedidev.h:362: error: previous definition of 'comedi_proc_cleanup' was here
> >
> > Odd, I'm not getting these warnings here, can you give me a copy of your
> > .config?
>
> 2 failing configs attached.
>
The comedi driver does some wonky stuff if CONFIG_PROC_FS isn't set. It
conditionally defined these functions if it's set to a forward declaration, but
then if it's not set it makes them empty. However, the *real* definitions aren't
protected by the same kind of ifdefs. In case Greg can't reproduce this, here's
a quick-n-dirty patch to do just that.
I think in reality there should be some way to exclude that proc.c file entirely
if CONFIG_PROC_FS is not set, but I'll leave that to the pros. (Whom I am adding
to the CC-list, BTW).
=
Don't include procfs functions if CONFIG_PROC_FS is not set
Signed-off by: J.R. Mauro <jrm8005@gmail.com>
---
drivers/staging/comedi/proc.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/staging/comedi/proc.c b/drivers/staging/comedi/proc.c
index 7db12ac..5a2b72d 100644
--- a/drivers/staging/comedi/proc.c
+++ b/drivers/staging/comedi/proc.c
@@ -85,6 +85,7 @@ int comedi_read_procmem(char *buf, char **start, off_t offset, int len,
return l;
}
+#ifdef CONFIG_PROC_FS
void comedi_proc_init(void)
{
struct proc_dir_entry *comedi_proc;
@@ -98,3 +99,4 @@ void comedi_proc_cleanup(void)
{
remove_proc_entry("comedi", 0);
}
+#endif
--
1.6.0.3
next prev parent reply other threads:[~2008-11-15 1:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-14 7:40 linux-next: Tree for November 14 Stephen Rothwell
2008-11-14 17:52 ` linux-next: Tree for November 14 (staging) Randy Dunlap
2008-11-14 18:11 ` Greg KH
2008-11-14 18:22 ` Randy Dunlap
2008-11-15 1:01 ` J.R. Mauro [this message]
2008-11-25 5:50 ` Greg KH
2008-11-14 18:11 ` linux-next: Tree for November 14 (staging#2) Randy Dunlap
2008-11-14 22:13 ` J.R. Mauro
2008-11-14 22:57 ` Randy Dunlap
2008-11-14 23:53 ` J.R. Mauro
2008-11-14 18:28 ` linux-next: Tree for November 14 (staging/meilhaus/) Randy Dunlap
2008-11-14 19:13 ` linux-next: Tree for November 14 (staging/meilhaus/ more) Randy Dunlap
2008-11-14 19:15 ` linux-next: Tree for November 14 (staging/agnx/) Randy Dunlap
2008-11-14 21:28 ` J.R. Mauro
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=20081115010114.GA29057@tuxbook-pro \
--to=jrm8005@gmail.com \
--cc=abbotti@mev.co.uk \
--cc=ds@schleef.org \
--cc=fmhess@users.sourceforge.net \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=randy.dunlap@oracle.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