tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
pending-5.4
head: 1cfc24b393efef2fed7000bd6109ca72f5bcc55a
commit: 1cfc24b393efef2fed7000bd6109ca72f5bcc55a [2/2] pinctrl: amd: Fix wakeups when IRQ
is shared with SCI
config: x86_64-allyesconfig
(
https://download.01.org/0day-ci/archive/20211212/202112120623.J9RQqJNr-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-stable
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-stable pending-5.4
git checkout 1cfc24b393efef2fed7000bd6109ca72f5bcc55a
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/pinctrl/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/pinctrl/pinctrl-amd.c: In function 'amd_gpio_probe':
> drivers/pinctrl/pinctrl-amd.c:958:39: error: 'struct
amd_gpio' has no member named 'irq'
958 |
acpi_register_wakeup_handler(gpio_dev->irq, amd_gpio_check_wake, gpio_dev);
| ^~
vim +958 drivers/pinctrl/pinctrl-amd.c
917
918 gpio_dev->hwbank_num = gpio_dev->gc.ngpio / 64;
919 gpio_dev->groups = kerncz_groups;
920 gpio_dev->ngroups = ARRAY_SIZE(kerncz_groups);
921
922 amd_pinctrl_desc.name = dev_name(&pdev->dev);
923 gpio_dev->pctrl = devm_pinctrl_register(&pdev->dev,
&amd_pinctrl_desc,
924 gpio_dev);
925 if (IS_ERR(gpio_dev->pctrl)) {
926 dev_err(&pdev->dev, "Couldn't register pinctrl driver\n");
927 return PTR_ERR(gpio_dev->pctrl);
928 }
929
930 ret = gpiochip_add_data(&gpio_dev->gc, gpio_dev);
931 if (ret)
932 return ret;
933
934 ret = gpiochip_add_pin_range(&gpio_dev->gc, dev_name(&pdev->dev),
935 0, 0, gpio_dev->gc.ngpio);
936 if (ret) {
937 dev_err(&pdev->dev, "Failed to add pin range\n");
938 goto out2;
939 }
940
941 ret = gpiochip_irqchip_add(&gpio_dev->gc,
942 &amd_gpio_irqchip,
943 0,
944 handle_simple_irq,
945 IRQ_TYPE_NONE);
946 if (ret) {
947 dev_err(&pdev->dev, "could not add irqchip\n");
948 ret = -ENODEV;
949 goto out2;
950 }
951
952 ret = devm_request_irq(&pdev->dev, irq_base, amd_gpio_irq_handler,
953 IRQF_SHARED, KBUILD_MODNAME, gpio_dev);
954 if (ret)
955 goto out2;
956
957 platform_set_drvdata(pdev, gpio_dev);
958 acpi_register_wakeup_handler(gpio_dev->irq,
amd_gpio_check_wake, gpio_dev);
959
960 dev_dbg(&pdev->dev, "amd gpio driver loaded\n");
961 return ret;
962
963 out2:
964 gpiochip_remove(&gpio_dev->gc);
965
966 return ret;
967 }
968
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org