From: Oreoluwa Babatunde <quic_obabatun@quicinc.com>
To: "Rob Herring (Arm)" <robh@kernel.org>
Cc: <llvm@lists.linux.dev>, <oe-kbuild-all@lists.linux.dev>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: Re: [linux-next:master 9793/10134] drivers/of/of_reserved_mem.c:465:6: warning: variable 'nomap' is uninitialized when used here
Date: Wed, 1 May 2024 10:05:46 -0700 [thread overview]
Message-ID: <e9209693-df0a-406c-87d7-c4437d1f9bae@quicinc.com> (raw)
In-Reply-To: <202405012148.1dCXzomq-lkp@intel.com>
Hi Rob,
On 5/1/2024 6:45 AM, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head: f68868ba718e30594165879cc3020607165b0761
> commit: 2acef04ad57cab44b33001542791fc93f81cadf1 [9793/10134] of: reserved_mem: Remove the use of phandle from the reserved_mem APIs
> config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20240501/202405012148.1dCXzomq-lkp@intel.com/config)
> compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 37ae4ad0eef338776c7e2cffb3896153d43dcd90)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240501/202405012148.1dCXzomq-lkp@intel.com/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202405012148.1dCXzomq-lkp@intel.com/
>
> All warnings (new ones prefixed by >>):
>
> In file included from drivers/of/of_reserved_mem.c:19:
> In file included from include/linux/mm.h:2208:
> include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
> 522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
> | ~~~~~~~~~~~ ^ ~~~
>>> drivers/of/of_reserved_mem.c:465:6: warning: variable 'nomap' is uninitialized when used here [-Wuninitialized]
> 465 | nomap ? "nomap" : "map",
> | ^~~~~
> include/linux/printk.h:530:34: note: expanded from macro 'pr_info'
> 530 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
> | ^~~~~~~~~~~
> include/linux/printk.h:457:60: note: expanded from macro 'printk'
> 457 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
> | ^~~~~~~~~~~
> include/linux/printk.h:429:19: note: expanded from macro 'printk_index_wrap'
> 429 | _p_func(_fmt, ##__VA_ARGS__); \
> | ^~~~~~~~~~~
> drivers/of/of_reserved_mem.c:441:13: note: initialize the variable 'nomap' to silence this warning
> 441 | bool nomap;
> | ^
> | = 0
> 2 warnings generated.
Would you like me to upload another version to fix this error?
Should just need to undo a one line change I made while I was
restructuring the code.
Regards,
Oreoluwa
prev parent reply other threads:[~2024-05-01 17:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-01 13:45 kernel test robot
2024-05-01 17:05 ` Oreoluwa Babatunde [this message]
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=e9209693-df0a-406c-87d7-c4437d1f9bae@quicinc.com \
--to=quic_obabatun@quicinc.com \
--cc=linux-mm@kvack.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=robh@kernel.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