From: kernel test robot <lkp@intel.com>
To: Niklas Schnelle <schnelle@linux.ibm.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Arnd Bergmann <arnd@kernel.org>,
Jarkko Sakkinen <jarkko@kernel.org>
Subject: [niks:has_ioport_v4 4/39] drivers/char/tpm/tpm_infineon.c:57:24: error: use of undeclared identifier 'TPM_INF_IO_PORT'
Date: Fri, 24 Mar 2023 17:03:57 +0800 [thread overview]
Message-ID: <202303241614.EqRa1WCi-lkp@intel.com> (raw)
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
reply other threads:[~2023-03-24 9:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202303241614.EqRa1WCi-lkp@intel.com \
--to=lkp@intel.com \
--cc=arnd@kernel.org \
--cc=jarkko@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=schnelle@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.