* [pcmoore-audit:working-testing 5/6] kernel/audit.c:1456:2: note: in expansion of macro 'if'
@ 2016-11-12 0:49 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2016-11-12 0:49 UTC (permalink / raw)
To: Paul Moore; +Cc: XXX, linux-audit, kbuild-all
[-- Attachment #1: Type: text/plain, Size: 11153 bytes --]
tree: git://git.infradead.org/users/pcmoore/audit working-testing
head: a49c8e50dda0d0232dfbed567608724c9666b6ab
commit: 20fb66989030c8f631d687ddaca75b9f7f2ee589 [5/6] Work in progress, no commit description yet.
config: x86_64-randconfig-s2-11120755 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 20fb66989030c8f631d687ddaca75b9f7f2ee589
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
In file included from include/linux/file.h:8:0,
from kernel/audit.c:46:
kernel/audit.c: In function 'audit_log_start':
kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
(ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
^
include/linux/compiler.h:149:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
>> kernel/audit.c:1456:2: note: in expansion of macro 'if'
if ((!audit_pid && audit_pid != current->tgid) &&
^~
include/linux/compiler.h:520:26: note: in expansion of macro '__ACCESS_ONCE'
#define ACCESS_ONCE(x) (*__ACCESS_ONCE(x))
^~~~~~~~~~~~~
kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
(ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
^~~~~~~~~~~
kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
(ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
^
include/linux/compiler.h:149:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
>> kernel/audit.c:1456:2: note: in expansion of macro 'if'
if ((!audit_pid && audit_pid != current->tgid) &&
^~
include/linux/compiler.h:520:26: note: in expansion of macro '__ACCESS_ONCE'
#define ACCESS_ONCE(x) (*__ACCESS_ONCE(x))
^~~~~~~~~~~~~
kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
(ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
^~~~~~~~~~~
kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
(ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
^
include/linux/compiler.h:149:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
>> kernel/audit.c:1456:2: note: in expansion of macro 'if'
if ((!audit_pid && audit_pid != current->tgid) &&
^~
include/linux/compiler.h:520:26: note: in expansion of macro '__ACCESS_ONCE'
#define ACCESS_ONCE(x) (*__ACCESS_ONCE(x))
^~~~~~~~~~~~~
kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
(ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
^~~~~~~~~~~
kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
(ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
^
include/linux/compiler.h:149:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
>> kernel/audit.c:1456:2: note: in expansion of macro 'if'
if ((!audit_pid && audit_pid != current->tgid) &&
^~
include/linux/compiler.h:520:26: note: in expansion of macro '__ACCESS_ONCE'
#define ACCESS_ONCE(x) (*__ACCESS_ONCE(x))
^~~~~~~~~~~~~
kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
(ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
^~~~~~~~~~~
kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
(ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
^
include/linux/compiler.h:149:42: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
>> kernel/audit.c:1456:2: note: in expansion of macro 'if'
if ((!audit_pid && audit_pid != current->tgid) &&
^~
include/linux/compiler.h:520:26: note: in expansion of macro '__ACCESS_ONCE'
#define ACCESS_ONCE(x) (*__ACCESS_ONCE(x))
^~~~~~~~~~~~~
kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
(ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
^~~~~~~~~~~
kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
(ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
^
include/linux/compiler.h:149:42: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
>> kernel/audit.c:1456:2: note: in expansion of macro 'if'
if ((!audit_pid && audit_pid != current->tgid) &&
^~
include/linux/compiler.h:520:26: note: in expansion of macro '__ACCESS_ONCE'
#define ACCESS_ONCE(x) (*__ACCESS_ONCE(x))
^~~~~~~~~~~~~
kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
(ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
^~~~~~~~~~~
kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
(ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
^
include/linux/compiler.h:149:42: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
>> kernel/audit.c:1456:2: note: in expansion of macro 'if'
if ((!audit_pid && audit_pid != current->tgid) &&
^~
include/linux/compiler.h:520:26: note: in expansion of macro '__ACCESS_ONCE'
#define ACCESS_ONCE(x) (*__ACCESS_ONCE(x))
^~~~~~~~~~~~~
kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
(ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
^~~~~~~~~~~
kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
(ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
^
include/linux/compiler.h:149:42: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
>> kernel/audit.c:1456:2: note: in expansion of macro 'if'
if ((!audit_pid && audit_pid != current->tgid) &&
^~
include/linux/compiler.h:520:26: note: in expansion of macro '__ACCESS_ONCE'
#define ACCESS_ONCE(x) (*__ACCESS_ONCE(x))
^~~~~~~~~~~~~
kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
(ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
^~~~~~~~~~~
kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
(ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
^
include/linux/compiler.h:160:16: note: in definition of macro '__trace_if'
______r = !!(cond); \
^~~~
>> kernel/audit.c:1456:2: note: in expansion of macro 'if'
if ((!audit_pid && audit_pid != current->tgid) &&
^~
include/linux/compiler.h:520:26: note: in expansion of macro '__ACCESS_ONCE'
#define ACCESS_ONCE(x) (*__ACCESS_ONCE(x))
^~~~~~~~~~~~~
kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
(ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
^~~~~~~~~~~
kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
(ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
^
include/linux/compiler.h:160:16: note: in definition of macro '__trace_if'
______r = !!(cond); \
^~~~
>> kernel/audit.c:1456:2: note: in expansion of macro 'if'
if ((!audit_pid && audit_pid != current->tgid) &&
^~
include/linux/compiler.h:520:26: note: in expansion of macro '__ACCESS_ONCE'
#define ACCESS_ONCE(x) (*__ACCESS_ONCE(x))
^~~~~~~~~~~~~
kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
(ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
^~~~~~~~~~~
kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
(ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
^
include/linux/compiler.h:160:16: note: in definition of macro '__trace_if'
______r = !!(cond); \
^~~~
>> kernel/audit.c:1456:2: note: in expansion of macro 'if'
if ((!audit_pid && audit_pid != current->tgid) &&
^~
include/linux/compiler.h:520:26: note: in expansion of macro '__ACCESS_ONCE'
#define ACCESS_ONCE(x) (*__ACCESS_ONCE(x))
^~~~~~~~~~~~~
kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
(ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
^~~~~~~~~~~
kernel/audit.c:1457:34: error: 'struct mutex' has no member named 'owner'
(ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
^
include/linux/compiler.h:160:16: note: in definition of macro '__trace_if'
______r = !!(cond); \
^~~~
>> kernel/audit.c:1456:2: note: in expansion of macro 'if'
if ((!audit_pid && audit_pid != current->tgid) &&
^~
include/linux/compiler.h:520:26: note: in expansion of macro '__ACCESS_ONCE'
#define ACCESS_ONCE(x) (*__ACCESS_ONCE(x))
^~~~~~~~~~~~~
kernel/audit.c:1457:7: note: in expansion of macro 'ACCESS_ONCE'
(ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
^~~~~~~~~~~
vim +/if +1456 kernel/audit.c
1440 struct timespec t;
1441 unsigned int uninitialized_var(serial);
1442
1443 if (audit_initialized != AUDIT_INITIALIZED)
1444 return NULL;
1445
1446 if (unlikely(!audit_filter(type, AUDIT_FILTER_TYPE)))
1447 return NULL;
1448
1449 /* XXX - wait on a possible backlog only under these conditions:
1450 * 1. audit_backlog_limit is non-zero
1451 * 2. current != auditd
1452 * 3. ACCESS_ONCE(audit_cmd_mutex.owner) != current
1453 * 4. ???
1454 */
1455
> 1456 if ((!audit_pid && audit_pid != current->tgid) &&
1457 (ACCESS_ONCE(audit_cmd_mutex.owner) != current)) {
1458 long sleep_time = audit_backlog_wait_time;
1459
1460 while (audit_backlog_limit &&
1461 (skb_queue_len(&audit_queue) > audit_backlog_limit)) {
1462 /* wake kauditd to try and flush the queue */
1463 wake_up_interruptible(&kauditd_wait);
1464
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 27929 bytes --]
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-11-12 0:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-12 0:49 [pcmoore-audit:working-testing 5/6] kernel/audit.c:1456:2: note: in expansion of macro 'if' 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.