[arm:cex7 91/91] drivers/net/phy/qsfp.c:1229:3: warning: misleading indentation; statement is not part of the previous 'if'
kernel test robot
lkp at intel.com
Sun Jul 12 05:48:31 EDT 2020
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git cex7
head: 2457e1460381f744daae7d22695c7d819518d802
commit: 2457e1460381f744daae7d22695c7d819518d802 [91/91] net: add qsfp support [*experimental*]
config: powerpc-randconfig-r036-20200712 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 02946de3802d3bc65bc9f2eb9b8d4969b5a7add8)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
git checkout 2457e1460381f744daae7d22695c7d819518d802
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 30609 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20200712/5a7c4667/attachment-0001.gz>
More information about the linux-arm-kernel
mailing list