lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <2BC7F66F-0DCA-4D90-B44F-EFC74CB53892@gmail.com>
Date:	Thu, 1 May 2008 01:41:19 +0800
From:	gao changli <xiaosuo@...il.com>
To:	Grant Grundler <grundler@...isc-linux.org>
Cc:	netdev@...r.kernel.org
Subject: [PATCH] unify the macro get_u16 in the file tulip.h

Unify the macro get_u16 with le16_to_cpu.

Signed-off-by: Changli Gao <xiaosuo@...il.com>
---

  tulip.h |    6 +-----
  1 file changed, 1 insertion(+), 5 deletions(-)

--- linux/drivers/net/tulip/tulip.h	2008-04-30 23:25:24.000000000 +0800
+++ linux-new/drivers/net/tulip/tulip.h	2008-04-30 23:28:04.000000000  
+0800
@@ -299,11 +299,7 @@

  #define RUN_AT(x) (jiffies + (x))

-#if defined(__i386__)			/* AKA get_unaligned() */
-#define get_u16(ptr) (*(u16 *)(ptr))
-#else
-#define get_u16(ptr) (((u8*)(ptr))[0] + (((u8*)(ptr))[1]<<8))
-#endif
+#define get_u16(ptr) le16_to_cpu(*(u16*)(ptr))

  struct medialeaf {
  	u8 type;
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ