tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
queue-4.14
head: e7070c196c5e75ab1ac8bca2e88ebb8db34aa29f
commit: e7070c196c5e75ab1ac8bca2e88ebb8db34aa29f [23/23] RDMA/mlx4: Do not map the
core_clock page to user space unless enabled
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build):
#
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-4.14
git checkout e7070c196c5e75ab1ac8bca2e88ebb8db34aa29f
# 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 >>):
static void mlx4_ib_fill_diag_counters(struct mlx4_ib_dev *ibdev,
^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:2337:12: error: invalid storage class for function
'mlx4_ib_alloc_diag_counters'
static int mlx4_ib_alloc_diag_counters(struct mlx4_ib_dev *ibdev)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:2377:13: error: invalid storage class for function
'mlx4_ib_diag_cleanup'
static void mlx4_ib_diag_cleanup(struct mlx4_ib_dev *ibdev)
^~~~~~~~~~~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:2388:13: error: invalid storage class for function
'mlx4_ib_update_qps'
static void mlx4_ib_update_qps(struct mlx4_ib_dev *ibdev,
^~~~~~~~~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:2445:13: error: invalid storage class for function
'mlx4_ib_scan_netdevs'
static void mlx4_ib_scan_netdevs(struct mlx4_ib_dev *ibdev,
^~~~~~~~~~~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:2476:12: error: invalid storage class for function
'mlx4_ib_netdev_event'
static int mlx4_ib_netdev_event(struct notifier_block *this,
^~~~~~~~~~~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:2491:13: error: invalid storage class for function
'init_pkeys'
static void init_pkeys(struct mlx4_ib_dev *ibdev)
^~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:2524:13: error: invalid storage class for function
'mlx4_ib_alloc_eqs'
static void mlx4_ib_alloc_eqs(struct mlx4_dev *dev, struct mlx4_ib_dev *ibdev)
^~~~~~~~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:2555:13: error: invalid storage class for function
'mlx4_ib_free_eqs'
static void mlx4_ib_free_eqs(struct mlx4_dev *dev, struct mlx4_ib_dev *ibdev)
^~~~~~~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:2574:12: error: invalid storage class for function
'mlx4_port_immutable'
static int mlx4_port_immutable(struct ib_device *ibdev, u8 port_num,
^~~~~~~~~~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:2606:13: error: invalid storage class for function
'get_fw_ver_str'
static void get_fw_ver_str(struct ib_device *device, char *str)
^~~~~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:2616:14: error: invalid storage class for function
'mlx4_ib_add'
static void *mlx4_ib_add(struct mlx4_dev *dev)
^~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:3076:13: error: invalid storage class for function
'mlx4_ib_remove'
static void mlx4_ib_remove(struct mlx4_dev *dev, void *ibdev_ptr)
^~~~~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:3116:13: error: invalid storage class for function
'do_slave_init'
static void do_slave_init(struct mlx4_ib_dev *ibdev, int slave, int do_init)
^~~~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:3166:13: error: invalid storage class for function
'mlx4_ib_handle_catas_error'
static void mlx4_ib_handle_catas_error(struct mlx4_ib_dev *ibdev)
^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:3227:13: error: invalid storage class for function
'handle_bonded_port_state_event'
static void handle_bonded_port_state_event(struct work_struct *work)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:3277:13: error: invalid storage class for function
'ib_sl2vl_update_work'
static void ib_sl2vl_update_work(struct work_struct *work)
^~~~~~~~~~~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:3302:13: error: invalid storage class for function
'mlx4_ib_event'
static void mlx4_ib_event(struct mlx4_dev *dev, void *ibdev_ptr,
^~~~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:3414:10: error: initializer element is not constant
.add = mlx4_ib_add,
^~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:3414:10: note: (near initialization for
'mlx4_ib_interface.add')
drivers/infiniband/hw/mlx4/main.c:3415:13: error: initializer element is not constant
.remove = mlx4_ib_remove,
^~~~~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:3415:13: note: (near initialization for
'mlx4_ib_interface.remove')
drivers/infiniband/hw/mlx4/main.c:3416:12: error: initializer element is not constant
.event = mlx4_ib_event,
^~~~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:3416:12: note: (near initialization for
'mlx4_ib_interface.event')
drivers/infiniband/hw/mlx4/main.c:3421:19: error: invalid storage class for function
'mlx4_ib_init'
static int __init mlx4_ib_init(void)
^~~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:3447:20: error: invalid storage class for function
'mlx4_ib_cleanup'
static void __exit mlx4_ib_cleanup(void)
^~~~~~~~~~~~~~~
In file included from include/linux/printk.h:6:0,
from include/linux/kernel.h:14,
from include/linux/list.h:9,
from include/linux/module.h:9,
from drivers/infiniband/hw/mlx4/main.c:34:
drivers/infiniband/hw/mlx4/main.c:3454:13: error: initializer element is not constant
module_init(mlx4_ib_init);
^
include/linux/init.h:174:58: note: in definition of macro '__define_initcall'
__attribute__((__section__(".initcall" #id ".init"))) = fn;
^~
include/linux/init.h:208:24: note: in expansion of macro 'device_initcall'
#define __initcall(fn) device_initcall(fn)
^~~~~~~~~~~~~~~
include/linux/module.h:85:24: note: in expansion of macro '__initcall'
#define module_init(x) __initcall(x);
^~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:3454:1: note: in expansion of macro
'module_init'
module_init(mlx4_ib_init);
^~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:3455:13: error: initializer element is not constant
module_exit(mlx4_ib_cleanup);
^
include/linux/init.h:211:50: note: in definition of macro '__exitcall'
static exitcall_t __exitcall_##fn __exit_call = fn
^~
drivers/infiniband/hw/mlx4/main.c:3455:1: note: in expansion of macro
'module_exit'
module_exit(mlx4_ib_cleanup);
^~~~~~~~~~~
> include/linux/init.h:211:2: warning: ISO C90 forbids mixed
declarations and code [-Wdeclaration-after-statement]
static exitcall_t
__exitcall_##fn __exit_call = fn
^
include/linux/module.h:97:24: note: in expansion of macro '__exitcall'
#define module_exit(x) __exitcall(x);
^~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:3455:1: note: in expansion of macro
'module_exit'
module_exit(mlx4_ib_cleanup);
^~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:3455:1: error: expected declaration or statement at
end of input
drivers/infiniband/hw/mlx4/main.c:3455:1: error: expected declaration or statement at
end of input
drivers/infiniband/hw/mlx4/main.c: At top level:
drivers/infiniband/hw/mlx4/main.c:82:13: warning: 'do_slave_init' used but
never defined
static void do_slave_init(struct mlx4_ib_dev *ibdev, int slave, int do_init);
^~~~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:83:29: warning: 'mlx4_ib_port_link_layer'
used but never defined
static enum rdma_link_layer mlx4_ib_port_link_layer(struct ib_device *device,
^~~~~~~~~~~~~~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:3042:5: warning: 'mlx4_ib_steer_qp_reg'
defined but not used [-Wunused-function]
int mlx4_ib_steer_qp_reg(struct mlx4_ib_dev *mdev, struct mlx4_ib_qp *mqp,
^~~~~~~~~~~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:3029:6: warning: 'mlx4_ib_steer_qp_free'
defined but not used [-Wunused-function]
void mlx4_ib_steer_qp_free(struct mlx4_ib_dev *dev, u32 qpn, int count)
^~~~~~~~~~~~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:3013:5: warning: 'mlx4_ib_steer_qp_alloc'
defined but not used [-Wunused-function]
int mlx4_ib_steer_qp_alloc(struct mlx4_ib_dev *dev, int count, int *qpn)
^~~~~~~~~~~~~~~~~~~~~~
drivers/infiniband/hw/mlx4/main.c:1439:5: warning: 'mlx4_ib_add_mc' defined but
not used [-Wunused-function]
int mlx4_ib_add_mc(struct mlx4_ib_dev *mdev, struct mlx4_ib_qp *mqp,
^~~~~~~~~~~~~~
vim +211 include/linux/init.h
^1da177e4c3f41 Linus Torvalds 2005-04-16 209
^1da177e4c3f41 Linus Torvalds 2005-04-16 210 #define __exitcall(fn) \
^1da177e4c3f41 Linus Torvalds 2005-04-16 @211 static exitcall_t __exitcall_##fn
__exit_call = fn
^1da177e4c3f41 Linus Torvalds 2005-04-16 212
:::::: The code at line 211 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org