[mmotm:master 203/499] include/linux/vmstat.h:32:2: error: implicit declaration of function 'raw_cpu_inc'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   4ddd4bc6e081ef29f7adaacb357b77052fefcd7e
commit: 4ac4f1a27eed39f833aa8874515127e3bd0ff971 [203/499] vmstat: use raw_cpu_ops to avoid false positives on preemption checks
config: make ARCH=x86_64 allnoconfig

Note: the mmotm/master HEAD 4ddd4bc6e081ef29f7adaacb357b77052fefcd7e builds fine.
      It only hurts bisectibility.

All error/warnings:

   In file included from include/linux/mm.h:897:0,
                    from include/linux/suspend.h:8,
                    from arch/x86/kernel/asm-offsets.c:12:
   include/linux/vmstat.h: In function '__count_vm_event':
>> include/linux/vmstat.h:32:2: error: implicit declaration of function 'raw_cpu_inc' [-Werror=implicit-function-declaration]
     raw_cpu_inc(vm_event_states.event[item]);
     ^
   include/linux/vmstat.h: In function '__count_vm_events':
>> include/linux/vmstat.h:42:2: error: implicit declaration of function 'raw_cpu_add' [-Werror=implicit-function-declaration]
     raw_cpu_add(vm_event_states.event[item], delta);
     ^
   cc1: some warnings being treated as errors
   make[2]: *** [arch/x86/kernel/asm-offsets.s] Error 1
   make[2]: Target `__build' not remade because of errors.
   make[1]: *** [prepare0] Error 2
   make[1]: Target `prepare' not remade because of errors.
   make: *** [sub-make] Error 2

vim +/raw_cpu_inc +32 include/linux/vmstat.h

    26	};
    27	
    28	DECLARE_PER_CPU(struct vm_event_state, vm_event_states);
    29	
    30	static inline void __count_vm_event(enum vm_event_item item)
    31	{
  > 32		raw_cpu_inc(vm_event_states.event[item]);
    33	}
    34	
    35	static inline void count_vm_event(enum vm_event_item item)
    36	{
    37		this_cpu_inc(vm_event_states.event[item]);
    38	}
    39	
    40	static inline void __count_vm_events(enum vm_event_item item, long delta)
    41	{
  > 42		raw_cpu_add(vm_event_states.event[item], delta);
    43	}
    44	
    45	static inline void count_vm_events(enum vm_event_item item, long delta)

---
0-DAY kernel build testing backend              Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]