From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: drivers/platform/chrome/chromeos_acpi.c:202 chromeos_attr_show_gpio_0() error: uninitialized symbol 'num'.
Date: Wed, 31 Aug 2022 14:41:11 +0800 [thread overview]
Message-ID: <202208311429.pOoOxQ5c-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3400 bytes --]
BCC: lkp(a)intel.com
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Enric Balletbo i Serra <enric.balletbo@collabora.com>
CC: "Tzung-Bi Shih" <tzungbi@kernel.org>
CC: Guenter Roeck <groeck@chromium.org>
CC: Andy Shevchenko <andy.shevchenko@gmail.com>
CC: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>
CC: Muhammad Usama Anjum <usama.anjum@collabora.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: dcf8e5633e2e69ad60b730ab5905608b756a032f
commit: 0a4cad9c11ad46662ede48d94f08ecb7cd9f6916 platform/chrome: Add ChromeOS ACPI device driver
date: 4 months ago
:::::: branch date: 34 hours ago
:::::: commit date: 4 months ago
config: x86_64-randconfig-m001-20220829 (https://download.01.org/0day-ci/archive/20220831/202208311429.pOoOxQ5c-lkp(a)intel.com/config)
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
drivers/platform/chrome/chromeos_acpi.c:202 chromeos_attr_show_gpio_0() error: uninitialized symbol 'num'.
drivers/platform/chrome/chromeos_acpi.c:203 chromeos_attr_show_gpio_1() error: uninitialized symbol 'num'.
drivers/platform/chrome/chromeos_acpi.c:204 chromeos_attr_show_gpio_2() error: uninitialized symbol 'num'.
drivers/platform/chrome/chromeos_acpi.c:205 chromeos_attr_show_gpio_3() error: uninitialized symbol 'num'.
drivers/platform/chrome/chromeos_acpi.c:206 chromeos_attr_show_gpio_4() error: uninitialized symbol 'num'.
drivers/platform/chrome/chromeos_acpi.c:207 chromeos_attr_show_gpio_5() error: uninitialized symbol 'num'.
drivers/platform/chrome/chromeos_acpi.c:208 chromeos_attr_show_gpio_6() error: uninitialized symbol 'num'.
drivers/platform/chrome/chromeos_acpi.c:209 chromeos_attr_show_gpio_7() error: uninitialized symbol 'num'.
vim +/num +202 drivers/platform/chrome/chromeos_acpi.c
0a4cad9c11ad46 Enric Balletbo i Serra 2022-05-13 196
0a4cad9c11ad46 Enric Balletbo i Serra 2022-05-13 197 /*
0a4cad9c11ad46 Enric Balletbo i Serra 2022-05-13 198 * Every platform can have a different number of GPIO attribute groups.
0a4cad9c11ad46 Enric Balletbo i Serra 2022-05-13 199 * Define upper limit groups. At run time, the platform decides to show
0a4cad9c11ad46 Enric Balletbo i Serra 2022-05-13 200 * the present number of groups only, others are hidden.
0a4cad9c11ad46 Enric Balletbo i Serra 2022-05-13 201 */
0a4cad9c11ad46 Enric Balletbo i Serra 2022-05-13 @202 GPIO_ATTR_GROUP(gpio0, "GPIO.0", 0)
0a4cad9c11ad46 Enric Balletbo i Serra 2022-05-13 @203 GPIO_ATTR_GROUP(gpio1, "GPIO.1", 1)
0a4cad9c11ad46 Enric Balletbo i Serra 2022-05-13 @204 GPIO_ATTR_GROUP(gpio2, "GPIO.2", 2)
0a4cad9c11ad46 Enric Balletbo i Serra 2022-05-13 @205 GPIO_ATTR_GROUP(gpio3, "GPIO.3", 3)
0a4cad9c11ad46 Enric Balletbo i Serra 2022-05-13 @206 GPIO_ATTR_GROUP(gpio4, "GPIO.4", 4)
0a4cad9c11ad46 Enric Balletbo i Serra 2022-05-13 @207 GPIO_ATTR_GROUP(gpio5, "GPIO.5", 5)
0a4cad9c11ad46 Enric Balletbo i Serra 2022-05-13 @208 GPIO_ATTR_GROUP(gpio6, "GPIO.6", 6)
0a4cad9c11ad46 Enric Balletbo i Serra 2022-05-13 @209 GPIO_ATTR_GROUP(gpio7, "GPIO.7", 7)
0a4cad9c11ad46 Enric Balletbo i Serra 2022-05-13 210
--
0-DAY CI Kernel Test Service
https://01.org/lkp
next reply other threads:[~2022-08-31 6:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-31 6:41 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-04-20 3:36 drivers/platform/chrome/chromeos_acpi.c:202 chromeos_attr_show_gpio_0() error: uninitialized symbol 'num' kernel test robot
2023-02-12 6:34 kernel test robot
2022-11-28 17:28 kernel test robot
2022-06-20 15:17 kernel 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=202208311429.pOoOxQ5c-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 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).