tree:
https://github.com/jpirko/linux_mlxsw petrm_resilient
head: f89604f4fb4130335e42ccf65a969ad0a0f58166
commit: f89604f4fb4130335e42ccf65a969ad0a0f58166 [5/5] debugfs for nexthop [xxx]
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/jpirko/linux_mlxsw/commit/f89604f4fb4130335e42ccf65a96...
git remote add jpirko-mlxsw
https://github.com/jpirko/linux_mlxsw
git fetch --no-tags jpirko-mlxsw petrm_resilient
git checkout f89604f4fb4130335e42ccf65a969ad0a0f58166
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> net/ipv4/nexthop.c:2646:25: warning: no previous prototype for
'nexthop_debugfs_alloc' [-Wmissing-prototypes]
2646 | struct
nexthop_debugfs *nexthop_debugfs_alloc(void)
| ^~~~~~~~~~~~~~~~~~~~~
vim +/nexthop_debugfs_alloc +2646 net/ipv4/nexthop.c
2645
2646 struct nexthop_debugfs *nexthop_debugfs_alloc(void)
2647 {
2648 struct nexthop_debugfs *dfs;
2649 int err;
2650
2651 dfs = kzalloc(sizeof(*dfs), GFP_KERNEL);
2652 if (!dfs)
2653 return NULL;
2654
2655 dfs->ddir = debugfs_create_dir("nexthop", NULL);
2656 if (IS_ERR(dfs->ddir)) {
2657 err = PTR_ERR(dfs->ddir);
2658 goto err_create_dir;
2659 }
2660
2661 dfs->bucket_activity = debugfs_create_file("bucket_activity",
S_IWUSR,
2662 dfs->ddir, NULL,
2663 &nexthop_debugfs_bucket_activity_ops);
2664 if (IS_ERR(dfs->bucket_activity)) {
2665 err = PTR_ERR(dfs->bucket_activity);
2666 goto err_create_bucket_activity;
2667 }
2668
2669 return 0;
2670
2671 err_create_bucket_activity:
2672 debugfs_remove_recursive(dfs->ddir);
2673 err_create_dir:
2674 kfree(dfs);
2675 return ERR_PTR(err);
2676 }
2677
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org