From: Dan Carpenter <dan.carpenter@oracle.com>
To: kbuild@lists.01.org, "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: lkp@intel.com, kbuild-all@lists.01.org,
linux-acpi@vger.kernel.org, devel@acpica.org,
linux-pm@vger.kernel.org
Subject: [pm:acpica-osl 3/3] drivers/acpi/osl.c:1608 acpi_release_memory() warn: ignoring unreachable code.
Date: Thu, 11 Jun 2020 13:41:45 +0300 [thread overview]
Message-ID: <20200611104145.GE4151@kadam> (raw)
[-- Attachment #1: Type: text/plain, Size: 2157 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git acpica-osl
head: 3537ee81aa84bbcf47f7239f1053686d71bea47d
commit: 3537ee81aa84bbcf47f7239f1053686d71bea47d [3/3] ACPI: OSL: Define ACPI_OS_MAP_MEMORY_FAST_PATH()
config: i386-randconfig-m021-20200611 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 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/acpi/osl.c:1608 acpi_release_memory() warn: ignoring unreachable code.
# https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?id=3537ee81aa84bbcf47f7239f1053686d71bea47d
git remote add pm https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git
git remote update pm
git checkout 3537ee81aa84bbcf47f7239f1053686d71bea47d
vim +1608 drivers/acpi/osl.c
d2d2e3c46be5d6 Heikki Krogerus 2018-06-21 1599 acpi_status acpi_release_memory(acpi_handle handle, struct resource *res,
d2d2e3c46be5d6 Heikki Krogerus 2018-06-21 1600 u32 level)
d2d2e3c46be5d6 Heikki Krogerus 2018-06-21 1601 {
d2d2e3c46be5d6 Heikki Krogerus 2018-06-21 1602 if (!(res->flags & IORESOURCE_MEM))
d2d2e3c46be5d6 Heikki Krogerus 2018-06-21 1603 return AE_TYPE;
d2d2e3c46be5d6 Heikki Krogerus 2018-06-21 1604
d2d2e3c46be5d6 Heikki Krogerus 2018-06-21 1605 return acpi_walk_namespace(ACPI_TYPE_REGION, handle, level,
^^^^^^
d2d2e3c46be5d6 Heikki Krogerus 2018-06-21 1606 acpi_deactivate_mem_region, NULL, res, NULL);
3537ee81aa84bb Rafael J. Wysocki 2020-06-10 1607
3537ee81aa84bb Rafael J. Wysocki 2020-06-10 @1608 acpi_release_unused_memory_mappings();
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Unreachable.
d2d2e3c46be5d6 Heikki Krogerus 2018-06-21 1609 }
d2d2e3c46be5d6 Heikki Krogerus 2018-06-21 1610 EXPORT_SYMBOL_GPL(acpi_release_memory);
---
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: 30893 bytes --]
reply other threads:[~2020-06-11 10:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20200611104145.GE4151@kadam \
--to=dan.carpenter@oracle.com \
--cc=devel@acpica.org \
--cc=kbuild-all@lists.01.org \
--cc=kbuild@lists.01.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=lkp@intel.com \
--cc=rjw@rjwysocki.net \
/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 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).