The patch titled Subject: drivers/net/ethernet/dec/tulip: Use standard __set_bit_le() function has been added to the -mm tree. Its filename is drivers-net-ethernet-dec-tulip-use-standard-__set_bit_le-function.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Takuya Yoshikawa <yoshikawa.takuya@xxxxxxxxxxxxx> Subject: drivers/net/ethernet/dec/tulip: Use standard __set_bit_le() function To introduce generic set_bit_le() later, we remove our own definition and use a proper non-atomic bitops function: __set_bit_le(). Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@xxxxxxxxxxxxx> Acked-by: Grant Grundler <grundler@xxxxxxxxxxxxxxxx> Cc: David Miller <davem@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/net/ethernet/dec/tulip/de2104x.c | 7 ++----- drivers/net/ethernet/dec/tulip/tulip_core.c | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff -puN drivers/net/ethernet/dec/tulip/de2104x.c~drivers-net-ethernet-dec-tulip-use-standard-__set_bit_le-function drivers/net/ethernet/dec/tulip/de2104x.c --- a/drivers/net/ethernet/dec/tulip/de2104x.c~drivers-net-ethernet-dec-tulip-use-standard-__set_bit_le-function +++ a/drivers/net/ethernet/dec/tulip/de2104x.c @@ -661,9 +661,6 @@ static netdev_tx_t de_start_xmit (struct new frame, not around filling de->setup_frame. This is non-deterministic when re-entered but still correct. */ -#undef set_bit_le -#define set_bit_le(i,p) do { ((char *)(p))[(i)/8] |= (1<<((i)%8)); } while(0) - static void build_setup_frame_hash(u16 *setup_frm, struct net_device *dev) { struct de_private *de = netdev_priv(dev); @@ -673,12 +670,12 @@ static void build_setup_frame_hash(u16 * u16 *eaddrs; memset(hash_table, 0, sizeof(hash_table)); - set_bit_le(255, hash_table); /* Broadcast entry */ + __set_bit_le(255, hash_table); /* Broadcast entry */ /* This should work on big-endian machines as well. */ netdev_for_each_mc_addr(ha, dev) { int index = ether_crc_le(ETH_ALEN, ha->addr) & 0x1ff; - set_bit_le(index, hash_table); + __set_bit_le(index, hash_table); } for (i = 0; i < 32; i++) { diff -puN drivers/net/ethernet/dec/tulip/tulip_core.c~drivers-net-ethernet-dec-tulip-use-standard-__set_bit_le-function drivers/net/ethernet/dec/tulip/tulip_core.c --- a/drivers/net/ethernet/dec/tulip/tulip_core.c~drivers-net-ethernet-dec-tulip-use-standard-__set_bit_le-function +++ a/drivers/net/ethernet/dec/tulip/tulip_core.c @@ -1010,9 +1010,6 @@ static int private_ioctl (struct net_dev new frame, not around filling tp->setup_frame. This is non-deterministic when re-entered but still correct. */ -#undef set_bit_le -#define set_bit_le(i,p) do { ((char *)(p))[(i)/8] |= (1<<((i)%8)); } while(0) - static void build_setup_frame_hash(u16 *setup_frm, struct net_device *dev) { struct tulip_private *tp = netdev_priv(dev); @@ -1022,12 +1019,12 @@ static void build_setup_frame_hash(u16 * u16 *eaddrs; memset(hash_table, 0, sizeof(hash_table)); - set_bit_le(255, hash_table); /* Broadcast entry */ + __set_bit_le(255, hash_table); /* Broadcast entry */ /* This should work on big-endian machines as well. */ netdev_for_each_mc_addr(ha, dev) { int index = ether_crc_le(ETH_ALEN, ha->addr) & 0x1ff; - set_bit_le(index, hash_table); + __set_bit_le(index, hash_table); } for (i = 0; i < 32; i++) { *setup_frm++ = hash_table[i]; _ Patches currently in -mm which might be from yoshikawa.takuya@xxxxxxxxxxxxx are linux-next.patch sfc-use-standard-__clearset_bit_le-functions.patch drivers-net-ethernet-dec-tulip-use-standard-__set_bit_le-function.patch bitops-introduce-generic-clearset_bit_le.patch powerpc-bitops-introduce-clearset_bit_le.patch kvm-replace-test_and_set_bit_le-in-mark_page_dirty_in_slot-with-set_bit_le.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html