* Re: sound/soc/ti/j721e-evm.c:528:34: warning: unused variable 'j721e_audio_of_match' [not found] <202009271553.4OjMpGkX%lkp@intel.com> @ 2020-09-28 7:27 ` Peter Ujfalusi 2020-09-28 17:52 ` Nick Desaulniers 0 siblings, 1 reply; 5+ messages in thread From: Peter Ujfalusi @ 2020-09-28 7:27 UTC (permalink / raw) To: kernel test robot; +Cc: kbuild-all, clang-built-linux, linux-kernel, Mark Brown On 27/09/2020 10.27, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: a1bffa48745afbb54cb4f873bba783b2ae8be042 > commit: 6748d05590594837e42dfa975879fb275099f0b2 ASoC: ti: Add custom machine driver for j721e EVM (CPB and IVI) > date: 3 months ago > config: x86_64-randconfig-r033-20200927 (attached as .config) > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project a83eb048cb9a75da7a07a9d5318bbdbf54885c87) > 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 x86_64 cross compiling tool for clang build > # apt-get install binutils-x86-64-linux-gnu > # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6748d05590594837e42dfa975879fb275099f0b2 > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > git fetch --no-tags linus master > git checkout 6748d05590594837e42dfa975879fb275099f0b2 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 > > 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 >>): > >>> sound/soc/ti/j721e-evm.c:528:34: warning: unused variable 'j721e_audio_of_match' [-Wunused-const-variable] > static const struct of_device_id j721e_audio_of_match[] = { > ^ > 1 warning generated. Right, in the attached .config: # CONFIG_OF is not set There must be a clean way to handle this without extensive ifedfery... > vim +/j721e_audio_of_match +528 sound/soc/ti/j721e-evm.c > > 527 > > 528 static const struct of_device_id j721e_audio_of_match[] = { > 529 { > 530 .compatible = "ti,j721e-cpb-audio", > 531 .data = &j721e_cpb_data, > 532 }, { > 533 .compatible = "ti,j721e-cpb-ivi-audio", > 534 .data = &j721e_cpb_ivi_data, > 535 }, > 536 { }, > 537 }; > 538 MODULE_DEVICE_TABLE(of, j721e_audio_of_match); > 539 > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org > - Péter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: sound/soc/ti/j721e-evm.c:528:34: warning: unused variable 'j721e_audio_of_match' 2020-09-28 7:27 ` sound/soc/ti/j721e-evm.c:528:34: warning: unused variable 'j721e_audio_of_match' Peter Ujfalusi @ 2020-09-28 17:52 ` Nick Desaulniers 2020-09-28 18:04 ` Mark Brown 0 siblings, 1 reply; 5+ messages in thread From: Nick Desaulniers @ 2020-09-28 17:52 UTC (permalink / raw) To: Peter Ujfalusi Cc: kernel test robot, kbuild-all, clang-built-linux, LKML, Mark Brown On Mon, Sep 28, 2020 at 12:27 AM 'Peter Ujfalusi' via Clang Built Linux <clang-built-linux@googlegroups.com> wrote: > > > > On 27/09/2020 10.27, kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > head: a1bffa48745afbb54cb4f873bba783b2ae8be042 > > commit: 6748d05590594837e42dfa975879fb275099f0b2 ASoC: ti: Add custom machine driver for j721e EVM (CPB and IVI) > > date: 3 months ago > > config: x86_64-randconfig-r033-20200927 (attached as .config) > > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project a83eb048cb9a75da7a07a9d5318bbdbf54885c87) > > 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 x86_64 cross compiling tool for clang build > > # apt-get install binutils-x86-64-linux-gnu > > # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6748d05590594837e42dfa975879fb275099f0b2 > > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > git fetch --no-tags linus master > > git checkout 6748d05590594837e42dfa975879fb275099f0b2 > > # save the attached .config to linux build tree > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 > > > > 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 >>): > > > >>> sound/soc/ti/j721e-evm.c:528:34: warning: unused variable 'j721e_audio_of_match' [-Wunused-const-variable] > > static const struct of_device_id j721e_audio_of_match[] = { > > ^ > > 1 warning generated. > > Right, in the attached .config: > # CONFIG_OF is not set > > There must be a clean way to handle this without extensive ifedfery... Pretty sure I just saw a patch go by wrapping another device table definition in #ifdef CONFIG_OF, so it's not unusual. > > > vim +/j721e_audio_of_match +528 sound/soc/ti/j721e-evm.c > > > > 527 > > > 528 static const struct of_device_id j721e_audio_of_match[] = { > > 529 { > > 530 .compatible = "ti,j721e-cpb-audio", > > 531 .data = &j721e_cpb_data, > > 532 }, { > > 533 .compatible = "ti,j721e-cpb-ivi-audio", > > 534 .data = &j721e_cpb_ivi_data, > > 535 }, > > 536 { }, > > 537 }; > > 538 MODULE_DEVICE_TABLE(of, j721e_audio_of_match); > > 539 > > > > --- > > 0-DAY CI Kernel Test Service, Intel Corporation > > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org > > > > - Péter > > Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. > Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki > > -- > You received this message because you are subscribed to the Google Groups "Clang Built Linux" group. > To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-linux+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/76cae106-b643-57a9-e82e-48e46ebf1b70%40ti.com. -- Thanks, ~Nick Desaulniers ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: sound/soc/ti/j721e-evm.c:528:34: warning: unused variable 'j721e_audio_of_match' 2020-09-28 17:52 ` Nick Desaulniers @ 2020-09-28 18:04 ` Mark Brown 2020-09-29 6:00 ` Peter Ujfalusi 0 siblings, 1 reply; 5+ messages in thread From: Mark Brown @ 2020-09-28 18:04 UTC (permalink / raw) To: Nick Desaulniers Cc: Peter Ujfalusi, kernel test robot, kbuild-all, clang-built-linux, LKML [-- Attachment #1: Type: text/plain, Size: 472 bytes --] On Mon, Sep 28, 2020 at 10:52:54AM -0700, Nick Desaulniers wrote: > On Mon, Sep 28, 2020 at 12:27 AM 'Peter Ujfalusi' via Clang Built > > Right, in the attached .config: > > # CONFIG_OF is not set > > There must be a clean way to handle this without extensive ifedfery... > Pretty sure I just saw a patch go by wrapping another device table > definition in #ifdef CONFIG_OF, so it's not unusual. It's the standard solution, it's just not as clean as would be ideal :/ [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: sound/soc/ti/j721e-evm.c:528:34: warning: unused variable 'j721e_audio_of_match' 2020-09-28 18:04 ` Mark Brown @ 2020-09-29 6:00 ` Peter Ujfalusi 2020-09-29 11:16 ` Mark Brown 0 siblings, 1 reply; 5+ messages in thread From: Peter Ujfalusi @ 2020-09-29 6:00 UTC (permalink / raw) To: Mark Brown, Nick Desaulniers Cc: kernel test robot, kbuild-all, clang-built-linux, LKML On 28/09/2020 21.04, Mark Brown wrote: > On Mon, Sep 28, 2020 at 10:52:54AM -0700, Nick Desaulniers wrote: >> On Mon, Sep 28, 2020 at 12:27 AM 'Peter Ujfalusi' via Clang Built > >>> Right, in the attached .config: >>> # CONFIG_OF is not set > >>> There must be a clean way to handle this without extensive ifedfery... > >> Pretty sure I just saw a patch go by wrapping another device table >> definition in #ifdef CONFIG_OF, so it's not unusual. > > It's the standard solution, it's just not as clean as would be ideal :/ The ifdef would be preferred if the driver could work in non DT boot (to save few bytes) but since it is not the case here: https://lore.kernel.org/alsa-devel/20200928074330.13029-1-peter.ujfalusi@ti.com/ Not much point to size optimize for randconfig builds ;) - Péter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: sound/soc/ti/j721e-evm.c:528:34: warning: unused variable 'j721e_audio_of_match' 2020-09-29 6:00 ` Peter Ujfalusi @ 2020-09-29 11:16 ` Mark Brown 0 siblings, 0 replies; 5+ messages in thread From: Mark Brown @ 2020-09-29 11:16 UTC (permalink / raw) To: Peter Ujfalusi Cc: Nick Desaulniers, kernel test robot, kbuild-all, clang-built-linux, LKML [-- Attachment #1: Type: text/plain, Size: 395 bytes --] On Tue, Sep 29, 2020 at 09:00:02AM +0300, Peter Ujfalusi wrote: > The ifdef would be preferred if the driver could work in non DT boot (to > save few bytes) but since it is not the case here: What I'd *really* like would be something in the of_match_ptr() that flagged that there's a reference to the table for the purposes of the warning but still lets the table be eliminated by the linker. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-09-29 11:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <202009271553.4OjMpGkX%lkp@intel.com>
2020-09-28 7:27 ` sound/soc/ti/j721e-evm.c:528:34: warning: unused variable 'j721e_audio_of_match' Peter Ujfalusi
2020-09-28 17:52 ` Nick Desaulniers
2020-09-28 18:04 ` Mark Brown
2020-09-29 6:00 ` Peter Ujfalusi
2020-09-29 11:16 ` Mark Brown
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®