All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Lucas Stach <l.stach@pengutronix.de>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-arm-kernel@lists.infradead.org,
	Shawn Guo <shawnguo@kernel.org>,
	Philipp Zabel <p.zabel@pengutronix.de>
Subject: [shawnguo:imx/drivers 10/12] drivers/soc/imx/imx8m-blk-ctrl.c:401:3: error: use of undeclared identifier 'IMX8MM_VPUBLK_PD_G1'
Date: Fri, 15 Oct 2021 16:10:51 +0800	[thread overview]
Message-ID: <202110151646.C5aKbTIN-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git imx/drivers
head:   72949f76565c9ea9f4231c977774a31d4713c386
commit: 2684ac05a8c4d2d5c49e6c11eb6206b30a284813 [10/12] soc: imx: add i.MX8M blk-ctrl driver
config: hexagon-randconfig-r045-20211014 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project acb3b187c4c88650a6a717a1bcb234d27d0d7f54)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git/commit/?id=2684ac05a8c4d2d5c49e6c11eb6206b30a284813
        git remote add shawnguo https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git
        git fetch --no-tags shawnguo imx/drivers
        git checkout 2684ac05a8c4d2d5c49e6c11eb6206b30a284813
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> drivers/soc/imx/imx8m-blk-ctrl.c:401:3: error: use of undeclared identifier 'IMX8MM_VPUBLK_PD_G1'
           [IMX8MM_VPUBLK_PD_G1] = {
            ^
>> drivers/soc/imx/imx8m-blk-ctrl.c:409:3: error: use of undeclared identifier 'IMX8MM_VPUBLK_PD_G2'
           [IMX8MM_VPUBLK_PD_G2] = {
            ^
>> drivers/soc/imx/imx8m-blk-ctrl.c:417:3: error: use of undeclared identifier 'IMX8MM_VPUBLK_PD_H1'
           [IMX8MM_VPUBLK_PD_H1] = {
            ^
>> drivers/soc/imx/imx8m-blk-ctrl.c:431:17: error: invalid application of 'sizeof' to an incomplete type 'const struct imx8m_blk_ctrl_domain_data []'
           .num_domains = ARRAY_SIZE(imx8mm_vpu_blk_ctl_domain_data),
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:44:32: note: expanded from macro 'ARRAY_SIZE'
   #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
                                  ^~~~~
   4 errors generated.


vim +/IMX8MM_VPUBLK_PD_G1 +401 drivers/soc/imx/imx8m-blk-ctrl.c

   399	
   400	static const struct imx8m_blk_ctrl_domain_data imx8mm_vpu_blk_ctl_domain_data[] = {
 > 401		[IMX8MM_VPUBLK_PD_G1] = {
   402			.name = "vpublk-g1",
   403			.clk_names = (const char *[]){ "g1", },
   404			.num_clks = 1,
   405			.gpc_name = "g1",
   406			.rst_mask = BIT(1),
   407			.clk_mask = BIT(1),
   408		},
 > 409		[IMX8MM_VPUBLK_PD_G2] = {
   410			.name = "vpublk-g2",
   411			.clk_names = (const char *[]){ "g2", },
   412			.num_clks = 1,
   413			.gpc_name = "g2",
   414			.rst_mask = BIT(0),
   415			.clk_mask = BIT(0),
   416		},
 > 417		[IMX8MM_VPUBLK_PD_H1] = {
   418			.name = "vpublk-h1",
   419			.clk_names = (const char *[]){ "h1", },
   420			.num_clks = 1,
   421			.gpc_name = "h1",
   422			.rst_mask = BIT(2),
   423			.clk_mask = BIT(2),
   424		},
   425	};
   426	
   427	static const struct imx8m_blk_ctrl_data imx8mm_vpu_blk_ctl_dev_data = {
   428		.max_reg = 0x18,
   429		.power_notifier_fn = imx8mm_vpu_power_notifier,
   430		.domains = imx8mm_vpu_blk_ctl_domain_data,
 > 431		.num_domains = ARRAY_SIZE(imx8mm_vpu_blk_ctl_domain_data),
   432	};
   433	

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Lucas Stach <l.stach@pengutronix.de>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-arm-kernel@lists.infradead.org,
	Shawn Guo <shawnguo@kernel.org>,
	Philipp Zabel <p.zabel@pengutronix.de>
Subject: [shawnguo:imx/drivers 10/12] drivers/soc/imx/imx8m-blk-ctrl.c:401:3: error: use of undeclared identifier 'IMX8MM_VPUBLK_PD_G1'
Date: Fri, 15 Oct 2021 16:10:51 +0800	[thread overview]
Message-ID: <202110151646.C5aKbTIN-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git imx/drivers
head:   72949f76565c9ea9f4231c977774a31d4713c386
commit: 2684ac05a8c4d2d5c49e6c11eb6206b30a284813 [10/12] soc: imx: add i.MX8M blk-ctrl driver
config: hexagon-randconfig-r045-20211014 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project acb3b187c4c88650a6a717a1bcb234d27d0d7f54)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git/commit/?id=2684ac05a8c4d2d5c49e6c11eb6206b30a284813
        git remote add shawnguo https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git
        git fetch --no-tags shawnguo imx/drivers
        git checkout 2684ac05a8c4d2d5c49e6c11eb6206b30a284813
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> drivers/soc/imx/imx8m-blk-ctrl.c:401:3: error: use of undeclared identifier 'IMX8MM_VPUBLK_PD_G1'
           [IMX8MM_VPUBLK_PD_G1] = {
            ^
>> drivers/soc/imx/imx8m-blk-ctrl.c:409:3: error: use of undeclared identifier 'IMX8MM_VPUBLK_PD_G2'
           [IMX8MM_VPUBLK_PD_G2] = {
            ^
>> drivers/soc/imx/imx8m-blk-ctrl.c:417:3: error: use of undeclared identifier 'IMX8MM_VPUBLK_PD_H1'
           [IMX8MM_VPUBLK_PD_H1] = {
            ^
>> drivers/soc/imx/imx8m-blk-ctrl.c:431:17: error: invalid application of 'sizeof' to an incomplete type 'const struct imx8m_blk_ctrl_domain_data []'
           .num_domains = ARRAY_SIZE(imx8mm_vpu_blk_ctl_domain_data),
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:44:32: note: expanded from macro 'ARRAY_SIZE'
   #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
                                  ^~~~~
   4 errors generated.


vim +/IMX8MM_VPUBLK_PD_G1 +401 drivers/soc/imx/imx8m-blk-ctrl.c

   399	
   400	static const struct imx8m_blk_ctrl_domain_data imx8mm_vpu_blk_ctl_domain_data[] = {
 > 401		[IMX8MM_VPUBLK_PD_G1] = {
   402			.name = "vpublk-g1",
   403			.clk_names = (const char *[]){ "g1", },
   404			.num_clks = 1,
   405			.gpc_name = "g1",
   406			.rst_mask = BIT(1),
   407			.clk_mask = BIT(1),
   408		},
 > 409		[IMX8MM_VPUBLK_PD_G2] = {
   410			.name = "vpublk-g2",
   411			.clk_names = (const char *[]){ "g2", },
   412			.num_clks = 1,
   413			.gpc_name = "g2",
   414			.rst_mask = BIT(0),
   415			.clk_mask = BIT(0),
   416		},
 > 417		[IMX8MM_VPUBLK_PD_H1] = {
   418			.name = "vpublk-h1",
   419			.clk_names = (const char *[]){ "h1", },
   420			.num_clks = 1,
   421			.gpc_name = "h1",
   422			.rst_mask = BIT(2),
   423			.clk_mask = BIT(2),
   424		},
   425	};
   426	
   427	static const struct imx8m_blk_ctrl_data imx8mm_vpu_blk_ctl_dev_data = {
   428		.max_reg = 0x18,
   429		.power_notifier_fn = imx8mm_vpu_power_notifier,
   430		.domains = imx8mm_vpu_blk_ctl_domain_data,
 > 431		.num_domains = ARRAY_SIZE(imx8mm_vpu_blk_ctl_domain_data),
   432	};
   433	

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

[-- Attachment #3: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [shawnguo:imx/drivers 10/12] drivers/soc/imx/imx8m-blk-ctrl.c:401:3: error: use of undeclared identifier 'IMX8MM_VPUBLK_PD_G1'
Date: Fri, 15 Oct 2021 16:10:51 +0800	[thread overview]
Message-ID: <202110151646.C5aKbTIN-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git imx/drivers
head:   72949f76565c9ea9f4231c977774a31d4713c386
commit: 2684ac05a8c4d2d5c49e6c11eb6206b30a284813 [10/12] soc: imx: add i.MX8M blk-ctrl driver
config: hexagon-randconfig-r045-20211014 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project acb3b187c4c88650a6a717a1bcb234d27d0d7f54)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git/commit/?id=2684ac05a8c4d2d5c49e6c11eb6206b30a284813
        git remote add shawnguo https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git
        git fetch --no-tags shawnguo imx/drivers
        git checkout 2684ac05a8c4d2d5c49e6c11eb6206b30a284813
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> drivers/soc/imx/imx8m-blk-ctrl.c:401:3: error: use of undeclared identifier 'IMX8MM_VPUBLK_PD_G1'
           [IMX8MM_VPUBLK_PD_G1] = {
            ^
>> drivers/soc/imx/imx8m-blk-ctrl.c:409:3: error: use of undeclared identifier 'IMX8MM_VPUBLK_PD_G2'
           [IMX8MM_VPUBLK_PD_G2] = {
            ^
>> drivers/soc/imx/imx8m-blk-ctrl.c:417:3: error: use of undeclared identifier 'IMX8MM_VPUBLK_PD_H1'
           [IMX8MM_VPUBLK_PD_H1] = {
            ^
>> drivers/soc/imx/imx8m-blk-ctrl.c:431:17: error: invalid application of 'sizeof' to an incomplete type 'const struct imx8m_blk_ctrl_domain_data []'
           .num_domains = ARRAY_SIZE(imx8mm_vpu_blk_ctl_domain_data),
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:44:32: note: expanded from macro 'ARRAY_SIZE'
   #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
                                  ^~~~~
   4 errors generated.


vim +/IMX8MM_VPUBLK_PD_G1 +401 drivers/soc/imx/imx8m-blk-ctrl.c

   399	
   400	static const struct imx8m_blk_ctrl_domain_data imx8mm_vpu_blk_ctl_domain_data[] = {
 > 401		[IMX8MM_VPUBLK_PD_G1] = {
   402			.name = "vpublk-g1",
   403			.clk_names = (const char *[]){ "g1", },
   404			.num_clks = 1,
   405			.gpc_name = "g1",
   406			.rst_mask = BIT(1),
   407			.clk_mask = BIT(1),
   408		},
 > 409		[IMX8MM_VPUBLK_PD_G2] = {
   410			.name = "vpublk-g2",
   411			.clk_names = (const char *[]){ "g2", },
   412			.num_clks = 1,
   413			.gpc_name = "g2",
   414			.rst_mask = BIT(0),
   415			.clk_mask = BIT(0),
   416		},
 > 417		[IMX8MM_VPUBLK_PD_H1] = {
   418			.name = "vpublk-h1",
   419			.clk_names = (const char *[]){ "h1", },
   420			.num_clks = 1,
   421			.gpc_name = "h1",
   422			.rst_mask = BIT(2),
   423			.clk_mask = BIT(2),
   424		},
   425	};
   426	
   427	static const struct imx8m_blk_ctrl_data imx8mm_vpu_blk_ctl_dev_data = {
   428		.max_reg = 0x18,
   429		.power_notifier_fn = imx8mm_vpu_power_notifier,
   430		.domains = imx8mm_vpu_blk_ctl_domain_data,
 > 431		.num_domains = ARRAY_SIZE(imx8mm_vpu_blk_ctl_domain_data),
   432	};
   433	

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

             reply	other threads:[~2021-10-15  8:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-15  8:10 kernel test robot [this message]
2021-10-15  8:10 ` [shawnguo:imx/drivers 10/12] drivers/soc/imx/imx8m-blk-ctrl.c:401:3: error: use of undeclared identifier 'IMX8MM_VPUBLK_PD_G1' kernel test robot
2021-10-15  8:10 ` kernel test robot
2021-10-16  7:40 ` Shawn Guo
2021-10-16  7:40   ` Shawn Guo
2021-10-16  7:40   ` Shawn Guo

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=202110151646.C5aKbTIN-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=l.stach@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=llvm@lists.linux.dev \
    --cc=p.zabel@pengutronix.de \
    --cc=shawnguo@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 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.