tree: https://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git review-tracepoints head: 471f89b317a21a78dacaee85957984b9f11e79e4 commit: 66aacea034635a9486262044f8b270c99adf962b [2/5] kernfs: make kernfs_path*() behave in the style of strlcpy() config: i386-tinyconfig (attached as .config) compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705 reproduce: git checkout 66aacea034635a9486262044f8b270c99adf962b # save the attached .config to linux build tree make ARCH=i386 All warnings (new ones prefixed by >>): In file included from include/linux/cgroup.h:18:0, from include/linux/memcontrol.h:22, from include/linux/swap.h:8, from include/linux/suspend.h:4, from arch/x86/kernel/asm-offsets.c:12: include/linux/kernfs.h:349:1: error: expected identifier or '(' before '{' token { return -ENOSYS; } ^ >> include/linux/kernfs.h:346:19: warning: 'kernfs_path_from_node' used but never defined static inline int kernfs_path_from_node(struct kernfs_node *root_kn, ^~~~~~~~~~~~~~~~~~~~~ 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 +/kernfs_path_from_node +346 include/linux/kernfs.h 3eef34ad Tejun Heo 2014-02-07 340 static inline int kernfs_name(struct kernfs_node *kn, char *buf, size_t buflen) 3eef34ad Tejun Heo 2014-02-07 341 { return -ENOSYS; } 3eef34ad Tejun Heo 2014-02-07 342 9acee9c5 Tejun Heo 2015-08-18 343 static inline size_t kernfs_path_len(struct kernfs_node *kn) 9acee9c5 Tejun Heo 2015-08-18 344 { return 0; } 9acee9c5 Tejun Heo 2015-08-18 345 5f8ffbe6 Tejun Heo 2016-08-09 @346 static inline int kernfs_path_from_node(struct kernfs_node *root_kn, 5f8ffbe6 Tejun Heo 2016-08-09 347 struct kernfs_node *kn, 5f8ffbe6 Tejun Heo 2016-08-09 348 char *buf, size_t buflen); 5f8ffbe6 Tejun Heo 2016-08-09 @349 { return -ENOSYS; } 5f8ffbe6 Tejun Heo 2016-08-09 350 3eef34ad Tejun Heo 2014-02-07 351 static inline void pr_cont_kernfs_name(struct kernfs_node *kn) { } 3eef34ad Tejun Heo 2014-02-07 352 static inline void pr_cont_kernfs_path(struct kernfs_node *kn) { } :::::: The code at line 346 was first introduced by commit :::::: 5f8ffbe607d1bb405d6f57735a4e214879b3d646 kernfs: add dummy implementation of kernfs_path_from_node() :::::: TO: Tejun Heo <tj@xxxxxxxxxx> :::::: CC: Tejun Heo <tj@xxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data