Re: [PATCH] ipv4: fix 32b build

2015-08-31 Thread David Miller
From: Madalin Bucur 
Date: Mon, 31 Aug 2015 15:46:07 +0300

> Address remaining issue after 80ec192.
> 
> Signed-off-by: Madalin Bucur 

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] ipv4: fix 32b build

2015-08-31 Thread Madalin Bucur
Address remaining issue after 80ec192.

Signed-off-by: Madalin Bucur 
---
 net/ipv4/af_inet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index c2d0ebc..96773a2 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -1496,7 +1496,7 @@ u64 snmp_fold_field64(void __percpu *mib, int offt, 
size_t syncp_offset)
int cpu;
 
for_each_possible_cpu(cpu) {
-   res += snmp_get_cpu_field(mib, cpu, offt, syncp_offset);
+   res += snmp_get_cpu_field64(mib, cpu, offt, syncp_offset);
}
return res;
 }
-- 
1.7.11.7

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH] ipv4: fix 32b build

2015-08-31 Thread Raghavendra K T

On 08/31/2015 06:16 PM, Madalin Bucur wrote:

Address remaining issue after 80ec192.

Signed-off-by: Madalin Bucur 
---
  net/ipv4/af_inet.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index c2d0ebc..96773a2 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -1496,7 +1496,7 @@ u64 snmp_fold_field64(void __percpu *mib, int offt, 
size_t syncp_offset)
int cpu;

for_each_possible_cpu(cpu) {
-   res += snmp_get_cpu_field(mib, cpu, offt, syncp_offset);
+   res += snmp_get_cpu_field64(mib, cpu, offt, syncp_offset);
}
return res;
  }



Thanks Madlin for catching this for 32bit.

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html