* [arnd-playground:to-build 295/350] drivers/usb/typec/tcpm/tcpci_maxim.c:347:14: warning: variable 'irq_return' set but not used
@ 2020-12-02 4:40 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-12-02 4:40 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3955 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git to-build
head: fe197c065a93b860c59017cf6933889c69842ef7
commit: 3cf1a527ce8652b7f2639438b72358b2a3cae38f [295/350] new uninitialized variable warnings
config: nios2-allyesconfig (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.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://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/commit/?id=3cf1a527ce8652b7f2639438b72358b2a3cae38f
git remote add arnd-playground https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
git fetch --no-tags arnd-playground to-build
git checkout 3cf1a527ce8652b7f2639438b72358b2a3cae38f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2
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/usb/typec/tcpm/tcpci_maxim.c: In function 'max_tcpci_irq':
>> drivers/usb/typec/tcpm/tcpci_maxim.c:347:14: warning: variable 'irq_return' set but not used [-Wunused-but-set-variable]
347 | irqreturn_t irq_return;
| ^~~~~~~~~~
vim +/irq_return +347 drivers/usb/typec/tcpm/tcpci_maxim.c
6f413b559f86a28 Badhri Jagan Sridharan 2020-10-07 342
6f413b559f86a28 Badhri Jagan Sridharan 2020-10-07 343 static irqreturn_t max_tcpci_irq(int irq, void *dev_id)
6f413b559f86a28 Badhri Jagan Sridharan 2020-10-07 344 {
6f413b559f86a28 Badhri Jagan Sridharan 2020-10-07 345 struct max_tcpci_chip *chip = dev_id;
6f413b559f86a28 Badhri Jagan Sridharan 2020-10-07 346 u16 status;
6f413b559f86a28 Badhri Jagan Sridharan 2020-10-07 @347 irqreturn_t irq_return;
6f413b559f86a28 Badhri Jagan Sridharan 2020-10-07 348 int ret;
6f413b559f86a28 Badhri Jagan Sridharan 2020-10-07 349
6f413b559f86a28 Badhri Jagan Sridharan 2020-10-07 350 if (!chip->port)
6f413b559f86a28 Badhri Jagan Sridharan 2020-10-07 351 return IRQ_HANDLED;
6f413b559f86a28 Badhri Jagan Sridharan 2020-10-07 352
6f413b559f86a28 Badhri Jagan Sridharan 2020-10-07 353 ret = max_tcpci_read16(chip, TCPC_ALERT, &status);
6f413b559f86a28 Badhri Jagan Sridharan 2020-10-07 354 if (ret < 0) {
6f413b559f86a28 Badhri Jagan Sridharan 2020-10-07 355 dev_err(chip->dev, "ALERT read failed\n");
6f413b559f86a28 Badhri Jagan Sridharan 2020-10-07 356 return ret;
6f413b559f86a28 Badhri Jagan Sridharan 2020-10-07 357 }
6f413b559f86a28 Badhri Jagan Sridharan 2020-10-07 358 while (status) {
6f413b559f86a28 Badhri Jagan Sridharan 2020-10-07 359 irq_return = _max_tcpci_irq(chip, status);
6f413b559f86a28 Badhri Jagan Sridharan 2020-10-07 360 /* Do not return if the ALERT is already set. */
6f413b559f86a28 Badhri Jagan Sridharan 2020-10-07 361 ret = max_tcpci_read16(chip, TCPC_ALERT, &status);
6f413b559f86a28 Badhri Jagan Sridharan 2020-10-07 362 if (ret < 0)
6f413b559f86a28 Badhri Jagan Sridharan 2020-10-07 363 break;
6f413b559f86a28 Badhri Jagan Sridharan 2020-10-07 364 }
6f413b559f86a28 Badhri Jagan Sridharan 2020-10-07 365
3cf1a527ce8652b Arnd Bergmann 2020-11-30 366 return IRQ_HANDLED;
6f413b559f86a28 Badhri Jagan Sridharan 2020-10-07 367 }
6f413b559f86a28 Badhri Jagan Sridharan 2020-10-07 368
:::::: The code@line 347 was first introduced by commit
:::::: 6f413b559f86a2894188e082e389ff95ee428345 usb: typec: tcpci_maxim: Chip level TCPC driver
:::::: TO: Badhri Jagan Sridharan <badhri@google.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
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: 58230 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-02 4:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-02 4:40 [arnd-playground:to-build 295/350] drivers/usb/typec/tcpm/tcpci_maxim.c:347:14: warning: variable 'irq_return' set but not used 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.