login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
February
»
26
Re: 2.6.20-rc4-mm1: PCI=n: drivers/net/3c59x.c compile error
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Randy Dunlap
Subject:
Re: 2.6.20-rc4-mm1: PCI=n: drivers/net/3c59x.c compile error
Date: Monday, February 26, 2007 - 10:26 am
On Mon, 26 Feb 2007 16:22:27 +0300 Sergei Shtylyov wrote:
quoted text
> Hello, I wrote: > > >>>> 3x59x-fix-pci-resource-management.patch causes the following compile > >>>> error with CONFIG_PCI=n: > > >>>> <-- snip --> > > >>>> ... > >>>> CC drivers/net/3c59x.o > >>>> /home/bunk/linux/kernel-2.6/linux-2.6.20-rc4-mm1/drivers/net/3c59x.c: > >>>> In function 'vortex_init_one': > >>>> /home/bunk/linux/kernel-2.6/linux-2.6.20-rc4-mm1/drivers/net/3c59x.c:961: > >>>> error: implicit declaration of function 'pci_request_regions' > >>>> /home/bunk/linux/kernel-2.6/linux-2.6.20-rc4-mm1/drivers/net/3c59x.c:985: > >>>> error: implicit declaration of function 'pci_release_regions' > >>>> make[3]: *** [drivers/net/3c59x.o] Error 1 > > >>> Grr, at at the same time it's happy with pci_enable_device(). > >>> I'd say the problem is in <linux/pci.h>, not in the patch. > > >> Has there been any patch to fix the "unbalanced" > >> pci_{request|release}_regions() declarations? Am I suposed to create > >> such? > > > Alternatively, vortex_{init|remove_one() and struct pci_driver there > > could have been put under #ifdef CONFIG_PCI (good idea anyway -- should > > reduce driver size on non-PCI systems)... > > I wonder if I may count on any feedback on this -- asking linux-pci now... > The issue is as follows: with my patch pci_{request|release}_regions() may > be called with CONFIG_PCI=n (probably, this never has been a issue before) but > <linux/pci.h> don't have them declared in this case -- unlike > pci_enable_device() which is just empty for CONFIG_PCI=n. > Now, what kind of approach do I take: > > - a "fair one", so that pci_{request|release}_regions() get "balanced" > declarations in the header like pci_enable_device(); > > - a "local one" (and even saving non-PCI kernel from needless bloat), i.e. > #ifdef out functions that are only meaningful with CONFIG_PCI=y)? > > I'm leaning to the second now...
I'd prefer the fair one -- add stubs to include/linux/pci.h. --- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
2.6.20-rc4-mm1
, Andrew Morton
, (Thu Jan 11, 11:26 pm)
Early ACPI lockup (was Re: 2.6.20-rc4-mm1)
, Frederik Deweerdt
, (Fri Jan 12, 3:20 am)
Re: 2.6.20-rc4-mm1
, Mariusz Kozlowski
, (Fri Jan 12, 3:25 am)
'struct task_struct' has no member named 'mems_allowed' ( ...
, Sander
, (Fri Jan 12, 3:52 am)
Re: 'struct task_struct' has no member named 'mems_allowed ...
, Paul Jackson
, (Fri Jan 12, 4:28 am)
spurious sparse warnings from linux/aio.h (was: 2.6.20-rc4 ...
, Tilman Schmidt
, (Fri Jan 12, 4:55 am)
Re: spurious sparse warnings from linux/aio.h (was: 2.6.20 ...
, Suparna Bhattacharya
, (Fri Jan 12, 6:11 am)
Re: 2.6.20-rc4-mm1
, Frederik Deweerdt
, (Fri Jan 12, 6:18 am)
[-mm patch] remove tcp header from tcp_v4_check
, Frederik Deweerdt
, (Fri Jan 12, 6:33 am)
[-mm patch] remove tcp header from tcp_v4_check (take #2)
, Frederik Deweerdt
, (Fri Jan 12, 6:55 am)
Re: 2.6.20-rc4-mm1
, Mariusz Kozlowski
, (Fri Jan 12, 8:13 am)
Re: 2.6.20-rc4-mm1
, Michal Piotrowski
, (Fri Jan 12, 8:16 am)
Re: 2.6.20-rc4-mm1
, Mariusz Kozlowski
, (Fri Jan 12, 9:12 am)
Re: spurious sparse warnings from linux/aio.h
, Tilman Schmidt
, (Fri Jan 12, 10:46 am)
Re: 'struct task_struct' has no member named 'mems_allowed ...
, Christoph Lameter
, (Fri Jan 12, 12:25 pm)
Re: 'struct task_struct' has no member named 'mems_allowed ...
, Paul Jackson
, (Fri Jan 12, 2:20 pm)
Re: 'struct task_struct' has no member named 'mems_allowed ...
, Christoph Lameter
, (Fri Jan 12, 2:28 pm)
Re: 'struct task_struct' has no member named 'mems_allowed ...
, Paul Jackson
, (Fri Jan 12, 2:58 pm)
Re: 'struct task_struct' has no member named 'mems_allowed ...
, Christoph Lameter
, (Fri Jan 12, 3:00 pm)
Re: 'struct task_struct' has no member named 'mems_allowed ...
, Paul Jackson
, (Fri Jan 12, 3:10 pm)
Re: 'struct task_struct' has no member named 'mems_allowed ...
, Andrew Morton
, (Fri Jan 12, 3:11 pm)
Re: Early ACPI lockup (was Re: 2.6.20-rc4-mm1)
, Len Brown
, (Fri Jan 12, 3:53 pm)
Re: Early ACPI lockup (was Re: 2.6.20-rc4-mm1)
, Frederik Deweerdt
, (Fri Jan 12, 4:10 pm)
Re: Early ACPI lockup (was Re: 2.6.20-rc4-mm1)
, Jiri Slaby
, (Fri Jan 12, 4:36 pm)
Re: Early ACPI lockup (was Re: 2.6.20-rc4-mm1)
, Michal Piotrowski
, (Fri Jan 12, 5:08 pm)
Re: Early ACPI lockup (was Re: 2.6.20-rc4-mm1)
, Jiri Slaby
, (Fri Jan 12, 5:43 pm)
Re: Early ACPI lockup (was Re: 2.6.20-rc4-mm1)
, Frederik Deweerdt
, (Fri Jan 12, 5:45 pm)
2.6.20-rc4-mm1: status of sn9c102_pas202bca?
, Adrian Bunk
, (Sat Jan 13, 12:27 am)
[-mm patch] make mmc_sysfs.c:mmc_key_type static
, Adrian Bunk
, (Sat Jan 13, 2:56 am)
[-mm patch] make gfs2_change_nlink_i() static
, Adrian Bunk
, (Sat Jan 13, 2:56 am)
Re: [-mm patch] make mmc_sysfs.c:mmc_key_type static
, Pierre Ossman
, (Sat Jan 13, 3:38 pm)
2.6.20-rc4-mm1: different values for OHCI_QUIRK_ZFMICRO
, Adrian Bunk
, (Sun Jan 14, 2:10 am)
Re: 2.6.20-rc4-mm1
, Thomas Gleixner
, (Sun Jan 14, 2:48 am)
Re: 2.6.20-rc4-mm1
, Thomas Gleixner
, (Sun Jan 14, 3:46 am)
Re: 2.6.20-rc4-mm1: different values for OHCI_QUIRK_ZFMICRO
, David Brownell
, (Sun Jan 14, 7:36 am)
Re: 2.6.20-rc4-mm1
, Thomas Gleixner
, (Sun Jan 14, 7:40 am)
Re: 2.6.20-rc4-mm1
, Jens Axboe
, (Sun Jan 14, 3:05 pm)
Re: 2.6.20-rc4-mm1
, Jens Axboe
, (Sun Jan 14, 3:20 pm)
Re: 2.6.20-rc4-mm1
, Jens Axboe
, (Sun Jan 14, 3:30 pm)
Re: 2.6.20-rc4-mm1
, Thomas Gleixner
, (Sun Jan 14, 3:31 pm)
i810fb fails to load (was: 2.6.20-rc4-mm1)
, Tilman Schmidt
, (Sun Jan 14, 4:52 pm)
Re: i810fb fails to load (was: 2.6.20-rc4-mm1)
, Andrew Morton
, (Sun Jan 14, 5:22 pm)
Re: 2.6.20-rc4-mm1
, Ingo Molnar
, (Mon Jan 15, 1:22 am)
Re: [-mm patch] make gfs2_change_nlink_i() static
, Steven Whitehouse
, (Mon Jan 15, 3:31 am)
Re: 2.6.20-rc4-mm1: status of sn9c102_pas202bca?
, Mauro Carvalho Chehab
, (Mon Jan 15, 4:34 am)
Re: 2.6.20-rc4-mm1
, Jens Axboe
, (Mon Jan 15, 4:55 pm)
Re: [Cluster-devel] [-mm patch] make gfs2_change_nlink_i() ...
, Wendy Cheng
, (Tue Jan 16, 2:04 pm)
[-mm patch] fs/unionfs/: possible cleanups
, Adrian Bunk
, (Thu Jan 18, 2:55 pm)
[-mm patch] drivers/mtd/ubi/: possible cleanups
, Adrian Bunk
, (Fri Jan 19, 11:40 am)
Re: [-mm patch] fs/unionfs/: possible cleanups
, Josef Sipek
, (Sat Jan 20, 3:06 pm)
[-mm patch] oops in drivers/net/shaper.c
, Frederik Deweerdt
, (Sat Jan 20, 3:38 pm)
Re: [-mm patch] drivers/mtd/ubi/: possible cleanups
, Artem Bityutskiy
, (Sun Jan 21, 4:23 am)
[-mm patch] remove one remaining "#define BCM_TSO 1"
, Adrian Bunk
, (Sun Jan 21, 12:13 pm)
Re: i810fb fails to load
, Thomas Hellström
, (Mon Jan 22, 6:42 am)
[-mm patch] drivers/firewire/: cleanups
, Adrian Bunk
, (Mon Jan 22, 11:17 am)
Re: i810fb fails to load
, Tilman Schmidt
, (Mon Jan 22, 11:30 am)
Re: [-mm patch] drivers/firewire/: cleanups
, Kristian Høgsberg
, (Mon Jan 22, 12:41 pm)
Re: [-mm patch] drivers/firewire/: cleanups
, Adrian Bunk
, (Mon Jan 22, 1:04 pm)
Re: [-mm patch] drivers/firewire/: cleanups
, Kristian Høgsberg
, (Mon Jan 22, 1:04 pm)
Re: [-mm patch] drivers/firewire/: cleanups
, Stefan Richter
, (Mon Jan 22, 1:44 pm)
Re: i810fb fails to load
, Dave Airlie
, (Mon Jan 22, 2:50 pm)
`make htmldocs` fails
, Don Mullis
, (Mon Jan 22, 11:02 pm)
Re: `make htmldocs` fails
, Randy Dunlap
, (Mon Jan 22, 11:22 pm)
Re: `make htmldocs` fails
, Greg KH
, (Mon Jan 22, 11:35 pm)
Re: `make htmldocs` fails -- 2.6.20-rc4-mm1
, Don Mullis
, (Mon Jan 22, 11:45 pm)
Re: i810fb fails to load
, Thomas Hellström
, (Tue Jan 23, 1:10 am)
2.6.20-rc4-mm1: PCI=n: drivers/net/3c59x.c compile error
, Adrian Bunk
, (Wed Jan 24, 6:53 am)
Re: 2.6.20-rc4-mm1: PCI=n: drivers/net/3c59x.c compile error
, Sergei Shtylyov
, (Wed Jan 24, 7:12 am)
[-mm patch] MTD_CK804XROM must depend on PCI
, Adrian Bunk
, (Wed Jan 24, 3:36 pm)
Re: [-mm patch] remove tcp header from tcp_v4_check (take #2)
, David Miller
, (Sun Feb 4, 5:44 pm)
Re: 2.6.20-rc4-mm1: PCI=n: drivers/net/3c59x.c compile error
, Sergei Shtylyov
, (Sat Feb 17, 12:26 pm)
Re: 2.6.20-rc4-mm1: PCI=n: drivers/net/3c59x.c compile error
, Sergei Shtylyov
, (Sat Feb 17, 12:32 pm)
Re: 2.6.20-rc4-mm1: different values for OHCI_QUIRK_ZFMICRO
, Adrian Bunk
, (Mon Feb 19, 5:06 pm)
Re: 2.6.20-rc4-mm1: PCI=n: drivers/net/3c59x.c compile error
, Sergei Shtylyov
, (Mon Feb 26, 6:22 am)
Re: 2.6.20-rc4-mm1: PCI=n: drivers/net/3c59x.c compile error
, Randy Dunlap
, (Mon Feb 26, 10:26 am)
Re: 2.6.20-rc4-mm1: PCI=n: drivers/net/3c59x.c compile error
, Greg KH
, (Mon Feb 26, 2:14 pm)
Re: 2.6.20-rc4-mm1: PCI=n: drivers/net/3c59x.c compile error
, Sergei Shtylyov
, (Tue Mar 6, 9:15 am)
Re: 2.6.20-rc4-mm1: PCI=n: drivers/net/3c59x.c compile error
, Randy Dunlap
, (Tue Mar 6, 9:47 am)
Re: 2.6.20-rc4-mm1: PCI=n: drivers/net/3c59x.c compile error
, Tejun Heo
, (Fri Mar 9, 5:54 am)
Re: 2.6.20-rc4-mm1: different values for OHCI_QUIRK_ZFMICRO
, Randy Dunlap
, (Thu Mar 29, 3:06 pm)
Re: 2.6.20-rc4-mm1: different values for OHCI_QUIRK_ZFMICRO
, David Brownell
, (Thu Mar 29, 3:24 pm)
[PATCH] different values for OHCI_QUIRK_ZFMICRO
, Randy Dunlap
, (Tue May 8, 3:17 pm)
Re: [PATCH] different values for OHCI_QUIRK_ZFMICRO
, David Brownell
, (Tue May 8, 3:34 pm)
Re: [PATCH] different values for OHCI_QUIRK_ZFMICRO
, Greg KH
, (Tue May 8, 3:37 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ingo Molnar
Re: [PATCH 0/3] v2 Make hierarchical RCU less IPI-happy and add more tracing
Jeremy Fitzhardinge
Re: Linux 2.6.28.10 and Linux 2.6.29.6 XEN Guest Support Broken x86_64 in BUILD
Nick Piggin
Re: [patch] CFS (Completely Fair Scheduler), v2
Gary Hade
Re: [PATCH 0/5][RFC] Physical PCI slot objects
Dave Johnson
Re: expected behavior of PF_PACKET on NETIF_F_HW_VLAN_RX device?
linux-netdev
:
Arnd Bergmann
Re: 64-bit net_device_stats
Stephens, Allan
RE: [PATCH]: tipc: Fix oops on send prior to entering networked mode
frank.blaschka
[patch 3/5] [PATCH] qeth: support z/VM VSWITCH Port Isolation
Wu Fengguang
Re: [PATCH] dm9601: handle corrupt mac address
David Miller
Re: [PATCH net-2.6.24] Fix refcounting problem with netif_rx_reschedule()
git
:
Junio C Hamano
Re: [PATCH] [RFC] add Message-ID field to log on git-am operation
Junio C Hamano
Re: Handling large files with GIT
Karl
Re: [ANNOUNCE] pg - A patch porcelain for GIT
Josh Triplett
Re: [RFC][PATCH 00/10] Sparse: Git's "make check" target
Pierre Habouzit
Re: [PATCH] git-daemon: more powerful base-path/user-path settings, using formats.
git-commits-head
:
Linux Kernel Mailing List
MIPS: RBTX4939: Fix IOC pin-enable register updating
Linux Kernel Mailing List
regulator: update email address for Liam Girdwood
Linux Kernel Mailing List
[SCSI] ipr: add message to error table
Linux Kernel Mailing List
powerpc/32: Wire up the trampoline code for kdump
Linux Kernel Mailing List
USB: omap_udc: sync with OMAP tree
openbsd-misc
:
Josh Grosse
Re: error : pkg add phpMyAdmin
Brian Candler
Re: OBSD's perspective on SELinux
Jacob Meuser
Re: /dev/audio: Device busy
David Vasek
Re: Inexpensive, low power, "wall wart" computer
William Boshuck
Re: Richard Stallman...
Colocation donated by:
Syndicate