All of lore.kernel.org
 help / color / mirror / Atom feed
* [niks:has_ioport_v4 4/39] drivers/char/tpm/tpm_infineon.c:57:24: error: use of undeclared identifier 'TPM_INF_IO_PORT'
@ 2023-03-24  9:03 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-24  9:03 UTC (permalink / raw)
  To: Niklas Schnelle; +Cc: llvm, 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: i386-randconfig-a015 (https://download.01.org/0day-ci/archive/20230324/202303241614.EqRa1WCi-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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/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
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/char/tpm/

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/202303241614.EqRa1WCi-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/char/tpm/tpm_infineon.c:16:
   In file included from drivers/char/tpm/tpm.h:28:
   include/linux/tpm_eventlog.h:167:6: warning: variable 'mapping_size' set but not used [-Wunused-but-set-variable]
           int mapping_size;
               ^
>> drivers/char/tpm/tpm_infineon.c:57:24: error: use of undeclared identifier 'TPM_INF_IO_PORT'
           if (tpm_dev.iotype == TPM_INF_IO_PORT)
                                 ^
   drivers/char/tpm/tpm_infineon.c:67:24: error: use of undeclared identifier 'TPM_INF_IO_PORT'
           if (tpm_dev.iotype == TPM_INF_IO_PORT)
                                 ^
   drivers/char/tpm/tpm_infineon.c:76:24: error: use of undeclared identifier 'TPM_INF_IO_PORT'
           if (tpm_dev.iotype == TPM_INF_IO_PORT)
                                 ^
   drivers/char/tpm/tpm_infineon.c:86:24: error: use of undeclared identifier 'TPM_INF_IO_PORT'
           if (tpm_dev.iotype == TPM_INF_IO_PORT)
                                 ^
   drivers/char/tpm/tpm_infineon.c:411:20: error: use of undeclared identifier 'TPM_INF_IO_PORT'
                   tpm_dev.iotype = TPM_INF_IO_PORT;
                                    ^
   drivers/char/tpm/tpm_infineon.c:543:23: error: use of undeclared identifier 'TPM_INF_IO_PORT'
                            tpm_dev.iotype == TPM_INF_IO_PORT ?
                                              ^
   drivers/char/tpm/tpm_infineon.c:546:23: error: use of undeclared identifier 'TPM_INF_IO_PORT'
                            tpm_dev.iotype == TPM_INF_IO_PORT ?
                                              ^
   drivers/char/tpm/tpm_infineon.c:570:24: error: use of undeclared identifier 'TPM_INF_IO_PORT'
           if (tpm_dev.iotype == TPM_INF_IO_PORT) {
                                 ^
   drivers/char/tpm/tpm_infineon.c:588:24: error: use of undeclared identifier 'TPM_INF_IO_PORT'
           if (tpm_dev.iotype == TPM_INF_IO_PORT) {
                                 ^
   1 warning and 9 errors generated.


vim +/TPM_INF_IO_PORT +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  9:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-24  9:03 [niks:has_ioport_v4 4/39] drivers/char/tpm/tpm_infineon.c:57:24: error: use of undeclared identifier 'TPM_INF_IO_PORT' 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.