All of lore.kernel.org
 help / color / mirror / Atom feed
From: Boaz Harrosh <openosd@gmail.com>
To: hacklu <embedway.linux@gmail.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: how about KBUILD_MODNAME
Date: Tue, 03 Aug 2010 12:56:59 +0300	[thread overview]
Message-ID: <4C57E7EB.4090904@gmail.com> (raw)
In-Reply-To: <4C57E6F9.6080104@panasas.com>

On 08/03/2010 12:52 PM, Boaz Harrosh wrote:
> On 08/03/2010 10:11 AM, hacklu wrote:
>>
>> I don't understand the macro KBUILD_MODNAME .
>> when I compile a  driver program. It returns me "linux/pci.h:655: error: 'KBUILD_MODNAME' undeclared (first use in this function) "
>>
>> In the makefile I had used the "-D" options
>>
>> thanks a lot
>>
>> 2010-08-03 
>>
>> hacklu 
>>
> 
> The KBUILD_MODNAME fails to be set when there are two drivers built from the same
> directory. There are many directories in the source tree with more then one driver
> but they don't use the pr_debug macro.
> 
> Cheers
> Boaz

Rrr it was a long time since I fought this. Maybe it's not the problem with two
drivers in same dir, maybe it's when two drivers share the same foo.c file.

Boaz

  reply	other threads:[~2010-08-03  9:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <201008031037022524247@gmail.com>
2010-08-03  7:11 ` how about KBUILD_MODNAME hacklu
2010-08-03  8:36   ` Américo Wang
2010-08-03  9:35   ` hacklu
2010-08-03 10:00     ` Sam Ravnborg
2010-08-03 10:12     ` Américo Wang
2010-08-03  9:52   ` Boaz Harrosh
2010-08-03  9:56     ` Boaz Harrosh [this message]
2010-08-03 10:15       ` Américo Wang
2010-08-03 10:24         ` Boaz Harrosh
2010-08-03 11:02           ` Sam Ravnborg

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=4C57E7EB.4090904@gmail.com \
    --to=openosd@gmail.com \
    --cc=embedway.linux@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.