Re: [PATCH] percpu_counter: return precise count from __percpu_counter_compare()

From: kbuild test robot
Date: Fri Oct 02 2015 - 14:05:27 EST


Hi Waiman,

[auto build test results on v4.3-rc3 -- if it's inappropriate base, please ignore]

config: ia64-allnoconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=ia64

All error/warnings (new ones prefixed by >>):

include/linux/sched.h:326:19: error: storage class specified for parameter 'mmlist_lock'
extern spinlock_t mmlist_lock;
^
include/linux/sched.h:328:1: warning: empty declaration
struct task_struct;
^
include/linux/sched.h:334:13: error: storage class specified for parameter 'sched_init'
extern void sched_init(void);
^
include/linux/sched.h:335:13: error: storage class specified for parameter 'sched_init_smp'
extern void sched_init_smp(void);
^
include/linux/sched.h:336:24: error: storage class specified for parameter 'schedule_tail'
extern asmlinkage void schedule_tail(struct task_struct *prev);
^
include/linux/sched.h:337:13: error: storage class specified for parameter 'init_idle'
extern void init_idle(struct task_struct *idle, int cpu);
^
include/linux/sched.h:338:13: error: storage class specified for parameter 'init_idle_bootup_task'
extern void init_idle_bootup_task(struct task_struct *idle);
^
include/linux/sched.h:340:22: error: storage class specified for parameter 'cpu_isolated_map'
extern cpumask_var_t cpu_isolated_map;
^
include/linux/sched.h:342:12: error: storage class specified for parameter 'runqueue_is_locked'
extern int runqueue_is_locked(int cpu);
^
include/linux/sched.h:349:53: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
static inline void nohz_balance_enter_idle(int cpu) { }
^
include/linux/sched.h:350:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
static inline void set_cpu_sd_state_idle(void) { }
^
include/linux/sched.h:356:13: error: storage class specified for parameter 'show_state_filter'
extern void show_state_filter(unsigned long state_filter);
^
include/linux/sched.h:359:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:363:13: error: storage class specified for parameter 'show_regs'
extern void show_regs(struct pt_regs *);
^
include/linux/sched.h:370:13: error: storage class specified for parameter 'show_stack'
extern void show_stack(struct task_struct *task, unsigned long *sp);
^
include/linux/sched.h:372:13: error: storage class specified for parameter 'cpu_init'
extern void cpu_init (void);
^
include/linux/sched.h:373:13: error: storage class specified for parameter 'trap_init'
extern void trap_init(void);
^
include/linux/sched.h:374:13: error: storage class specified for parameter 'update_process_times'
extern void update_process_times(int user);
^
include/linux/sched.h:375:13: error: storage class specified for parameter 'scheduler_tick'
extern void scheduler_tick(void);
^
include/linux/sched.h:377:13: error: storage class specified for parameter 'sched_show_task'
extern void sched_show_task(struct task_struct *p);
^
include/linux/sched.h:390:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:393:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:396:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:399:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:407:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:415:13: error: storage class specified for parameter '__sched_text_start'
extern char __sched_text_start[], __sched_text_end[];
^
include/linux/sched.h:415:35: error: storage class specified for parameter '__sched_text_end'
extern char __sched_text_start[], __sched_text_end[];
^
include/linux/sched.h:418:12: error: storage class specified for parameter 'in_sched_functions'
extern int in_sched_functions(unsigned long addr);
^
include/linux/sched.h:421:20: error: storage class specified for parameter 'schedule_timeout'
extern signed long schedule_timeout(signed long timeout);
^
include/linux/sched.h:422:20: error: storage class specified for parameter 'schedule_timeout_interruptible'
extern signed long schedule_timeout_interruptible(signed long timeout);
^
include/linux/sched.h:423:20: error: storage class specified for parameter 'schedule_timeout_killable'
extern signed long schedule_timeout_killable(signed long timeout);
^
include/linux/sched.h:424:20: error: storage class specified for parameter 'schedule_timeout_uninterruptible'
extern signed long schedule_timeout_uninterruptible(signed long timeout);
^
In file included from include/linux/linkage.h:7:0,
from include/linux/kernel.h:6,
from include/linux/sched.h:17,
from arch/ia64/kernel/asm-offsets.c:9:
>> arch/ia64/include/asm/linkage.h:6:35: error: expected declaration specifiers before '__attribute__'
#define asmlinkage CPP_ASMLINKAGE __attribute__((syscall_linkage))
^
>> include/linux/sched.h:425:1: note: in expansion of macro 'asmlinkage'
asmlinkage void schedule(void);
^
In file included from arch/ia64/kernel/asm-offsets.c:9:0:
include/linux/sched.h:426:13: error: storage class specified for parameter 'schedule_preempt_disabled'
extern void schedule_preempt_disabled(void);
^
include/linux/sched.h:428:13: error: storage class specified for parameter 'io_schedule_timeout'
extern long io_schedule_timeout(long timeout);
^
include/linux/sched.h:431:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:435:1: warning: empty declaration
struct nsproxy;
^
include/linux/sched.h:436:1: warning: empty declaration
struct user_namespace;
^
include/linux/sched.h:439:13: error: storage class specified for parameter 'arch_pick_mmap_layout'
extern void arch_pick_mmap_layout(struct mm_struct *mm);
^
include/linux/sched.h:441:1: error: storage class specified for parameter 'arch_get_unmapped_area'
arch_get_unmapped_area(struct file *, unsigned long, unsigned long,
^
include/linux/sched.h:444:1: error: storage class specified for parameter 'arch_get_unmapped_area_topdown'
arch_get_unmapped_area_topdown(struct file *filp, unsigned long addr,
^
include/linux/sched.h:461:13: error: storage class specified for parameter 'set_dumpable'
extern void set_dumpable(struct mm_struct *mm, int value);
^
include/linux/sched.h:469:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:474:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:510:1: warning: empty declaration
struct sighand_struct {
^
include/linux/sched.h:517:1: warning: empty declaration
struct pacct_struct {
^
include/linux/sched.h:525:1: warning: empty declaration
struct cpu_itimer {
^
include/linux/sched.h:541:1: warning: empty declaration
struct prev_cputime {
^
include/linux/sched.h:550:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:567:1: warning: empty declaration
struct task_cputime {
^
include/linux/sched.h:589:1: warning: empty declaration
struct task_cputime_atomic {
^
include/linux/sched.h:626:1: warning: empty declaration
struct thread_group_cputimer {
^
include/linux/sched.h:632:1: warning: empty declaration
struct autogroup;
^
include/linux/sched.h:641:1: warning: empty declaration
struct signal_struct {
^
include/linux/sched.h:806:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:814:1: warning: empty declaration
struct user_struct {
^
include/linux/sched.h:848:12: error: storage class specified for parameter 'uids_sysfs_init'
extern int uids_sysfs_init(void);
^
include/linux/sched.h:850:28: error: storage class specified for parameter 'find_user'
extern struct user_struct *find_user(kuid_t);
^
include/linux/sched.h:852:27: error: storage class specified for parameter 'root_user'
extern struct user_struct root_user;
^
include/linux/sched.h:856:1: warning: empty declaration
struct backing_dev_info;
^
include/linux/sched.h:857:1: warning: empty declaration
struct reclaim_state;
^
include/linux/sched.h:906:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:917:1: warning: empty declaration
enum cpu_idle_type {
^
include/linux/sched.h:956:1: warning: empty declaration
struct wake_q_node {
^
include/linux/sched.h:960:1: warning: empty declaration
struct wake_q_head {
^
include/linux/sched.h:970:13: error: storage class specified for parameter 'wake_q_add'
extern void wake_q_add(struct wake_q_head *head,
^
include/linux/sched.h:972:13: error: storage class specified for parameter 'wake_up_q'
extern void wake_up_q(struct wake_q_head *head);
^
include/linux/sched.h:1155:1: warning: empty declaration
struct sched_domain_attr;
^
include/linux/sched.h:1160:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:1164:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:1171:1: warning: empty declaration
struct io_context; /* See blkdev.h */
^
>> include/linux/sched.h:1175:13: error: storage class specified for parameter 'prefetch_stack'
extern void prefetch_stack(struct task_struct *t);
^
include/linux/sched.h:1180:1: warning: empty declaration
struct audit_context; /* See audit.c */
^
include/linux/sched.h:1181:1: warning: empty declaration
struct mempolicy;
^
include/linux/sched.h:1182:1: warning: empty declaration
struct pipe_inode_info;
^
include/linux/sched.h:1183:1: warning: empty declaration
struct uts_namespace;
^
include/linux/sched.h:1185:1: warning: empty declaration
struct load_weight {
^
include/linux/sched.h:1204:1: warning: empty declaration
struct sched_avg {
^
include/linux/sched.h:1246:1: warning: empty declaration
struct sched_entity {
^
include/linux/sched.h:1278:1: warning: empty declaration
struct sched_rt_entity {
^
include/linux/sched.h:1294:1: warning: empty declaration
struct sched_dl_entity {
^
include/linux/sched.h:1343:1: warning: empty declaration
union rcu_special {
^
include/linux/sched.h:1350:1: warning: empty declaration
struct rcu_node;
^
include/linux/sched.h:1352:1: warning: empty declaration
enum perf_event_task_context {
^
include/linux/sched.h:1360:1: warning: empty declaration
struct tlbflush_unmap_batch {
^
include/linux/sched.h:1378:1: warning: empty declaration
struct task_struct {
^
include/linux/sched.h:1850:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:1853:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:1857:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:1860:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:1864:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:1870:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:1875:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:1885:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:1890:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:1894:1: warning: empty declaration
struct pid_namespace;
^
include/linux/sched.h:1913:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:1919:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:1924:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:1930:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:1937:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/linux/sched.h:1942:19: error: storage class specified for parameter 'pid_alive'
static inline int pid_alive(const struct task_struct *p);
^
include/linux/sched.h:1942:19: warning: parameter 'pid_alive' declared 'inline'
include/linux/sched.h:1942:42: warning: 'always_inline' attribute ignored [-Wattributes]
static inline int pid_alive(const struct task_struct *p);
^
include/linux/sched.h:1942:19: error: 'no_instrument_function' attribute applies only to functions
static inline int pid_alive(const struct task_struct *p);
^
include/linux/sched.h:1944:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
..

vim +/__attribute__ +6 arch/ia64/include/asm/linkage.h

^1da177e include/asm-ia64/linkage.h Linus Torvalds 2005-04-16 1 #ifndef __ASM_LINKAGE_H
^1da177e include/asm-ia64/linkage.h Linus Torvalds 2005-04-16 2 #define __ASM_LINKAGE_H
^1da177e include/asm-ia64/linkage.h Linus Torvalds 2005-04-16 3
ab7efcc9 include/asm-ia64/linkage.h Jan Beulich 2006-03-24 4 #ifndef __ASSEMBLY__
ab7efcc9 include/asm-ia64/linkage.h Jan Beulich 2006-03-24 5
^1da177e include/asm-ia64/linkage.h Linus Torvalds 2005-04-16 @6 #define asmlinkage CPP_ASMLINKAGE __attribute__((syscall_linkage))
^1da177e include/asm-ia64/linkage.h Linus Torvalds 2005-04-16 7
ab7efcc9 include/asm-ia64/linkage.h Jan Beulich 2006-03-24 8 #else
ab7efcc9 include/asm-ia64/linkage.h Jan Beulich 2006-03-24 9
ab7efcc9 include/asm-ia64/linkage.h Jan Beulich 2006-03-24 10 #include <asm/asmmacro.h>
ab7efcc9 include/asm-ia64/linkage.h Jan Beulich 2006-03-24 11
ab7efcc9 include/asm-ia64/linkage.h Jan Beulich 2006-03-24 12 #endif
ab7efcc9 include/asm-ia64/linkage.h Jan Beulich 2006-03-24 13
e1b5bb6d arch/ia64/include/asm/linkage.h Al Viro 2013-01-21 14 #define cond_syscall(x) asm(".weak\t" #x "#\n" #x "#\t=\tsys_ni_syscall#")

:::::: The code at line 6 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: Binary data