From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: Re: [RFC PATCH v1] pinctrl: imx8m: kconfig: Depends on SOC_IMX8M
Date: Sat, 06 Aug 2022 20:36:07 +0800 [thread overview]
Message-ID: <202208062030.11RYGgce-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 13269 bytes --]
::::::
:::::: Manual check reason: "only Kconfig file updated"
::::::
BCC: lkp(a)intel.com
CC: kbuild-all(a)lists.01.org
In-Reply-To: <20220802110232.130758-1-francesco.dolcini@toradex.com>
References: <20220802110232.130758-1-francesco.dolcini@toradex.com>
TO: Francesco Dolcini <francesco.dolcini@toradex.com>
Hi Francesco,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on linusw-pinctrl/devel]
[also build test WARNING on linus/master v5.19 next-20220805]
[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#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Francesco-Dolcini/pinctrl-imx8m-kconfig-Depends-on-SOC_IMX8M/20220802-190320
base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel
:::::: branch date: 4 days ago
:::::: commit date: 4 days ago
config: alpha-randconfig-r033-20220805 (https://download.01.org/0day-ci/archive/20220806/202208062030.11RYGgce-lkp(a)intel.com/config)
compiler: alpha-linux-gcc (GCC) 12.1.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/intel-lab-lkp/linux/commit/8cf69707b586a5aaa92ba9757f2d98383b220a43
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Francesco-Dolcini/pinctrl-imx8m-kconfig-Depends-on-SOC_IMX8M/20220802-190320
git checkout 8cf69707b586a5aaa92ba9757f2d98383b220a43
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=alpha SHELL=/bin/bash drivers/pinctrl/freescale/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/pinctrl/freescale/pinctrl-imx.c: In function 'imx_pmx_set':
drivers/pinctrl/freescale/pinctrl-imx.c:260:16: error: implicit declaration of function 'pinmux_generic_get_function'; did you mean 'pinmux_generic_free_functions'? [-Werror=implicit-function-declaration]
260 | func = pinmux_generic_get_function(pctldev, selector);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| pinmux_generic_free_functions
>> drivers/pinctrl/freescale/pinctrl-imx.c:260:14: warning: assignment to 'struct function_desc *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
260 | func = pinmux_generic_get_function(pctldev, selector);
| ^
In file included from include/linux/device.h:15,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from include/linux/of_device.h:5,
from drivers/pinctrl/freescale/pinctrl-imx.c:16:
drivers/pinctrl/freescale/pinctrl-imx.c:267:21: error: invalid use of undefined type 'struct function_desc'
267 | func->name, grp->name);
| ^~
include/linux/dev_printk.h:129:48: note: in definition of macro 'dev_printk'
129 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
drivers/pinctrl/freescale/pinctrl-imx.c:266:9: note: in expansion of macro 'dev_dbg'
266 | dev_dbg(ipctl->dev, "enable function %s group %s\n",
| ^~~~~~~
drivers/pinctrl/freescale/pinctrl-imx.c: At top level:
drivers/pinctrl/freescale/pinctrl-imx.c:287:32: error: 'pinmux_generic_get_function_count' undeclared here (not in a function); did you mean 'pinmux_generic_free_functions'?
287 | .get_functions_count = pinmux_generic_get_function_count,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| pinmux_generic_free_functions
drivers/pinctrl/freescale/pinctrl-imx.c:288:30: error: 'pinmux_generic_get_function_name' undeclared here (not in a function); did you mean 'pinmux_generic_free_functions'?
288 | .get_function_name = pinmux_generic_get_function_name,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| pinmux_generic_free_functions
drivers/pinctrl/freescale/pinctrl-imx.c:289:32: error: 'pinmux_generic_get_function_groups' undeclared here (not in a function); did you mean 'pinmux_generic_free_functions'?
289 | .get_function_groups = pinmux_generic_get_function_groups,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| pinmux_generic_free_functions
drivers/pinctrl/freescale/pinctrl-imx.c: In function 'imx_pinconf_parse_generic_config':
drivers/pinctrl/freescale/pinctrl-imx.c:341:15: error: implicit declaration of function 'pinconf_generic_parse_dt_config'; did you mean 'pinconf_generic_dump_config'? [-Werror=implicit-function-declaration]
341 | ret = pinconf_generic_parse_dt_config(np, pctl, &configs,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| pinconf_generic_dump_config
drivers/pinctrl/freescale/pinctrl-imx.c: In function 'imx_pinctrl_parse_functions':
drivers/pinctrl/freescale/pinctrl-imx.c:656:14: warning: assignment to 'struct function_desc *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
656 | func = pinmux_generic_get_function(pctl, index);
| ^
drivers/pinctrl/freescale/pinctrl-imx.c:661:13: error: invalid use of undefined type 'struct function_desc'
661 | func->name = np->name;
| ^~
drivers/pinctrl/freescale/pinctrl-imx.c:662:13: error: invalid use of undefined type 'struct function_desc'
662 | func->num_group_names = of_get_child_count(np);
| ^~
drivers/pinctrl/freescale/pinctrl-imx.c:663:17: error: invalid use of undefined type 'struct function_desc'
663 | if (func->num_group_names == 0) {
| ^~
drivers/pinctrl/freescale/pinctrl-imx.c:668:52: error: invalid use of undefined type 'struct function_desc'
668 | group_names = devm_kcalloc(ipctl->dev, func->num_group_names,
| ^~
drivers/pinctrl/freescale/pinctrl-imx.c:675:13: error: invalid use of undefined type 'struct function_desc'
675 | func->group_names = group_names;
| ^~
drivers/pinctrl/freescale/pinctrl-imx.c: In function 'imx_pinctrl_probe_dt':
drivers/pinctrl/freescale/pinctrl-imx.c:752:59: error: invalid application of 'sizeof' to incomplete type 'struct function_desc'
752 | function = devm_kzalloc(&pdev->dev, sizeof(*function),
| ^
drivers/pinctrl/freescale/pinctrl-imx.c:758:40: error: 'struct pinctrl_dev' has no member named 'pin_function_tree'
758 | radix_tree_insert(&pctl->pin_function_tree, i, function);
| ^~
drivers/pinctrl/freescale/pinctrl-imx.c:761:13: error: 'struct pinctrl_dev' has no member named 'num_functions'
761 | pctl->num_functions = nfuncs;
| ^~
cc1: some warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PINCTRL_IMX
Depends on [n]: PINCTRL [=y] && OF [=n]
Selected by [y]:
- PINCTRL_IMX8MP [=y] && PINCTRL [=y] && SOC_IMX8M [=y]
Selected by [m]:
- PINCTRL_IMX8MM [=m] && PINCTRL [=y] && SOC_IMX8M [=y]
- PINCTRL_IMX8MN [=m] && PINCTRL [=y] && SOC_IMX8M [=y]
vim +260 drivers/pinctrl/freescale/pinctrl-imx.c
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 240
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 241 static int imx_pmx_set(struct pinctrl_dev *pctldev, unsigned selector,
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 242 unsigned group)
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 243 {
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 244 struct imx_pinctrl *ipctl = pinctrl_dev_get_drvdata(pctldev);
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 245 const struct imx_pinctrl_soc_info *info = ipctl->info;
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 246 struct function_desc *func;
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 247 struct group_desc *grp;
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 248 struct imx_pin *pin;
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 249 unsigned int npins;
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 250 int i, err;
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 251
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 252 /*
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 253 * Configure the mux mode for each pin in the group for a specific
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 254 * function.
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 255 */
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 256 grp = pinctrl_generic_get_group(pctldev, group);
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 257 if (!grp)
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 258 return -EINVAL;
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 259
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 @260 func = pinmux_generic_get_function(pctldev, selector);
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 261 if (!func)
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 262 return -EINVAL;
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 263
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 264 npins = grp->num_pins;
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 265
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 266 dev_dbg(ipctl->dev, "enable function %s group %s\n",
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 267 func->name, grp->name);
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 268
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 269 for (i = 0; i < npins; i++) {
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 270 /*
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 271 * For IMX_USE_SCU case, we postpone the mux setting
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 272 * until config is set as we can set them together
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 273 * in one IPC call
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 274 */
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 275 pin = &((struct imx_pin *)(grp->data))[i];
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 276 if (!(info->flags & IMX_USE_SCU)) {
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 277 err = imx_pmx_set_one_pin_mmio(ipctl, pin);
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 278 if (err)
b96eea718bf697 drivers/pinctrl/freescale/pinctrl-imx.c A.s. Dong 2018-10-30 279 return err;
ae75ff81453840 drivers/pinctrl/pinctrl-imx.c Dong Aisheng 2012-04-27 280 }
ae75ff81453840 drivers/pinctrl/pinctrl-imx.c Dong Aisheng 2012-04-27 281 }
ae75ff81453840 drivers/pinctrl/pinctrl-imx.c Dong Aisheng 2012-04-27 282
ae75ff81453840 drivers/pinctrl/pinctrl-imx.c Dong Aisheng 2012-04-27 283 return 0;
ae75ff81453840 drivers/pinctrl/pinctrl-imx.c Dong Aisheng 2012-04-27 284 }
ae75ff81453840 drivers/pinctrl/pinctrl-imx.c Dong Aisheng 2012-04-27 285
--
0-DAY CI Kernel Test Service
https://01.org/lkp
next reply other threads:[~2022-08-06 12:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-06 12:36 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-08-07 10:22 [RFC PATCH v1] pinctrl: imx8m: kconfig: Depends on SOC_IMX8M kernel test robot
2022-08-07 7:58 kernel test robot
2022-08-07 5:32 kernel test robot
2022-08-07 3:19 kernel test robot
2022-08-06 15:41 kernel test robot
2022-08-02 11:02 Francesco Dolcini
2022-08-22 8:40 ` Linus Walleij
2022-08-23 0:13 ` Peng Fan
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=202208062030.11RYGgce-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild@lists.01.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.