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: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org
Subject: [intel-tdx:guest 70/113] include/linux/protected_guest.h:53:12: error: incomplete definition of type 'struct device'
Date: Fri, 27 Aug 2021 09:47:07 +0800	[thread overview]
Message-ID: <202108270959.Hb2gETHJ-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2212 bytes --]

tree:   https://github.com/intel/tdx.git guest
head:   44e41606b85b08fad5378c876547f8557f835cf6
commit: b3bb395b4eaa3d107b203d30dcf6dcc6d1d2fa29 [70/113] mm: Add prot_guest_authorized() interface
config: hexagon-buildonly-randconfig-r003-20210826 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project ea08c4cd1c0869ec5024a8bb3f5cdf06ab03ae83)
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://github.com/intel/tdx/commit/b3bb395b4eaa3d107b203d30dcf6dcc6d1d2fa29
        git remote add intel-tdx https://github.com/intel/tdx.git
        git fetch --no-tags intel-tdx guest
        git checkout b3bb395b4eaa3d107b203d30dcf6dcc6d1d2fa29
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/gpu/drm/ drivers/virtio/

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

   In file included from drivers/gpu/drm/drm_cache.c:34:
>> include/linux/protected_guest.h:53:12: error: incomplete definition of type 'struct device'
           return dev->authorized;
                  ~~~^
   include/linux/bitmap.h:13:8: note: forward declaration of 'struct device'
   struct device;
          ^
   1 error generated.


vim +53 include/linux/protected_guest.h

    40	
    41	/*
    42	 * prot_guest_authorized() - Used to get ARCH specific authorized status of
    43	 *			     given device.
    44	 * @dev - device structure
    45	 * @dev_str - device search string (for PCI bus it is vendor:device, other
    46	 *	      bus device may use dev_name(dev))
    47	 *
    48	 * Return True to allow the device or False to deny it.
    49	 *
    50	 */
    51	static inline bool prot_guest_authorized(struct device *dev, char *dev_str)
    52	{
  > 53		return dev->authorized;
    54	}
    55	

---
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: 29778 bytes --]

                 reply	other threads:[~2021-08-27  1:48 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=202108270959.Hb2gETHJ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=sathyanarayanan.kuppuswamy@linux.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