mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Robert P. J. Day" <rpjday@mindspring.com>
To: "Antonino A. Daplas" <adaplas@gmail.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: undefined "pm3fb_setup()"
Date: Sat, 12 May 2007 11:59:14 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0705121156300.15308@localhost.localdomain> (raw)
In-Reply-To: <1178978268.4773.14.camel@daplas>

On Sat, 12 May 2007, Antonino A. Daplas wrote:

> On Sat, 2007-05-12 at 06:32 -0400, Robert P. J. Day wrote:
> >   i'm guessing someone's already spotted this but, with "make
> > allyesconfig" on x86:
> >
> > ...
> >   LD      .tmp_vmlinux1
> > drivers/built-in.o: In function `pm3fb_init':
> > drivers/video/pm3fb.c:977: undefined reference to `pm3fb_setup'
> > ...
> >
> >   the reason seems to be this excerpt from drivers/video/pm3fb.c:
> >
> > ================================================================
> > int __init pm3fb_init(void)
> > {
> >         /*
> >          *  For kernel boot options (in 'video=pm3fb:<options>' format)
> >          */
> > #ifndef MODULE                       <-----------------------
> >         char *option = NULL;
> >
> >         if (fb_get_options("pm3fb", &option))
> >                 return -ENODEV;
> >         pm3fb_setup(option);
> > #endif
> >
> >         return pci_register_driver(&pm3fb_driver);
> > }
> >
> > static void __exit pm3fb_exit(void)
> > {
> >         pci_unregister_driver(&pm3fb_driver);
> > }
> >
> > #ifdef MODULE
>
> I've spotted this before, but forgotten about it.  Yes, the above should
> be #ifndef

ok, so is someone already fixing this?

rday

  reply	other threads:[~2007-05-12 16:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-12 10:32 Robert P. J. Day
2007-05-12 13:57 ` Antonino A. Daplas
2007-05-12 15:59   ` Robert P. J. Day [this message]
2007-05-12 20:32     ` Antonino A. Daplas

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=Pine.LNX.4.64.0705121156300.15308@localhost.localdomain \
    --to=rpjday@mindspring.com \
    --cc=adaplas@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®