Re: [PATCH V3] audit: add tty field to LOGIN event

From: kbuild test robot
Date: Thu Apr 21 2016 - 11:53:18 EST


Hi,

[auto build test ERROR on v4.6-rc4]
[also build test ERROR on next-20160421]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url: https://github.com/0day-ci/linux/commits/Richard-Guy-Briggs/audit-add-tty-field-to-LOGIN-event/20160421-233218
config: mips-allyesconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=mips

All errors (new ones prefixed by >>):

kernel/audit.c: In function 'audit_log_task_info':
>> kernel/audit.c:1917:2: error: implicit declaration of function 'audit_put_tty' [-Werror=implicit-function-declaration]
audit_put_tty(tty);
^
cc1: some warnings being treated as errors

vim +/audit_put_tty +1917 kernel/audit.c

1911 from_kuid(&init_user_ns, cred->fsuid),
1912 from_kgid(&init_user_ns, cred->egid),
1913 from_kgid(&init_user_ns, cred->sgid),
1914 from_kgid(&init_user_ns, cred->fsgid),
1915 tty ? tty_name(tty) : "(none)",
1916 audit_get_sessionid(tsk));
> 1917 audit_put_tty(tty);
1918 audit_log_format(ab, " comm=");
1919 audit_log_untrustedstring(ab, get_task_comm(comm, tsk));
1920 audit_log_d_path_exe(ab, tsk->mm);

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

Attachment: .config.gz
Description: Binary data