From: kernel test robot <lkp@intel.com>
To: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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...
Date: Sat, 30 Sep 2023 16:07:38 +0800 [thread overview]
Message-ID: <202309301607.LtdmAS2t-lkp@intel.com> (raw)
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
reply other threads:[~2023-09-30 8:08 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=202309301607.LtdmAS2t-lkp@intel.com \
--to=lkp@intel.com \
--cc=kirill.shutemov@linux.intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
/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 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.