Hi Allen, [auto build test ERROR on v4.14-rc6] [cannot apply to hid/for-next next-20171018] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Allen-Pais/drivers-hid-Convert-timers-to-use-timer_setup/20171025-230118 config: i386-randconfig-x008-201743 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=i386 All error/warnings (new ones prefixed by >>): In file included from include/linux/ioport.h:12:0, from include/linux/device.h:16, from drivers//hid/hid-multitouch.c:41: drivers//hid/hid-multitouch.c: In function 'mt_expired_timeout': >> include/linux/kernel.h:928:51: error: 'struct hid_device' has no member named 'release_timer' BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \ ^ include/linux/compiler.h:553:19: note: in definition of macro '__compiletime_assert' bool __cond = !(condition); \ ^~~~~~~~~ include/linux/compiler.h:576:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^~~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:46:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^~~~~~~~~~~~~~~~~~ include/linux/kernel.h:928:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \ ^~~~~~~~~~~~~~~~ include/linux/kernel.h:928:20: note: in expansion of macro '__same_type' BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \ ^~~~~~~~~~~ include/linux/timer.h:183:2: note: in expansion of macro 'container_of' container_of(callback_timer, typeof(*var), timer_fieldname) ^~~~~~~~~~~~ >> drivers//hid/hid-multitouch.c:1251:28: note: in expansion of macro 'from_timer' struct hid_device *hdev = from_timer(hdev, t, release_timer); ^~~~~~~~~~ In file included from include/linux/compiler.h:58:0, from include/linux/ioport.h:12, from include/linux/device.h:16, from drivers//hid/hid-multitouch.c:41: >> include/linux/compiler-gcc.h:165:2: error: 'struct hid_device' has no member named 'release_timer' __builtin_offsetof(a, b) ^ include/linux/stddef.h:16:32: note: in expansion of macro '__compiler_offsetof' #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER) ^~~~~~~~~~~~~~~~~~~ include/linux/kernel.h:931:21: note: in expansion of macro 'offsetof' ((type *)(__mptr - offsetof(type, member))); }) ^~~~~~~~ include/linux/timer.h:183:2: note: in expansion of macro 'container_of' container_of(callback_timer, typeof(*var), timer_fieldname) ^~~~~~~~~~~~ >> drivers//hid/hid-multitouch.c:1251:28: note: in expansion of macro 'from_timer' struct hid_device *hdev = from_timer(hdev, t, release_timer); ^~~~~~~~~~ -- In file included from include/linux/ioport.h:12:0, from include/linux/device.h:16, from drivers/hid/hid-multitouch.c:41: drivers/hid/hid-multitouch.c: In function 'mt_expired_timeout': >> include/linux/kernel.h:928:51: error: 'struct hid_device' has no member named 'release_timer' BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \ ^ include/linux/compiler.h:553:19: note: in definition of macro '__compiletime_assert' bool __cond = !(condition); \ ^~~~~~~~~ include/linux/compiler.h:576:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^~~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:46:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^~~~~~~~~~~~~~~~~~ include/linux/kernel.h:928:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \ ^~~~~~~~~~~~~~~~ include/linux/kernel.h:928:20: note: in expansion of macro '__same_type' BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \ ^~~~~~~~~~~ include/linux/timer.h:183:2: note: in expansion of macro 'container_of' container_of(callback_timer, typeof(*var), timer_fieldname) ^~~~~~~~~~~~ drivers/hid/hid-multitouch.c:1251:28: note: in expansion of macro 'from_timer' struct hid_device *hdev = from_timer(hdev, t, release_timer); ^~~~~~~~~~ In file included from include/linux/compiler.h:58:0, from include/linux/ioport.h:12, from include/linux/device.h:16, from drivers/hid/hid-multitouch.c:41: >> include/linux/compiler-gcc.h:165:2: error: 'struct hid_device' has no member named 'release_timer' __builtin_offsetof(a, b) ^ include/linux/stddef.h:16:32: note: in expansion of macro '__compiler_offsetof' #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER) ^~~~~~~~~~~~~~~~~~~ include/linux/kernel.h:931:21: note: in expansion of macro 'offsetof' ((type *)(__mptr - offsetof(type, member))); }) ^~~~~~~~ include/linux/timer.h:183:2: note: in expansion of macro 'container_of' container_of(callback_timer, typeof(*var), timer_fieldname) ^~~~~~~~~~~~ drivers/hid/hid-multitouch.c:1251:28: note: in expansion of macro 'from_timer' struct hid_device *hdev = from_timer(hdev, t, release_timer); ^~~~~~~~~~ vim +928 include/linux/kernel.h ^1da177e4 Linus Torvalds 2005-04-16 909 91f68b735 Wu Fengguang 2009-01-07 910 e8c97af0c Randy Dunlap 2017-10-13 911 /** e8c97af0c Randy Dunlap 2017-10-13 912 * swap - swap values of @a and @b e8c97af0c Randy Dunlap 2017-10-13 913 * @a: first value e8c97af0c Randy Dunlap 2017-10-13 914 * @b: second value 91f68b735 Wu Fengguang 2009-01-07 915 */ ac7b90049 Peter Zijlstra 2009-02-04 916 #define swap(a, b) \ ac7b90049 Peter Zijlstra 2009-02-04 917 do { typeof(a) __tmp = (a); (a) = (b); (b) = __tmp; } while (0) 91f68b735 Wu Fengguang 2009-01-07 918 ^1da177e4 Linus Torvalds 2005-04-16 919 /** ^1da177e4 Linus Torvalds 2005-04-16 920 * container_of - cast a member of a structure out to the containing structure ^1da177e4 Linus Torvalds 2005-04-16 921 * @ptr: the pointer to the member. ^1da177e4 Linus Torvalds 2005-04-16 922 * @type: the type of the container struct this is embedded in. ^1da177e4 Linus Torvalds 2005-04-16 923 * @member: the name of the member within the struct. ^1da177e4 Linus Torvalds 2005-04-16 924 * ^1da177e4 Linus Torvalds 2005-04-16 925 */ ^1da177e4 Linus Torvalds 2005-04-16 926 #define container_of(ptr, type, member) ({ \ c7acec713 Ian Abbott 2017-07-12 927 void *__mptr = (void *)(ptr); \ c7acec713 Ian Abbott 2017-07-12 @928 BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \ c7acec713 Ian Abbott 2017-07-12 929 !__same_type(*(ptr), void), \ c7acec713 Ian Abbott 2017-07-12 930 "pointer type mismatch in container_of()"); \ c7acec713 Ian Abbott 2017-07-12 931 ((type *)(__mptr - offsetof(type, member))); }) ^1da177e4 Linus Torvalds 2005-04-16 932 :::::: The code at line 928 was first introduced by commit :::::: c7acec713d14c6ce8a20154f9dfda258d6bcad3b kernel.h: handle pointers to arrays better in container_of() :::::: TO: Ian Abbott <abbotti@xxxxxxxxx> :::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip