All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] : Fix compilation warnings in net/802/fc.c
@ 2008-10-14 18:33 Manish Katiyar
  2008-10-14 19:35   ` Marcin Slusarz
  0 siblings, 1 reply; 27+ messages in thread
From: Manish Katiyar @ 2008-10-14 18:33 UTC (permalink / raw)
  To: kernel-janitors

[ I was not sure about which list is this appropriate, so putting
kernel-janitors since this is cleanup]

Below patch fixes the following warning during compilation.
net/802/fc.c:85: warning: unused variable 'fch'

Signed-off-by: Manish Katiyar <mkatiyar@gmail.com>

---
 net/802/fc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/net/802/fc.c b/net/802/fc.c
index cb3475e..7463109 100644
--- a/net/802/fc.c
+++ b/net/802/fc.c
@@ -82,7 +82,9 @@ static int fc_header(struct sk_buff *skb, struct
net_device *dev,

 static int fc_rebuild_header(struct sk_buff *skb)
 {
+#ifdef CONFIG_INET
 	struct fch_hdr *fch=(struct fch_hdr *)skb->data;
+#endif
 	struct fcllc *fcllc=(struct fcllc *)(skb->data+sizeof(struct fch_hdr));
 	if(fcllc->ethertype != htons(ETH_P_IP)) {
 		printk("fc_rebuild_header: Don't know how to resolve type %04X
addresses ?\n", ntohs(fcllc->ethertype));
-- 
1.5.4.3


Thanks -
Manish

^ permalink raw reply related	[flat|nested] 27+ messages in thread
* [PATCH] : Fix compilation warnings in net/netlabel/netlabel_addrlist.c
  2008-10-14 18:33 [PATCH] : Fix compilation warnings in net/802/fc.c Manish Katiyar
@ 2008-10-29  8:18 ` Manish Katiyar
  0 siblings, 0 replies; 27+ messages in thread
From: Manish Katiyar @ 2008-10-29  8:06 UTC (permalink / raw)
  To: kernel-janitors, netdev, paul.moore; +Cc: mkatiyar

Below patch fixes the following warning.
net/netlabel/netlabel_addrlist.c:335: warning: unused variable 'dir'
net/netlabel/netlabel_addrlist.c:369: warning: unused variable 'dir'


Signed-off-by: Manish Katiyar <mkatiyar@gmail.com>
---
 net/netlabel/netlabel_addrlist.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/net/netlabel/netlabel_addrlist.c b/net/netlabel/netlabel_addrlist.c
index b0925a3..65fbec1 100644
--- a/net/netlabel/netlabel_addrlist.c
+++ b/net/netlabel/netlabel_addrlist.c
@@ -332,7 +332,9 @@ void netlbl_af4list_audit_addr(struct audit_buffer
*audit_buf,
 					__be32 addr, __be32 mask)
 {
 	u32 mask_val = ntohl(mask);
+#ifdef CONFIG_AUDIT
 	char *dir = (src ? "src" : "dst");
+#endif

 	if (dev != NULL)
 		audit_log_format(audit_buf, " netif=%s", dev);
@@ -366,7 +368,9 @@ void netlbl_af6list_audit_addr(struct audit_buffer
*audit_buf,
 				 const struct in6_addr *addr,
 				 const struct in6_addr *mask)
 {
+#ifdef CONFIG_AUDIT
 	char *dir = (src ? "src" : "dst");
+#endif

 	if (dev != NULL)
 		audit_log_format(audit_buf, " netif=%s", dev);
-- 
1.5.4.3


Thanks -
Manish

^ permalink raw reply related	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2008-10-30 13:45 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-14 18:33 [PATCH] : Fix compilation warnings in net/802/fc.c Manish Katiyar
2008-10-14 19:35 ` Marcin Slusarz
2008-10-14 19:35   ` Marcin Slusarz
2008-10-14 23:36   ` David Miller
2008-10-14 23:36     ` David Miller
2008-10-15  3:36     ` Manish Katiyar
2008-10-15  3:48       ` Manish Katiyar
2008-10-15  6:17       ` David Miller
2008-10-15  6:17         ` David Miller
2008-10-15  7:03         ` Manish Katiyar
2008-10-15  7:15           ` Manish Katiyar
2008-10-15  7:14           ` David Miller
2008-10-15  7:14             ` David Miller
  -- strict thread matches above, loose matches on Subject: below --
2008-10-29  8:06 [PATCH] : Fix compilation warnings in net/netlabel/netlabel_addrlist.c Manish Katiyar
2008-10-29  8:18 ` Manish Katiyar
2008-10-29 13:49 ` Paul Moore
2008-10-29 13:49   ` Paul Moore
     [not found]   ` <ea11fea30810290818p2ae6c11eo5e38baf631867fb1@mail.gmail.com>
     [not found]     ` <200810291135.25056.paul.moore@hp.com>
2008-10-29 18:27       ` Manish Katiyar
2008-10-29 18:39         ` Manish Katiyar
     [not found]         ` <200810291543.49225.paul.moore@hp.com>
2008-10-30  2:10           ` Manish Katiyar
2008-10-30  2:22             ` Manish Katiyar
2008-10-30 12:12             ` Paul Moore
2008-10-30 12:12               ` Paul Moore
2008-10-30 13:33               ` Manish Katiyar
2008-10-30 13:45                 ` Manish Katiyar
2008-10-30 13:39                 ` Paul Moore
2008-10-30 13:39                   ` Paul Moore

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.