public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kuppuswamy Sathyanarayanan  <sathyanarayanan.kuppuswamy@linux.intel.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Tony Luck <tony.luck@intel.com>, Andi Kleen <ak@linux.intel.com>
Subject: [intel-tdx:guest-attest 5/8] arch/x86/coco/tdx/attest.c:259:6: warning: no previous prototype for 'terminate_quote_request'
Date: Fri, 20 May 2022 14:01:04 +0800	[thread overview]
Message-ID: <202205201352.UysTQDWz-lkp@intel.com> (raw)

tree:   https://github.com/intel/tdx.git guest-attest
head:   c621127f8c80666ce3d36680bb73c040a5d8b737
commit: a68111d7c58d20706382ec58607ea510b5c2b12c [5/8] x86/tdx: Add Quote generation support
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220520/202205201352.UysTQDWz-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-1) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/intel/tdx/commit/a68111d7c58d20706382ec58607ea510b5c2b12c
        git remote add intel-tdx https://github.com/intel/tdx.git
        git fetch --no-tags intel-tdx guest-attest
        git checkout a68111d7c58d20706382ec58607ea510b5c2b12c
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/coco/tdx/

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 >>):

>> arch/x86/coco/tdx/attest.c:259:6: warning: no previous prototype for 'terminate_quote_request' [-Wmissing-prototypes]
     259 | void terminate_quote_request(struct quote_entry *entry)
         |      ^~~~~~~~~~~~~~~~~~~~~~~


vim +/terminate_quote_request +259 arch/x86/coco/tdx/attest.c

   257	
   258	/* Handles early termination of GetQuote requests */
 > 259	void terminate_quote_request(struct quote_entry *entry)
   260	{
   261		struct tdx_quote_hdr *quote_hdr;
   262	
   263		/*
   264		 * For early termination, if the request is not yet
   265		 * processed by VMM (GET_QUOTE_IN_FLIGHT), the VMM
   266		 * still owns the shared buffer, so mark the request
   267		 * invalid to let quote_callback_handler() handle the
   268		 * memory cleanup function. If the request is already
   269		 * processed, then do the cleanup and return.
   270		 */
   271	
   272		mutex_lock(&quote_lock);
   273		quote_hdr = (struct tdx_quote_hdr *)entry->buf->vmaddr;
   274		if (quote_hdr->status == GET_QUOTE_IN_FLIGHT) {
   275			entry->valid = false;
   276			mutex_unlock(&quote_lock);
   277			return;
   278		}
   279		_del_quote_entry(entry);
   280		mutex_unlock(&quote_lock);
   281	}
   282	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-05-20  6:01 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=202205201352.UysTQDWz-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ak@linux.intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sathyanarayanan.kuppuswamy@linux.intel.com \
    --cc=tony.luck@intel.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