[cgroup:review-tracepoints 1/5] include/linux/kernfs.h:350:1: error: expected identifier or '(' before '{' token

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git review-tracepoints
head:   471f89b317a21a78dacaee85957984b9f11e79e4
commit: 5f8ffbe607d1bb405d6f57735a4e214879b3d646 [1/5] kernfs: add dummy implementation of kernfs_path_from_node()
config: i386-tinyconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        git checkout 5f8ffbe607d1bb405d6f57735a4e214879b3d646
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (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:350:1: error: expected identifier or '(' before '{' token
    { return -ENOSYS; }
    ^
   include/linux/kernfs.h:347:19: warning: 'kernfs_path_from_node' declared 'static' but never defined [-Wunused-function]
    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 +350 include/linux/kernfs.h

   344	static inline size_t kernfs_path_len(struct kernfs_node *kn)
   345	{ return 0; }
   346	
   347	static inline int kernfs_path_from_node(struct kernfs_node *root_kn,
   348						struct kernfs_node *kn,
   349						char *buf, size_t buflen);
 > 350	{ return -ENOSYS; }
   351	
   352	static inline char *kernfs_path(struct kernfs_node *kn, char *buf,
   353					size_t buflen)

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

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [Monitors]

  Powered by Linux