* [arm:cex7 57/62] drivers/net/phy/qsfp.c:1229:3: warning: misleading indentation; statement is not part of the previous 'if'
@ 2021-01-09 20:22 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-01-09 20:22 UTC (permalink / raw)
To: Russell King; +Cc: clang-built-linux, kbuild-all, linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 2223 bytes --]
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git cex7
head: cfb7f858a86e076c5322efe5e6328729640079f7
commit: 110b224de436044b9388f2d76dc5f2246e6285cb [57/62] net: add qsfp support [*experimental*]
config: mips-randconfig-r015-20210110 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project bc556e5685c0f97e79fb7b3c6f15cc5062db8e36)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
git remote add arm git://git.armlinux.org.uk/~rmk/linux-arm.git
git fetch --no-tags arm cex7
git checkout 110b224de436044b9388f2d76dc5f2246e6285cb
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
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/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, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 30541 bytes --]
[-- Attachment #3: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-09 20:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-09 20:22 [arm:cex7 57/62] drivers/net/phy/qsfp.c:1229:3: warning: misleading indentation; statement is not part of the previous 'if' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).