mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Martin J. Bligh" <mbligh@aracnet.com>
To: Jeff Garzik <garzik@pobox.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: [PATCH] fix warning in drivers/net/sis900.c
Date: Sat, 01 Mar 2003 09:11:07 -0800	[thread overview]
Message-ID: <51890000.1046538667@[10.10.2.4]> (raw)

drivers/net/sis900.c: In function `set_rx_mode':
drivers/net/sis900.c:2100: warning: passing arg 2 of `set_bit' from incompatible pointer type

I just cast this. Seems to work fine at the moment, so presumably it's
correct.

M.

diff -urpN -X /home/fletch/.diff.exclude virgin/drivers/net/sis900.c sisfix/drivers/net/sis900.c
--- virgin/drivers/net/sis900.c	Tue Feb 25 23:03:47 2003
+++ sisfix/drivers/net/sis900.c	Sat Mar  1 08:39:16 2003
@@ -2097,7 +2097,7 @@ static void set_rx_mode(struct net_devic
 		for (i = 0, mclist = net_dev->mc_list; mclist && i < net_dev->mc_count;
 		     i++, mclist = mclist->next)
 			set_bit(sis900_compute_hashtable_index(mclist->dmi_addr, revision),
-				mc_filter);
+				(unsigned long *) mc_filter);
 	}
 
 	/* update Multicast Hash Table in Receive Filter */


             reply	other threads:[~2003-03-01 17:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-01 17:11 Martin J. Bligh [this message]
2003-03-01 17:23 ` Jeff Garzik
2003-03-20  7:34   ` Martin J. Bligh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='51890000.1046538667@[10.10.2.4]' \
    --to=mbligh@aracnet.com \
    --cc=garzik@pobox.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®