[vfs:work.siginfo 4/6] include/linux/compiler.h:537:38: error: call to '__compiletime_assert_66' declared with attribute error: BUILD_BUG_ON failed: 5*sizeof(int) != sizeof(((compat_siginfo_t *)0)->_sifields._timer)

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.siginfo
head:   afd3004ae07b37b5274e6ceeace600371d942d24
commit: c452bde053368a7c3ddc3c2be1203d42d45d368a [4/6] unify compat_siginfo_t
config: x86_64-kexec (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout c452bde053368a7c3ddc3c2be1203d42d45d368a
        # save the attached .config to linux build tree
        make ARCH=x86_64 

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

   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/compat.h:8,
                    from arch/x86//kernel/signal_compat.c:1:
   In function 'signal_compat_build_tests',
       inlined from '__copy_siginfo_to_user32' at arch/x86//kernel/signal_compat.c:119:2:
>> include/linux/compiler.h:537:38: error: call to '__compiletime_assert_66' declared with attribute error: BUILD_BUG_ON failed: 5*sizeof(int) != sizeof(((compat_siginfo_t *)0)->_sifields._timer)
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
                                         ^
   include/linux/compiler.h:520:4: note: in definition of macro '__compiletime_assert'
       prefix ## suffix();    \
       ^~~~~~
   include/linux/compiler.h:537:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/bug.h:54:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^~~~~~~~~~~~~~~~~~
   include/linux/bug.h:78:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
     ^~~~~~~~~~~~~~~~
>> arch/x86//kernel/signal_compat.c:58:36: note: in expansion of macro 'BUILD_BUG_ON'
    #define CHECK_CSI_SIZE(name, size) BUILD_BUG_ON(size != sizeof(((compat_siginfo_t *)0)->_sifields.name))
                                       ^~~~~~~~~~~~
>> arch/x86//kernel/signal_compat.c:66:2: note: in expansion of macro 'CHECK_CSI_SIZE'
     CHECK_CSI_SIZE  (_timer, 5*sizeof(int));
     ^~~~~~~~~~~~~~
--
   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/compat.h:8,
                    from arch/x86/kernel/signal_compat.c:1:
   In function 'signal_compat_build_tests',
       inlined from '__copy_siginfo_to_user32' at arch/x86/kernel/signal_compat.c:119:2:
>> include/linux/compiler.h:537:38: error: call to '__compiletime_assert_66' declared with attribute error: BUILD_BUG_ON failed: 5*sizeof(int) != sizeof(((compat_siginfo_t *)0)->_sifields._timer)
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
                                         ^
   include/linux/compiler.h:520:4: note: in definition of macro '__compiletime_assert'
       prefix ## suffix();    \
       ^~~~~~
   include/linux/compiler.h:537:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/bug.h:54:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^~~~~~~~~~~~~~~~~~
   include/linux/bug.h:78:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
     ^~~~~~~~~~~~~~~~
   arch/x86/kernel/signal_compat.c:58:36: note: in expansion of macro 'BUILD_BUG_ON'
    #define CHECK_CSI_SIZE(name, size) BUILD_BUG_ON(size != sizeof(((compat_siginfo_t *)0)->_sifields.name))
                                       ^~~~~~~~~~~~
   arch/x86/kernel/signal_compat.c:66:2: note: in expansion of macro 'CHECK_CSI_SIZE'
     CHECK_CSI_SIZE  (_timer, 5*sizeof(int));
     ^~~~~~~~~~~~~~

vim +/__compiletime_assert_66 +537 include/linux/compiler.h


:::::: The code at line 537 was first introduced by commit
:::::: 9a8ab1c39970a4938a72d94e6fd13be88a797590 bug.h, compiler.h: introduce compiletime_assert & BUILD_BUG_ON_MSG

:::::: TO: Daniel Santos <daniel.santos@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


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux