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

On Fri, Oct 15, 2021 at 04:10:51PM +0800, kernel test robot wrote:
> 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>

The dependency goes via a different branch than imx/drivers, and
for-next branch should be fine.

Shawn

> 
> 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



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

On Fri, Oct 15, 2021 at 04:10:51PM +0800, kernel test robot wrote:
> 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>

The dependency goes via a different branch than imx/drivers, and
for-next branch should be fine.

Shawn

> 
> 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



_______________________________________________
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: Shawn Guo <shawnguo@kernel.org>
To: kbuild-all@lists.01.org
Subject: Re: [shawnguo:imx/drivers 10/12] drivers/soc/imx/imx8m-blk-ctrl.c:401:3: error: use of undeclared identifier 'IMX8MM_VPUBLK_PD_G1'
Date: Sat, 16 Oct 2021 15:40:10 +0800	[thread overview]
Message-ID: <20211016074009.GA25810@dragon> (raw)
In-Reply-To: <202110151646.C5aKbTIN-lkp@intel.com>

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

On Fri, Oct 15, 2021 at 04:10:51PM +0800, kernel test robot wrote:
> 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>

The dependency goes via a different branch than imx/drivers, and
for-next branch should be fine.

Shawn

> 
> 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


  reply	other threads:[~2021-10-16  7:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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-15  8:10 ` kernel test robot
2021-10-16  7:40 ` Shawn Guo [this message]
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=20211016074009.GA25810@dragon \
    --to=shawnguo@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=l.stach@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=p.zabel@pengutronix.de \
    /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.