tree: git://git.kernel.org/pub/scm/linux/kernel/git/mhocko/mm.git since-4.0 head: d9d30b062b604dcce306e4218d756bece1305c17 commit: 5ce846c5782571371326d82e3d0ae66cc30d534d [317/333] tracing: add trace event for memory-failure config: powerpc-allmodconfig (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 git checkout 5ce846c5782571371326d82e3d0ae66cc30d534d # save the attached .config to linux build tree make.cross ARCH=powerpc All error/warnings: In file included from drivers/ras/ras.c:13:0: >> include/ras/ras_event.h:282:1: warning: data definition has no type or storage class MF_ACTION_RESULT ^ >> include/ras/ras_event.h:282:1: error: type defaults to 'int' in declaration of 'TRACE_DEFINE_ENUM' [-Werror=implicit-int] >> include/ras/ras_event.h:282:1: warning: parameter names (without types) in function declaration >> include/ras/ras_event.h:282:32: warning: data definition has no type or storage class MF_ACTION_RESULT ^ >> include/ras/ras_event.h:282:32: error: type defaults to 'int' in declaration of 'TRACE_DEFINE_ENUM' [-Werror=implicit-int] >> include/ras/ras_event.h:282:1: warning: parameter names (without types) in function declaration MF_ACTION_RESULT ^ >> include/ras/ras_event.h:282:62: warning: data definition has no type or storage class MF_ACTION_RESULT ^ >> include/ras/ras_event.h:282:62: error: type defaults to 'int' in declaration of 'TRACE_DEFINE_ENUM' [-Werror=implicit-int] >> include/ras/ras_event.h:282:1: warning: parameter names (without types) in function declaration MF_ACTION_RESULT ^ >> include/ras/ras_event.h:282:93: warning: data definition has no type or storage class MF_ACTION_RESULT ^ >> include/ras/ras_event.h:282:93: error: type defaults to 'int' in declaration of 'TRACE_DEFINE_ENUM' [-Werror=implicit-int] >> include/ras/ras_event.h:282:1: warning: parameter names (without types) in function declaration MF_ACTION_RESULT ^ >> include/ras/ras_event.h:283:1: warning: data definition has no type or storage class MF_PAGE_TYPE ^ >> include/ras/ras_event.h:283:1: error: type defaults to 'int' in declaration of 'TRACE_DEFINE_ENUM' [-Werror=implicit-int] >> include/ras/ras_event.h:283:1: warning: parameter names (without types) in function declaration >> include/ras/ras_event.h:283:35: warning: data definition has no type or storage class MF_PAGE_TYPE ^ >> include/ras/ras_event.h:283:35: error: type defaults to 'int' in declaration of 'TRACE_DEFINE_ENUM' [-Werror=implicit-int] >> include/ras/ras_event.h:283:1: warning: parameter names (without types) in function declaration MF_PAGE_TYPE ^ >> include/ras/ras_event.h:283:80: warning: data definition has no type or storage class MF_PAGE_TYPE ^ >> include/ras/ras_event.h:283:80: error: type defaults to 'int' in declaration of 'TRACE_DEFINE_ENUM' [-Werror=implicit-int] -- In file included from mm/memory-failure.c:60:0: >> include/ras/ras_event.h:282:1: warning: data definition has no type or storage class MF_ACTION_RESULT ^ >> include/ras/ras_event.h:282:1: error: type defaults to 'int' in declaration of 'TRACE_DEFINE_ENUM' [-Werror=implicit-int] >> include/ras/ras_event.h:282:1: warning: parameter names (without types) in function declaration >> include/ras/ras_event.h:282:32: warning: data definition has no type or storage class MF_ACTION_RESULT ^ >> include/ras/ras_event.h:282:32: error: type defaults to 'int' in declaration of 'TRACE_DEFINE_ENUM' [-Werror=implicit-int] >> include/ras/ras_event.h:282:1: warning: parameter names (without types) in function declaration MF_ACTION_RESULT ^ >> include/ras/ras_event.h:282:62: warning: data definition has no type or storage class MF_ACTION_RESULT ^ >> include/ras/ras_event.h:282:62: error: type defaults to 'int' in declaration of 'TRACE_DEFINE_ENUM' [-Werror=implicit-int] >> include/ras/ras_event.h:282:1: warning: parameter names (without types) in function declaration MF_ACTION_RESULT ^ >> include/ras/ras_event.h:282:93: warning: data definition has no type or storage class MF_ACTION_RESULT ^ >> include/ras/ras_event.h:282:93: error: type defaults to 'int' in declaration of 'TRACE_DEFINE_ENUM' [-Werror=implicit-int] >> include/ras/ras_event.h:282:1: warning: parameter names (without types) in function declaration MF_ACTION_RESULT ^ >> include/ras/ras_event.h:283:1: warning: data definition has no type or storage class MF_PAGE_TYPE ^ >> include/ras/ras_event.h:283:1: error: type defaults to 'int' in declaration of 'TRACE_DEFINE_ENUM' [-Werror=implicit-int] >> include/ras/ras_event.h:283:1: warning: parameter names (without types) in function declaration >> include/ras/ras_event.h:283:35: warning: data definition has no type or storage class MF_PAGE_TYPE ^ >> include/ras/ras_event.h:283:35: error: type defaults to 'int' in declaration of 'TRACE_DEFINE_ENUM' [-Werror=implicit-int] >> include/ras/ras_event.h:283:1: warning: parameter names (without types) in function declaration MF_PAGE_TYPE ^ >> include/ras/ras_event.h:283:80: warning: data definition has no type or storage class MF_PAGE_TYPE ^ >> include/ras/ras_event.h:283:80: error: type defaults to 'int' in declaration of 'TRACE_DEFINE_ENUM' [-Werror=implicit-int] vim +282 include/ras/ras_event.h 276 */ 277 #undef EM 278 #undef EMe 279 #define EM(a, b) TRACE_DEFINE_ENUM(a); 280 #define EMe(a, b) TRACE_DEFINE_ENUM(a); 281 > 282 MF_ACTION_RESULT > 283 MF_PAGE_TYPE 284 285 /* 286 * Now redefine the EM() and EMe() macros to map the enums to the strings 287 * that will be printed in the output. 288 */ 289 #undef EM 290 #undef EMe 291 #define EM(a, b) { a, b }, 292 #define EMe(a, b) { a, b } 293 294 TRACE_EVENT(memory_failure_event, 295 TP_PROTO(unsigned long pfn, 296 int type, 297 int result), 298 299 TP_ARGS(pfn, type, result), 300 301 TP_STRUCT__entry( 302 __field(unsigned long, pfn) 303 __field(int, type) 304 __field(int, result) 305 ), 306 307 TP_fast_assign( 308 __entry->pfn = pfn; 309 __entry->type = type; 310 __entry->result = result; 311 ), 312 313 TP_printk("pfn %#lx: recovery action for %s: %s", 314 __entry->pfn, 315 __print_symbolic(__entry->type, MF_PAGE_TYPE), 316 __print_symbolic(__entry->result, MF_ACTION_RESULT) 317 ) 318 ); 319 #endif /* CONFIG_MEMORY_FAILURE */ 320 #endif /* _TRACE_HW_EVENT_MC_H */ 321 322 /* This part must be outside protection */ > 323 #include --- 0-DAY kernel test infrastructure Open Source Technology Center http://lists.01.org/mailman/listinfo/kbuild Intel Corporation