From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [nvdimm:libnvdimm-pending 286/291] drivers/acpi/osl.c:769:14: warning: variable 'status' set but not used
Date: Tue, 19 May 2020 18:56:50 +0800 [thread overview]
Message-ID: <202005191844.zcZfmWCh%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2828 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/djbw/nvdimm.git libnvdimm-pending
head: 4e2f899e682d1e6c647651bc36bcdba3b3577485
commit: ff99d8c56c8e8d60122b87333e3b807fd1638431 [286/291] ACPI: Drop rcu usage for MMIO mappings
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
git checkout ff99d8c56c8e8d60122b87333e3b807fd1638431
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
drivers/acpi/osl.c: In function 'acpi_os_vprintf':
drivers/acpi/osl.c:151:2: warning: function 'acpi_os_vprintf' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
vsprintf(buffer, fmt, args);
^~~~~~~~
drivers/acpi/osl.c: In function 'acpi_os_write_memory':
>> drivers/acpi/osl.c:769:14: warning: variable 'status' set but not used [-Wunused-but-set-variable]
acpi_status status;
^~~~~~
vim +/status +769 drivers/acpi/osl.c
d2b7355684cdcf Dan Williams 2020-05-13 764
e615bf5b551986 Myron Stowe 2012-01-20 765 acpi_status
653f4b538f66d3 Bob Moore 2012-02-14 766 acpi_os_write_memory(acpi_physical_address phys_addr, u64 value, u32 width)
e615bf5b551986 Myron Stowe 2012-01-20 767 {
e615bf5b551986 Myron Stowe 2012-01-20 768 unsigned int size = width / 8;
d2b7355684cdcf Dan Williams 2020-05-13 @769 acpi_status status;
ff99d8c56c8e8d Dan Williams 2020-04-27 770 bool did_fallback = false;
ff99d8c56c8e8d Dan Williams 2020-04-27 771 void __iomem *virt_addr;
e615bf5b551986 Myron Stowe 2012-01-20 772
ff99d8c56c8e8d Dan Williams 2020-04-27 773 virt_addr = acpi_os_rw_map(phys_addr, size, &did_fallback);
e615bf5b551986 Myron Stowe 2012-01-20 774 if (!virt_addr)
e615bf5b551986 Myron Stowe 2012-01-20 775 return AE_BAD_ADDRESS;
e615bf5b551986 Myron Stowe 2012-01-20 776
d2b7355684cdcf Dan Williams 2020-05-13 777 status = acpi_os_write_iomem(virt_addr, value, width);
e615bf5b551986 Myron Stowe 2012-01-20 778
ff99d8c56c8e8d Dan Williams 2020-04-27 779 acpi_os_rw_unmap(virt_addr, did_fallback);
ff99d8c56c8e8d Dan Williams 2020-04-27 780 return AE_OK;
e615bf5b551986 Myron Stowe 2012-01-20 781 }
e615bf5b551986 Myron Stowe 2012-01-20 782
:::::: The code at line 769 was first introduced by commit
:::::: d2b7355684cdcf842a9853915ae1c4927ae9a80a ACPI: Store pre-mapped registers in APEI entries
:::::: TO: Dan Williams <dan.j.williams@intel.com>
:::::: CC: Dan Williams <dan.j.williams@intel.com>
---
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: 72327 bytes --]
next reply other threads:[~2020-05-19 10:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-19 10:56 kbuild test robot [this message]
2020-05-19 14:46 [nvdimm:libnvdimm-pending 286/291] drivers/acpi/osl.c:769:14: warning: variable 'status' set but not used kbuild test robot
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=202005191844.zcZfmWCh%lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@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.