From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: drivers/usb/host/ohci-hcd.c:1318 ohci_hcd_mod_init() warn: ignoring unreachable code.
Date: Tue, 16 Mar 2021 14:46:59 +0800 [thread overview]
Message-ID: <202103161445.f4upDBZN-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3831 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Stephen Boyd <sboyd@kernel.org>
CC: Mark Brown <broonie@kernel.org>
CC: Arnd Bergmann <arnd@arndb.de>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1a4431a5db2bf800c647ee0ed87f2727b8d6c29c
commit: bbd7ffdbef6888459f301c5889f3b14ada38b913 clk: Allow the common clk framework to be selectable
date: 10 months ago
:::::: branch date: 7 hours ago
:::::: commit date: 10 months ago
config: arm-randconfig-m031-20210316 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
drivers/usb/host/ohci-hcd.c:1318 ohci_hcd_mod_init() warn: ignoring unreachable code.
vim +1318 drivers/usb/host/ohci-hcd.c
78c73414f4f674 Dmitry Eremin-Solenikov 2008-10-08 1313
5e16fabe5dbcff Sylvain Munaut 2006-12-13 1314 return retval;
5e16fabe5dbcff Sylvain Munaut 2006-12-13 1315
5e16fabe5dbcff Sylvain Munaut 2006-12-13 1316 /* Error path */
78c73414f4f674 Dmitry Eremin-Solenikov 2008-10-08 1317 #ifdef TMIO_OHCI_DRIVER
78c73414f4f674 Dmitry Eremin-Solenikov 2008-10-08 @1318 platform_driver_unregister(&TMIO_OHCI_DRIVER);
78c73414f4f674 Dmitry Eremin-Solenikov 2008-10-08 1319 error_tmio:
78c73414f4f674 Dmitry Eremin-Solenikov 2008-10-08 1320 #endif
3ee38d8bf46b36 Ben Dooks 2008-06-08 1321 #ifdef SM501_OHCI_DRIVER
78c73414f4f674 Dmitry Eremin-Solenikov 2008-10-08 1322 platform_driver_unregister(&SM501_OHCI_DRIVER);
3ee38d8bf46b36 Ben Dooks 2008-06-08 1323 error_sm501:
3ee38d8bf46b36 Ben Dooks 2008-06-08 1324 #endif
de44743b033942 Benjamin Herrenschmidt 2007-01-15 1325 #ifdef SA1111_DRIVER
de44743b033942 Benjamin Herrenschmidt 2007-01-15 1326 sa1111_driver_unregister(&SA1111_DRIVER);
de44743b033942 Benjamin Herrenschmidt 2007-01-15 1327 error_sa1111:
5e16fabe5dbcff Sylvain Munaut 2006-12-13 1328 #endif
495a678fc62e85 Sylvain Munaut 2006-12-13 1329 #ifdef OF_PLATFORM_DRIVER
d35fb6417655eb Grant Likely 2011-02-22 1330 platform_driver_unregister(&OF_PLATFORM_DRIVER);
de44743b033942 Benjamin Herrenschmidt 2007-01-15 1331 error_of_platform:
495a678fc62e85 Sylvain Munaut 2006-12-13 1332 #endif
6a6c957eba2081 Geoff Levand 2007-01-15 1333 #ifdef PS3_SYSTEM_BUS_DRIVER
7a4eb7fd50d4df Geoff Levand 2007-06-05 1334 ps3_ohci_driver_unregister(&PS3_SYSTEM_BUS_DRIVER);
6a6c957eba2081 Geoff Levand 2007-01-15 1335 error_ps3:
5e16fabe5dbcff Sylvain Munaut 2006-12-13 1336 #endif
684c19e0d95f46 Tony Jones 2007-09-11 1337 debugfs_remove(ohci_debug_root);
684c19e0d95f46 Tony Jones 2007-09-11 1338 ohci_debug_root = NULL;
684c19e0d95f46 Tony Jones 2007-09-11 1339
9beeee6584b9aa Alan Stern 2008-10-02 1340 clear_bit(USB_OHCI_LOADED, &usb_hcds_loaded);
5e16fabe5dbcff Sylvain Munaut 2006-12-13 1341 return retval;
5e16fabe5dbcff Sylvain Munaut 2006-12-13 1342 }
5e16fabe5dbcff Sylvain Munaut 2006-12-13 1343 module_init(ohci_hcd_mod_init);
5e16fabe5dbcff Sylvain Munaut 2006-12-13 1344
:::::: The code at line 1318 was first introduced by commit
:::::: 78c73414f4f6744e2ea5a07b263a9698aa6f2416 USB: ohci: add support for tmio-ohci cell
:::::: TO: Dmitry Baryshkov <dbaryshkov@gmail.com>
:::::: CC: Greg Kroah-Hartman <gregkh@suse.de>
---
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: 36373 bytes --]
next reply other threads:[~2021-03-16 6:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-16 6:46 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-03-16 8:32 drivers/usb/host/ohci-hcd.c:1318 ohci_hcd_mod_init() warn: ignoring unreachable code Dan Carpenter
2021-03-16 8:32 ` Dan Carpenter
2021-03-16 8:32 ` Dan Carpenter
2021-03-16 12:32 ` Arnd Bergmann
2021-03-16 12:32 ` Arnd Bergmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202103161445.f4upDBZN-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.