* [PATCH] rt2x00: fix warning when building rt2800pci with just soc support
@ 2010-03-15 16:22 Helmut Schaa
2010-03-15 16:35 ` Ivo van Doorn
2010-03-15 19:08 ` Gertjan van Wingerde
0 siblings, 2 replies; 3+ messages in thread
From: Helmut Schaa @ 2010-03-15 16:22 UTC (permalink / raw)
To: John Linville; +Cc: linux-wireless, Ivo van Doorn, Gertjan van Wingerde
Fix compile warning "rt2800pci.c:1248: warning: 'rt2800pci_device_table'
defined but not used" when building rt2800pci with only soc support
(without pci).
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
---
Nothing important, had the patch in my tree and just noticed that I didn't
send it out yet.
drivers/net/wireless/rt2x00/rt2800pci.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c
index 10fafd0..0104906 100644
--- a/drivers/net/wireless/rt2x00/rt2800pci.c
+++ b/drivers/net/wireless/rt2x00/rt2800pci.c
@@ -1184,6 +1184,7 @@ static const struct rt2x00_ops rt2800pci_ops = {
/*
* RT2800pci module information.
*/
+#ifdef CONFIG_RT2800PCI_PCI
static DEFINE_PCI_DEVICE_TABLE(rt2800pci_device_table) = {
{ PCI_DEVICE(0x1814, 0x0601), PCI_DEVICE_DATA(&rt2800pci_ops) },
{ PCI_DEVICE(0x1814, 0x0681), PCI_DEVICE_DATA(&rt2800pci_ops) },
@@ -1211,6 +1212,7 @@ static DEFINE_PCI_DEVICE_TABLE(rt2800pci_device_table) = {
#endif
{ 0, }
};
+#endif /* CONFIG_RT2800PCI_PCI */
MODULE_AUTHOR(DRV_PROJECT);
MODULE_VERSION(DRV_VERSION);
--
1.6.0.2
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] rt2x00: fix warning when building rt2800pci with just soc support
2010-03-15 16:22 [PATCH] rt2x00: fix warning when building rt2800pci with just soc support Helmut Schaa
@ 2010-03-15 16:35 ` Ivo van Doorn
2010-03-15 19:08 ` Gertjan van Wingerde
1 sibling, 0 replies; 3+ messages in thread
From: Ivo van Doorn @ 2010-03-15 16:35 UTC (permalink / raw)
To: Helmut Schaa; +Cc: John Linville, linux-wireless, Gertjan van Wingerde
On Monday 15 March 2010, Helmut Schaa wrote:
> Fix compile warning "rt2800pci.c:1248: warning: 'rt2800pci_device_table'
> defined but not used" when building rt2800pci with only soc support
> (without pci).
>
> Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
> ---
> Nothing important, had the patch in my tree and just noticed that I didn't
> send it out yet.
>
> drivers/net/wireless/rt2x00/rt2800pci.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c
> index 10fafd0..0104906 100644
> --- a/drivers/net/wireless/rt2x00/rt2800pci.c
> +++ b/drivers/net/wireless/rt2x00/rt2800pci.c
> @@ -1184,6 +1184,7 @@ static const struct rt2x00_ops rt2800pci_ops = {
> /*
> * RT2800pci module information.
> */
> +#ifdef CONFIG_RT2800PCI_PCI
> static DEFINE_PCI_DEVICE_TABLE(rt2800pci_device_table) = {
> { PCI_DEVICE(0x1814, 0x0601), PCI_DEVICE_DATA(&rt2800pci_ops) },
> { PCI_DEVICE(0x1814, 0x0681), PCI_DEVICE_DATA(&rt2800pci_ops) },
> @@ -1211,6 +1212,7 @@ static DEFINE_PCI_DEVICE_TABLE(rt2800pci_device_table) = {
> #endif
> { 0, }
> };
> +#endif /* CONFIG_RT2800PCI_PCI */
>
> MODULE_AUTHOR(DRV_PROJECT);
> MODULE_VERSION(DRV_VERSION);
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] rt2x00: fix warning when building rt2800pci with just soc support
2010-03-15 16:22 [PATCH] rt2x00: fix warning when building rt2800pci with just soc support Helmut Schaa
2010-03-15 16:35 ` Ivo van Doorn
@ 2010-03-15 19:08 ` Gertjan van Wingerde
1 sibling, 0 replies; 3+ messages in thread
From: Gertjan van Wingerde @ 2010-03-15 19:08 UTC (permalink / raw)
To: Helmut Schaa; +Cc: John Linville, linux-wireless, Ivo van Doorn
On 03/15/10 17:22, Helmut Schaa wrote:
> Fix compile warning "rt2800pci.c:1248: warning: 'rt2800pci_device_table'
> defined but not used" when building rt2800pci with only soc support
> (without pci).
>
> Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
> ---
> Nothing important, had the patch in my tree and just noticed that I didn't
> send it out yet.
>
> drivers/net/wireless/rt2x00/rt2800pci.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c
> index 10fafd0..0104906 100644
> --- a/drivers/net/wireless/rt2x00/rt2800pci.c
> +++ b/drivers/net/wireless/rt2x00/rt2800pci.c
> @@ -1184,6 +1184,7 @@ static const struct rt2x00_ops rt2800pci_ops = {
> /*
> * RT2800pci module information.
> */
> +#ifdef CONFIG_RT2800PCI_PCI
> static DEFINE_PCI_DEVICE_TABLE(rt2800pci_device_table) = {
> { PCI_DEVICE(0x1814, 0x0601), PCI_DEVICE_DATA(&rt2800pci_ops) },
> { PCI_DEVICE(0x1814, 0x0681), PCI_DEVICE_DATA(&rt2800pci_ops) },
> @@ -1211,6 +1212,7 @@ static DEFINE_PCI_DEVICE_TABLE(rt2800pci_device_table) = {
> #endif
> { 0, }
> };
> +#endif /* CONFIG_RT2800PCI_PCI */
>
> MODULE_AUTHOR(DRV_PROJECT);
> MODULE_VERSION(DRV_VERSION);
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-03-15 19:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-15 16:22 [PATCH] rt2x00: fix warning when building rt2800pci with just soc support Helmut Schaa
2010-03-15 16:35 ` Ivo van Doorn
2010-03-15 19:08 ` Gertjan van Wingerde
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).