[jpirko-mlxsw:linecards 55/109] drivers/net/ethernet/mellanox/mlxsw/core_linecards.c:366:26: warning: variable 'linecards' set but not used
by kernel test robot
tree: https://github.com/jpirko/linux_mlxsw linecards
head: 2399de99a931630e05915fbcb4f84ca21a8e000a
commit: 8693f5ee04deacc07510585fee350a2e30f7d4fc [55/109] mlxsw: core_linecards: Add line card objects and implement provisioning
config: i386-randconfig-a001-20211213 (https://download.01.org/0day-ci/archive/20211214/202112140859.ZE3HQNoo-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project b6a2ddb6c8ac29412b1361810972e15221fa021c)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/jpirko/linux_mlxsw/commit/8693f5ee04deacc07510585fee35...
git remote add jpirko-mlxsw https://github.com/jpirko/linux_mlxsw
git fetch --no-tags jpirko-mlxsw linecards
git checkout 8693f5ee04deacc07510585fee350a2e30f7d4fc
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/net/ethernet/mellanox/mlxsw/
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 >>):
>> drivers/net/ethernet/mellanox/mlxsw/core_linecards.c:366:26: warning: variable 'linecards' set but not used [-Wunused-but-set-variable]
struct mlxsw_linecards *linecards;
^
1 warning generated.
vim +/linecards +366 drivers/net/ethernet/mellanox/mlxsw/core_linecards.c
359
360 static int mlxsw_linecard_unprovision(struct devlink_linecard *devlink_linecard,
361 void *priv,
362 struct netlink_ext_ack *extack)
363 {
364 enum mlxsw_reg_mbct_fsm_state fsm_state;
365 struct mlxsw_linecard *linecard = priv;
> 366 struct mlxsw_linecards *linecards;
367 enum mlxsw_reg_mbct_status status;
368 unsigned int ini_wait_retries = 0;
369 struct mlxsw_core *mlxsw_core;
370 int err;
371
372 mutex_lock(&linecard->lock);
373
374 linecards = linecard->linecards;
375 mlxsw_core = linecard->linecards->mlxsw_core;
376
377 query_ini_status:
378 err = mlxsw_linecard_query_status(linecard, &status,
379 &fsm_state, extack);
380 if (err)
381 goto err_out;
382
383 switch (fsm_state) {
384 case MLXSW_REG_MBCT_FSM_STATE_INI_IN_USE:
385 if (ini_wait_retries++ > MLXSW_LINECARD_INI_WAIT_RETRIES) {
386 NL_SET_ERR_MSG_MOD(extack, "Failed to wait for linecard INI to be not used");
387 goto err_out;
388 }
389 mdelay(MLXSW_LINECARD_INI_WAIT_MS);
390 goto query_ini_status;
391 default:
392 break;
393 }
394
395 mlxsw_reg_mbct_pack(linecard->mbct_pl, linecard->slot_index,
396 MLXSW_REG_MBCT_OP_ERASE_INI_IMAGE, 0,
397 false, false, NULL);
398 err = mlxsw_reg_write(mlxsw_core, MLXSW_REG(mbct),
399 linecard->mbct_pl);
400 if (err) {
401 NL_SET_ERR_MSG_MOD(extack, "Failed to erase linecard INI");
402 goto err_out;
403 }
404 mlxsw_reg_mbct_unpack(linecard->mbct_pl, NULL, &status, &fsm_state);
405 switch (status) {
406 case MLXSW_REG_MBCT_STATUS_ERASE_COMPLETE:
407 break;
408 default:
409 /* Should not happen */
410 fallthrough;
411 case MLXSW_REG_MBCT_STATUS_ERASE_FAILED:
412 NL_SET_ERR_MSG_MOD(extack, "Failed to erase linecard INI");
413 goto fix_fsm_err_out;
414 case MLXSW_REG_MBCT_STATUS_ERROR_INI_IN_USE:
415 NL_SET_ERR_MSG_MOD(extack, "Failed to erase linecard INI while being used");
416 goto fix_fsm_err_out;
417 }
418 goto out;
419
420 fix_fsm_err_out:
421 mlxsw_linecard_fix_fsm_state(linecard, fsm_state);
422 err_out:
423 mlxsw_linecard_provision_fail(linecard);
424 out:
425 mutex_unlock(&linecard->lock);
426 return err;
427 }
428
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[frank-w-bpi-r2-4.14:5.16-r2pro 5/35] drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:191:6: error: no previous prototype for 'mtk_wcn_consys_power_on'
by kernel test robot
tree: https://github.com/frank-w/BPI-R2-4.14 5.16-r2pro
head: 4308d050a46a2ee47866d2c6f0200462dfd84d18
commit: 8f3e42b3d0855dda8a76965487facfb915a4dd33 [5/35] mt6625l: add changes outside driver dir
config: arm-randconfig-r005-20211213 (https://download.01.org/0day-ci/archive/20211214/202112140833.joFdyNAx-lk...)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/frank-w/BPI-R2-4.14/commit/8f3e42b3d0855dda8a76965487f...
git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.16-r2pro
git checkout 8f3e42b3d0855dda8a76965487facfb915a4dd33
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/hwtracing/coresight/ drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/ drivers/misc/mediatek/connectivity/wlan/gen2/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:191:6: error: no previous prototype for 'mtk_wcn_consys_power_on' [-Werror=missing-prototypes]
191 | VOID mtk_wcn_consys_power_on(VOID)
| ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:207:6: error: no previous prototype for 'mtk_wcn_consys_power_off' [-Werror=missing-prototypes]
207 | VOID mtk_wcn_consys_power_off(VOID)
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:224:7: error: no previous prototype for 'mtk_wcn_consys_hw_reg_ctrl' [-Werror=missing-prototypes]
224 | INT32 mtk_wcn_consys_hw_reg_ctrl(UINT32 on, UINT32 co_clock_type)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:335:7: error: no previous prototype for 'mtk_wcn_consys_hw_gpio_ctrl' [-Werror=missing-prototypes]
335 | INT32 mtk_wcn_consys_hw_gpio_ctrl(UINT32 on)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:539:7: error: no previous prototype for 'mtk_wcn_consys_hw_restore' [-Werror=missing-prototypes]
539 | INT32 mtk_wcn_consys_hw_restore(struct device *device)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:592:5: error: no previous prototype for 'reserve_memory_consys_fn' [-Werror=missing-prototypes]
592 | int reserve_memory_consys_fn(struct reserved_mem *rmem)
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c: In function 'mtk_wcn_consys_get_pinctrl':
>> drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c:713:17: error: old-style function definition [-Werror=old-style-definition]
713 | struct pinctrl *mtk_wcn_consys_get_pinctrl()
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for MTK_GPS
Depends on ARM && GPS
Selected by
- MTK_GPS_SUPPORT && ARM
vim +/mtk_wcn_consys_power_on +191 drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/mtk_wcn_consys_hw.c
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 190
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 @191 VOID mtk_wcn_consys_power_on(VOID)
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 192 {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 193 INT32 iRet = -1;
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 194 iRet = pm_runtime_get_sync(&my_pdev->dev);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 195 if (iRet)
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 196 WMT_PLAT_ERR_FUNC("pm_runtime_get_sync() fail(%d)\n", iRet);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 197 else
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 198 WMT_PLAT_INFO_FUNC("pm_runtime_get_sync() CONSYS ok\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 199
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 200 iRet = device_init_wakeup(&my_pdev->dev, true);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 201 if (iRet)
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 202 WMT_PLAT_ERR_FUNC("device_init_wakeup(true) fail.\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 203 else
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 204 WMT_PLAT_INFO_FUNC("device_init_wakeup(true) CONSYS ok\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 205 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 206
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 @207 VOID mtk_wcn_consys_power_off(VOID)
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 208 {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 209 INT32 iRet = -1;
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 210
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 211 iRet = pm_runtime_put_sync(&my_pdev->dev);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 212 if (iRet)
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 213 WMT_PLAT_ERR_FUNC("pm_runtime_put_sync() fail.\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 214 else
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 215 WMT_PLAT_INFO_FUNC("pm_runtime_put_sync() CONSYS ok\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 216
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 217 iRet = device_init_wakeup(&my_pdev->dev, false);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 218 if (iRet)
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 219 WMT_PLAT_ERR_FUNC("device_init_wakeup(false) fail.\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 220 else
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 221 WMT_PLAT_INFO_FUNC("device_init_wakeup(false) CONSYS ok\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 222 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 223
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 @224 INT32 mtk_wcn_consys_hw_reg_ctrl(UINT32 on, UINT32 co_clock_type)
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 225 {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 226 UINT32 retry = 10;
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 227 UINT32 consysHwChipId = 0;
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 228
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 229 WMT_PLAT_DBG_FUNC("CONSYS-HW-REG-CTRL(0x%08x),start\n", on);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 230 if (on) {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 231 WMT_PLAT_DBG_FUNC("++\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 232 /*need PMIC driver provide new API protocol */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 233 /*1.AP power on VCN_1V8 LDO (with PMIC_WRAP API) VCN_1V8 */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 234 regulator_set_mode(reg_VCN18, REGULATOR_MODE_STANDBY);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 235 /* VOL_DEFAULT, VOL_1200, VOL_1300, VOL_1500, VOL_1800... */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 236 if (reg_VCN18) {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 237 regulator_set_voltage(reg_VCN18, 1800000, 1800000);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 238 if (regulator_enable(reg_VCN18))
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 239 WMT_PLAT_ERR_FUNC("enable VCN18 fail\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 240 else
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 241 WMT_PLAT_DBG_FUNC("enable VCN18 ok\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 242 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 243 udelay(150);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 244 if (co_clock_type) {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 245 /*step0,clk buf ctrl */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 246 WMT_PLAT_INFO_FUNC("co clock type(%d),turn on clk buf\n", co_clock_type);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 247 #if CONSYS_CLOCK_BUF_CTRL
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 248 clk_buf_ctrl(CLK_BUF_CONN, 1);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 249 #endif
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 250 /*if co-clock mode: */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 251 /*2.set VCN28 to SW control mode (with PMIC_WRAP API) */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 252 /*turn on VCN28 LDO only when FMSYS is activated" */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 253 regmap_update_bits(pmic_regmap, 0x41C, 0x1 << 14, 0x0 << 14);/*V28*/
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 254 } else {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 255 /*if NOT co-clock: */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 256 /*2.1.switch VCN28 to HW control mode (with PMIC_WRAP API) */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 257 regmap_update_bits(pmic_regmap, 0x41C, 0x1 << 14, 0x1 << 14);/*V28*/
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 258 /*2.2.turn on VCN28 LDO (with PMIC_WRAP API)" */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 259 /*fix vcn28 not balance warning */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 260 if (reg_VCN28) {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 261 regulator_set_voltage(reg_VCN28, 2800000, 2800000);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 262 if (regulator_enable(reg_VCN28))
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 263 WMT_PLAT_ERR_FUNC("enable VCN_2V8 fail!\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 264 else
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 265 WMT_PLAT_DBG_FUNC("enable VCN_2V8 ok\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 266 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 267 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 268
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 269 /*3.assert CONNSYS CPU SW reset 0x10007018 "[12]=1'b1 [31:24]=8'h88 (key)" */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 270 reset_control_reset(rstc);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 271 mtk_wcn_consys_power_on();
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 272 /*11.26M is ready now, delay 10us for mem_pd de-assert */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 273 udelay(10);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 274 /*enable AP bus clock : connmcu_bus_pd API: enable_clock() ++?? */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 275 clk_prepare_enable(clk_infra_conn_main);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 276 WMT_PLAT_DBG_FUNC("[CCF]enable clk_infra_conn_main\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 277 /*12.poll CONNSYS CHIP ID until chipid is returned 0x18070008 */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 278 while (retry-- > 0) {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 279 consysHwChipId = CONSYS_REG_READ(conn_reg.mcu_base + CONSYS_CHIP_ID_OFFSET) - 0xf6d;
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 280
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 281 if ((consysHwChipId == 0x0321) || (consysHwChipId == 0x0335) || (consysHwChipId == 0x0337)) {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 282 WMT_PLAT_INFO_FUNC("retry(%d)consys chipId(0x%08x)\n", retry, consysHwChipId);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 283 break;
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 284 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 285 if ((consysHwChipId == 0x8163) || (consysHwChipId == 0x8127) || (consysHwChipId == 0x7623)) {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 286 WMT_PLAT_INFO_FUNC("retry(%d)consys chipId(0x%08x)\n", retry, consysHwChipId);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 287 break;
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 288 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 289
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 290 WMT_PLAT_ERR_FUNC("Read CONSYS chipId(0x%08x)", consysHwChipId);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 291 msleep(20);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 292 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 293
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 294 if ((0 == retry) || (0 == consysHwChipId))
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 295 WMT_PLAT_ERR_FUNC("Maybe has a consys power on issue,(0x%08x)\n", consysHwChipId);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 296
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 297 msleep(40);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 298
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 299 } else {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 300
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 301 clk_disable_unprepare(clk_infra_conn_main);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 302 WMT_PLAT_DBG_FUNC("[CCF] clk_disable_unprepare(clk_infra_conn_main) calling\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 303 mtk_wcn_consys_power_off();
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 304
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 305 if (co_clock_type) {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 306 /*VCN28 has been turned off by GPS OR FM */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 307 #if CONSYS_CLOCK_BUF_CTRL
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 308 clk_buf_ctrl(CLK_BUF_CONN, 0);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 309 #endif
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 310 } else {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 311 regmap_update_bits(pmic_regmap, 0x41C, 0x1 << 14, 0x0 << 14);/*V28*/
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 312 /*turn off VCN28 LDO (with PMIC_WRAP API)" */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 313 if (reg_VCN28) {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 314 if (regulator_disable(reg_VCN28))
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 315 WMT_PLAT_ERR_FUNC("disable VCN_2V8 fail!\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 316 else
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 317 WMT_PLAT_DBG_FUNC("disable VCN_2V8 ok\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 318 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 319 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 320
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 321 /*AP power off MT6625L VCN_1V8 LDO */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 322 regulator_set_mode(reg_VCN18, REGULATOR_MODE_STANDBY);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 323 if (reg_VCN18) {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 324 if (regulator_disable(reg_VCN18))
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 325 WMT_PLAT_ERR_FUNC("disable VCN_1V8 fail!\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 326 else
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 327 WMT_PLAT_DBG_FUNC("disable VCN_1V8 ok\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 328 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 329
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 330 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 331 WMT_PLAT_DBG_FUNC("CONSYS-HW-REG-CTRL(0x%08x),finish\n", on);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 332 return 0;
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 333 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 334
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 @335 INT32 mtk_wcn_consys_hw_gpio_ctrl(UINT32 on)
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 336 {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 337 INT32 iRet = 0;
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 338
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 339 WMT_PLAT_DBG_FUNC("CONSYS-HW-GPIO-CTRL(0x%08x), start\n", on);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 340
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 341 if (on) {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 342
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 343 /* TODO: [FixMe][GeorgeKuo] double check if BGF_INT is implemented ok */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 344 /* iRet += wmt_plat_gpio_ctrl(PIN_BGF_EINT, PIN_STA_MUX); */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 345 iRet += wmt_plat_eirq_ctrl(PIN_BGF_EINT, PIN_STA_INIT);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 346 iRet += wmt_plat_eirq_ctrl(PIN_BGF_EINT, PIN_STA_EINT_DIS);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 347 WMT_PLAT_DBG_FUNC("CONSYS-HW, BGF IRQ registered and disabled\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 348
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 349 } else {
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 350
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 351 /* set bgf eint/all eint to deinit state, namely input low state */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 352 iRet += wmt_plat_eirq_ctrl(PIN_BGF_EINT, PIN_STA_EINT_DIS);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 353 iRet += wmt_plat_eirq_ctrl(PIN_BGF_EINT, PIN_STA_DEINIT);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 354 WMT_PLAT_DBG_FUNC("CONSYS-HW, BGF IRQ unregistered and disabled\n");
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 355 /* iRet += wmt_plat_gpio_ctrl(PIN_BGF_EINT, PIN_STA_DEINIT); */
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 356 }
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 357 WMT_PLAT_DBG_FUNC("CONSYS-HW-GPIO-CTRL(0x%08x), finish\n", on);
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 358 return iRet;
d03a149ef0a8e6 Frank Wunderlich 2021-08-29 359
:::::: The code at line 191 was first introduced by commit
:::::: d03a149ef0a8e6180c7c086fc189dedb7ecb8af5 mt6625l: add driver folder from 5.14
:::::: TO: Frank Wunderlich <frank-w(a)public-files.de>
:::::: CC: Frank Wunderlich <frank-w(a)public-files.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[frank-w-bpi-r2-4.14:5.16-r2pro 4/35] cc1: error: arch/arm/mach-mt7623//dct/dct: No such file or directory
by kernel test robot
tree: https://github.com/frank-w/BPI-R2-4.14 5.16-r2pro
head: 4308d050a46a2ee47866d2c6f0200462dfd84d18
commit: 9651c96de215b95165ecaaedc206074cdfb15123 [4/35] mt6625l: include wifi-code
config: arm-randconfig-r005-20211213 (https://download.01.org/0day-ci/archive/20211214/202112140635.lHw7RZN6-lk...)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/frank-w/BPI-R2-4.14/commit/9651c96de215b95165ecaaedc20...
git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.16-r2pro
git checkout 9651c96de215b95165ecaaedc206074cdfb15123
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/hwtracing/coresight/ drivers/misc/mediatek/btif/common/ drivers/misc/mediatek/connectivity/common/common_detect/ drivers/misc/mediatek/connectivity/common/conn_soc/core/ drivers/misc/mediatek/connectivity/common/conn_soc/linux/pri/ drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/ drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/ drivers/misc/mediatek/connectivity/wlan/gen2/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from drivers/misc/mediatek/btif/common/plat_inc/btif_pub.h:17,
from drivers/misc/mediatek/btif/common/mtk_btif.c:37:
drivers/misc/mediatek/btif/common/plat_inc/plat_common.h: In function 'hal_log_print':
>> drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:9: warning: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
64 | vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args);
| ^~~~~~~~~
drivers/misc/mediatek/btif/common/mtk_btif.c: In function 'mtk_btif_restore_noirq':
>> drivers/misc/mediatek/btif/common/mtk_btif.c:379:13: warning: variable 'i_ret' set but not used [-Wunused-but-set-variable]
379 | int i_ret = 0;
| ^~~~~
drivers/misc/mediatek/btif/common/mtk_btif.c: In function 'flag_store':
>> drivers/misc/mediatek/btif/common/mtk_btif.c:773:13: warning: variable 'result' set but not used [-Wunused-but-set-variable]
773 | int result = 0;
| ^~~~~~
drivers/misc/mediatek/btif/common/mtk_btif.c: In function 'btif_log_buf_dmp_out':
>> drivers/misc/mediatek/btif/common/mtk_btif.c:3029:24: warning: variable 'p_buf' set but not used [-Wunused-but-set-variable]
3029 | unsigned char *p_buf = NULL;
| ^~~~~
--
In file included from drivers/misc/mediatek/btif/common/plat_inc/btif_pub.h:17,
from drivers/misc/mediatek/btif/common/inc/mtk_btif.h:37,
from drivers/misc/mediatek/btif/common/mtk_btif_exp.c:20:
drivers/misc/mediatek/btif/common/plat_inc/plat_common.h: In function 'hal_log_print':
>> drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:9: warning: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
64 | vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args);
| ^~~~~~~~~
--
In file included from drivers/misc/mediatek/btif/common/plat_inc/btif_dma_pub.h:19,
from drivers/misc/mediatek/btif/common/plat_inc/btif_dma_priv.h:18,
from drivers/misc/mediatek/btif/common/btif_dma_plat.c:22:
drivers/misc/mediatek/btif/common/plat_inc/plat_common.h: In function 'hal_log_print':
>> drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:9: warning: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
64 | vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args);
| ^~~~~~~~~
drivers/misc/mediatek/btif/common/btif_dma_plat.c: In function 'hal_dma_pm_ops':
>> drivers/misc/mediatek/btif/common/btif_dma_plat.c:1313:38: warning: variable 'flag' set but not used [-Wunused-but-set-variable]
1313 | unsigned int flag = 0;
| ^~~~
--
In file included from drivers/misc/mediatek/btif/common/plat_inc/btif_pub.h:17,
from drivers/misc/mediatek/btif/common/btif_plat.c:21:
drivers/misc/mediatek/btif/common/plat_inc/plat_common.h: In function 'hal_log_print':
>> drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:9: warning: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
64 | vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args);
| ^~~~~~~~~
drivers/misc/mediatek/btif/common/btif_plat.c: In function 'hal_btif_hw_init':
>> drivers/misc/mediatek/btif/common/btif_plat.c:516:39: warning: implicit conversion from 'enum <anonymous>' to 'ENUM_BTIF_MODE' {aka 'enum _ENUM_BTIF_MODE_'} [-Wenum-conversion]
516 | hal_btif_tx_mode_ctrl(p_btif, false);
| ^~~~~
drivers/misc/mediatek/btif/common/btif_plat.c:518:39: warning: implicit conversion from 'enum <anonymous>' to 'ENUM_BTIF_MODE' {aka 'enum _ENUM_BTIF_MODE_'} [-Wenum-conversion]
518 | hal_btif_rx_mode_ctrl(p_btif, false);
| ^~~~~
drivers/misc/mediatek/btif/common/btif_plat.c: In function 'hal_btif_pm_ops':
>> drivers/misc/mediatek/btif/common/btif_plat.c:1343:38: warning: variable 'flag' set but not used [-Wunused-but-set-variable]
1343 | unsigned int flag = 0;
| ^~~~
--
>> cc1: error: arch/arm/mach-mt7623//dct/dct: No such file or directory [-Werror=missing-include-dirs]
cc1: all warnings being treated as errors
--
>> cc1: error: arch/arm/mach-mt7623//dct/dct: No such file or directory [-Werror=missing-include-dirs]
>> drivers/misc/mediatek/connectivity/common/common_detect/wmt_detect_pwr.c:51:5: error: no previous prototype for '_wmt_detect_output_low' [-Werror=missing-prototypes]
51 | int _wmt_detect_output_low(unsigned int id)
| ^~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
>> cc1: warning: drivers/misc/mediatek/base/power/include: No such file or directory [-Wmissing-include-dirs]
In file included from drivers/misc/mediatek/connectivity/wlan/gen2/include/mgmt/scan.h:269,
from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:237,
from drivers/misc/mediatek/connectivity/wlan/gen2/common/dump.c:47:
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:152:1: warning: 'lstats_vendor_test_policy' defined but not used [-Wunused-const-variable=]
152 | lstats_vendor_test_policy[LSTATS_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:140:1: warning: 'rtt_vendor_test_policy' defined but not used [-Wunused-const-variable=]
140 | rtt_vendor_test_policy[RTT_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:120:1: warning: 'gscan_vendor_test_policy' defined but not used [-Wunused-const-variable=]
120 | gscan_vendor_test_policy[GSCAN_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:93:1: warning: 'wifi_vendor_test_policy' defined but not used [-Wunused-const-variable=]
93 | wifi_vendor_test_policy[WIFI_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_kal.h:543,
from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_os.h:594,
from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:171,
from drivers/misc/mediatek/connectivity/wlan/gen2/common/dump.c:47:
drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:935:21: warning: 'aucRateTableSize' defined but not used [-Wunused-const-variable=]
935 | static const UINT_8 aucRateTableSize[PREAMBLE_OPTION_NUM] = {
| ^~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:878:21: warning: 'aucRateIndex2RateCode' defined but not used [-Wunused-const-variable=]
878 | static const UINT_8 aucRateIndex2RateCode[PREAMBLE_OPTION_NUM][RATE_NUM] = {
| ^~~~~~~~~~~~~~~~~~~~~
--
>> cc1: warning: drivers/misc/mediatek/base/power/include: No such file or directory [-Wmissing-include-dirs]
--
>> cc1: warning: drivers/misc/mediatek/base/power/include: No such file or directory [-Wmissing-include-dirs]
In file included from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_kal.h:543,
from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_os.h:594,
from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/hif/ahb/mt8127/ahb_pdma.c:87:
drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:935:21: warning: 'aucRateTableSize' defined but not used [-Wunused-const-variable=]
935 | static const UINT_8 aucRateTableSize[PREAMBLE_OPTION_NUM] = {
| ^~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:878:21: warning: 'aucRateIndex2RateCode' defined but not used [-Wunused-const-variable=]
878 | static const UINT_8 aucRateIndex2RateCode[PREAMBLE_OPTION_NUM][RATE_NUM] = {
| ^~~~~~~~~~~~~~~~~~~~~
--
>> cc1: warning: drivers/misc/mediatek/base/power/include: No such file or directory [-Wmissing-include-dirs]
drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/rate.c:98:21: warning: 'aucDefaultAckCtsRateIndex' defined but not used [-Wunused-const-variable=]
98 | static const UINT_8 aucDefaultAckCtsRateIndex[RATE_NUM] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/misc/mediatek/connectivity/wlan/gen2/include/mgmt/scan.h:269,
from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:237,
from drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/rate.c:73:
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:152:1: warning: 'lstats_vendor_test_policy' defined but not used [-Wunused-const-variable=]
152 | lstats_vendor_test_policy[LSTATS_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:140:1: warning: 'rtt_vendor_test_policy' defined but not used [-Wunused-const-variable=]
140 | rtt_vendor_test_policy[RTT_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:120:1: warning: 'gscan_vendor_test_policy' defined but not used [-Wunused-const-variable=]
120 | gscan_vendor_test_policy[GSCAN_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:93:1: warning: 'wifi_vendor_test_policy' defined but not used [-Wunused-const-variable=]
93 | wifi_vendor_test_policy[WIFI_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_kal.h:543,
from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_os.h:594,
from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:171,
from drivers/misc/mediatek/connectivity/wlan/gen2/mgmt/rate.c:73:
drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:935:21: warning: 'aucRateTableSize' defined but not used [-Wunused-const-variable=]
935 | static const UINT_8 aucRateTableSize[PREAMBLE_OPTION_NUM] = {
| ^~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:878:21: warning: 'aucRateIndex2RateCode' defined but not used [-Wunused-const-variable=]
878 | static const UINT_8 aucRateIndex2RateCode[PREAMBLE_OPTION_NUM][RATE_NUM] = {
| ^~~~~~~~~~~~~~~~~~~~~
--
>> cc1: warning: drivers/misc/mediatek/base/power/include: No such file or directory [-Wmissing-include-dirs]
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c: In function 'wlanSendCommand':
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:2004:21: warning: variable 'prTxCtrl' set but not used [-Wunused-but-set-variable]
2004 | P_TX_CTRL_T prTxCtrl;
| ^~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c: In function 'wlanSendNicPowerCtrlCmd':
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:2575:23: warning: variable 'prGlueInfo' set but not used [-Wunused-but-set-variable]
2575 | P_GLUE_INFO_T prGlueInfo;
| ^~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c: In function 'wlanProcessQueuedSwRfb':
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:3270:21: warning: variable 'prRxCtrl' set but not used [-Wunused-but-set-variable]
3270 | P_RX_CTRL_T prRxCtrl;
| ^~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:3269:21: warning: variable 'prTxCtrl' set but not used [-Wunused-but-set-variable]
3269 | P_TX_CTRL_T prTxCtrl;
| ^~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c: At top level:
>> drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:5431:1: warning: no previous prototype for 'wlanoidQueryACSChannelList' [-Wmissing-prototypes]
5431 | wlanoidQueryACSChannelList(IN P_ADAPTER_T prAdapter,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c: In function 'wlanCfgFindNextToken':
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:5833:36: warning: this statement may fall through [-Wimplicit-fallthrough=]
5833 | if (x[1] != '\n') {
| ^
drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:5838:25: note: here
5838 | case '\n':
| ^~~~
In file included from drivers/misc/mediatek/connectivity/wlan/gen2/include/mgmt/scan.h:269,
from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:237,
from drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:967:
At top level:
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:152:1: warning: 'lstats_vendor_test_policy' defined but not used [-Wunused-const-variable=]
152 | lstats_vendor_test_policy[LSTATS_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:140:1: warning: 'rtt_vendor_test_policy' defined but not used [-Wunused-const-variable=]
140 | rtt_vendor_test_policy[RTT_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:120:1: warning: 'gscan_vendor_test_policy' defined but not used [-Wunused-const-variable=]
120 | gscan_vendor_test_policy[GSCAN_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_vendor.h:93:1: warning: 'wifi_vendor_test_policy' defined but not used [-Wunused-const-variable=]
93 | wifi_vendor_test_policy[WIFI_SUBCMD_MAX + 1] = {
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_kal.h:543,
from drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/include/gl_os.h:594,
from drivers/misc/mediatek/connectivity/wlan/gen2/include/precomp.h:171,
from drivers/misc/mediatek/connectivity/wlan/gen2/common/wlan_lib.c:967:
drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:935:21: warning: 'aucRateTableSize' defined but not used [-Wunused-const-variable=]
935 | static const UINT_8 aucRateTableSize[PREAMBLE_OPTION_NUM] = {
| ^~~~~~~~~~~~~~~~
drivers/misc/mediatek/connectivity/wlan/gen2/include/nic/wlan_def.h:878:21: warning: 'aucRateIndex2RateCode' defined but not used [-Wunused-const-variable=]
878 | static const UINT_8 aucRateIndex2RateCode[PREAMBLE_OPTION_NUM][RATE_NUM] = {
| ^~~~~~~~~~~~~~~~~~~~~
..
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for MTK_GPS
Depends on ARM && GPS
Selected by
- MTK_GPS_SUPPORT && ARM
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[kevin78:percpu-cleanup 3/4] include/linux/kern_levels.h:5:25: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'long long unsigned int'
by kernel test robot
tree: https://github.com/kevin78/linux.git percpu-cleanup
head: ec8bef0e65982bb71c931efddde0fca6418e02ba
commit: c3ebf9a83e686d6d3dc8b571493219a64558d536 [3/4] mm: percpu: Add generic pcpu_fc_alloc/free funciton
config: arm64-defconfig (https://download.01.org/0day-ci/archive/20211214/202112140613.AxIBwwbd-lk...)
compiler: aarch64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/kevin78/linux/commit/c3ebf9a83e686d6d3dc8b571493219a64...
git remote add kevin78 https://github.com/kevin78/linux.git
git fetch --no-tags kevin78 percpu-cleanup
git checkout c3ebf9a83e686d6d3dc8b571493219a64558d536
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash
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 >>):
In file included from include/linux/kernel.h:20,
from include/linux/cpumask.h:10,
from mm/percpu.c:72:
mm/percpu.c: In function 'pcpu_fc_alloc':
>> include/linux/kern_levels.h:5:25: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'long long unsigned int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:422:25: note: in definition of macro 'printk_index_wrap'
422 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/linux/printk.h:132:17: note: in expansion of macro 'printk'
132 | printk(fmt, ##__VA_ARGS__); \
| ^~~~~~
include/linux/printk.h:580:9: note: in expansion of macro 'no_printk'
580 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
include/linux/kern_levels.h:15:25: note: in expansion of macro 'KERN_SOH'
15 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */
| ^~~~~~~~
include/linux/printk.h:580:19: note: in expansion of macro 'KERN_DEBUG'
580 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~
mm/percpu.c:3011:17: note: in expansion of macro 'pr_debug'
3011 | pr_debug("per cpu data for cpu%d %lu bytes at %016lx\n",
| ^~~~~~~~
include/linux/kern_levels.h:5:25: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'long long unsigned int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:422:25: note: in definition of macro 'printk_index_wrap'
422 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/linux/printk.h:132:17: note: in expansion of macro 'printk'
132 | printk(fmt, ##__VA_ARGS__); \
| ^~~~~~
include/linux/printk.h:580:9: note: in expansion of macro 'no_printk'
580 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
include/linux/kern_levels.h:15:25: note: in expansion of macro 'KERN_SOH'
15 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */
| ^~~~~~~~
include/linux/printk.h:580:19: note: in expansion of macro 'KERN_DEBUG'
580 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~
mm/percpu.c:3018:17: note: in expansion of macro 'pr_debug'
3018 | pr_debug("per cpu data for cpu%d %lu bytes on node%d at %016lx\n",
| ^~~~~~~~
vim +5 include/linux/kern_levels.h
314ba3520e513a Joe Perches 2012-07-30 4
04d2c8c83d0e3a Joe Perches 2012-07-30 @5 #define KERN_SOH "\001" /* ASCII Start Of Header */
04d2c8c83d0e3a Joe Perches 2012-07-30 6 #define KERN_SOH_ASCII '\001'
04d2c8c83d0e3a Joe Perches 2012-07-30 7
:::::: The code at line 5 was first introduced by commit
:::::: 04d2c8c83d0e3ac5f78aeede51babb3236200112 printk: convert the format for KERN_<LEVEL> to a 2 byte pattern
:::::: TO: Joe Perches <joe(a)perches.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
drivers/remoteproc/imx_rproc.c:413:17: sparse: sparse: cast removes address space '__iomem' of expression
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 2585cf9dfaaddf00b069673f27bb3f8530e2039c
commit: 5e4c1243071d29ed5511121d044116b942ba6a7b remoteproc: imx_rproc: support remote cores booted before Linux Kernel
date: 8 months ago
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20211214/202112140608.W1hmJ3JS-lk...)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 5e4c1243071d29ed5511121d044116b942ba6a7b
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm SHELL=/bin/bash drivers/dma/ drivers/gpu/drm/tegra/ drivers/net/wireless/mediatek/mt76/mt7915/ drivers/remoteproc/ drivers/staging/ fs/proc/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/remoteproc/imx_rproc.c:299:12: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *va @@ got void [noderef] __iomem * @@
drivers/remoteproc/imx_rproc.c:299:12: sparse: expected void *va
drivers/remoteproc/imx_rproc.c:299:12: sparse: got void [noderef] __iomem *
drivers/remoteproc/imx_rproc.c:316:20: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *iomem_cookie @@ got void *va @@
drivers/remoteproc/imx_rproc.c:316:20: sparse: expected void volatile [noderef] __iomem *iomem_cookie
drivers/remoteproc/imx_rproc.c:316:20: sparse: got void *va
>> drivers/remoteproc/imx_rproc.c:413:17: sparse: sparse: cast removes address space '__iomem' of expression
vim +/__iomem +413 drivers/remoteproc/imx_rproc.c
403
404 static struct resource_table *imx_rproc_get_loaded_rsc_table(struct rproc *rproc, size_t *table_sz)
405 {
406 struct imx_rproc *priv = rproc->priv;
407
408 /* The resource table has already been mapped in imx_rproc_addr_init */
409 if (!priv->rsc_table)
410 return NULL;
411
412 *table_sz = SZ_1K;
> 413 return (struct resource_table *)priv->rsc_table;
414 }
415
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
Re: [PATCH v2 3/4] coresight: etm4x: Don't trace PID for non-root PID namespace
by kernel test robot
Hi Leo,
I love your patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.16-rc5]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Leo-Yan/coresight-etm-Correct-PI...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 2585cf9dfaaddf00b069673f27bb3f8530e2039c
config: arm64-randconfig-r034-20211213 (https://download.01.org/0day-ci/archive/20211214/202112140527.RSkgSFCc-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project b6a2ddb6c8ac29412b1361810972e15221fa021c)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/0day-ci/linux/commit/dd716cd12b2f0e47fcc2b0e3e9172e4e7...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Leo-Yan/coresight-etm-Correct-PID-tracing-for-non-root-namespace/20211213-201632
git checkout dd716cd12b2f0e47fcc2b0e3e9172e4e70ad4877
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/hwtracing/coresight/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/hwtracing/coresight/coresight-etm4x-core.c:661:6: error: implicit declaration of function 'task_is_in_init_pid_ns' [-Werror,-Wimplicit-function-declaration]
task_is_in_init_pid_ns(current))
^
1 error generated.
vim +/task_is_in_init_pid_ns +661 drivers/hwtracing/coresight/coresight-etm4x-core.c
606
607 static int etm4_parse_event_config(struct coresight_device *csdev,
608 struct perf_event *event)
609 {
610 int ret = 0;
611 struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent);
612 struct etmv4_config *config = &drvdata->config;
613 struct perf_event_attr *attr = &event->attr;
614 unsigned long cfg_hash;
615 int preset;
616
617 /* Clear configuration from previous run */
618 memset(config, 0, sizeof(struct etmv4_config));
619
620 if (attr->exclude_kernel)
621 config->mode = ETM_MODE_EXCL_KERN;
622
623 if (attr->exclude_user)
624 config->mode = ETM_MODE_EXCL_USER;
625
626 /* Always start from the default config */
627 etm4_set_default_config(config);
628
629 /* Configure filters specified on the perf cmd line, if any. */
630 ret = etm4_set_event_filters(drvdata, event);
631 if (ret)
632 goto out;
633
634 /* Go from generic option to ETMv4 specifics */
635 if (attr->config & BIT(ETM_OPT_CYCACC)) {
636 config->cfg |= BIT(4);
637 /* TRM: Must program this for cycacc to work */
638 config->ccctlr = ETM_CYC_THRESHOLD_DEFAULT;
639 }
640 if (attr->config & BIT(ETM_OPT_TS)) {
641 /*
642 * Configure timestamps to be emitted at regular intervals in
643 * order to correlate instructions executed on different CPUs
644 * (CPU-wide trace scenarios).
645 */
646 ret = etm4_config_timestamp_event(drvdata);
647
648 /*
649 * No need to go further if timestamp intervals can't
650 * be configured.
651 */
652 if (ret)
653 goto out;
654
655 /* bit[11], Global timestamp tracing bit */
656 config->cfg |= BIT(11);
657 }
658
659 /* Only trace contextID when runs in root PID namespace */
660 if ((attr->config & BIT(ETM_OPT_CTXTID)) &&
> 661 task_is_in_init_pid_ns(current))
662 /* bit[6], Context ID tracing bit */
663 config->cfg |= BIT(ETM4_CFG_BIT_CTXTID);
664
665 /*
666 * If set bit ETM_OPT_CTXTID2 in perf config, this asks to trace VMID
667 * for recording CONTEXTIDR_EL2. Do not enable VMID tracing if the
668 * kernel is not running in EL2.
669 */
670 if (attr->config & BIT(ETM_OPT_CTXTID2)) {
671 if (!is_kernel_in_hyp_mode()) {
672 ret = -EINVAL;
673 goto out;
674 }
675
676 /* Only trace virtual contextID when runs in root PID namespace */
677 if (task_is_in_init_pid_ns(current))
678 config->cfg |= BIT(ETM4_CFG_BIT_VMID) |
679 BIT(ETM4_CFG_BIT_VMID_OPT);
680 }
681
682 /* return stack - enable if selected and supported */
683 if ((attr->config & BIT(ETM_OPT_RETSTK)) && drvdata->retstack)
684 /* bit[12], Return stack enable bit */
685 config->cfg |= BIT(12);
686
687 /*
688 * Set any selected configuration and preset.
689 *
690 * This extracts the values of PMU_FORMAT_ATTR(configid) and PMU_FORMAT_ATTR(preset)
691 * in the perf attributes defined in coresight-etm-perf.c.
692 * configid uses bits 63:32 of attr->config2, preset uses bits 3:0 of attr->config.
693 * A zero configid means no configuration active, preset = 0 means no preset selected.
694 */
695 if (attr->config2 & GENMASK_ULL(63, 32)) {
696 cfg_hash = (u32)(attr->config2 >> 32);
697 preset = attr->config & 0xF;
698 ret = cscfg_csdev_enable_active_config(csdev, cfg_hash, preset);
699 }
700
701 out:
702 return ret;
703 }
704
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[jpirko-mlxsw:linecards 55/109] drivers/net/ethernet/mellanox/mlxsw/core_linecards.c:366:33: warning: variable 'linecards' set but not used
by kernel test robot
tree: https://github.com/jpirko/linux_mlxsw linecards
head: 2399de99a931630e05915fbcb4f84ca21a8e000a
commit: 8693f5ee04deacc07510585fee350a2e30f7d4fc [55/109] mlxsw: core_linecards: Add line card objects and implement provisioning
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20211214/202112140518.H94LqdFM-lk...)
compiler: m68k-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/jpirko/linux_mlxsw/commit/8693f5ee04deacc07510585fee35...
git remote add jpirko-mlxsw https://github.com/jpirko/linux_mlxsw
git fetch --no-tags jpirko-mlxsw linecards
git checkout 8693f5ee04deacc07510585fee350a2e30f7d4fc
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash drivers/net/ethernet/mellanox/mlxsw/
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 >>):
drivers/net/ethernet/mellanox/mlxsw/core_linecards.c: In function 'mlxsw_linecard_unprovision':
>> drivers/net/ethernet/mellanox/mlxsw/core_linecards.c:366:33: warning: variable 'linecards' set but not used [-Wunused-but-set-variable]
366 | struct mlxsw_linecards *linecards;
| ^~~~~~~~~
vim +/linecards +366 drivers/net/ethernet/mellanox/mlxsw/core_linecards.c
359
360 static int mlxsw_linecard_unprovision(struct devlink_linecard *devlink_linecard,
361 void *priv,
362 struct netlink_ext_ack *extack)
363 {
364 enum mlxsw_reg_mbct_fsm_state fsm_state;
365 struct mlxsw_linecard *linecard = priv;
> 366 struct mlxsw_linecards *linecards;
367 enum mlxsw_reg_mbct_status status;
368 unsigned int ini_wait_retries = 0;
369 struct mlxsw_core *mlxsw_core;
370 int err;
371
372 mutex_lock(&linecard->lock);
373
374 linecards = linecard->linecards;
375 mlxsw_core = linecard->linecards->mlxsw_core;
376
377 query_ini_status:
378 err = mlxsw_linecard_query_status(linecard, &status,
379 &fsm_state, extack);
380 if (err)
381 goto err_out;
382
383 switch (fsm_state) {
384 case MLXSW_REG_MBCT_FSM_STATE_INI_IN_USE:
385 if (ini_wait_retries++ > MLXSW_LINECARD_INI_WAIT_RETRIES) {
386 NL_SET_ERR_MSG_MOD(extack, "Failed to wait for linecard INI to be not used");
387 goto err_out;
388 }
389 mdelay(MLXSW_LINECARD_INI_WAIT_MS);
390 goto query_ini_status;
391 default:
392 break;
393 }
394
395 mlxsw_reg_mbct_pack(linecard->mbct_pl, linecard->slot_index,
396 MLXSW_REG_MBCT_OP_ERASE_INI_IMAGE, 0,
397 false, false, NULL);
398 err = mlxsw_reg_write(mlxsw_core, MLXSW_REG(mbct),
399 linecard->mbct_pl);
400 if (err) {
401 NL_SET_ERR_MSG_MOD(extack, "Failed to erase linecard INI");
402 goto err_out;
403 }
404 mlxsw_reg_mbct_unpack(linecard->mbct_pl, NULL, &status, &fsm_state);
405 switch (status) {
406 case MLXSW_REG_MBCT_STATUS_ERASE_COMPLETE:
407 break;
408 default:
409 /* Should not happen */
410 fallthrough;
411 case MLXSW_REG_MBCT_STATUS_ERASE_FAILED:
412 NL_SET_ERR_MSG_MOD(extack, "Failed to erase linecard INI");
413 goto fix_fsm_err_out;
414 case MLXSW_REG_MBCT_STATUS_ERROR_INI_IN_USE:
415 NL_SET_ERR_MSG_MOD(extack, "Failed to erase linecard INI while being used");
416 goto fix_fsm_err_out;
417 }
418 goto out;
419
420 fix_fsm_err_out:
421 mlxsw_linecard_fix_fsm_state(linecard, fsm_state);
422 err_out:
423 mlxsw_linecard_provision_fail(linecard);
424 out:
425 mutex_unlock(&linecard->lock);
426 return err;
427 }
428
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
【Amazon】アカウント情報をご確認ください
by Amazon.co.jp
Amazonお客様
平素は、Amazonをご利用いただき、誠にありがとうございます。
誰かがあなたのAmazonアカウントにログインして商品を購入しようとしていることに注意してください。
クレジットカードの盗難を防ぐため、ログイン後すぐに情報を更新してください。
あなたが24時間以内に確認できない場合は申し訳ありません。あなたの財産の安全のために、このアカウントの使用を制限します。あらかじめご理解ください。
本件についてご迷惑をおかけしましたことをお詫び申し上げます。
何卒、よろしくお願い申し上げます。
お客様の Amazon アカウント
アカウント所有権の証明をご自身で行う場合は、Amazon 管理コンソールにログインし、所定の手順でお手続きください。アカウント所有権の証明についてのヘルプセンター記事も併せてご参照ください。
状態:
異常は更新待ちです
Amazonクリック&ログイン
Amazonのまたのご利用をお待ちしております。
© 1996-2021, Amazon. Inc. or its affiliates
9 months, 1 week
[kevin78:percpu-cleanup 3/4] <command-line>: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'phys_addr_t' {aka 'long long unsigned int'}
by kernel test robot
tree: https://github.com/kevin78/linux.git percpu-cleanup
head: ec8bef0e65982bb71c931efddde0fca6418e02ba
commit: c3ebf9a83e686d6d3dc8b571493219a64558d536 [3/4] mm: percpu: Add generic pcpu_fc_alloc/free funciton
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20211214/202112140527.SRPXMPJU-lk...)
compiler: aarch64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/kevin78/linux/commit/c3ebf9a83e686d6d3dc8b571493219a64...
git remote add kevin78 https://github.com/kevin78/linux.git
git fetch --no-tags kevin78 percpu-cleanup
git checkout c3ebf9a83e686d6d3dc8b571493219a64558d536
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash
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 >>):
mm/percpu.c: In function 'pcpu_fc_alloc':
>> <command-line>: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'phys_addr_t' {aka 'long long unsigned int'} [-Wformat=]
mm/percpu.c:69:21: note: in expansion of macro 'KBUILD_MODNAME'
69 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
include/linux/dynamic_debug.h:134:29: note: in expansion of macro 'pr_fmt'
134 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:152:9: note: in expansion of macro '__dynamic_func_call'
152 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:162:9: note: in expansion of macro '_dynamic_func_call'
162 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:574:9: note: in expansion of macro 'dynamic_pr_debug'
574 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
mm/percpu.c:3011:17: note: in expansion of macro 'pr_debug'
3011 | pr_debug("per cpu data for cpu%d %lu bytes at %016lx\n",
| ^~~~~~~~
<command-line>: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'phys_addr_t' {aka 'long long unsigned int'} [-Wformat=]
mm/percpu.c:69:21: note: in expansion of macro 'KBUILD_MODNAME'
69 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
include/linux/dynamic_debug.h:134:29: note: in expansion of macro 'pr_fmt'
134 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:152:9: note: in expansion of macro '__dynamic_func_call'
152 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:162:9: note: in expansion of macro '_dynamic_func_call'
162 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:574:9: note: in expansion of macro 'dynamic_pr_debug'
574 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
mm/percpu.c:3018:17: note: in expansion of macro 'pr_debug'
3018 | pr_debug("per cpu data for cpu%d %lu bytes on node%d at %016lx\n",
| ^~~~~~~~
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[chrome-os:chromeos-5.15 1631/2827] kernel/watchdog.c:250: undefined reference to `watchdog_update_hrtimer_threshold'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.15
head: c0df759bbc318d8927514e74bc86380284c7109a
commit: df12be153ec235a8f19900408becaaa1d978b792 [1631/2827] CHROMIUM: hardlockup: detect hard lockups without NMIs using secondary cpus
config: x86_64-randconfig-a001-20211212 (https://download.01.org/0day-ci/archive/20211214/202112140532.YAoON1jf-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.15
git checkout df12be153ec235a8f19900408becaaa1d978b792
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: kernel/watchdog.o: in function `set_sample_period':
>> kernel/watchdog.c:250: undefined reference to `watchdog_update_hrtimer_threshold'
vim +250 kernel/watchdog.c
58687acba59266 Don Zickus 2010-05-07 239
0f34c400914f16 Chuansheng Liu 2012-12-17 240 static void set_sample_period(void)
58687acba59266 Don Zickus 2010-05-07 241 {
58687acba59266 Don Zickus 2010-05-07 242 /*
586692a5a5fc57 Mandeep Singh Baines 2011-05-22 243 * convert watchdog_thresh from seconds to ns
86f5e6a7b19272 Fernando Luis Vázquez Cao 2012-02-09 244 * the divide by 5 is to give hrtimer several chances (two
86f5e6a7b19272 Fernando Luis Vázquez Cao 2012-02-09 245 * or three with the current relation between the soft
86f5e6a7b19272 Fernando Luis Vázquez Cao 2012-02-09 246 * and hard thresholds) to increment before the
86f5e6a7b19272 Fernando Luis Vázquez Cao 2012-02-09 247 * hardlockup detector generates a warning
58687acba59266 Don Zickus 2010-05-07 248 */
0f34c400914f16 Chuansheng Liu 2012-12-17 249 sample_period = get_softlockup_thresh() * ((u64)NSEC_PER_SEC / 5);
7edaeb6841dfb2 Thomas Gleixner 2017-08-15 @250 watchdog_update_hrtimer_threshold(sample_period);
58687acba59266 Don Zickus 2010-05-07 251 }
58687acba59266 Don Zickus 2010-05-07 252
:::::: The code at line 250 was first introduced by commit
:::::: 7edaeb6841dfb27e362288ab8466ebdc4972e867 kernel/watchdog: Prevent false positives with turbo modes
:::::: TO: Thomas Gleixner <tglx(a)linutronix.de>
:::::: CC: Thomas Gleixner <tglx(a)linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week