From: kernel test robot <lkp@intel.com>
To: Dmitry Osipenko <digetx@gmail.com>,
Thierry Reding <thierry.reding@gmail.com>,
Jonathan Hunter <jonathanh@nvidia.com>,
Peter Geis <pgwipeout@gmail.com>,
Nicolas Chauvet <kwizart@gmail.com>,
Viresh Kumar <vireshk@kernel.org>,
Stephen Boyd <sboyd@kernel.org>, Nishanth Menon <nm@ti.com>,
Matt Merhar <mattmerhar@protonmail.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
linux-tegra@vger.kernel.org
Subject: Re: [PATCH v3] soc/tegra: Add devm_tegra_core_dev_init_opp_table()
Date: Fri, 22 Jan 2021 14:29:13 +0800 [thread overview]
Message-ID: <202101221455.Y4VwWwg5-lkp@intel.com> (raw)
In-Reply-To: <20210121190117.25235-1-digetx@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 5016 bytes --]
Hi Dmitry,
I love your patch! Yet something to improve:
[auto build test ERROR on tegra/for-next]
[also build test ERROR on v5.11-rc4 next-20210121]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Dmitry-Osipenko/soc-tegra-Add-devm_tegra_core_dev_init_opp_table/20210122-032018
base: https://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git for-next
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
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://github.com/0day-ci/linux/commit/d506fc2521a717df9b74b7106dbc8f2912b39e05
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Dmitry-Osipenko/soc-tegra-Add-devm_tegra_core_dev_init_opp_table/20210122-032018
git checkout d506fc2521a717df9b74b7106dbc8f2912b39e05
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
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/tegra/common.c: In function 'devm_tegra_core_dev_init_opp_table':
>> drivers/soc/tegra/common.c:122:14: error: implicit declaration of function 'devm_pm_opp_set_clkname'; did you mean 'dev_pm_opp_set_clkname'? [-Werror=implicit-function-declaration]
122 | opp_table = devm_pm_opp_set_clkname(dev, NULL);
| ^~~~~~~~~~~~~~~~~~~~~~~
| dev_pm_opp_set_clkname
drivers/soc/tegra/common.c:122:12: warning: assignment to 'struct opp_table *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
122 | opp_table = devm_pm_opp_set_clkname(dev, NULL);
| ^
>> drivers/soc/tegra/common.c:138:14: error: implicit declaration of function 'devm_pm_opp_set_supported_hw'; did you mean 'dev_pm_opp_set_supported_hw'? [-Werror=implicit-function-declaration]
138 | opp_table = devm_pm_opp_set_supported_hw(dev, &hw_version, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| dev_pm_opp_set_supported_hw
drivers/soc/tegra/common.c:138:12: warning: assignment to 'struct opp_table *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
138 | opp_table = devm_pm_opp_set_supported_hw(dev, &hw_version, 1);
| ^
>> drivers/soc/tegra/common.c:152:8: error: implicit declaration of function 'devm_pm_opp_of_add_table'; did you mean 'dev_pm_opp_of_add_table'? [-Werror=implicit-function-declaration]
152 | err = devm_pm_opp_of_add_table(dev);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| dev_pm_opp_of_add_table
cc1: some warnings being treated as errors
vim +122 drivers/soc/tegra/common.c
105
106 /**
107 * devm_tegra_core_dev_init_opp_table() - initialize OPP table
108 * @cfg: pointer to the OPP table configuration
109 *
110 * This function will initialize OPP table and sync OPP state of a Tegra SoC
111 * core device.
112 *
113 * Return: 0 on success or errorno.
114 */
115 int devm_tegra_core_dev_init_opp_table(struct device *dev,
116 struct tegra_core_opp_params *params)
117 {
118 struct opp_table *opp_table;
119 u32 hw_version;
120 int err;
121
> 122 opp_table = devm_pm_opp_set_clkname(dev, NULL);
123 if (IS_ERR(opp_table)) {
124 dev_err(dev, "failed to set OPP clk %pe\n", opp_table);
125 return PTR_ERR(opp_table);
126 }
127
128 /* Tegra114+ doesn't support OPP yet */
129 if (!of_machine_is_compatible("nvidia,tegra20") &&
130 !of_machine_is_compatible("nvidia,tegra30"))
131 return -ENODEV;
132
133 if (of_machine_is_compatible("nvidia,tegra20"))
134 hw_version = BIT(tegra_sku_info.soc_process_id);
135 else
136 hw_version = BIT(tegra_sku_info.soc_speedo_id);
137
> 138 opp_table = devm_pm_opp_set_supported_hw(dev, &hw_version, 1);
139 if (IS_ERR(opp_table)) {
140 dev_err(dev, "failed to set OPP supported HW: %pe\n", opp_table);
141 return PTR_ERR(opp_table);
142 }
143
144 /*
145 * Older device-trees have an empty OPP table, hence we will get
146 * -ENODEV from devm_pm_opp_of_add_table() for the older DTBs.
147 *
148 * The OPP table presence also varies per-device and depending
149 * on a SoC generation, hence -ENODEV is expected to happen for
150 * the newer DTs as well.
151 */
> 152 err = devm_pm_opp_of_add_table(dev);
---
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: 54193 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v3] soc/tegra: Add devm_tegra_core_dev_init_opp_table()
Date: Fri, 22 Jan 2021 14:29:13 +0800 [thread overview]
Message-ID: <202101221455.Y4VwWwg5-lkp@intel.com> (raw)
In-Reply-To: <20210121190117.25235-1-digetx@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 5123 bytes --]
Hi Dmitry,
I love your patch! Yet something to improve:
[auto build test ERROR on tegra/for-next]
[also build test ERROR on v5.11-rc4 next-20210121]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Dmitry-Osipenko/soc-tegra-Add-devm_tegra_core_dev_init_opp_table/20210122-032018
base: https://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git for-next
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
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://github.com/0day-ci/linux/commit/d506fc2521a717df9b74b7106dbc8f2912b39e05
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Dmitry-Osipenko/soc-tegra-Add-devm_tegra_core_dev_init_opp_table/20210122-032018
git checkout d506fc2521a717df9b74b7106dbc8f2912b39e05
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
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/tegra/common.c: In function 'devm_tegra_core_dev_init_opp_table':
>> drivers/soc/tegra/common.c:122:14: error: implicit declaration of function 'devm_pm_opp_set_clkname'; did you mean 'dev_pm_opp_set_clkname'? [-Werror=implicit-function-declaration]
122 | opp_table = devm_pm_opp_set_clkname(dev, NULL);
| ^~~~~~~~~~~~~~~~~~~~~~~
| dev_pm_opp_set_clkname
drivers/soc/tegra/common.c:122:12: warning: assignment to 'struct opp_table *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
122 | opp_table = devm_pm_opp_set_clkname(dev, NULL);
| ^
>> drivers/soc/tegra/common.c:138:14: error: implicit declaration of function 'devm_pm_opp_set_supported_hw'; did you mean 'dev_pm_opp_set_supported_hw'? [-Werror=implicit-function-declaration]
138 | opp_table = devm_pm_opp_set_supported_hw(dev, &hw_version, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| dev_pm_opp_set_supported_hw
drivers/soc/tegra/common.c:138:12: warning: assignment to 'struct opp_table *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
138 | opp_table = devm_pm_opp_set_supported_hw(dev, &hw_version, 1);
| ^
>> drivers/soc/tegra/common.c:152:8: error: implicit declaration of function 'devm_pm_opp_of_add_table'; did you mean 'dev_pm_opp_of_add_table'? [-Werror=implicit-function-declaration]
152 | err = devm_pm_opp_of_add_table(dev);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| dev_pm_opp_of_add_table
cc1: some warnings being treated as errors
vim +122 drivers/soc/tegra/common.c
105
106 /**
107 * devm_tegra_core_dev_init_opp_table() - initialize OPP table
108 * @cfg: pointer to the OPP table configuration
109 *
110 * This function will initialize OPP table and sync OPP state of a Tegra SoC
111 * core device.
112 *
113 * Return: 0 on success or errorno.
114 */
115 int devm_tegra_core_dev_init_opp_table(struct device *dev,
116 struct tegra_core_opp_params *params)
117 {
118 struct opp_table *opp_table;
119 u32 hw_version;
120 int err;
121
> 122 opp_table = devm_pm_opp_set_clkname(dev, NULL);
123 if (IS_ERR(opp_table)) {
124 dev_err(dev, "failed to set OPP clk %pe\n", opp_table);
125 return PTR_ERR(opp_table);
126 }
127
128 /* Tegra114+ doesn't support OPP yet */
129 if (!of_machine_is_compatible("nvidia,tegra20") &&
130 !of_machine_is_compatible("nvidia,tegra30"))
131 return -ENODEV;
132
133 if (of_machine_is_compatible("nvidia,tegra20"))
134 hw_version = BIT(tegra_sku_info.soc_process_id);
135 else
136 hw_version = BIT(tegra_sku_info.soc_speedo_id);
137
> 138 opp_table = devm_pm_opp_set_supported_hw(dev, &hw_version, 1);
139 if (IS_ERR(opp_table)) {
140 dev_err(dev, "failed to set OPP supported HW: %pe\n", opp_table);
141 return PTR_ERR(opp_table);
142 }
143
144 /*
145 * Older device-trees have an empty OPP table, hence we will get
146 * -ENODEV from devm_pm_opp_of_add_table() for the older DTBs.
147 *
148 * The OPP table presence also varies per-device and depending
149 * on a SoC generation, hence -ENODEV is expected to happen for
150 * the newer DTs as well.
151 */
> 152 err = devm_pm_opp_of_add_table(dev);
---
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: 54193 bytes --]
next prev parent reply other threads:[~2021-01-22 6:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-21 19:01 [PATCH v3] soc/tegra: Add devm_tegra_core_dev_init_opp_table() Dmitry Osipenko
2021-01-22 3:38 ` kernel test robot
2021-01-22 3:38 ` kernel test robot
2021-01-22 6:29 ` kernel test robot [this message]
2021-01-22 6:29 ` kernel test robot
2021-01-22 6:35 ` Viresh Kumar
2021-01-22 14:41 ` Dmitry Osipenko
2021-01-25 3:07 ` Viresh Kumar
2021-01-25 17:23 ` Dmitry Osipenko
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=202101221455.Y4VwWwg5-lkp@intel.com \
--to=lkp@intel.com \
--cc=digetx@gmail.com \
--cc=jonathanh@nvidia.com \
--cc=kbuild-all@lists.01.org \
--cc=kwizart@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=mattmerhar@protonmail.com \
--cc=nm@ti.com \
--cc=pgwipeout@gmail.com \
--cc=sboyd@kernel.org \
--cc=thierry.reding@gmail.com \
--cc=vireshk@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.