mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Isaku Yamahata <isaku.yamahata@intel.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [intel-tdx:kvm-upstream-workaround 21/141] arch/x86/include/asm/tdx_host.h:60:35: warning: 'struct tdsysinfo_struct' declared inside parameter list will not be visible outside of this definition or declaration
Date: Wed, 9 Feb 2022 10:58:13 +0800	[thread overview]
Message-ID: <202202091001.FUPeNVtq-lkp@intel.com> (raw)

tree:   https://github.com/intel/tdx.git kvm-upstream-workaround
head:   58f28b2fcc73d05d6a5a9f70a8fdacefa99acb85
commit: 13dd0fa9c0ba8880c196a8feecd826f4c16b18f8 [21/141] x86/cpu: make init_tdx() system wide info about TDX module
config: i386-randconfig-a003 (https://download.01.org/0day-ci/archive/20220209/202202091001.FUPeNVtq-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/intel/tdx/commit/13dd0fa9c0ba8880c196a8feecd826f4c16b18f8
        git remote add intel-tdx https://github.com/intel/tdx.git
        git fetch --no-tags intel-tdx kvm-upstream-workaround
        git checkout 13dd0fa9c0ba8880c196a8feecd826f4c16b18f8
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/kernel/cpu/

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

All warnings (new ones prefixed by >>):

   In file included from arch/x86/kernel/cpu/intel.c:30:
>> arch/x86/include/asm/tdx_host.h:60:35: warning: 'struct tdsysinfo_struct' declared inside parameter list will not be visible outside of this definition or declaration
      60 | static inline int init_tdx(struct tdsysinfo_struct *r) { return -ENODEV; }
         |                                   ^~~~~~~~~~~~~~~~


vim +60 arch/x86/include/asm/tdx_host.h

    53	
    54	void detect_tdx_keyids(struct cpuinfo_x86 *c);
    55	int detect_tdx(void);
    56	int init_tdx(struct tdsysinfo_struct *r);
    57	#else
    58	static inline void detect_tdx_keyids(struct cpuinfo_x86 *c) { }
    59	static inline int detect_tdx(void) { return -ENODEV; }
  > 60	static inline int init_tdx(struct tdsysinfo_struct *r) { return -ENODEV; }
    61	#endif /* CONFIG_INTEL_TDX_HOST */
    62	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

                 reply	other threads:[~2022-02-09  3:09 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=202202091001.FUPeNVtq-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=isaku.yamahata@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®