* drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c:363:62: warning: format specifies type 'char' but the argument has type 'int'
@ 2021-11-10 3:53 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-11-10 3:53 UTC (permalink / raw)
To: Edwin Peer; +Cc: llvm, kbuild-all, linux-kernel, Michael Chan
[-- Attachment #1: Type: text/plain, Size: 3578 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: cb690f5238d71f543f4ce874aa59237cf53a877c
commit: 3c4153394e2c749b415947b86eb560114ec0f64d bnxt_en: implement firmware live patching
date: 12 days ago
config: i386-randconfig-a002-20211109 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project f3798ad5fa845771846599f3c088016e3aef800c)
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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3c4153394e2c749b415947b86eb560114ec0f64d
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 3c4153394e2c749b415947b86eb560114ec0f64d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c:363:62: warning: format specifies type 'char' but the argument has type 'int' [-Wformat]
netdev_err(bp->dev, "Unexpected live patch error: %hhd\n", err);
~~~~ ^~~
%d
1 warning generated.
vim +363 drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c
325
326 static int bnxt_dl_info_get(struct devlink *dl, struct devlink_info_req *req,
327 struct netlink_ext_ack *extack);
328
329 static void
330 bnxt_dl_livepatch_report_err(struct bnxt *bp, struct netlink_ext_ack *extack,
331 struct hwrm_fw_livepatch_output *resp)
332 {
333 int err = ((struct hwrm_err_output *)resp)->cmd_err;
334
335 switch (err) {
336 case FW_LIVEPATCH_CMD_ERR_CODE_INVALID_OPCODE:
337 netdev_err(bp->dev, "Illegal live patch opcode");
338 NL_SET_ERR_MSG_MOD(extack, "Invalid opcode");
339 break;
340 case FW_LIVEPATCH_CMD_ERR_CODE_NOT_SUPPORTED:
341 NL_SET_ERR_MSG_MOD(extack, "Live patch operation not supported");
342 break;
343 case FW_LIVEPATCH_CMD_ERR_CODE_NOT_INSTALLED:
344 NL_SET_ERR_MSG_MOD(extack, "Live patch not found");
345 break;
346 case FW_LIVEPATCH_CMD_ERR_CODE_NOT_PATCHED:
347 NL_SET_ERR_MSG_MOD(extack,
348 "Live patch deactivation failed. Firmware not patched.");
349 break;
350 case FW_LIVEPATCH_CMD_ERR_CODE_AUTH_FAIL:
351 NL_SET_ERR_MSG_MOD(extack, "Live patch not authenticated");
352 break;
353 case FW_LIVEPATCH_CMD_ERR_CODE_INVALID_HEADER:
354 NL_SET_ERR_MSG_MOD(extack, "Incompatible live patch");
355 break;
356 case FW_LIVEPATCH_CMD_ERR_CODE_INVALID_SIZE:
357 NL_SET_ERR_MSG_MOD(extack, "Live patch has invalid size");
358 break;
359 case FW_LIVEPATCH_CMD_ERR_CODE_ALREADY_PATCHED:
360 NL_SET_ERR_MSG_MOD(extack, "Live patch already applied");
361 break;
362 default:
> 363 netdev_err(bp->dev, "Unexpected live patch error: %hhd\n", err);
364 NL_SET_ERR_MSG_MOD(extack, "Failed to activate live patch");
365 break;
366 }
367 }
368
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35380 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c:363:62: warning: format specifies type 'char' but the argument has type 'int'
@ 2021-11-10 3:53 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-11-10 3:53 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3658 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: cb690f5238d71f543f4ce874aa59237cf53a877c
commit: 3c4153394e2c749b415947b86eb560114ec0f64d bnxt_en: implement firmware live patching
date: 12 days ago
config: i386-randconfig-a002-20211109 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project f3798ad5fa845771846599f3c088016e3aef800c)
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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3c4153394e2c749b415947b86eb560114ec0f64d
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 3c4153394e2c749b415947b86eb560114ec0f64d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c:363:62: warning: format specifies type 'char' but the argument has type 'int' [-Wformat]
netdev_err(bp->dev, "Unexpected live patch error: %hhd\n", err);
~~~~ ^~~
%d
1 warning generated.
vim +363 drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c
325
326 static int bnxt_dl_info_get(struct devlink *dl, struct devlink_info_req *req,
327 struct netlink_ext_ack *extack);
328
329 static void
330 bnxt_dl_livepatch_report_err(struct bnxt *bp, struct netlink_ext_ack *extack,
331 struct hwrm_fw_livepatch_output *resp)
332 {
333 int err = ((struct hwrm_err_output *)resp)->cmd_err;
334
335 switch (err) {
336 case FW_LIVEPATCH_CMD_ERR_CODE_INVALID_OPCODE:
337 netdev_err(bp->dev, "Illegal live patch opcode");
338 NL_SET_ERR_MSG_MOD(extack, "Invalid opcode");
339 break;
340 case FW_LIVEPATCH_CMD_ERR_CODE_NOT_SUPPORTED:
341 NL_SET_ERR_MSG_MOD(extack, "Live patch operation not supported");
342 break;
343 case FW_LIVEPATCH_CMD_ERR_CODE_NOT_INSTALLED:
344 NL_SET_ERR_MSG_MOD(extack, "Live patch not found");
345 break;
346 case FW_LIVEPATCH_CMD_ERR_CODE_NOT_PATCHED:
347 NL_SET_ERR_MSG_MOD(extack,
348 "Live patch deactivation failed. Firmware not patched.");
349 break;
350 case FW_LIVEPATCH_CMD_ERR_CODE_AUTH_FAIL:
351 NL_SET_ERR_MSG_MOD(extack, "Live patch not authenticated");
352 break;
353 case FW_LIVEPATCH_CMD_ERR_CODE_INVALID_HEADER:
354 NL_SET_ERR_MSG_MOD(extack, "Incompatible live patch");
355 break;
356 case FW_LIVEPATCH_CMD_ERR_CODE_INVALID_SIZE:
357 NL_SET_ERR_MSG_MOD(extack, "Live patch has invalid size");
358 break;
359 case FW_LIVEPATCH_CMD_ERR_CODE_ALREADY_PATCHED:
360 NL_SET_ERR_MSG_MOD(extack, "Live patch already applied");
361 break;
362 default:
> 363 netdev_err(bp->dev, "Unexpected live patch error: %hhd\n", err);
364 NL_SET_ERR_MSG_MOD(extack, "Failed to activate live patch");
365 break;
366 }
367 }
368
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 35380 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-11-10 3:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-10 3:53 drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c:363:62: warning: format specifies type 'char' but the argument has type 'int' kernel test robot
2021-11-10 3:53 ` kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.