All of lore.kernel.org
 help / color / mirror / Atom feed
* [intel-tdx:guest-kexec 6/13] arch/x86/hyperv/ivm.c:611:53: error: assignment to 'int (*)(long unsigned int,  int,  bool)' {aka 'int (*)(long unsigned int,  int,  _Bool)'} from incompatible pointer type 'bool (*)(long unsigned int,  int,  bool)' {aka '_Bool (*)(long unsigned int,  int...
@ 2023-09-30  8:07 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-09-30  8:07 UTC (permalink / raw)
  To: Kirill A. Shutemov; +Cc: oe-kbuild-all

tree:   https://github.com/intel/tdx.git guest-kexec
head:   34488d4fd2b299a51196e878575dd1e83cbbbc7f
commit: 5b0bf2c45e44dcbe901d262a72c26b2088b5719c [6/13] x86/mm: Make x86_platform.guest.enc_status_change_*() return errno
config: x86_64-randconfig-015-20230930 (https://download.01.org/0day-ci/archive/20230930/202309301607.LtdmAS2t-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230930/202309301607.LtdmAS2t-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309301607.LtdmAS2t-lkp@intel.com/

All errors (new ones prefixed by >>):

   arch/x86/hyperv/ivm.c: In function 'hv_vtom_init':
>> arch/x86/hyperv/ivm.c:611:53: error: assignment to 'int (*)(long unsigned int,  int,  bool)' {aka 'int (*)(long unsigned int,  int,  _Bool)'} from incompatible pointer type 'bool (*)(long unsigned int,  int,  bool)' {aka '_Bool (*)(long unsigned int,  int,  _Bool)'} [-Werror=incompatible-pointer-types]
     611 |         x86_platform.guest.enc_status_change_finish = hv_vtom_set_host_visibility;
         |                                                     ^
   cc1: some warnings being treated as errors


vim +611 arch/x86/hyperv/ivm.c

d3a9d7e49d1531 Dexuan Cui     2023-08-24  596  
d3a9d7e49d1531 Dexuan Cui     2023-08-24  597  	case HV_ISOLATION_TYPE_TDX:
d3a9d7e49d1531 Dexuan Cui     2023-08-24  598  		cc_vendor = CC_VENDOR_INTEL;
d3a9d7e49d1531 Dexuan Cui     2023-08-24  599  		break;
d3a9d7e49d1531 Dexuan Cui     2023-08-24  600  
d3a9d7e49d1531 Dexuan Cui     2023-08-24  601  	default:
d3a9d7e49d1531 Dexuan Cui     2023-08-24  602  		panic("hv_vtom_init: unsupported isolation type %d\n", type);
d3a9d7e49d1531 Dexuan Cui     2023-08-24  603  	}
d3a9d7e49d1531 Dexuan Cui     2023-08-24  604  
812b0597fb4043 Michael Kelley 2023-03-26  605  	cc_set_mask(ms_hyperv.shared_gpa_boundary);
812b0597fb4043 Michael Kelley 2023-03-26  606  	physical_mask &= ms_hyperv.shared_gpa_boundary - 1;
812b0597fb4043 Michael Kelley 2023-03-26  607  
812b0597fb4043 Michael Kelley 2023-03-26  608  	x86_platform.hyper.is_private_mmio = hv_is_private_mmio;
812b0597fb4043 Michael Kelley 2023-03-26  609  	x86_platform.guest.enc_cache_flush_required = hv_vtom_cache_flush_required;
812b0597fb4043 Michael Kelley 2023-03-26  610  	x86_platform.guest.enc_tlb_flush_required = hv_vtom_tlb_flush_required;
812b0597fb4043 Michael Kelley 2023-03-26 @611  	x86_platform.guest.enc_status_change_finish = hv_vtom_set_host_visibility;
c957f1f3c498bc Juergen Gross  2023-05-02  612  
c957f1f3c498bc Juergen Gross  2023-05-02  613  	/* Set WB as the default cache mode. */
c957f1f3c498bc Juergen Gross  2023-05-02  614  	mtrr_overwrite_state(NULL, 0, MTRR_TYPE_WRBACK);
812b0597fb4043 Michael Kelley 2023-03-26  615  }
812b0597fb4043 Michael Kelley 2023-03-26  616  

:::::: The code at line 611 was first introduced by commit
:::::: 812b0597fb4043240724e4c7bed7ba1fe15c0e3f x86/hyperv: Change vTOM handling to use standard coco mechanisms

:::::: TO: Michael Kelley <mikelley@microsoft.com>
:::::: CC: Borislav Petkov (AMD) <bp@alien8.de>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-30  8:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-30  8:07 [intel-tdx:guest-kexec 6/13] arch/x86/hyperv/ivm.c:611:53: error: assignment to 'int (*)(long unsigned int, int, bool)' {aka 'int (*)(long unsigned int, int, _Bool)'} from incompatible pointer type 'bool (*)(long unsigned int, int, bool)' {aka '_Bool (*)(long unsigned int, int kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.