From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gnuweeb.org (Postfix) with ESMTPS id 7457A83217 for ; Tue, 7 Mar 2023 01:18:49 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=CQEn4B6C; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678151929; x=1709687929; h=date:from:to:cc:subject:message-id:mime-version; bh=M4NpBUGGUQePL6GJjj8k/fr2bug027Z96fb8yh1szO8=; b=CQEn4B6CHEs5p1ANxkyK0W0X/pFBhBjGtEnlMAt8eZwrdDewbCFUqPDV j1flsJ+M3YdmZT24DsTBHGyVru9wEF3om2/7ewaEMu7LckZeixK60qFYB qHxVIbC+X3Jgy1gsab/B3HpH+yn6BgiXoiPZP26gIhHUJBjq/wush89zz sP4MM9OMTUs74ABFli4R3s3Px+p+goywFeSM+DUiV83+7WH9LyVSv4oeq wyrB+jecLwsBIYG0mqJRyY51Nx4axqANVbiQrI4I+6/nihg4TOB2WTPdv xBrefjWUej7xg6pfhYOM33cuPYmg8c/VA2fFuUulQyMvkoliLhnAlmuvz Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10641"; a="333199792" X-IronPort-AV: E=Sophos;i="5.98,238,1673942400"; d="scan'208";a="333199792" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Mar 2023 17:18:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10641"; a="626354777" X-IronPort-AV: E=Sophos;i="5.98,238,1673942400"; d="scan'208";a="626354777" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 06 Mar 2023 17:18:45 -0800 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pZLyX-0000qD-02; Tue, 07 Mar 2023 01:18:45 +0000 Date: Tue, 7 Mar 2023 09:18:33 +0800 From: kernel test robot To: Dionna Glaze Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Ammar Faizi , GNU/Weeb Mailing List , "Borislav Petkov (AMD)" Subject: [ammarfaizi2-block:bp/bp/tip-x86-sev 11/11] arch/x86/include/asm/sev.h:222:93: warning: declaration of 'struct snp_guest_request_ioctl' will not be visible outside of this function Message-ID: <202303070918.kuo2MJGH-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: tree: https://github.com/ammarfaizi2/linux-block bp/bp/tip-x86-sev head: 9bda6a75b659d5b34bff06c22afee2b9b21d1146 commit: 9bda6a75b659d5b34bff06c22afee2b9b21d1146 [11/11] x86/sev: Change snp_guest_issue_request()'s fw_err argument config: i386-randconfig-a013-20230306 (https://download.01.org/0day-ci/archive/20230307/202303070918.kuo2MJGH-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) 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/ammarfaizi2/linux-block/commit/9bda6a75b659d5b34bff06c22afee2b9b21d1146 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block bp/bp/tip-x86-sev git checkout 9bda6a75b659d5b34bff06c22afee2b9b21d1146 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/kernel/cpu/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202303070918.kuo2MJGH-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from arch/x86/kernel/cpu/common.c:64: >> arch/x86/include/asm/sev.h:222:93: warning: declaration of 'struct snp_guest_request_ioctl' will not be visible outside of this function [-Wvisibility] static inline int snp_issue_guest_request(u64 exit_code, struct snp_req_data *input, struct snp_guest_request_ioctl *rio) ^ 1 warning generated. vim +222 arch/x86/include/asm/sev.h 190 191 void setup_ghcb(void); 192 void __init early_snp_set_memory_private(unsigned long vaddr, unsigned long paddr, 193 unsigned int npages); 194 void __init early_snp_set_memory_shared(unsigned long vaddr, unsigned long paddr, 195 unsigned int npages); 196 void __init snp_prep_memory(unsigned long paddr, unsigned int sz, enum psc_op op); 197 void snp_set_memory_shared(unsigned long vaddr, unsigned int npages); 198 void snp_set_memory_private(unsigned long vaddr, unsigned int npages); 199 void snp_set_wakeup_secondary_cpu(void); 200 bool snp_init(struct boot_params *bp); 201 void __init __noreturn snp_abort(void); 202 int snp_issue_guest_request(u64 exit_code, struct snp_req_data *input, struct snp_guest_request_ioctl *rio); 203 #else 204 static inline void sev_es_ist_enter(struct pt_regs *regs) { } 205 static inline void sev_es_ist_exit(void) { } 206 static inline int sev_es_setup_ap_jump_table(struct real_mode_header *rmh) { return 0; } 207 static inline void sev_es_nmi_complete(void) { } 208 static inline int sev_es_efi_map_ghcbs(pgd_t *pgd) { return 0; } 209 static inline int pvalidate(unsigned long vaddr, bool rmp_psize, bool validate) { return 0; } 210 static inline int rmpadjust(unsigned long vaddr, bool rmp_psize, unsigned long attrs) { return 0; } 211 static inline void setup_ghcb(void) { } 212 static inline void __init 213 early_snp_set_memory_private(unsigned long vaddr, unsigned long paddr, unsigned int npages) { } 214 static inline void __init 215 early_snp_set_memory_shared(unsigned long vaddr, unsigned long paddr, unsigned int npages) { } 216 static inline void __init snp_prep_memory(unsigned long paddr, unsigned int sz, enum psc_op op) { } 217 static inline void snp_set_memory_shared(unsigned long vaddr, unsigned int npages) { } 218 static inline void snp_set_memory_private(unsigned long vaddr, unsigned int npages) { } 219 static inline void snp_set_wakeup_secondary_cpu(void) { } 220 static inline bool snp_init(struct boot_params *bp) { return false; } 221 static inline void snp_abort(void) { } > 222 static inline int snp_issue_guest_request(u64 exit_code, struct snp_req_data *input, struct snp_guest_request_ioctl *rio) 223 { 224 return -ENOTTY; 225 } 226 #endif 227 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests