[intel-tdx:guest-rebased 5/83] ./usr/include/misc/tdx.h:38:12: error: expected ':', ',', ';', '}' or '__attribute__' before '__user'

From: kernel test robot
Date: Wed Mar 23 2022 - 06:35:34 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: x86_64-randconfig-a015 (https://download.01.org/0day-ci/archive/20220323/202203231835.0iF4P3oj-lkp@xxxxxxxxx/config)
compiler: gcc-9 (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0
reproduce (this is a W=1 build):
# 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
make W=1 O=build_dir ARCH=x86_64 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 <command-line>:32:
>> ./usr/include/misc/tdx.h:38:12: error: expected ':', ',', ';', '}' or '__attribute__' before '__user'
38 | void *buf __user;
| ^~~~~~

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