[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201506160632.d3d10JH0%fengguang.wu@intel.com>
Date: Tue, 16 Jun 2015 06:08:34 +0800
From: kbuild test robot <fengguang.wu@...el.com>
To: Florian Westphal <fw@...len.de>
Cc: kbuild-all@...org, Pablo Neira Ayuso <pablo@...filter.org>,
netdev@...r.kernel.org
Subject: [net-next:master 1374/1406]
include/linux/netfilter/x_tables.h:391:10: note: in expansion of macro
'this_cpu_ptr'
tree: git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head: ada6c1de9ecabcfc5619479bcd29a208f2e248a0
commit: 71ae0dff02d756e4d2ca710b79f2ff5390029a5f [1374/1406] netfilter: xtables: use percpu rule counters
config: i386-allyesconfig (attached as .config)
reproduce:
git checkout 71ae0dff02d756e4d2ca710b79f2ff5390029a5f
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
In file included from include/uapi/linux/netfilter_ipv6/ip6_tables.h:22:0,
from include/linux/netfilter_ipv6/ip6_tables.h:23,
from net/ipv6/netfilter/ip6_tables.c:33:
include/linux/netfilter/x_tables.h: In function 'xt_percpu_counter_alloc':
include/linux/netfilter/x_tables.h:376:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
return (__force u64) res;
^
include/linux/netfilter/x_tables.h: In function 'xt_percpu_counter_free':
include/linux/netfilter/x_tables.h:384:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
free_percpu((void __percpu *) pcnt);
^
In file included from include/asm-generic/percpu.h:6:0,
from arch/x86/include/asm/percpu.h:551,
from arch/x86/include/asm/preempt.h:5,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/mm_types.h:8,
from include/linux/kmemcheck.h:4,
from include/linux/skbuff.h:18,
from net/ipv6/netfilter/ip6_tables.c:18:
include/linux/netfilter/x_tables.h: In function 'xt_get_this_cpu_counter':
include/linux/netfilter/x_tables.h:391:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
return this_cpu_ptr((void __percpu *) cnt->pcnt);
^
include/linux/percpu-defs.h:206:47: note: in definition of macro '__verify_pcpu_ptr'
const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
^
include/linux/percpu-defs.h:239:27: note: in expansion of macro 'raw_cpu_ptr'
#define this_cpu_ptr(ptr) raw_cpu_ptr(ptr)
^
>> include/linux/netfilter/x_tables.h:391:10: note: in expansion of macro 'this_cpu_ptr'
return this_cpu_ptr((void __percpu *) cnt->pcnt);
^
In file included from arch/x86/include/asm/preempt.h:5:0,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/mm_types.h:8,
from include/linux/kmemcheck.h:4,
from include/linux/skbuff.h:18,
from net/ipv6/netfilter/ip6_tables.c:18:
include/linux/netfilter/x_tables.h:391:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
return this_cpu_ptr((void __percpu *) cnt->pcnt);
^
arch/x86/include/asm/percpu.h:60:35: note: in definition of macro 'arch_raw_cpu_ptr'
: "m" (this_cpu_off), "0" (ptr)); \
^
include/linux/percpu-defs.h:239:27: note: in expansion of macro 'raw_cpu_ptr'
#define this_cpu_ptr(ptr) raw_cpu_ptr(ptr)
^
>> include/linux/netfilter/x_tables.h:391:10: note: in expansion of macro 'this_cpu_ptr'
return this_cpu_ptr((void __percpu *) cnt->pcnt);
^
include/linux/netfilter/x_tables.h:391:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
return this_cpu_ptr((void __percpu *) cnt->pcnt);
^
arch/x86/include/asm/percpu.h:61:12: note: in definition of macro 'arch_raw_cpu_ptr'
(typeof(*(ptr)) __kernel __force *)tcp_ptr__; \
^
include/linux/percpu-defs.h:239:27: note: in expansion of macro 'raw_cpu_ptr'
#define this_cpu_ptr(ptr) raw_cpu_ptr(ptr)
^
>> include/linux/netfilter/x_tables.h:391:10: note: in expansion of macro 'this_cpu_ptr'
return this_cpu_ptr((void __percpu *) cnt->pcnt);
^
In file included from include/asm-generic/percpu.h:6:0,
from arch/x86/include/asm/percpu.h:551,
from arch/x86/include/asm/preempt.h:5,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from include/linux/mm_types.h:8,
from include/linux/kmemcheck.h:4,
from include/linux/skbuff.h:18,
from net/ipv6/netfilter/ip6_tables.c:18:
include/linux/netfilter/x_tables.h: In function 'xt_get_per_cpu_counter':
include/linux/netfilter/x_tables.h:400:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
return per_cpu_ptr((void __percpu *) cnt->pcnt, cpu);
^
include/linux/percpu-defs.h:206:47: note: in definition of macro '__verify_pcpu_ptr'
const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
^
>> include/linux/netfilter/x_tables.h:400:10: note: in expansion of macro 'per_cpu_ptr'
return per_cpu_ptr((void __percpu *) cnt->pcnt, cpu);
^
In file included from include/linux/compiler.h:54:0,
from include/linux/linkage.h:4,
from include/linux/kernel.h:6,
from net/ipv6/netfilter/ip6_tables.c:15:
include/linux/netfilter/x_tables.h:400:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
return per_cpu_ptr((void __percpu *) cnt->pcnt, cpu);
^
include/linux/compiler-gcc.h:51:37: note: in definition of macro 'RELOC_HIDE'
__asm__ ("" : "=r"(__ptr) : "0"(ptr)); \
^
>> include/linux/percpu-defs.h:223:2: note: in expansion of macro 'SHIFT_PERCPU_PTR'
SHIFT_PERCPU_PTR((ptr), per_cpu_offset((cpu))); \
^
>> include/linux/netfilter/x_tables.h:400:10: note: in expansion of macro 'per_cpu_ptr'
return per_cpu_ptr((void __percpu *) cnt->pcnt, cpu);
^
include/linux/netfilter/x_tables.h:400:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
return per_cpu_ptr((void __percpu *) cnt->pcnt, cpu);
^
include/linux/compiler-gcc.h:51:37: note: in definition of macro 'RELOC_HIDE'
__asm__ ("" : "=r"(__ptr) : "0"(ptr)); \
^
>> include/linux/percpu-defs.h:223:2: note: in expansion of macro 'SHIFT_PERCPU_PTR'
SHIFT_PERCPU_PTR((ptr), per_cpu_offset((cpu))); \
^
>> include/linux/netfilter/x_tables.h:400:10: note: in expansion of macro 'per_cpu_ptr'
return per_cpu_ptr((void __percpu *) cnt->pcnt, cpu);
^
include/linux/netfilter/x_tables.h:400:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
return per_cpu_ptr((void __percpu *) cnt->pcnt, cpu);
^
include/linux/compiler-gcc.h:52:13: note: in definition of macro 'RELOC_HIDE'
(typeof(ptr)) (__ptr + (off)); })
^
>> include/linux/percpu-defs.h:223:2: note: in expansion of macro 'SHIFT_PERCPU_PTR'
SHIFT_PERCPU_PTR((ptr), per_cpu_offset((cpu))); \
^
>> include/linux/netfilter/x_tables.h:400:10: note: in expansion of macro 'per_cpu_ptr'
return per_cpu_ptr((void __percpu *) cnt->pcnt, cpu);
^
include/linux/netfilter/x_tables.h:400:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
return per_cpu_ptr((void __percpu *) cnt->pcnt, cpu);
^
include/linux/compiler-gcc.h:52:13: note: in definition of macro 'RELOC_HIDE'
(typeof(ptr)) (__ptr + (off)); })
^
>> include/linux/percpu-defs.h:223:2: note: in expansion of macro 'SHIFT_PERCPU_PTR'
SHIFT_PERCPU_PTR((ptr), per_cpu_offset((cpu))); \
^
>> include/linux/netfilter/x_tables.h:400:10: note: in expansion of macro 'per_cpu_ptr'
return per_cpu_ptr((void __percpu *) cnt->pcnt, cpu);
^
vim +/this_cpu_ptr +391 include/linux/netfilter/x_tables.h
385 }
386
387 static inline struct xt_counters *
388 xt_get_this_cpu_counter(struct xt_counters *cnt)
389 {
390 if (nr_cpu_ids > 1)
> 391 return this_cpu_ptr((void __percpu *) cnt->pcnt);
392
393 return cnt;
394 }
395
396 static inline struct xt_counters *
397 xt_get_per_cpu_counter(struct xt_counters *cnt, unsigned int cpu)
398 {
399 if (nr_cpu_ids > 1)
> 400 return per_cpu_ptr((void __percpu *) cnt->pcnt, cpu);
401
402 return cnt;
403 }
---
0-DAY kernel test infrastructure Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
View attachment ".config" of type "text/plain" (200117 bytes)
Powered by blists - more mailing lists