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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gnuweeb.org (Postfix) with ESMTPS id 94E8F8320F for ; Mon, 6 Mar 2023 22:44:41 +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=I7kjMEPG; 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=1678142681; x=1709678681; h=date:from:to:cc:subject:message-id:mime-version; bh=8+gZbCGQhY+dgPLq+JCY6JukdTaURR8Zo4wCj6hcuv0=; b=I7kjMEPGUT0U5PS3zXk+OEjwIbbQZzDy1mAY2FlY57cDe41scFnBkIqh o1QsXNww/HlzEsXYAUpimR5MnXvu1v8ujalD1l1rNszKJ/qoq8Nolx5N6 jgITCw23xUMegSElAm4dJOpyvl75xesFpOXI9C7HbH4VpvifDM5k9bV/n 16jZlVL75cdtJ06jKkZ2Z3/D/yUqql8ERdxK3OeN5t4u0MU3S917YzD3B asQXCeQihAhTqT30JZvk8Z0Zw9U8mbaBkLxL3LJsJkDK96krDnDn50e92 4e7GDbhTG1LEPzYtyniLuwWQxfMqAnMejt6wnpu4eqZmwWJ8zvWFrDGto w==; X-IronPort-AV: E=McAfee;i="6500,9779,10641"; a="337216455" X-IronPort-AV: E=Sophos;i="5.98,238,1673942400"; d="scan'208";a="337216455" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Mar 2023 14:44:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10641"; a="676343118" X-IronPort-AV: E=Sophos;i="5.98,238,1673942400"; d="scan'208";a="676343118" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 06 Mar 2023 14:44:38 -0800 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pZJZN-0000hv-1v; Mon, 06 Mar 2023 22:44:37 +0000 Date: Tue, 7 Mar 2023 06:44:17 +0800 From: kernel test robot To: Dionna Glaze Cc: 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: 'struct snp_guest_request_ioctl' declared inside parameter list will not be visible outside of this definition or declaration Message-ID: <202303070609.vX6wp2Af-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-tinyconfig (https://download.01.org/0day-ci/archive/20230307/202303070609.vX6wp2Af-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-8) 11.3.0 reproduce (this is a W=1 build): # 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 make W=1 O=build_dir ARCH=i386 olddefconfig make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/realmode/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202303070609.vX6wp2Af-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from arch/x86/realmode/init.c:12: >> arch/x86/include/asm/sev.h:222:93: warning: 'struct snp_guest_request_ioctl' declared inside parameter list will not be visible outside of this definition or declaration 222 | static inline int snp_issue_guest_request(u64 exit_code, struct snp_req_data *input, struct snp_guest_request_ioctl *rio) | ^~~~~~~~~~~~~~~~~~~~~~~ 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