[intel-tdx:guest-rebased 5/83] ./usr/include/misc/tdx.h:39:2: error: unknown type name 'size_t'

From: kernel test robot
Date: Wed Mar 23 2022 - 09:08:42 EST


tree: https://github.com/intel/tdx.git guest-rebased
head: 2445b5e99855f3c241a44d2777a74a777f56048c
commit: a7b0255d5b64842244f1957e33eb514d8f82866f [5/83] platform/x86: intel_tdx_attest: Add TDX Guest attestation interface driver
config: i386-randconfig-a013 (https://download.01.org/0day-ci/archive/20220323/202203232011.Qp6mjB89-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 902f4708fe1d03b0de7e5315ef875006a6adc319)
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/a7b0255d5b64842244f1957e33eb514d8f82866f
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx guest-rebased
git checkout a7b0255d5b64842244f1957e33eb514d8f82866f
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

In file included from <built-in>:1:
>> ./usr/include/misc/tdx.h:38:11: error: expected ';' at end of declaration list
void *buf __user;
^
;
>> ./usr/include/misc/tdx.h:39:2: error: unknown type name 'size_t'
size_t len;
^
2 errors generated.

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