From: kernel test robot <lkp@intel.com>
To: Lino Sanfilippo <LinoSanfilippo@gmx.de>,
peterhuewe@gmx.de, jarkko@kernel.org, jgg@ziepe.ca
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
stefanb@linux.vnet.ibm.com,
James.Bottomley@hansenpartnership.com, keescook@chromium.org,
jsnitsel@redhat.com, ml.linux@elloe.vision,
linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 4/4] tpm: Only enable supported irqs
Date: Mon, 26 Apr 2021 13:08:46 +0800 [thread overview]
Message-ID: <202104261309.1KA3z8vT-lkp@intel.com> (raw)
In-Reply-To: <1619394440-30646-5-git-send-email-LinoSanfilippo@gmx.de>
[-- Attachment #1: Type: text/plain, Size: 3053 bytes --]
Hi Lino,
I love your patch! Yet something to improve:
[auto build test ERROR on char-misc/char-misc-testing]
[also build test ERROR on kees/for-next/pstore linus/master v5.12 next-20210423]
[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]
url: https://github.com/0day-ci/linux/commits/Lino-Sanfilippo/Fixes-for-TPM-interrupt-handling/20210426-075042
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git e2cb6b891ad2b8caa9131e3be70f45243df82a80
config: x86_64-randconfig-a001-20210426 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d941863de2becb3d8d2e00676fc7125974934c7f)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/0day-ci/linux/commit/1b37b97e7f8601b56f1e8aa069aec29c7d80d175
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Lino-Sanfilippo/Fixes-for-TPM-interrupt-handling/20210426-075042
git checkout 1b37b97e7f8601b56f1e8aa069aec29c7d80d175
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/char/tpm/tpm_tis_core.c:1077:19: error: no member named 'supported_irqs' in 'struct tpm_chip'
intmask |= chip->supported_irqs | TPM_GLOBAL_INT_ENABLE;
~~~~ ^
1 error generated.
vim +1077 drivers/char/tpm/tpm_tis_core.c
1055
1056 #ifdef CONFIG_PM_SLEEP
1057 static void tpm_tis_reenable_interrupts(struct tpm_chip *chip)
1058 {
1059 struct tpm_tis_data *priv = dev_get_drvdata(&chip->dev);
1060 u32 intmask;
1061 int rc;
1062
1063 if (chip->ops->clk_enable != NULL)
1064 chip->ops->clk_enable(chip, true);
1065
1066 /* reenable interrupts that device may have lost or
1067 * BIOS/firmware may have disabled
1068 */
1069 rc = tpm_tis_write8(priv, TPM_INT_VECTOR(priv->locality), priv->irq);
1070 if (rc < 0)
1071 goto out;
1072
1073 rc = tpm_tis_read32(priv, TPM_INT_ENABLE(priv->locality), &intmask);
1074 if (rc < 0)
1075 goto out;
1076
> 1077 intmask |= chip->supported_irqs | TPM_GLOBAL_INT_ENABLE;
1078
1079 tpm_tis_write32(priv, TPM_INT_ENABLE(priv->locality), intmask);
1080
1081 out:
1082 if (chip->ops->clk_enable != NULL)
1083 chip->ops->clk_enable(chip, false);
1084
1085 return;
1086 }
1087
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 37909 bytes --]
next prev parent reply other threads:[~2021-04-26 5:09 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-25 23:47 [PATCH v2 0/4] Fixes for TPM interrupt handling Lino Sanfilippo
2021-04-25 23:47 ` [PATCH v2 1/4] tpm: Use a threaded interrupt handler Lino Sanfilippo
2021-04-26 14:37 ` Stefan Berger
2021-04-27 23:53 ` Jarkko Sakkinen
2021-04-28 22:37 ` Lino Sanfilippo
2021-04-29 6:58 ` Jarkko Sakkinen
2021-05-01 9:01 ` Lino Sanfilippo
2021-04-25 23:47 ` [PATCH v2 2/4] tpm: Simplify locality handling Lino Sanfilippo
2021-04-27 23:49 ` Jarkko Sakkinen
2021-04-28 7:13 ` Peter.Huewe
2021-04-28 22:44 ` Lino Sanfilippo
2021-04-25 23:47 ` [PATCH v2 3/4] tpm: Fix test for interrupts Lino Sanfilippo
2021-04-26 14:49 ` Stefan Berger
2021-04-28 22:13 ` Lino Sanfilippo
2021-04-25 23:47 ` [PATCH v2 4/4] tpm: Only enable supported irqs Lino Sanfilippo
2021-04-26 5:08 ` kernel test robot [this message]
2021-04-26 14:23 ` Stefan Berger
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=202104261309.1KA3z8vT-lkp@intel.com \
--to=lkp@intel.com \
--cc=James.Bottomley@hansenpartnership.com \
--cc=LinoSanfilippo@gmx.de \
--cc=clang-built-linux@googlegroups.com \
--cc=jarkko@kernel.org \
--cc=jgg@ziepe.ca \
--cc=jsnitsel@redhat.com \
--cc=kbuild-all@lists.01.org \
--cc=keescook@chromium.org \
--cc=linux-integrity@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ml.linux@elloe.vision \
--cc=peterhuewe@gmx.de \
--cc=stefanb@linux.vnet.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 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).