* [rmk-arm:cex7 89/92] drivers/net/phy/qsfp.c:1229:3: warning: misleading indentation; statement is not part of the previous 'if'
@ 2022-06-14 6:59 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-06-14 6:59 UTC (permalink / raw)
To: Russell King; +Cc: llvm, kbuild-all, linux-kernel
tree: git://git.armlinux.org.uk/~rmk/linux-arm cex7
head: c100f9a83ba091fb3aa1f9f7d2918e903a30be52
commit: 27d0fce1fe5255fb738b355326ffe8be6f8c154b [89/92] net: add qsfp support [*experimental*]
config: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/20220614/202206141458.CSdyGV60-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c97436f8b6e2718286e8496faf53a2c800e281cf)
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
git remote add rmk-arm git://git.armlinux.org.uk/~rmk/linux-arm
git fetch --no-tags rmk-arm cex7
git checkout 27d0fce1fe5255fb738b355326ffe8be6f8c154b
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/net/phy/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/net/phy/qsfp.c:1229:3: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
qsfp_sm_ins_next(qsfp, SFP_MOD_PRESENT, 0);
^
drivers/net/phy/qsfp.c:1222:2: note: previous statement is here
if (!qsfp->gpio_irq[GPIO_INTL])
^
1 warning generated.
vim +/if +1229 drivers/net/phy/qsfp.c
1215
1216 if (qsfp->sm_dev_state == SFP_DEV_DETACHED) {
1217 qsfp_sm_ins_next(qsfp, SFP_MOD_WATTACH, 0);
1218 return;
1219 }
1220
1221 // Start the poller if there is no interrupt support if not running
1222 if (!qsfp->gpio_irq[GPIO_INTL])
1223 queue_delayed_work(system_wq, &qsfp->poll, poll_jiffies);
1224
1225 // ret = sfp_module_insert(qsfp->sfp_bus, &id);
1226 // if (ret < 0)
1227 // qsfp_sm_ins_next(qsfp, SFP_MOD_ERROR, 0);
1228 // else
> 1229 qsfp_sm_ins_next(qsfp, SFP_MOD_PRESENT, 0);
1230 }
1231
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-14 7:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-14 6:59 [rmk-arm:cex7 89/92] drivers/net/phy/qsfp.c:1229:3: warning: misleading indentation; statement is not part of the previous 'if' 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.