tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: cb71b93c2dc36d18a8b05245973328d018272cdf commit: 36fe26843d6dde34b65c3273c63bb12fd036239d [5016/6195] pinctrl: qcom: sc7280: Add clock optional check for ADSP bypass targets config: arm-allmodconfig compiler: arm-linux-gnueabi-gcc (GCC) 11.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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=36fe26843d6dde34b65c3273c63bb12fd036239d git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 36fe26843d6dde34b65c3273c63bb12fd036239d # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/pinctrl/qcom/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot Note: the linux-next/master HEAD cb71b93c2dc36d18a8b05245973328d018272cdf builds fine. It may have been fixed somewhere. All errors (new ones prefixed by >>): drivers/pinctrl/qcom/pinctrl-lpass-lpi.c: In function 'lpi_pinctrl_probe': >> drivers/pinctrl/qcom/pinctrl-lpass-lpi.c:391:55: error: 'np' undeclared (first use in this function); did you mean 'up'? 391 | data->is_clk_optional = of_property_read_bool(np, "qcom,adsp-bypass-mode"); | ^~ | up drivers/pinctrl/qcom/pinctrl-lpass-lpi.c:391:55: note: each undeclared identifier is reported only once for each function it appears in vim +391 drivers/pinctrl/qcom/pinctrl-lpass-lpi.c 370 371 int lpi_pinctrl_probe(struct platform_device *pdev) 372 { 373 const struct lpi_pinctrl_variant_data *data; 374 struct device *dev = &pdev->dev; 375 struct lpi_pinctrl *pctrl; 376 int ret; 377 378 pctrl = devm_kzalloc(dev, sizeof(*pctrl), GFP_KERNEL); 379 if (!pctrl) 380 return -ENOMEM; 381 382 platform_set_drvdata(pdev, pctrl); 383 384 data = of_device_get_match_data(dev); 385 if (!data) 386 return -EINVAL; 387 388 pctrl->data = data; 389 pctrl->dev = &pdev->dev; 390 > 391 data->is_clk_optional = of_property_read_bool(np, "qcom,adsp-bypass-mode"); 392 393 pctrl->clks[0].id = "core"; 394 pctrl->clks[1].id = "audio"; 395 396 pctrl->tlmm_base = devm_platform_ioremap_resource(pdev, 0); 397 if (IS_ERR(pctrl->tlmm_base)) 398 return dev_err_probe(dev, PTR_ERR(pctrl->tlmm_base), 399 "TLMM resource not provided\n"); 400 401 pctrl->slew_base = devm_platform_ioremap_resource(pdev, 1); 402 if (IS_ERR(pctrl->slew_base)) 403 return dev_err_probe(dev, PTR_ERR(pctrl->slew_base), 404 "Slew resource not provided\n"); 405 406 if (data->is_clk_optional) 407 ret = devm_clk_bulk_get_optional(dev, MAX_LPI_NUM_CLKS, pctrl->clks); 408 else 409 ret = devm_clk_bulk_get(dev, MAX_LPI_NUM_CLKS, pctrl->clks); 410 411 if (ret) 412 return ret; 413 414 ret = clk_bulk_prepare_enable(MAX_LPI_NUM_CLKS, pctrl->clks); 415 if (ret) 416 return dev_err_probe(dev, ret, "Can't enable clocks\n"); 417 418 pctrl->desc.pctlops = &lpi_gpio_pinctrl_ops; 419 pctrl->desc.pmxops = &lpi_gpio_pinmux_ops; 420 pctrl->desc.confops = &lpi_gpio_pinconf_ops; 421 pctrl->desc.owner = THIS_MODULE; 422 pctrl->desc.name = dev_name(dev); 423 pctrl->desc.pins = data->pins; 424 pctrl->desc.npins = data->npins; 425 pctrl->chip = lpi_gpio_template; 426 pctrl->chip.parent = dev; 427 pctrl->chip.base = -1; 428 pctrl->chip.ngpio = data->npins; 429 pctrl->chip.label = dev_name(dev); 430 pctrl->chip.of_gpio_n_cells = 2; 431 pctrl->chip.can_sleep = false; 432 433 mutex_init(&pctrl->slew_access_lock); 434 435 pctrl->ctrl = devm_pinctrl_register(dev, &pctrl->desc, pctrl); 436 if (IS_ERR(pctrl->ctrl)) { 437 ret = PTR_ERR(pctrl->ctrl); 438 dev_err(dev, "failed to add pin controller\n"); 439 goto err_pinctrl; 440 } 441 442 ret = lpi_build_pin_desc_groups(pctrl); 443 if (ret) 444 goto err_pinctrl; 445 446 ret = devm_gpiochip_add_data(dev, &pctrl->chip, pctrl); 447 if (ret) { 448 dev_err(pctrl->dev, "can't add gpio chip\n"); 449 goto err_pinctrl; 450 } 451 452 return 0; 453 454 err_pinctrl: 455 mutex_destroy(&pctrl->slew_access_lock); 456 clk_bulk_disable_unprepare(MAX_LPI_NUM_CLKS, pctrl->clks); 457 458 return ret; 459 } 460 EXPORT_SYMBOL_GPL(lpi_pinctrl_probe); 461 -- 0-DAY CI Kernel Test Service https://01.org/lkp