All of lore.kernel.org
 help / color / mirror / Atom feed
* [cgroup:review-tracepoints 2/5] include/linux/kernfs.h:346:19: warning: 'kernfs_path_from_node' used but never defined
@ 2016-08-09  5:43 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2016-08-09  5:43 UTC (permalink / raw)
  To: Tejun Heo; +Cc: kbuild-all-JC7UmRfGjtg, cgroups-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 2825 bytes --]

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-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
:::::: CC: Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 6334 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-08-09  5:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-09  5:43 [cgroup:review-tracepoints 2/5] include/linux/kernfs.h:346:19: warning: 'kernfs_path_from_node' used but never defined kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.