Files
linux/include/linux
Andrew Morton bba8116586 PCI: make pci_register_driver() a macro
alpha:

CC [M]  drivers/usb/gadget/u_ether.o
In file included from include/asm/dma-mapping.h:7,
                 from include/linux/dma-mapping.h:52,
                 from include/linux/dmaengine.h:29,
                 from include/linux/skbuff.h:29,
                 from include/linux/if_ether.h:114,
                 from include/linux/etherdevice.h:27,
                 from drivers/usb/gadget/u_ether.c:29:
include/linux/pci.h: In function 'pci_register_driver':
include/linux/pci.h:673: error: 'KBUILD_MODNAME' undeclared (first use in this function)
include/linux/pci.h:673: error: (Each undeclared identifier is reported only once
include/linux/pci.h:673: error: for each function it appears in.)

Sam says:

The problem is that u_ether.o is used by two modules so when we build it
KBUILD_MODNAME is not defined because kbuild does not know what value to
use.

And in pci.h we have the following inline:

static inline int __must_check pci_register_driver(struct pci_driver *driver)
{
        return __pci_register_driver(driver, THIS_MODULE, KBUILD_MODNAME);
}

And alpha uses dma-mapping.h to nullify a number of functions that seem to
require something from pci.h.

Making it a macro fixes this particular problem.  However, the underlying issue
of a file using KBUILD_MODNAME and being shared between multiple modules is
*not* addressed.  I guess the answer there is "don't do that".

Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2008-08-07 06:52:01 -07:00
..
…
…
…
…
2008-07-25 10:53:30 -07:00
…
2008-07-27 01:26:17 +02:00
…
2008-08-05 14:33:46 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-07-24 10:47:24 -07:00
2008-07-24 10:47:33 -07:00
…
…
…
…
2008-07-24 10:47:33 -07:00
…
…
…
…
…
…
…
…
2008-08-04 21:56:09 -07:00
…
…
…
…
…
…
…
…
…
…
…
2008-07-25 10:53:33 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
2008-07-20 17:12:38 -07:00
…
2008-07-22 17:30:57 -07:00
…
2008-07-21 12:00:37 +01:00
…
…
…
…
…
2008-07-21 12:00:37 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-07-24 10:47:29 -07:00
…
…
…
2008-07-24 10:47:41 -07:00
…
…
…
…
…
…
…
2008-07-16 23:27:03 +02:00
2008-07-26 20:53:20 -04:00
2008-07-11 15:49:21 +02:00
2008-07-25 10:53:48 -07:00
…
2008-07-20 17:12:36 -07:00
…
2008-07-25 10:53:30 -07:00
…
…
2008-07-20 17:12:36 -07:00
…
…
…
2008-07-23 15:25:21 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-08-05 18:17:01 +02:00
2008-07-25 10:53:42 -07:00
…
…
…
…
…
…
…
…
2008-07-18 18:05:19 -07:00
…
…
…
…
2008-07-14 22:49:06 -07:00
…
…
2008-08-02 18:36:10 +01:00
…
…
2008-07-25 10:53:39 -07:00
…
…
…
…
…
2008-07-30 09:41:43 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-07-20 17:12:37 -07:00
…
…
…
…
…
…
…
2008-07-30 09:41:45 -07:00
…
…
…
…
2008-07-30 09:41:46 -07:00
…
…
…
…
…
…
2008-07-24 10:47:17 -07:00
…
…
…
…
2008-07-23 09:49:56 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-07-24 10:47:41 -07:00
…
…
…
…
…
…
…
…
…
…
2008-07-27 01:56:38 +02:00
2008-07-27 01:54:58 +02:00
2008-08-02 16:28:50 +02:00
2008-07-28 16:30:21 -07:00
…
…
2008-07-28 16:30:21 -07:00
…
2008-07-24 10:47:24 -07:00
…
…
…
2008-07-25 10:53:34 -07:00
…
…
…
…
…
…
…
…
…
…
2008-07-25 10:53:29 -07:00
2008-08-04 23:04:08 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-08-04 21:31:34 -07:00
2008-08-04 21:31:34 -07:00
…
…
2008-07-26 12:00:03 -07:00
…
2008-08-07 06:52:01 -07:00
…
…
…
…
…
…
…
…
2008-08-05 14:33:50 -07:00
…
…
…
…
…
…
2008-07-26 20:53:12 -04:00
2008-07-26 12:00:10 -07:00
…
…
…
…
2008-07-25 10:53:29 -07:00
…
…
2008-07-25 10:53:29 -07:00
…
…
…
…
…
…
…
…
…
2008-07-25 21:45:49 -07:00
…
…
…
…
…
…
…
…
…
2008-07-25 10:53:42 -07:00
2008-07-24 08:31:21 -04:00
…
2008-07-24 10:47:24 -07:00
…
…
…
…
2008-07-25 10:53:30 -07:00
…
…
…
2008-07-27 01:47:00 +02:00
…
…
…
…
…
…
…
…
2008-07-20 17:12:37 -07:00
…
…
…
…
2008-07-26 12:00:12 -07:00
…
…
2008-07-26 20:53:12 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-08-04 17:23:43 -07:00
2008-07-22 13:03:28 -07:00
2008-07-20 17:12:34 -07:00
2008-07-22 13:03:27 -07:00
…
…
…
…
…
…
…
…
2008-07-21 15:15:55 -07:00
…
…
…
…
…
…
…
…
…
2008-07-24 10:47:14 -07:00
…
…
…
…
2008-07-25 10:53:40 -07:00
…
…
…
…
…
…
…