linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sound/soc/fsl/imx-audmux.c:301:16: warning: cast to smaller integer type 'enum imx_audmux_type' from 'const void *'
@ 2021-11-16 22:48 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-11-16 22:48 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: llvm, kbuild-all, linux-kernel, Mark Brown

[-- Attachment #1: Type: text/plain, Size: 2969 bytes --]

Hi Fabio,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   8ab774587903771821b59471cc723bba6d893942
commit: 6a8b8b582db13a18235f3b0400f103a0573c7859 ASoC: imx-audmux: Remove unused .id_table
date:   12 months ago
config: arm64-buildonly-randconfig-r003-20211116 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project fbe72e41b99dc7994daac300d208a955be3e4a0a)
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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6a8b8b582db13a18235f3b0400f103a0573c7859
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 6a8b8b582db13a18235f3b0400f103a0573c7859
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64 

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/fsl/imx-audmux.c:301:16: warning: cast to smaller integer type 'enum imx_audmux_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]
           audmux_type = (enum imx_audmux_type)of_device_get_match_data(&pdev->dev);
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 warning generated.


vim +301 sound/soc/fsl/imx-audmux.c

   287	
   288	static int imx_audmux_probe(struct platform_device *pdev)
   289	{
   290		audmux_base = devm_platform_ioremap_resource(pdev, 0);
   291		if (IS_ERR(audmux_base))
   292			return PTR_ERR(audmux_base);
   293	
   294		audmux_clk = devm_clk_get(&pdev->dev, "audmux");
   295		if (IS_ERR(audmux_clk)) {
   296			dev_dbg(&pdev->dev, "cannot get clock: %ld\n",
   297					PTR_ERR(audmux_clk));
   298			audmux_clk = NULL;
   299		}
   300	
 > 301		audmux_type = (enum imx_audmux_type)of_device_get_match_data(&pdev->dev);
   302	
   303		switch (audmux_type) {
   304		case IMX31_AUDMUX:
   305			audmux_debugfs_init();
   306			reg_max = 14;
   307			break;
   308		case IMX21_AUDMUX:
   309			reg_max = 6;
   310			break;
   311		default:
   312			dev_err(&pdev->dev, "unsupported version!\n");
   313			return -EINVAL;
   314		}
   315	
   316		regcache = devm_kzalloc(&pdev->dev, sizeof(u32) * reg_max, GFP_KERNEL);
   317		if (!regcache)
   318			return -ENOMEM;
   319	
   320		imx_audmux_parse_dt_defaults(pdev, pdev->dev.of_node);
   321	
   322		return 0;
   323	}
   324	

---
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: 37632 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* sound/soc/fsl/imx-audmux.c:301:16: warning: cast to smaller integer type 'enum imx_audmux_type' from 'const void *'
@ 2022-04-22  5:51 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2022-04-22  5:51 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: llvm, kbuild-all, linux-kernel, Mark Brown

Hi Fabio,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b05a5683eba6e2d40eadd5eeef53c4864149a4fe
commit: 6a8b8b582db13a18235f3b0400f103a0573c7859 ASoC: imx-audmux: Remove unused .id_table
date:   1 year, 5 months ago
config: arm64-buildonly-randconfig-r002-20220421 (https://download.01.org/0day-ci/archive/20220422/202204221334.HsOqkl21-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project bac6cd5bf85669e3376610cfc4c4f9ca015e7b9b)
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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6a8b8b582db13a18235f3b0400f103a0573c7859
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 6a8b8b582db13a18235f3b0400f103a0573c7859
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/tty/serial/ sound/soc/codecs/ sound/soc/fsl/

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/fsl/imx-audmux.c:301:16: warning: cast to smaller integer type 'enum imx_audmux_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]
           audmux_type = (enum imx_audmux_type)of_device_get_match_data(&pdev->dev);
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 warning generated.


vim +301 sound/soc/fsl/imx-audmux.c

   287	
   288	static int imx_audmux_probe(struct platform_device *pdev)
   289	{
   290		audmux_base = devm_platform_ioremap_resource(pdev, 0);
   291		if (IS_ERR(audmux_base))
   292			return PTR_ERR(audmux_base);
   293	
   294		audmux_clk = devm_clk_get(&pdev->dev, "audmux");
   295		if (IS_ERR(audmux_clk)) {
   296			dev_dbg(&pdev->dev, "cannot get clock: %ld\n",
   297					PTR_ERR(audmux_clk));
   298			audmux_clk = NULL;
   299		}
   300	
 > 301		audmux_type = (enum imx_audmux_type)of_device_get_match_data(&pdev->dev);
   302	
   303		switch (audmux_type) {
   304		case IMX31_AUDMUX:
   305			audmux_debugfs_init();
   306			reg_max = 14;
   307			break;
   308		case IMX21_AUDMUX:
   309			reg_max = 6;
   310			break;
   311		default:
   312			dev_err(&pdev->dev, "unsupported version!\n");
   313			return -EINVAL;
   314		}
   315	
   316		regcache = devm_kzalloc(&pdev->dev, sizeof(u32) * reg_max, GFP_KERNEL);
   317		if (!regcache)
   318			return -ENOMEM;
   319	
   320		imx_audmux_parse_dt_defaults(pdev, pdev->dev.of_node);
   321	
   322		return 0;
   323	}
   324	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] 4+ messages in thread

* sound/soc/fsl/imx-audmux.c:301:16: warning: cast to smaller integer type 'enum imx_audmux_type' from 'const void *'
@ 2021-11-07  7:26 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-11-07  7:26 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: llvm, kbuild-all, linux-kernel, Mark Brown

[-- Attachment #1: Type: text/plain, Size: 2959 bytes --]

Hi Fabio,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b5013d084e03e82ceeab4db8ae8ceeaebe76b0eb
commit: 6a8b8b582db13a18235f3b0400f103a0573c7859 ASoC: imx-audmux: Remove unused .id_table
date:   12 months ago
config: arm64-randconfig-r015-20210927 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dc6e8dfdfe7efecfda318d43a06fae18b40eb498)
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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6a8b8b582db13a18235f3b0400f103a0573c7859
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 6a8b8b582db13a18235f3b0400f103a0573c7859
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64 

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/fsl/imx-audmux.c:301:16: warning: cast to smaller integer type 'enum imx_audmux_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]
           audmux_type = (enum imx_audmux_type)of_device_get_match_data(&pdev->dev);
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 warning generated.


vim +301 sound/soc/fsl/imx-audmux.c

   287	
   288	static int imx_audmux_probe(struct platform_device *pdev)
   289	{
   290		audmux_base = devm_platform_ioremap_resource(pdev, 0);
   291		if (IS_ERR(audmux_base))
   292			return PTR_ERR(audmux_base);
   293	
   294		audmux_clk = devm_clk_get(&pdev->dev, "audmux");
   295		if (IS_ERR(audmux_clk)) {
   296			dev_dbg(&pdev->dev, "cannot get clock: %ld\n",
   297					PTR_ERR(audmux_clk));
   298			audmux_clk = NULL;
   299		}
   300	
 > 301		audmux_type = (enum imx_audmux_type)of_device_get_match_data(&pdev->dev);
   302	
   303		switch (audmux_type) {
   304		case IMX31_AUDMUX:
   305			audmux_debugfs_init();
   306			reg_max = 14;
   307			break;
   308		case IMX21_AUDMUX:
   309			reg_max = 6;
   310			break;
   311		default:
   312			dev_err(&pdev->dev, "unsupported version!\n");
   313			return -EINVAL;
   314		}
   315	
   316		regcache = devm_kzalloc(&pdev->dev, sizeof(u32) * reg_max, GFP_KERNEL);
   317		if (!regcache)
   318			return -ENOMEM;
   319	
   320		imx_audmux_parse_dt_defaults(pdev, pdev->dev.of_node);
   321	
   322		return 0;
   323	}
   324	

---
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: 32832 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* sound/soc/fsl/imx-audmux.c:301:16: warning: cast to smaller integer type 'enum imx_audmux_type' from 'const void *'
@ 2021-09-27 14:32 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-09-27 14:32 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: llvm, kbuild-all, linux-kernel, Mark Brown

[-- Attachment #1: Type: text/plain, Size: 2909 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   92477dd1faa650e50bd3bb35a6c0b8d09198cc35
commit: 6a8b8b582db13a18235f3b0400f103a0573c7859 ASoC: imx-audmux: Remove unused .id_table
date:   10 months ago
config: arm64-randconfig-r015-20210927 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dc6e8dfdfe7efecfda318d43a06fae18b40eb498)
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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6a8b8b582db13a18235f3b0400f103a0573c7859
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 6a8b8b582db13a18235f3b0400f103a0573c7859
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64 

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/fsl/imx-audmux.c:301:16: warning: cast to smaller integer type 'enum imx_audmux_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]
           audmux_type = (enum imx_audmux_type)of_device_get_match_data(&pdev->dev);
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 warning generated.


vim +301 sound/soc/fsl/imx-audmux.c

   287	
   288	static int imx_audmux_probe(struct platform_device *pdev)
   289	{
   290		audmux_base = devm_platform_ioremap_resource(pdev, 0);
   291		if (IS_ERR(audmux_base))
   292			return PTR_ERR(audmux_base);
   293	
   294		audmux_clk = devm_clk_get(&pdev->dev, "audmux");
   295		if (IS_ERR(audmux_clk)) {
   296			dev_dbg(&pdev->dev, "cannot get clock: %ld\n",
   297					PTR_ERR(audmux_clk));
   298			audmux_clk = NULL;
   299		}
   300	
 > 301		audmux_type = (enum imx_audmux_type)of_device_get_match_data(&pdev->dev);
   302	
   303		switch (audmux_type) {
   304		case IMX31_AUDMUX:
   305			audmux_debugfs_init();
   306			reg_max = 14;
   307			break;
   308		case IMX21_AUDMUX:
   309			reg_max = 6;
   310			break;
   311		default:
   312			dev_err(&pdev->dev, "unsupported version!\n");
   313			return -EINVAL;
   314		}
   315	
   316		regcache = devm_kzalloc(&pdev->dev, sizeof(u32) * reg_max, GFP_KERNEL);
   317		if (!regcache)
   318			return -ENOMEM;
   319	
   320		imx_audmux_parse_dt_defaults(pdev, pdev->dev.of_node);
   321	
   322		return 0;
   323	}
   324	

---
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: 32832 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-04-22  5:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-16 22:48 sound/soc/fsl/imx-audmux.c:301:16: warning: cast to smaller integer type 'enum imx_audmux_type' from 'const void *' kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2022-04-22  5:51 kernel test robot
2021-11-07  7:26 kernel test robot
2021-09-27 14:32 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).