warning: (DRM_I915_DEBUG) selects SW_SYNC which has unmet direct dependencies (SYNC_FILE && ..)

From: kbuild test robot
Date: Tue Oct 10 2017 - 08:38:39 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 529a86e063e9ff625c4ff247d8aa17d8072444fb
commit: d90cb7f852034e5bf50158b34047effa453a9836 drm/i915: Add SW_SYNC to our recommend testing Kconfig
date: 8 weeks ago
config: x86_64-randconfig-s2-10101944 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout d90cb7f852034e5bf50158b34047effa453a9836
# save the attached .config to linux build tree
make ARCH=x86_64

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

warning: (DRM_I915_DEBUG) selects SW_SYNC which has unmet direct dependencies (SYNC_FILE && DEBUG_FS)
drivers//dma-buf/sync_debug.c: In function 'sync_file_debug_add':
>> drivers//dma-buf/sync_debug.c:50:26: error: 'struct sync_file' has no member named 'sync_file_list'
list_add_tail(&sync_file->sync_file_list, &sync_file_list_head);
^~
drivers//dma-buf/sync_debug.c: In function 'sync_file_debug_remove':
drivers//dma-buf/sync_debug.c:59:21: error: 'struct sync_file' has no member named 'sync_file_list'
list_del(&sync_file->sync_file_list);
^~
In file included from include/linux/linkage.h:4:0,
from include/linux/fs.h:4,
from include/linux/debugfs.h:18,
from drivers//dma-buf/sync_debug.c:17:
drivers//dma-buf/sync_debug.c: In function 'sync_debugfs_show':
>> include/linux/kernel.h:860:51: error: 'struct sync_file' has no member named 'sync_file_list'
BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
^
include/linux/compiler.h:522:19: note: in definition of macro '__compiletime_assert'
bool __cond = !(condition); \
^~~~~~~~~
include/linux/compiler.h:542: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:860:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
^~~~~~~~~~~~~~~~
include/linux/kernel.h:860:20: note: in expansion of macro '__same_type'
BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
^~~~~~~~~~~
>> drivers//dma-buf/sync_debug.c:172:4: note: in expansion of macro 'container_of'
container_of(pos, struct sync_file, sync_file_list);
^~~~~~~~~~~~
In file included from include/linux/compiler.h:58:0,
from include/linux/linkage.h:4,
from include/linux/fs.h:4,
from include/linux/debugfs.h:18,
from drivers//dma-buf/sync_debug.c:17:
>> include/linux/compiler-gcc.h:165:2: error: 'struct sync_file' has no member named 'sync_file_list'
__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:863:21: note: in expansion of macro 'offsetof'
((type *)(__mptr - offsetof(type, member))); })
^~~~~~~~
>> drivers//dma-buf/sync_debug.c:172:4: note: in expansion of macro 'container_of'
container_of(pos, struct sync_file, sync_file_list);
^~~~~~~~~~~~
drivers//dma-buf/sync_debug.c: In function 'sync_debugfs_init':
drivers//dma-buf/sync_debug.c:202:2: error: implicit declaration of function 'debugfs_create_file_unsafe' [-Werror=implicit-function-declaration]
debugfs_create_file_unsafe("info", 0444, dbgfs, NULL,
^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
drivers/dma-buf/sync_debug.c: In function 'sync_file_debug_add':
drivers/dma-buf/sync_debug.c:50:26: error: 'struct sync_file' has no member named 'sync_file_list'
list_add_tail(&sync_file->sync_file_list, &sync_file_list_head);
^~
drivers/dma-buf/sync_debug.c: In function 'sync_file_debug_remove':
drivers/dma-buf/sync_debug.c:59:21: error: 'struct sync_file' has no member named 'sync_file_list'
list_del(&sync_file->sync_file_list);
^~
In file included from include/linux/linkage.h:4:0,
from include/linux/fs.h:4,
from include/linux/debugfs.h:18,
from drivers/dma-buf/sync_debug.c:17:
drivers/dma-buf/sync_debug.c: In function 'sync_debugfs_show':
>> include/linux/kernel.h:860:51: error: 'struct sync_file' has no member named 'sync_file_list'
BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
^
include/linux/compiler.h:522:19: note: in definition of macro '__compiletime_assert'
bool __cond = !(condition); \
^~~~~~~~~
include/linux/compiler.h:542: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:860:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
^~~~~~~~~~~~~~~~
include/linux/kernel.h:860:20: note: in expansion of macro '__same_type'
BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
^~~~~~~~~~~
drivers/dma-buf/sync_debug.c:172:4: note: in expansion of macro 'container_of'
container_of(pos, struct sync_file, sync_file_list);
^~~~~~~~~~~~
In file included from include/linux/compiler.h:58:0,
from include/linux/linkage.h:4,
from include/linux/fs.h:4,
from include/linux/debugfs.h:18,
from drivers/dma-buf/sync_debug.c:17:
>> include/linux/compiler-gcc.h:165:2: error: 'struct sync_file' has no member named 'sync_file_list'
__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:863:21: note: in expansion of macro 'offsetof'
((type *)(__mptr - offsetof(type, member))); })
^~~~~~~~
drivers/dma-buf/sync_debug.c:172:4: note: in expansion of macro 'container_of'
container_of(pos, struct sync_file, sync_file_list);
^~~~~~~~~~~~
drivers/dma-buf/sync_debug.c: In function 'sync_debugfs_init':
drivers/dma-buf/sync_debug.c:202:2: error: implicit declaration of function 'debugfs_create_file_unsafe' [-Werror=implicit-function-declaration]
debugfs_create_file_unsafe("info", 0444, dbgfs, NULL,
^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors

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

Attachment: .config.gz
Description: application/gzip