[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <200805142320.m4ENKGSF026635@imap1.linux-foundation.org>
Date: Wed, 14 May 2008 16:20:15 -0700
From: akpm@...ux-foundation.org
To: jeff@...zik.org
Cc: netdev@...r.kernel.org, akpm@...ux-foundation.org, greg@...ah.com
Subject: [patch 09/11] drivers/net/tokenring/olympic.c: fix warning
From: Andrew Morton <akpm@...ux-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@...zik.org>
Cc: Greg KH <greg@...ah.com>
Signed-off-by: Andrew Morton <akpm@...ux-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 ;
_
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists