gpio: amdptpci: add support for AMD PT PCI controller
kernel test robot
build bot::::::
:::::: Manual check reason: "linux-review patch is more than 7 days old, verify it wasn't already superseded" ::::::
BCC: [email protected]
CC: [email protected]
In-Reply-To: <[email protected]>
References: <[email protected]>
TO: Szuying Chen <[email protected]>
TO: [email protected]
TO: [email protected]
TO: [email protected]
TO: [email protected]
TO: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: Szuying Chen <[email protected]>
Hi Szuying,
kernel test robot noticed the following build warnings:
[auto build test WARNING on brgl/gpio/for-next]
[also build test WARNING on linus/master v7.4-rc4 next-20261123] [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/Szuying-Chen/gpio-amdptpci-add-support-for-AMD-PT-PCI-controller/20261116-155510 base: https://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git gpio/for-next patch link: https://lore.kernel.org/r/20261116075510.5722-1-Chloe_Chen%40asmedia.com.tw patch subject: [PATCH v4] gpio: amdptpci: add support for AMD PT PCI controller
:::::: branch date: 8 days ago
:::::: commit date: 8 days ago
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20261124/[email protected]/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261124/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/r/[email protected]/
All warnings (new ones prefixed by >>):
drivers/gpio/gpio-amdptpci.c: In function 'pt27_gpio_suspend':
>> drivers/gpio/gpio-amdptpci.c:537:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
537 | if (!device_may_wakeup(dev))
| ^~
drivers/gpio/gpio-amdptpci.c:540:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
540 | iowrite16(PT27_WAKE_MASK, chip->base + PT27_REG_WAKE_STAT);
| ^~~~~~~~~vim +/if +537 drivers/gpio/gpio-amdptpci.c
bba230f88fa2c8 Szuying Chen 2026-11-16 521
bba230f88fa2c8 Szuying Chen 2026-11-16 522 static int __maybe_unused pt27_gpio_suspend(struct device *dev)
bba230f88fa2c8 Szuying Chen 2026-11-16 523 {
bba230f88fa2c8 Szuying Chen 2026-11-16 524 struct pt27_gpio *chip = dev_get_drvdata(dev);
bba230f88fa2c8 Szuying Chen 2026-11-16 525
bba230f88fa2c8 Szuying Chen 2026-11-16 526 if (pm_runtime_status_suspended(dev)) {
bba230f88fa2c8 Szuying Chen 2026-11-16 527 dev_dbg(dev, "%s: already runtime-suspended, skipping save\n", __func__);
bba230f88fa2c8 Szuying Chen 2026-11-16 528 return 0;
bba230f88fa2c8 Szuying Chen 2026-11-16 529 }
bba230f88fa2c8 Szuying Chen 2026-11-16 530
bba230f88fa2c8 Szuying Chen 2026-11-16 531 scoped_guard(raw_spinlock_irqsave, &chip->gen.lock) {
bba230f88fa2c8 Szuying Chen 2026-11-16 532 pt27_save_regs(chip);
bba230f88fa2c8 Szuying Chen 2026-11-16 533 iowrite32(0, chip->base + PT27_REG_INT_EN);
bba230f88fa2c8 Szuying Chen 2026-11-16 534 iowrite32(PT27_GPIO_MASK, chip->base + PT27_REG_INT_MASK);
bba230f88fa2c8 Szuying Chen 2026-11-16 535 iowrite32(PT27_GPIO_MASK, chip->base + PT27_REG_INT_STAT);
bba230f88fa2c8 Szuying Chen 2026-11-16 536
bba230f88fa2c8 Szuying Chen 2026-11-16 @537 if (!device_may_wakeup(dev))
bba230f88fa2c8 Szuying Chen 2026-11-16 538 iowrite16(0, chip->base + PT27_REG_WAKE_EN);
bba230f88fa2c8 Szuying Chen 2026-11-16 539
bba230f88fa2c8 Szuying Chen 2026-11-16 540 iowrite16(PT27_WAKE_MASK, chip->base + PT27_REG_WAKE_STAT);
bba230f88fa2c8 Szuying Chen 2026-11-16 541 }
bba230f88fa2c8 Szuying Chen 2026-11-16 542
bba230f88fa2c8 Szuying Chen 2026-11-16 543 synchronize_irq(chip->irq);
bba230f88fa2c8 Szuying Chen 2026-11-16 544 return 0;
bba230f88fa2c8 Szuying Chen 2026-11-16 545 }
bba230f88fa2c8 Szuying Chen 2026-11-16 546 Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki