From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [jonhunter:tegra/for-next 25/25] drivers/of/property.c:1289 parse_interrupts() error: uninitialized symbol 'sup'.
Date: Tue, 19 Jan 2021 22:18:42 +0800 [thread overview]
Message-ID: <202101192237.CJ2LwS2p-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2179 bytes --]
CC: kbuild-all(a)lists.01.org
TO: Saravana Kannan <saravanak@google.com>
CC: Jon Hunter <jonathanh@nvidia.com>
tree: https://github.com/jonhunter/linux tegra/for-next
head: adc9c29516a458e917603625e77afae2beb20e0a
commit: adc9c29516a458e917603625e77afae2beb20e0a [25/25] of: property: Add device link support for interrupts
:::::: branch date: 2 hours ago
:::::: commit date: 2 hours ago
config: x86_64-randconfig-m001-20210119 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 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/of/property.c:1289 parse_interrupts() error: uninitialized symbol 'sup'.
vim +/sup +1289 drivers/of/property.c
e149573b2f84d051 Will Deacon 2019-11-20 1275
adc9c29516a458e9 Saravana Kannan 2020-12-18 1276 static struct device_node *parse_interrupts(struct device_node *np,
adc9c29516a458e9 Saravana Kannan 2020-12-18 1277 const char *prop_name, int index)
adc9c29516a458e9 Saravana Kannan 2020-12-18 1278 {
adc9c29516a458e9 Saravana Kannan 2020-12-18 1279 struct device_node *sup;
adc9c29516a458e9 Saravana Kannan 2020-12-18 1280
adc9c29516a458e9 Saravana Kannan 2020-12-18 1281 if (strcmp(prop_name, "interrupts") || index)
adc9c29516a458e9 Saravana Kannan 2020-12-18 1282 return NULL;
adc9c29516a458e9 Saravana Kannan 2020-12-18 1283
adc9c29516a458e9 Saravana Kannan 2020-12-18 1284 of_node_get(np);
adc9c29516a458e9 Saravana Kannan 2020-12-18 1285 while (np && !(sup = of_parse_phandle(np, "interrupt-parent", 0)))
adc9c29516a458e9 Saravana Kannan 2020-12-18 1286 np = of_get_next_parent(np);
adc9c29516a458e9 Saravana Kannan 2020-12-18 1287 of_node_put(np);
adc9c29516a458e9 Saravana Kannan 2020-12-18 1288
adc9c29516a458e9 Saravana Kannan 2020-12-18 @1289 return sup;
adc9c29516a458e9 Saravana Kannan 2020-12-18 1290 }
adc9c29516a458e9 Saravana Kannan 2020-12-18 1291
---
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: 37558 bytes --]
reply other threads:[~2021-01-19 14:18 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=202101192237.CJ2LwS2p-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.