oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [niks:has_ioport_v4 4/39] drivers/char/tpm/tpm_infineon.c:57:31: error: 'TPM_INF_IO_PORT' undeclared; did you mean 'TPM_INF_IO_MEM'?
@ 2023-03-24  8:12 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-24  8:12 UTC (permalink / raw)
  To: Niklas Schnelle; +Cc: oe-kbuild-all, Arnd Bergmann, Jarkko Sakkinen

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/niks/linux.git has_ioport_v4
head:   53b49a3f5a95d058e0deb169b87e695d69033f5c
commit: 07c67f2075061c0893444807c2afa4de6e7d08f5 [4/39] char: impi, tpm: depend on HAS_IOPORT
config: x86_64-randconfig-a011 (https://download.01.org/0day-ci/archive/20230324/202303241635.E6U9Zxu5-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/niks/linux.git/commit/?id=07c67f2075061c0893444807c2afa4de6e7d08f5
        git remote add niks https://git.kernel.org/pub/scm/linux/kernel/git/niks/linux.git
        git fetch --no-tags niks has_ioport_v4
        git checkout 07c67f2075061c0893444807c2afa4de6e7d08f5
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 olddefconfig
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303241635.E6U9Zxu5-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/char/tpm/tpm_infineon.c: In function 'tpm_data_out':
>> drivers/char/tpm/tpm_infineon.c:57:31: error: 'TPM_INF_IO_PORT' undeclared (first use in this function); did you mean 'TPM_INF_IO_MEM'?
      57 |         if (tpm_dev.iotype == TPM_INF_IO_PORT)
         |                               ^~~~~~~~~~~~~~~
         |                               TPM_INF_IO_MEM
   drivers/char/tpm/tpm_infineon.c:57:31: note: each undeclared identifier is reported only once for each function it appears in
   drivers/char/tpm/tpm_infineon.c: In function 'tpm_data_in':
   drivers/char/tpm/tpm_infineon.c:67:31: error: 'TPM_INF_IO_PORT' undeclared (first use in this function); did you mean 'TPM_INF_IO_MEM'?
      67 |         if (tpm_dev.iotype == TPM_INF_IO_PORT)
         |                               ^~~~~~~~~~~~~~~
         |                               TPM_INF_IO_MEM
   drivers/char/tpm/tpm_infineon.c: In function 'tpm_config_out':
   drivers/char/tpm/tpm_infineon.c:76:31: error: 'TPM_INF_IO_PORT' undeclared (first use in this function); did you mean 'TPM_INF_IO_MEM'?
      76 |         if (tpm_dev.iotype == TPM_INF_IO_PORT)
         |                               ^~~~~~~~~~~~~~~
         |                               TPM_INF_IO_MEM
   drivers/char/tpm/tpm_infineon.c: In function 'tpm_config_in':
   drivers/char/tpm/tpm_infineon.c:86:31: error: 'TPM_INF_IO_PORT' undeclared (first use in this function); did you mean 'TPM_INF_IO_MEM'?
      86 |         if (tpm_dev.iotype == TPM_INF_IO_PORT)
         |                               ^~~~~~~~~~~~~~~
         |                               TPM_INF_IO_MEM
   drivers/char/tpm/tpm_infineon.c: In function 'tpm_inf_pnp_probe':
   drivers/char/tpm/tpm_infineon.c:411:34: error: 'TPM_INF_IO_PORT' undeclared (first use in this function); did you mean 'TPM_INF_IO_MEM'?
     411 |                 tpm_dev.iotype = TPM_INF_IO_PORT;
         |                                  ^~~~~~~~~~~~~~~
         |                                  TPM_INF_IO_MEM
   drivers/char/tpm/tpm_infineon.c: In function 'tpm_inf_pnp_remove':
   drivers/char/tpm/tpm_infineon.c:588:31: error: 'TPM_INF_IO_PORT' undeclared (first use in this function); did you mean 'TPM_INF_IO_MEM'?
     588 |         if (tpm_dev.iotype == TPM_INF_IO_PORT) {
         |                               ^~~~~~~~~~~~~~~
         |                               TPM_INF_IO_MEM


vim +57 drivers/char/tpm/tpm_infineon.c

d954e8edee5de9 Alex Williamson 2007-05-08  53  
d954e8edee5de9 Alex Williamson 2007-05-08  54  static inline void tpm_data_out(unsigned char data, unsigned char offset)
d954e8edee5de9 Alex Williamson 2007-05-08  55  {
07c67f2075061c Niklas Schnelle 2021-12-20  56  #ifdef CONFIG_HAS_IOPORT
d954e8edee5de9 Alex Williamson 2007-05-08 @57  	if (tpm_dev.iotype == TPM_INF_IO_PORT)
d954e8edee5de9 Alex Williamson 2007-05-08  58  		outb(data, tpm_dev.data_regs + offset);
d954e8edee5de9 Alex Williamson 2007-05-08  59  	else
07c67f2075061c Niklas Schnelle 2021-12-20  60  #endif
d954e8edee5de9 Alex Williamson 2007-05-08  61  		writeb(data, tpm_dev.mem_base + tpm_dev.data_regs + offset);
d954e8edee5de9 Alex Williamson 2007-05-08  62  }
d954e8edee5de9 Alex Williamson 2007-05-08  63  

:::::: The code at line 57 was first introduced by commit
:::::: d954e8edee5de90f8625c041ce177e04ae2c88fe tpm_infineon: add support for devices in mmio space

:::::: TO: Alex Williamson <alex.williamson@hp.com>
:::::: CC: Linus Torvalds <torvalds@woody.linux-foundation.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

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

only message in thread, other threads:[~2023-03-24  8:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-24  8:12 [niks:has_ioport_v4 4/39] drivers/char/tpm/tpm_infineon.c:57:31: error: 'TPM_INF_IO_PORT' undeclared; did you mean 'TPM_INF_IO_MEM'? kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).