Message ID | 20250304-mt6359-accdet-dts-v3-4-5b0eafc29f5b@collabora.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | Get mt6359-accdet ready for usage in Devicetree | expand |
Hi Nícolas, kernel test robot noticed the following build warnings: [auto build test WARNING on 20d5c66e1810e6e8805ec0d01373afb2dba9f51a] url: https://github.com/intel-lab-lkp/linux/commits/N-colas-F-R-A-Prado/ASoC-dt-bindings-Add-document-for-mt6359-accdet/20250304-233834 base: 20d5c66e1810e6e8805ec0d01373afb2dba9f51a patch link: https://lore.kernel.org/r/20250304-mt6359-accdet-dts-v3-4-5b0eafc29f5b%40collabora.com patch subject: [PATCH v3 04/20] ASoC: mediatek: mt6359-accdet: Add compatible property config: s390-randconfig-r133-20250306 (https://download.01.org/0day-ci/archive/20250307/202503070421.25fbw6zg-lkp@intel.com/config) compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a) reproduce: (https://download.01.org/0day-ci/archive/20250307/202503070421.25fbw6zg-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/202503070421.25fbw6zg-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> sound/soc/codecs/mt6359-accdet.c:1050:27: sparse: sparse: symbol 'accdet_of_match' was not declared. Should it be static? vim +/accdet_of_match +1050 sound/soc/codecs/mt6359-accdet.c 1049 > 1050 const struct of_device_id accdet_of_match[] = { 1051 { .compatible = "mediatek,mt6359-accdet", }, 1052 { /* sentinel */ }, 1053 }; 1054 MODULE_DEVICE_TABLE(of, accdet_of_match); 1055
diff --git a/sound/soc/codecs/mt6359-accdet.c b/sound/soc/codecs/mt6359-accdet.c index ed34cc15b80e856356c07fd53af22207124e0d19..9bbd4497e8d481ee125693be2fc576b439574b39 100644 --- a/sound/soc/codecs/mt6359-accdet.c +++ b/sound/soc/codecs/mt6359-accdet.c @@ -1047,9 +1047,16 @@ static int mt6359_accdet_probe(struct platform_device *pdev) return ret; } +const struct of_device_id accdet_of_match[] = { + { .compatible = "mediatek,mt6359-accdet", }, + { /* sentinel */ }, +}; +MODULE_DEVICE_TABLE(of, accdet_of_match); + static struct platform_driver mt6359_accdet_driver = { .driver = { .name = "pmic-codec-accdet", + .of_match_table = accdet_of_match, }, .probe = mt6359_accdet_probe, };