From: kernel test robot <lkp@intel.com>
To: Dionna Glaze <dionnaglaze@google.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Ammar Faizi <ammarfaizi2@gnuweeb.org>,
GNU/Weeb Mailing List <gwml@vger.gnuweeb.org>,
"Borislav Petkov (AMD)" <bp@alien8.de>
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
Date: Tue, 7 Mar 2023 09:18:33 +0800 [thread overview]
Message-ID: <202303070918.kuo2MJGH-lkp@intel.com> (raw)
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 <lkp@intel.com>
| 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
reply other threads:[~2023-03-07 1:18 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=202303070918.kuo2MJGH-lkp@intel.com \
--to=lkp@intel.com \
--cc=ammarfaizi2@gnuweeb.org \
--cc=bp@alien8.de \
--cc=dionnaglaze@google.com \
--cc=gwml@vger.gnuweeb.org \
--cc=llvm@lists.linux.dev \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).