* arch/arm/mach-omap2/sr_device.c:207:51: warning: variable 'sr_inst' is uninitialized when used here
@ 2021-03-27 5:05 ` kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-03-27 5:05 UTC (permalink / raw)
To: Tony Lindgren; +Cc: kbuild-all, clang-built-linux, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 2870 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0f4498cef9f5cd18d7c6639a2a902ec1edc5be4e
commit: fbfa463be8dc7957ee4f81556e9e1ea2a951807d ARM: OMAP2+: Fix smartreflex init regression after dropping legacy data
date: 6 weeks ago
config: arm-randconfig-r025-20210326 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project f490a5969bd52c8a48586f134ff8f02ccbb295b3)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fbfa463be8dc7957ee4f81556e9e1ea2a951807d
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout fbfa463be8dc7957ee4f81556e9e1ea2a951807d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> arch/arm/mach-omap2/sr_device.c:207:51: warning: variable 'sr_inst' is uninitialized when used here [-Wuninitialized]
name = kasprintf(GFP_KERNEL, "smartreflex_%s", sr_inst[i]);
^~~~~~~
arch/arm/mach-omap2/sr_device.c:191:29: note: initialize the variable 'sr_inst' to silence this warning
const char * const *sr_inst;
^
= NULL
1 warning generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for TEGRA20_APB_DMA
Depends on DMADEVICES && (ARCH_TEGRA || COMPILE_TEST
Selected by
- SOC_TEGRA_FUSE && ARCH_TEGRA && ARCH_TEGRA_2x_SOC
vim +/sr_inst +207 arch/arm/mach-omap2/sr_device.c
188
189 int __init omap_devinit_smartreflex(void)
190 {
191 const char * const *sr_inst;
192 int i, nr_sr = 0;
193
194 if (soc_is_omap44xx()) {
195 sr_inst = omap4_sr_instances;
196 nr_sr = ARRAY_SIZE(omap4_sr_instances);
197
198 } else if (soc_is_dra7xx()) {
199 sr_inst = dra7_sr_instances;
200 nr_sr = ARRAY_SIZE(dra7_sr_instances);
201 }
202
203 if (nr_sr) {
204 const char *name, *voltdm;
205
206 for (i = 0; i < nr_sr; i++) {
> 207 name = kasprintf(GFP_KERNEL, "smartreflex_%s", sr_inst[i]);
---
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: 40295 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* arch/arm/mach-omap2/sr_device.c:207:51: warning: variable 'sr_inst' is uninitialized when used here
@ 2021-03-27 5:05 ` kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-03-27 5:05 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2937 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0f4498cef9f5cd18d7c6639a2a902ec1edc5be4e
commit: fbfa463be8dc7957ee4f81556e9e1ea2a951807d ARM: OMAP2+: Fix smartreflex init regression after dropping legacy data
date: 6 weeks ago
config: arm-randconfig-r025-20210326 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project f490a5969bd52c8a48586f134ff8f02ccbb295b3)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fbfa463be8dc7957ee4f81556e9e1ea2a951807d
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout fbfa463be8dc7957ee4f81556e9e1ea2a951807d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> arch/arm/mach-omap2/sr_device.c:207:51: warning: variable 'sr_inst' is uninitialized when used here [-Wuninitialized]
name = kasprintf(GFP_KERNEL, "smartreflex_%s", sr_inst[i]);
^~~~~~~
arch/arm/mach-omap2/sr_device.c:191:29: note: initialize the variable 'sr_inst' to silence this warning
const char * const *sr_inst;
^
= NULL
1 warning generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for TEGRA20_APB_DMA
Depends on DMADEVICES && (ARCH_TEGRA || COMPILE_TEST
Selected by
- SOC_TEGRA_FUSE && ARCH_TEGRA && ARCH_TEGRA_2x_SOC
vim +/sr_inst +207 arch/arm/mach-omap2/sr_device.c
188
189 int __init omap_devinit_smartreflex(void)
190 {
191 const char * const *sr_inst;
192 int i, nr_sr = 0;
193
194 if (soc_is_omap44xx()) {
195 sr_inst = omap4_sr_instances;
196 nr_sr = ARRAY_SIZE(omap4_sr_instances);
197
198 } else if (soc_is_dra7xx()) {
199 sr_inst = dra7_sr_instances;
200 nr_sr = ARRAY_SIZE(dra7_sr_instances);
201 }
202
203 if (nr_sr) {
204 const char *name, *voltdm;
205
206 for (i = 0; i < nr_sr; i++) {
> 207 name = kasprintf(GFP_KERNEL, "smartreflex_%s", sr_inst[i]);
---
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: 40295 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: arch/arm/mach-omap2/sr_device.c:207:51: warning: variable 'sr_inst' is uninitialized when used here
2021-03-27 5:05 ` kernel test robot
@ 2021-03-31 6:38 ` Tony Lindgren
-1 siblings, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2021-03-31 6:38 UTC (permalink / raw)
To: kernel test robot; +Cc: kbuild-all, clang-built-linux, linux-kernel
* kernel test robot <lkp@intel.com> [210327 05:06]:
> >> arch/arm/mach-omap2/sr_device.c:207:51: warning: variable 'sr_inst' is uninitialized when used here [-Wuninitialized]
> name = kasprintf(GFP_KERNEL, "smartreflex_%s", sr_inst[i]);
> ^~~~~~~
> arch/arm/mach-omap2/sr_device.c:191:29: note: initialize the variable 'sr_inst' to silence this warning
> const char * const *sr_inst;
> ^
> = NULL
> 1 warning generated.
Thanks for the report, FYI I posted a fix for this at:
https://lore.kernel.org/linux-omap/20210331063556.30654-1-tony@atomide.com/T/#u
Regards,
Tony
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: arch/arm/mach-omap2/sr_device.c:207:51: warning: variable 'sr_inst' is uninitialized when used here
@ 2021-03-31 6:38 ` Tony Lindgren
0 siblings, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2021-03-31 6:38 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 785 bytes --]
* kernel test robot <lkp@intel.com> [210327 05:06]:
> >> arch/arm/mach-omap2/sr_device.c:207:51: warning: variable 'sr_inst' is uninitialized when used here [-Wuninitialized]
> name = kasprintf(GFP_KERNEL, "smartreflex_%s", sr_inst[i]);
> ^~~~~~~
> arch/arm/mach-omap2/sr_device.c:191:29: note: initialize the variable 'sr_inst' to silence this warning
> const char * const *sr_inst;
> ^
> = NULL
> 1 warning generated.
Thanks for the report, FYI I posted a fix for this at:
https://lore.kernel.org/linux-omap/20210331063556.30654-1-tony(a)atomide.com/T/#u
Regards,
Tony
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-03-31 6:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-27 5:05 arch/arm/mach-omap2/sr_device.c:207:51: warning: variable 'sr_inst' is uninitialized when used here kernel test robot
2021-03-27 5:05 ` kernel test robot
2021-03-31 6:38 ` Tony Lindgren
2021-03-31 6:38 ` Tony Lindgren
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.