Skip to contentSkip to conversation

net/key/af_key.c:1476:9: error: implicit declaration of function 'audit_get_sessi

PATCH New Fengguang Wu 1 participant 1 message Sep 26, 2012 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 22/413 net/key/af_key.c:1476:9: error: implicit declaration of function 'audit_get_sessi

Hi Kees,

FYI, kernel build failed on

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git akpm
head:   dad0019944369f58c193c1991c39ffda7ff584d2
commit: e269b4131288512ebfe2adfe69042983cb2e69e5 [22/413] audit.h: replace defines with C stubs
config: sh-titan_defconfig

All error/warnings:

net/key/af_key.c: In function 'pfkey_add':
net/key/af_key.c:1476:9: error: implicit declaration of function 'audit_get_sessionid' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors

vim +1476 net/key/af_key.c
1470 err = xfrm_state_add(x);
1471 else
1472 err = xfrm_state_update(x);
1473
1474 xfrm_audit_state_add(x, err ? 0 : 1,
1475 audit_get_loginuid(current),

Quoted 1 line

1476 audit_get_sessionid(current), 0);

1477
1478 if (err < 0) {
1479 x->km.state = XFRM_STATE_DEAD;

---
0-DAY kernel build testing backend Open Source Technology Centre
Fengguang Wu, Yuanhan Liu Intel Corporation