All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/i2c/busses/i2c-designware-pcidrv.c:238:2: warning: There is an unknown macro here somewhere. Configuration is required. If SET_SYSTEM_SLEEP_PM_OPS is a macro then please configure it. [unknownMacro]
@ 2022-04-02 15:00 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-04-02 15:00 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 3230 bytes --]

CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-kernel(a)vger.kernel.org
TO: Hans de Goede <hdegoede@redhat.com>
CC: Wolfram Sang <wsa-dev@sang-engineering.com>
CC: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   88e6c0207623874922712e162e25d9dafd39661e
commit: c57813b8b288dcb5e158993cfdff31a60bc24955 i2c: designware: Lock the adapter while setting the suspended flag
date:   5 weeks ago
:::::: branch date: 12 hours ago
:::::: commit date: 5 weeks ago
compiler: ia64-linux-gcc (GCC) 11.2.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


cppcheck possible warnings: (new ones prefixed by >>, may not real problems)

>> drivers/i2c/i2c-core-smbus.c:49:30: warning: Parameter 'p' can be declared with const [constParameter]
   u8 i2c_smbus_pec(u8 crc, u8 *p, size_t count)
                                ^
--
>> drivers/i2c/busses/i2c-designware-pcidrv.c:238:2: warning: There is an unknown macro here somewhere. Configuration is required. If SET_SYSTEM_SLEEP_PM_OPS is a macro then please configure it. [unknownMacro]
    SET_SYSTEM_SLEEP_PM_OPS(i2c_dw_pci_suspend, i2c_dw_pci_resume)
    ^
--
>> drivers/i2c/busses/i2c-piix4.c:1017:9: warning: Uninitialized variable: retval [uninitvar]
    return retval;
           ^
   drivers/i2c/busses/i2c-piix4.c:1006:22: note: Assuming condition is false
    for (port = 0; port < piix4_adapter_count; port++) {
                        ^
   drivers/i2c/busses/i2c-piix4.c:1017:9: note: Uninitialized variable: retval
    return retval;
           ^
>> drivers/i2c/busses/i2c-piix4.c:181:6: warning: Using argument mmio_cfg that points at uninitialized variable mmio_cfg [ctuuninitvar]
    if (mmio_cfg->use_mmio) {
        ^
   drivers/i2c/busses/i2c-piix4.c:355:37: note: Calling function piix4_sb800_region_request, 2nd argument is uninitialized
    retval = piix4_sb800_region_request(&PIIX4_dev->dev, &mmio_cfg);
                                       ^
   drivers/i2c/busses/i2c-piix4.c:181:6: note: Using argument mmio_cfg
    if (mmio_cfg->use_mmio) {
        ^
--
   drivers/i2c/i2c-core-base.c:1254:8: warning: %hi in format string (no. 1) requires 'short *' but the argument type is 'unsigned short *'. [invalidScanfArgType_int]
    res = sscanf(buf, "%hi%c", &addr, &end);
          ^
>> drivers/i2c/i2c-core-base.c:1331:16: warning: Uninitialized variable: devinfo->busnum [uninitvar]
     if (devinfo->busnum == adapter->nr &&
                  ^

vim +238 drivers/i2c/busses/i2c-designware-pcidrv.c

18dbdda89f5cf0 Dirk Brandewie 2011-10-06  236  
c57813b8b288dc Hans de Goede  2022-02-23  237  static const struct dev_pm_ops i2c_dw_pm_ops = {
c57813b8b288dc Hans de Goede  2022-02-23 @238  	SET_SYSTEM_SLEEP_PM_OPS(i2c_dw_pci_suspend, i2c_dw_pci_resume)
c57813b8b288dc Hans de Goede  2022-02-23  239  	SET_RUNTIME_PM_OPS(i2c_dw_pci_runtime_suspend, i2c_dw_pci_runtime_resume, NULL)
c57813b8b288dc Hans de Goede  2022-02-23  240  };
18dbdda89f5cf0 Dirk Brandewie 2011-10-06  241  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-02 15:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-02 15:00 drivers/i2c/busses/i2c-designware-pcidrv.c:238:2: warning: There is an unknown macro here somewhere. Configuration is required. If SET_SYSTEM_SLEEP_PM_OPS is a macro then please configure it. [unknownMacro] kernel test robot

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.