Hi Minchan, [auto build test ERROR on v4.3-rc6-108-gce1fad2 -- if it's inappropriate base, please suggest rules for selecting the more suitable base] url: https://github.com/0day-ci/linux/commits/Tetsuo-Handa/mm-vmscan-Use-accurate-values-for-zone_reclaimable-checks/20151021-203036 config: microblaze-nommu_defconfig (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=microblaze All error/warnings (new ones prefixed by >>): In file included from init/main.c:50:0: include/linux/rmap.h:274:1: error: expected declaration specifiers or '...' before '{' token { ^ In file included from include/linux/highmem.h:8:0, from include/linux/pagemap.h:10, from include/linux/mempolicy.h:14, from init/main.c:51: >> include/linux/uaccess.h:88:13: error: storage class specified for parameter '__probe_kernel_read' extern long __probe_kernel_read(void *dst, const void *src, size_t size); ^ >> include/linux/uaccess.h:99:21: error: storage class specified for parameter 'probe_kernel_write' extern long notrace probe_kernel_write(void *dst, const void *src, size_t size); ^ >> include/linux/uaccess.h:99:21: error: 'no_instrument_function' attribute applies only to functions >> include/linux/uaccess.h:100:21: error: storage class specified for parameter '__probe_kernel_write' extern long notrace __probe_kernel_write(void *dst, const void *src, size_t size); ^ include/linux/uaccess.h:100:21: error: 'no_instrument_function' attribute applies only to functions >> include/linux/uaccess.h:102:13: error: storage class specified for parameter 'strncpy_from_unsafe' extern long strncpy_from_unsafe(char *dst, const void *unsafe_addr, long count); ^ In file included from include/linux/highmem.h:11:0, from include/linux/pagemap.h:10, from include/linux/mempolicy.h:14, from init/main.c:51: >> arch/microblaze/include/asm/cacheflush.h:53:23: error: storage class specified for parameter 'mbc' extern struct scache *mbc; ^ >> arch/microblaze/include/asm/cacheflush.h:105:20: error: storage class specified for parameter 'copy_to_user_page' static inline void copy_to_user_page(struct vm_area_struct *vma, ^ >> arch/microblaze/include/asm/cacheflush.h:105:20: warning: parameter 'copy_to_user_page' declared 'inline' >> arch/microblaze/include/asm/cacheflush.h:108:1: warning: 'always_inline' attribute ignored [-Wattributes] { ^ >> arch/microblaze/include/asm/cacheflush.h:105:20: error: 'no_instrument_function' attribute applies only to functions static inline void copy_to_user_page(struct vm_area_struct *vma, ^ >> arch/microblaze/include/asm/cacheflush.h:108:1: error: expected ';', ',' or ')' before '{' token { ^ -- In file included from kernel/fork.c:55:0: include/linux/rmap.h:274:1: error: expected declaration specifiers or '...' before '{' token { ^ In file included from kernel/fork.c:56:0: >> include/linux/ksm.h:69:19: error: storage class specified for parameter 'ksm_fork' static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) ^ >> include/linux/ksm.h:69:19: warning: parameter 'ksm_fork' declared 'inline' >> include/linux/ksm.h:70:1: warning: 'always_inline' attribute ignored [-Wattributes] { ^ >> include/linux/ksm.h:69:19: error: 'no_instrument_function' attribute applies only to functions static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) ^ >> include/linux/ksm.h:70:1: error: expected ';', ',' or ')' before '{' token { ^ -- In file included from mm/filemap.c:36:0: include/linux/rmap.h:274:1: error: expected declaration specifiers or '...' before '{' token { ^ In file included from mm/filemap.c:37:0: >> mm/internal.h:44:20: error: storage class specified for parameter 'set_page_count' static inline void set_page_count(struct page *page, int v) ^ >> mm/internal.h:44:20: warning: parameter 'set_page_count' declared 'inline' >> mm/internal.h:45:1: warning: 'always_inline' attribute ignored [-Wattributes] { ^ >> mm/internal.h:44:20: error: 'no_instrument_function' attribute applies only to functions static inline void set_page_count(struct page *page, int v) ^ >> mm/internal.h:45:1: error: expected ';', ',' or ')' before '{' token { ^ -- In file included from mm/interval_tree.c:11:0: include/linux/rmap.h:274:1: error: expected declaration specifiers or '...' before '{' token { ^ In file included from include/linux/interval_tree_generic.h:22:0, from mm/interval_tree.c:12: >> include/linux/rbtree_augmented.h:44:13: error: storage class specified for parameter '__rb_insert_augmented' extern void __rb_insert_augmented(struct rb_node *node, struct rb_root *root, ^ >> include/linux/rbtree_augmented.h:58:20: warning: 'struct rb_augment_callbacks' declared inside parameter list const struct rb_augment_callbacks *augment) ^ >> include/linux/rbtree_augmented.h:58:20: warning: its scope is only this definition or declaration, which is probably not what you want >> include/linux/rbtree_augmented.h:57:1: error: storage class specified for parameter 'rb_insert_augmented' rb_insert_augmented(struct rb_node *node, struct rb_root *root, ^ >> include/linux/rbtree_augmented.h:57:1: warning: parameter 'rb_insert_augmented' declared 'inline' >> include/linux/rbtree_augmented.h:59:1: warning: 'always_inline' attribute ignored [-Wattributes] { ^ >> include/linux/rbtree_augmented.h:57:1: error: 'no_instrument_function' attribute applies only to functions rb_insert_augmented(struct rb_node *node, struct rb_root *root, ^ >> include/linux/rbtree_augmented.h:59:1: error: expected ';', ',' or ')' before '{' token { ^ vim +/__probe_kernel_read +88 include/linux/uaccess.h c33fa9f5 Ingo Molnar 2008-04-17 82 * @size: size of the data chunk c33fa9f5 Ingo Molnar 2008-04-17 83 * c33fa9f5 Ingo Molnar 2008-04-17 84 * Safely read from address @src to the buffer at @dst. If a kernel fault c33fa9f5 Ingo Molnar 2008-04-17 85 * happens, handle that and return -EFAULT. c33fa9f5 Ingo Molnar 2008-04-17 86 */ f29c5041 Steven Rostedt 2011-05-19 87 extern long probe_kernel_read(void *dst, const void *src, size_t size); f29c5041 Steven Rostedt 2011-05-19 @88 extern long __probe_kernel_read(void *dst, const void *src, size_t size); c33fa9f5 Ingo Molnar 2008-04-17 89 c33fa9f5 Ingo Molnar 2008-04-17 90 /* c33fa9f5 Ingo Molnar 2008-04-17 91 * probe_kernel_write(): safely attempt to write to a location c33fa9f5 Ingo Molnar 2008-04-17 92 * @dst: address to write to c33fa9f5 Ingo Molnar 2008-04-17 93 * @src: pointer to the data that shall be written c33fa9f5 Ingo Molnar 2008-04-17 94 * @size: size of the data chunk c33fa9f5 Ingo Molnar 2008-04-17 95 * c33fa9f5 Ingo Molnar 2008-04-17 96 * Safely write to address @dst from the buffer at @src. If a kernel fault c33fa9f5 Ingo Molnar 2008-04-17 97 * happens, handle that and return -EFAULT. c33fa9f5 Ingo Molnar 2008-04-17 98 */ f29c5041 Steven Rostedt 2011-05-19 @99 extern long notrace probe_kernel_write(void *dst, const void *src, size_t size); f29c5041 Steven Rostedt 2011-05-19 @100 extern long notrace __probe_kernel_write(void *dst, const void *src, size_t size); c33fa9f5 Ingo Molnar 2008-04-17 101 1a6877b9 Alexei Starovoitov 2015-08-28 @102 extern long strncpy_from_unsafe(char *dst, const void *unsafe_addr, long count); 1a6877b9 Alexei Starovoitov 2015-08-28 103 43cc247b Andrew Morton 2015-10-21 104 /** 43cc247b Andrew Morton 2015-10-21 105 * probe_kernel_address(): safely attempt to read from a location :::::: The code at line 88 was first introduced by commit :::::: f29c50419c8d1998edd759f1990c4243a248f469 maccess,probe_kernel: Make write/read src const void * :::::: TO: Steven Rostedt <srostedt@xxxxxxxxxx> :::::: CC: Steven Rostedt <rostedt@xxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data