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

From: kernel test robot
Date: Thu Mar 31 2022 - 23:06:20 EST


tree: https://github.com/intel/tdx.git guest-attest
head: 9247fade9db5ae6eb183b2f92fdedb898282376a
commit: 054b22e81e88379a5a8459c19e89a335531c1bdd [5/6] platform/x86: intel_tdx_attest: Add TDX Guest attestation interface driver
config: i386-randconfig-a014 (https://download.01.org/0day-ci/archive/20220401/202204011027.5UDMOzNv-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.2.0-19) 11.2.0
reproduce (this is a W=1 build):
# https://github.com/intel/tdx/commit/054b22e81e88379a5a8459c19e89a335531c1bdd
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx guest-attest
git checkout 054b22e81e88379a5a8459c19e89a335531c1bdd
# save the config file to linux build tree
mkdir build_dir
make 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 <command-line>:
>> ./usr/include/misc/tdx.h:38:19: error: expected ':', ',', ';', '}' or '__attribute__' before '__user'
38 | void *buf __user;
| ^~~~~~

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