[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <201701131814.IVWwh9ZY%fengguang.wu@intel.com>
Date: Fri, 13 Jan 2017 18:48:28 +0800
From: kbuild test robot <lkp@...el.com>
To: David Howells <dhowells@...hat.com>
Cc: kbuild-all@...org, arnd@...db.de, dhowells@...hat.com,
linux-kernel@...r.kernel.org, ruchandani.tina@...il.com,
linux-afs@...ts.infradead.org
Subject: Re: [PATCH 1/2] afs: Move UUID struct to linux/uuid.h
Hi David,
[auto build test ERROR on linus/master]
[also build test ERROR on v4.10-rc3 next-20170113]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/David-Howells/afs-Move-UUID-struct-to-linux-uuid-h/20170113-134212
config: x86_64-randconfig-b0-01131757 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
Note: the linux-review/David-Howells/afs-Move-UUID-struct-to-linux-uuid-h/20170113-134212 HEAD c4259bc3968ea592af3a1599099327eb67e6019d builds fine.
It only hurts bisectibility.
All error/warnings (new ones prefixed by >>):
fs/afs/main.c: In function 'afs_get_client_UUID':
fs/afs/main.c:48:2: error: invalid use of undefined type 'struct uuid_v1'
ret = afs_get_MAC_address(afs_uuid.node, sizeof(afs_uuid.node));
^~~
fs/afs/main.c:48:2: error: invalid use of undefined type 'struct uuid_v1'
fs/afs/main.c:55:14: error: 'UUID_TO_UNIX_TIME' undeclared (first use in this function)
uuidtime += UUID_TO_UNIX_TIME;
^~~~~~~~~~~~~~~~~
fs/afs/main.c:55:14: note: each undeclared identifier is reported only once for each function it appears in
fs/afs/main.c:56:2: error: invalid use of undefined type 'struct uuid_v1'
afs_uuid.time_low = htonl(uuidtime);
^~~~~~~~
fs/afs/main.c:57:2: error: invalid use of undefined type 'struct uuid_v1'
afs_uuid.time_mid = htons(uuidtime >> 32);
^~~~~~~~
fs/afs/main.c:58:28: error: 'UUID_TIMEHI_MASK' undeclared (first use in this function)
hi_v = (uuidtime >> 48) & UUID_TIMEHI_MASK;
^~~~~~~~~~~~~~~~
fs/afs/main.c:59:10: error: 'UUID_VERSION_TIME' undeclared (first use in this function)
hi_v |= UUID_VERSION_TIME;
^~~~~~~~~~~~~~~~~
fs/afs/main.c:60:2: error: invalid use of undefined type 'struct uuid_v1'
afs_uuid.time_hi_and_version = htons(hi_v);
^~~~~~~~
fs/afs/main.c:63:2: error: invalid use of undefined type 'struct uuid_v1'
afs_uuid.clock_seq_low = clockseq;
^~~~~~~~
fs/afs/main.c:64:2: error: invalid use of undefined type 'struct uuid_v1'
afs_uuid.clock_seq_hi_and_reserved =
^~~~~~~~
fs/afs/main.c:65:21: error: 'UUID_CLOCKHI_MASK' undeclared (first use in this function)
(clockseq >> 8) & UUID_CLOCKHI_MASK;
^~~~~~~~~~~~~~~~~
fs/afs/main.c:66:2: error: invalid use of undefined type 'struct uuid_v1'
afs_uuid.clock_seq_hi_and_reserved |= UUID_VARIANT_STD;
^~~~~~~~
fs/afs/main.c:66:40: error: 'UUID_VARIANT_STD' undeclared (first use in this function)
afs_uuid.clock_seq_hi_and_reserved |= UUID_VARIANT_STD;
^~~~~~~~~~~~~~~~
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/list.h:4,
from include/linux/module.h:9,
from fs/afs/main.c:12:
>> include/linux/compiler.h:117:18: error: invalid use of undefined type 'struct uuid_v1'
static struct ftrace_branch_data \
^
include/linux/compiler.h:139:58: note: in expansion of macro '__branch_check__'
# define unlikely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 0))
^~~~~~~~~~~~~~~~
>> fs/afs/internal.h:769:6: note: in expansion of macro 'unlikely'
if (unlikely(afs_debug & AFS_DEBUG_KDEBUG)) \
^~~~~~~~
fs/afs/main.c:68:2: note: in expansion of macro '_debug'
_debug("AFS UUID: %08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
^~~~~~
>> include/linux/compiler.h:117:18: error: invalid use of undefined type 'struct uuid_v1'
static struct ftrace_branch_data \
^
include/linux/compiler.h:139:58: note: in expansion of macro '__branch_check__'
# define unlikely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 0))
^~~~~~~~~~~~~~~~
>> fs/afs/internal.h:769:6: note: in expansion of macro 'unlikely'
if (unlikely(afs_debug & AFS_DEBUG_KDEBUG)) \
^~~~~~~~
fs/afs/main.c:68:2: note: in expansion of macro '_debug'
_debug("AFS UUID: %08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
^~~~~~
>> include/linux/compiler.h:117:18: error: invalid use of undefined type 'struct uuid_v1'
static struct ftrace_branch_data \
^
include/linux/compiler.h:139:58: note: in expansion of macro '__branch_check__'
# define unlikely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 0))
^~~~~~~~~~~~~~~~
>> fs/afs/internal.h:769:6: note: in expansion of macro 'unlikely'
if (unlikely(afs_debug & AFS_DEBUG_KDEBUG)) \
^~~~~~~~
fs/afs/main.c:68:2: note: in expansion of macro '_debug'
_debug("AFS UUID: %08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
^~~~~~
>> include/linux/compiler.h:117:18: error: invalid use of undefined type 'struct uuid_v1'
static struct ftrace_branch_data \
^
include/linux/compiler.h:139:58: note: in expansion of macro '__branch_check__'
# define unlikely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 0))
^~~~~~~~~~~~~~~~
>> fs/afs/internal.h:769:6: note: in expansion of macro 'unlikely'
if (unlikely(afs_debug & AFS_DEBUG_KDEBUG)) \
^~~~~~~~
fs/afs/main.c:68:2: note: in expansion of macro '_debug'
_debug("AFS UUID: %08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
^~~~~~
>> include/linux/compiler.h:117:18: error: invalid use of undefined type 'struct uuid_v1'
static struct ftrace_branch_data \
^
include/linux/compiler.h:139:58: note: in expansion of macro '__branch_check__'
# define unlikely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 0))
^~~~~~~~~~~~~~~~
>> fs/afs/internal.h:769:6: note: in expansion of macro 'unlikely'
if (unlikely(afs_debug & AFS_DEBUG_KDEBUG)) \
^~~~~~~~
fs/afs/main.c:68:2: note: in expansion of macro '_debug'
_debug("AFS UUID: %08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
^~~~~~
>> include/linux/compiler.h:117:18: error: invalid use of undefined type 'struct uuid_v1'
static struct ftrace_branch_data \
^
include/linux/compiler.h:139:58: note: in expansion of macro '__branch_check__'
# define unlikely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 0))
^~~~~~~~~~~~~~~~
>> fs/afs/internal.h:769:6: note: in expansion of macro 'unlikely'
if (unlikely(afs_debug & AFS_DEBUG_KDEBUG)) \
^~~~~~~~
fs/afs/main.c:68:2: note: in expansion of macro '_debug'
_debug("AFS UUID: %08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
^~~~~~
>> include/linux/compiler.h:117:18: error: invalid use of undefined type 'struct uuid_v1'
static struct ftrace_branch_data \
^
include/linux/compiler.h:139:58: note: in expansion of macro '__branch_check__'
# define unlikely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 0))
^~~~~~~~~~~~~~~~
>> fs/afs/internal.h:769:6: note: in expansion of macro 'unlikely'
if (unlikely(afs_debug & AFS_DEBUG_KDEBUG)) \
^~~~~~~~
fs/afs/main.c:68:2: note: in expansion of macro '_debug'
_debug("AFS UUID: %08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
^~~~~~
>> include/linux/compiler.h:117:18: error: invalid use of undefined type 'struct uuid_v1'
static struct ftrace_branch_data \
^
include/linux/compiler.h:139:58: note: in expansion of macro '__branch_check__'
# define unlikely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 0))
^~~~~~~~~~~~~~~~
>> fs/afs/internal.h:769:6: note: in expansion of macro 'unlikely'
if (unlikely(afs_debug & AFS_DEBUG_KDEBUG)) \
^~~~~~~~
fs/afs/main.c:68:2: note: in expansion of macro '_debug'
_debug("AFS UUID: %08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
^~~~~~
>> include/linux/compiler.h:117:18: error: invalid use of undefined type 'struct uuid_v1'
static struct ftrace_branch_data \
^
include/linux/compiler.h:139:58: note: in expansion of macro '__branch_check__'
# define unlikely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 0))
^~~~~~~~~~~~~~~~
>> fs/afs/internal.h:769:6: note: in expansion of macro 'unlikely'
if (unlikely(afs_debug & AFS_DEBUG_KDEBUG)) \
^~~~~~~~
fs/afs/main.c:68:2: note: in expansion of macro '_debug'
_debug("AFS UUID: %08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
^~~~~~
>> include/linux/compiler.h:117:18: error: invalid use of undefined type 'struct uuid_v1'
static struct ftrace_branch_data \
^
include/linux/compiler.h:139:58: note: in expansion of macro '__branch_check__'
# define unlikely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 0))
^~~~~~~~~~~~~~~~
>> fs/afs/internal.h:769:6: note: in expansion of macro 'unlikely'
if (unlikely(afs_debug & AFS_DEBUG_KDEBUG)) \
^~~~~~~~
fs/afs/main.c:68:2: note: in expansion of macro '_debug'
_debug("AFS UUID: %08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
^~~~~~
vim +117 include/linux/compiler.h
1f0d69a9 Steven Rostedt 2008-11-12 111
1f0d69a9 Steven Rostedt 2008-11-12 112 #define likely_notrace(x) __builtin_expect(!!(x), 1)
1f0d69a9 Steven Rostedt 2008-11-12 113 #define unlikely_notrace(x) __builtin_expect(!!(x), 0)
1f0d69a9 Steven Rostedt 2008-11-12 114
45b79749 Steven Rostedt 2008-11-21 115 #define __branch_check__(x, expect) ({ \
1f0d69a9 Steven Rostedt 2008-11-12 116 int ______r; \
2ed84eeb Steven Rostedt 2008-11-12 @117 static struct ftrace_branch_data \
1f0d69a9 Steven Rostedt 2008-11-12 118 __attribute__((__aligned__(4))) \
45b79749 Steven Rostedt 2008-11-21 119 __attribute__((section("_ftrace_annotated_branch"))) \
1f0d69a9 Steven Rostedt 2008-11-12 120 ______f = { \
:::::: The code at line 117 was first introduced by commit
:::::: 2ed84eeb8808cf3c9f039213ca137ffd7d753f0e trace: rename unlikely profiler to branch profiler
:::::: TO: Steven Rostedt <srostedt@...hat.com>
:::::: CC: Ingo Molnar <mingo@...e.hu>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (23523 bytes)
Powered by blists - more mailing lists