[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202206291205.yExYDYyR-lkp@intel.com>
Date: Wed, 29 Jun 2022 12:03:11 +0800
From: kernel test robot <lkp@...el.com>
To: Jiri Pirko <jiri@...dia.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [jpirko-mlxsw:jiri_devel_devlink_locking 21/21]
drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.c:138:15: error: implicit
declaration of function 'dev_resource_size_get'; did you mean
'devl_resource_size_get'?
tree: https://github.com/jpirko/linux_mlxsw jiri_devel_devlink_locking
head: 9162f3d685ec59a9811d91e44c3f79c51714d077
commit: 9162f3d685ec59a9811d91e44c3f79c51714d077 [21/21] x
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220629/202206291205.yExYDYyR-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/jpirko/linux_mlxsw/commit/9162f3d685ec59a9811d91e44c3f79c51714d077
git remote add jpirko-mlxsw https://github.com/jpirko/linux_mlxsw
git fetch --no-tags jpirko-mlxsw jiri_devel_devlink_locking
git checkout 9162f3d685ec59a9811d91e44c3f79c51714d077
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.c: In function 'mlxsw_sp_counter_pool_init':
>> drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.c:138:15: error: implicit declaration of function 'dev_resource_size_get'; did you mean 'devl_resource_size_get'? [-Werror=implicit-function-declaration]
138 | err = dev_resource_size_get(devlink, MLXSW_SP_RESOURCE_COUNTERS,
| ^~~~~~~~~~~~~~~~~~~~~
| devl_resource_size_get
cc1: some warnings being treated as errors
--
drivers/net/ethernet/mellanox/mlxsw/core.c: In function 'mlxsw_devlink_core_bus_device_reload_down':
>> drivers/net/ethernet/mellanox/mlxsw/core.c:1500:9: error: too few arguments to function 'devl_lock'
1500 | devl_lock();
| ^~~~~~~~~
In file included from drivers/net/ethernet/mellanox/mlxsw/core.c:25:
include/net/devlink.h:1518:6: note: declared here
1518 | void devl_lock(struct devlink *devlink);
| ^~~~~~~~~
>> drivers/net/ethernet/mellanox/mlxsw/core.c:1505:9: error: too few arguments to function 'devl_unlock'
1505 | devl_unlock();
| ^~~~~~~~~~~
In file included from drivers/net/ethernet/mellanox/mlxsw/core.c:25:
include/net/devlink.h:1519:6: note: declared here
1519 | void devl_unlock(struct devlink *devlink);
| ^~~~~~~~~~~
drivers/net/ethernet/mellanox/mlxsw/core.c: In function 'mlxsw_devlink_core_bus_device_reload_up':
drivers/net/ethernet/mellanox/mlxsw/core.c:1517:9: error: too few arguments to function 'devl_lock'
1517 | devl_lock();
| ^~~~~~~~~
In file included from drivers/net/ethernet/mellanox/mlxsw/core.c:25:
include/net/devlink.h:1518:6: note: declared here
1518 | void devl_lock(struct devlink *devlink);
| ^~~~~~~~~
drivers/net/ethernet/mellanox/mlxsw/core.c:1524:9: error: too few arguments to function 'devl_unlock'
1524 | devl_unlock();
| ^~~~~~~~~~~
In file included from drivers/net/ethernet/mellanox/mlxsw/core.c:25:
include/net/devlink.h:1519:6: note: declared here
1519 | void devl_unlock(struct devlink *devlink);
| ^~~~~~~~~~~
--
drivers/net/ethernet/mellanox/mlxsw/pci.c: In function 'mlxsw_pci_probe':
>> drivers/net/ethernet/mellanox/mlxsw/pci.c:1917:9: error: too few arguments to function 'devl_lock'
1917 | devl_lock();
| ^~~~~~~~~
In file included from drivers/net/ethernet/mellanox/mlxsw/core.h:16,
from drivers/net/ethernet/mellanox/mlxsw/pci.c:20:
include/net/devlink.h:1518:6: note: declared here
1518 | void devl_lock(struct devlink *devlink);
| ^~~~~~~~~
>> drivers/net/ethernet/mellanox/mlxsw/pci.c:1921:9: error: too few arguments to function 'devl_unlock'
1921 | devl_unlock();
| ^~~~~~~~~~~
In file included from drivers/net/ethernet/mellanox/mlxsw/core.h:16,
from drivers/net/ethernet/mellanox/mlxsw/pci.c:20:
include/net/devlink.h:1519:6: note: declared here
1519 | void devl_unlock(struct devlink *devlink);
| ^~~~~~~~~~~
drivers/net/ethernet/mellanox/mlxsw/pci.c: In function 'mlxsw_pci_remove':
drivers/net/ethernet/mellanox/mlxsw/pci.c:1948:9: error: too few arguments to function 'devl_lock'
1948 | devl_lock();
| ^~~~~~~~~
In file included from drivers/net/ethernet/mellanox/mlxsw/core.h:16,
from drivers/net/ethernet/mellanox/mlxsw/pci.c:20:
include/net/devlink.h:1518:6: note: declared here
1518 | void devl_lock(struct devlink *devlink);
| ^~~~~~~~~
drivers/net/ethernet/mellanox/mlxsw/pci.c:1950:9: error: too few arguments to function 'devl_unlock'
1950 | devl_unlock();
| ^~~~~~~~~~~
In file included from drivers/net/ethernet/mellanox/mlxsw/core.h:16,
from drivers/net/ethernet/mellanox/mlxsw/pci.c:20:
include/net/devlink.h:1519:6: note: declared here
1519 | void devl_unlock(struct devlink *devlink);
| ^~~~~~~~~~~
--
drivers/net/ethernet/mellanox/mlxsw/i2c.c: In function 'mlxsw_i2c_probe':
>> drivers/net/ethernet/mellanox/mlxsw/i2c.c:643:9: error: too few arguments to function 'devl_lock'
643 | devl_lock();
| ^~~~~~~~~
In file included from drivers/net/ethernet/mellanox/mlxsw/i2c.c:13:
include/net/devlink.h:1518:6: note: declared here
1518 | void devl_lock(struct devlink *devlink);
| ^~~~~~~~~
>> drivers/net/ethernet/mellanox/mlxsw/i2c.c:647:9: error: too few arguments to function 'devl_unlock'
647 | devl_unlock();
| ^~~~~~~~~~~
In file included from drivers/net/ethernet/mellanox/mlxsw/i2c.c:13:
include/net/devlink.h:1519:6: note: declared here
1519 | void devl_unlock(struct devlink *devlink);
| ^~~~~~~~~~~
drivers/net/ethernet/mellanox/mlxsw/i2c.c: In function 'mlxsw_i2c_remove':
drivers/net/ethernet/mellanox/mlxsw/i2c.c:666:9: error: too few arguments to function 'devl_lock'
666 | devl_lock();
| ^~~~~~~~~
In file included from drivers/net/ethernet/mellanox/mlxsw/i2c.c:13:
include/net/devlink.h:1518:6: note: declared here
1518 | void devl_lock(struct devlink *devlink);
| ^~~~~~~~~
drivers/net/ethernet/mellanox/mlxsw/i2c.c:668:9: error: too few arguments to function 'devl_unlock'
668 | devl_unlock();
| ^~~~~~~~~~~
In file included from drivers/net/ethernet/mellanox/mlxsw/i2c.c:13:
include/net/devlink.h:1519:6: note: declared here
1519 | void devl_unlock(struct devlink *devlink);
| ^~~~~~~~~~~
vim +138 drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.c
119
120 int mlxsw_sp_counter_pool_init(struct mlxsw_sp *mlxsw_sp)
121 {
122 unsigned int sub_pools_count = ARRAY_SIZE(mlxsw_sp_counter_sub_pools);
123 struct devlink *devlink = priv_to_devlink(mlxsw_sp->core);
124 struct mlxsw_sp_counter_pool *pool;
125 int err;
126
127 pool = kzalloc(struct_size(pool, sub_pools, sub_pools_count),
128 GFP_KERNEL);
129 if (!pool)
130 return -ENOMEM;
131 mlxsw_sp->counter_pool = pool;
132 pool->sub_pools_count = sub_pools_count;
133 memcpy(pool->sub_pools, mlxsw_sp_counter_sub_pools,
134 flex_array_size(pool, sub_pools, pool->sub_pools_count));
135 spin_lock_init(&pool->counter_pool_lock);
136 atomic_set(&pool->active_entries_count, 0);
137
> 138 err = dev_resource_size_get(devlink, MLXSW_SP_RESOURCE_COUNTERS,
139 &pool->pool_size);
140 if (err)
141 goto err_pool_resource_size_get;
142 devl_resource_occ_get_register(devlink, MLXSW_SP_RESOURCE_COUNTERS,
143 mlxsw_sp_counter_pool_occ_get, pool);
144
145 pool->usage = bitmap_zalloc(pool->pool_size, GFP_KERNEL);
146 if (!pool->usage) {
147 err = -ENOMEM;
148 goto err_usage_alloc;
149 }
150
151 err = mlxsw_sp_counter_sub_pools_init(mlxsw_sp);
152 if (err)
153 goto err_sub_pools_init;
154
155 return 0;
156
157 err_sub_pools_init:
158 bitmap_free(pool->usage);
159 err_usage_alloc:
160 devl_resource_occ_get_unregister(devlink,
161 MLXSW_SP_RESOURCE_COUNTERS);
162 err_pool_resource_size_get:
163 kfree(pool);
164 return err;
165 }
166
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists