Re: [PATCH 2/3] tracing: Make tracing work when debugfs is not compiled or initialized.

kbuild test robot
2015-10-18T14:33:06Z

[-- Attachment #1: Type: text/plain, Size: 1743 bytes --]

Hi Jiaxing,

[auto build test ERROR on tip/perf/core -- if it's inappropriate base, please suggest rules for selecting the more suitable base]

url: https://github.com/0day-ci/linux/commits/Jiaxing-Wang/Some-tracing-fixes/20151018-200252
config: arm-omap2plus_defconfig (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=arm

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

kernel/trace/trace.c: In function 'tracing_init_dentry':
>> kernel/trace/trace.c:6737:3: error: implicit declaration of function 'debugfs_create_automount' [-Werror=implicit-function-declaration]
traced = debugfs_create_automount("tracing", NULL,
^
>> kernel/trace/trace.c:6737:10: warning: assignment makes pointer from integer without a cast
traced = debugfs_create_automount("tracing", NULL,
^
cc1: some warnings being treated as errors

vim +/debugfs_create_automount +6737 kernel/trace/trace.c

6731 /*
6732 * As there may still be users that expect the tracing
6733 * files to exist in debugfs/tracing, we must automount
6734 * the tracefs file system there, so older tools still
6735 * work with the newer kerenl.
6736 */
> 6737 traced = debugfs_create_automount("tracing", NULL,
6738 trace_automount, NULL);
6739 if (!traced)
6740 pr_warn_once("Could not create debugfs directory 'tracing'\n");

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 24643 bytes --]