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
| ||
|
Message-ID: <AANLkTimxRFZtwWOEXZ7pNfUER1Qw_rolb0YcxLFfRwyK@mail.gmail.com> Date: Wed, 26 May 2010 22:01:11 +0800 From: Junchang Wang <junchangwang@...il.com> To: romieu@...zoreil.com Cc: netdev@...r.kernel.org Subject: [Patch] r8169: use u32 instead of unsigned long RTL_R32 should return value with 32-bit width. But "unsigned long" implies u64 on some 64-bit platforms. Signed-off-by: Junchang Wang <junchangwang@...il.com> --- drivers/net/r8169.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index 217e709..4234d6a 100644 --- a/drivers/net/r8169.c +++ b/drivers/net/r8169.c @@ -88,7 +88,7 @@ static const int multicast_filter_limit = 32; #define RTL_W32(reg, val32) writel ((val32), ioaddr + (reg)) #define RTL_R8(reg) readb (ioaddr + (reg)) #define RTL_R16(reg) readw (ioaddr + (reg)) -#define RTL_R32(reg) ((unsigned long) readl (ioaddr + (reg))) +#define RTL_R32(reg) ((u32) readl(ioaddr + (reg))) enum mac_version { RTL_GIGA_MAC_NONE = 0x00, -- --Junchang -- 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