* [patch 09/11] drivers/net/tokenring/olympic.c: fix warning
@ 2008-05-14 23:20 akpm
2008-05-22 10:04 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2008-05-14 23:20 UTC (permalink / raw)
To: jeff; +Cc: netdev, akpm, greg
From: Andrew Morton <akpm@linux-foundation.org>
When dev_name() is changed to return `const char *':
drivers/net/tokenring/olympic.c: In function 'olympic_probe':
drivers/net/tokenring/olympic.c:234: warning: assignment discards qualifiers from pointer target type
Cc: Jeff Garzik <jeff@garzik.org>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/net/tokenring/olympic.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN drivers/net/tokenring/olympic.h~drivers-net-tokenring-olympicc-fix-warning drivers/net/tokenring/olympic.h
--- a/drivers/net/tokenring/olympic.h~drivers-net-tokenring-olympicc-fix-warning
+++ a/drivers/net/tokenring/olympic.h
@@ -254,7 +254,7 @@ struct olympic_private {
u8 __iomem *olympic_mmio;
u8 __iomem *olympic_lap;
struct pci_dev *pdev ;
- char *olympic_card_name ;
+ const char *olympic_card_name;
spinlock_t olympic_lock ;
_
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [patch 09/11] drivers/net/tokenring/olympic.c: fix warning
2008-05-14 23:20 [patch 09/11] drivers/net/tokenring/olympic.c: fix warning akpm
@ 2008-05-22 10:04 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2008-05-22 10:04 UTC (permalink / raw)
To: akpm; +Cc: netdev, greg
akpm@linux-foundation.org wrote:
> From: Andrew Morton <akpm@linux-foundation.org>
>
> When dev_name() is changed to return `const char *':
>
> drivers/net/tokenring/olympic.c: In function 'olympic_probe':
> drivers/net/tokenring/olympic.c:234: warning: assignment discards qualifiers from pointer target type
>
> Cc: Jeff Garzik <jeff@garzik.org>
> Cc: Greg KH <greg@kroah.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
>
> drivers/net/tokenring/olympic.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
applied
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-22 10:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-14 23:20 [patch 09/11] drivers/net/tokenring/olympic.c: fix warning akpm
2008-05-22 10:04 ` Jeff Garzik
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.