[intel-tdx:guest 2/113] arch/x86/include/asm/mem_encrypt.h:82:52: warning: unused parameter 'attr'

From: kernel test robot
Date: Sun Aug 29 2021 - 22:52:17 EST


tree: https://github.com/intel/tdx.git guest
head: 44e41606b85b08fad5378c876547f8557f835cf6
commit: b39a7ff3588036d96aa5bb88e4a49300c77c81e8 [2/113] x86/sev: Add an x86 version of prot_guest_has()
config: i386-randconfig-a002-20210829 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 510e106fa8635e7f9c51c896180b971de6309b2f)
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/intel/tdx/commit/b39a7ff3588036d96aa5bb88e4a49300c77c81e8
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx guest
git checkout b39a7ff3588036d96aa5bb88e4a49300c77c81e8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=i386

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

include/linux/kasan-checks.h:22:76: warning: unused parameter 'size' [-Wunused-parameter]
static inline bool __kasan_check_read(const volatile void *p, unsigned int size)
^
include/linux/kasan-checks.h:26:61: warning: unused parameter 'p' [-Wunused-parameter]
static inline bool __kasan_check_write(const volatile void *p, unsigned int size)
^
include/linux/kasan-checks.h:26:77: warning: unused parameter 'size' [-Wunused-parameter]
static inline bool __kasan_check_write(const volatile void *p, unsigned int size)
^
include/linux/kasan-checks.h:40:58: warning: unused parameter 'p' [-Wunused-parameter]
static inline bool kasan_check_read(const volatile void *p, unsigned int size)
^
include/linux/kasan-checks.h:40:74: warning: unused parameter 'size' [-Wunused-parameter]
static inline bool kasan_check_read(const volatile void *p, unsigned int size)
^
include/linux/kasan-checks.h:44:59: warning: unused parameter 'p' [-Wunused-parameter]
static inline bool kasan_check_write(const volatile void *p, unsigned int size)
^
include/linux/kasan-checks.h:44:75: warning: unused parameter 'size' [-Wunused-parameter]
static inline bool kasan_check_write(const volatile void *p, unsigned int size)
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:36:
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:5:
In file included from arch/x86/include/asm/processor.h:5:
In file included from arch/x86/include/asm/processor-flags.h:6:
In file included from include/linux/mem_encrypt.h:17:
In file included from arch/x86/include/asm/mem_encrypt.h:15:
In file included from include/linux/init.h:5:
In file included from include/linux/compiler.h:264:
In file included from ./arch/x86/include/generated/asm/rwonce.h:1:
In file included from include/asm-generic/rwonce.h:27:
include/linux/kcsan-checks.h:148:62: warning: unused parameter 'ptr' [-Wunused-parameter]
static inline void __kcsan_check_access(const volatile void *ptr, size_t size,
^
include/linux/kcsan-checks.h:148:74: warning: unused parameter 'size' [-Wunused-parameter]
static inline void __kcsan_check_access(const volatile void *ptr, size_t size,
^
include/linux/kcsan-checks.h:149:10: warning: unused parameter 'type' [-Wunused-parameter]
int type) { }
^
include/linux/kcsan-checks.h:158:42: warning: unused parameter 'n' [-Wunused-parameter]
static inline void kcsan_atomic_next(int n) { }
^
include/linux/kcsan-checks.h:159:56: warning: unused parameter 'mask' [-Wunused-parameter]
static inline void kcsan_set_access_mask(unsigned long mask) { }
^
include/linux/kcsan-checks.h:164:48: warning: unused parameter 'ptr' [-Wunused-parameter]
kcsan_begin_scoped_access(const volatile void *ptr, size_t size, int type,
^
include/linux/kcsan-checks.h:164:60: warning: unused parameter 'size' [-Wunused-parameter]
kcsan_begin_scoped_access(const volatile void *ptr, size_t size, int type,
^
include/linux/kcsan-checks.h:164:70: warning: unused parameter 'type' [-Wunused-parameter]
kcsan_begin_scoped_access(const volatile void *ptr, size_t size, int type,
^
include/linux/kcsan-checks.h:166:72: warning: unused parameter 'sa' [-Wunused-parameter]
static inline void kcsan_end_scoped_access(struct kcsan_scoped_access *sa) { }
^
include/linux/kcsan-checks.h:184:60: warning: unused parameter 'ptr' [-Wunused-parameter]
static inline void kcsan_check_access(const volatile void *ptr, size_t size,
^
include/linux/kcsan-checks.h:184:72: warning: unused parameter 'size' [-Wunused-parameter]
static inline void kcsan_check_access(const volatile void *ptr, size_t size,
^
include/linux/kcsan-checks.h:185:15: warning: unused parameter 'type' [-Wunused-parameter]
int type) { }
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:36:
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:5:
In file included from arch/x86/include/asm/processor.h:5:
In file included from arch/x86/include/asm/processor-flags.h:6:
In file included from include/linux/mem_encrypt.h:17:
arch/x86/include/asm/mem_encrypt.h:64:61: warning: unused parameter 'paddr' [-Wunused-parameter]
static inline void __init sme_early_encrypt(resource_size_t paddr,
^
arch/x86/include/asm/mem_encrypt.h:65:24: warning: unused parameter 'size' [-Wunused-parameter]
unsigned long size) { }
^
arch/x86/include/asm/mem_encrypt.h:66:61: warning: unused parameter 'paddr' [-Wunused-parameter]
static inline void __init sme_early_decrypt(resource_size_t paddr,
^
arch/x86/include/asm/mem_encrypt.h:67:24: warning: unused parameter 'size' [-Wunused-parameter]
unsigned long size) { }
^
arch/x86/include/asm/mem_encrypt.h:69:50: warning: unused parameter 'real_mode_data' [-Wunused-parameter]
static inline void __init sme_map_bootdata(char *real_mode_data) { }
^
arch/x86/include/asm/mem_encrypt.h:70:52: warning: unused parameter 'real_mode_data' [-Wunused-parameter]
static inline void __init sme_unmap_bootdata(char *real_mode_data) { }
^
arch/x86/include/asm/mem_encrypt.h:75:66: warning: unused parameter 'bp' [-Wunused-parameter]
static inline void __init sme_encrypt_kernel(struct boot_params *bp) { }
^
arch/x86/include/asm/mem_encrypt.h:76:58: warning: unused parameter 'bp' [-Wunused-parameter]
static inline void __init sme_enable(struct boot_params *bp) { }
^
>> arch/x86/include/asm/mem_encrypt.h:82:52: warning: unused parameter 'attr' [-Wunused-parameter]
static inline bool amd_prot_guest_has(unsigned int attr) { return false; }
^
arch/x86/include/asm/mem_encrypt.h:85:42: warning: unused parameter 'vaddr' [-Wunused-parameter]
early_set_memory_decrypted(unsigned long vaddr, unsigned long size) { return 0; }
^
arch/x86/include/asm/mem_encrypt.h:85:63: warning: unused parameter 'size' [-Wunused-parameter]
early_set_memory_decrypted(unsigned long vaddr, unsigned long size) { return 0; }
^
arch/x86/include/asm/mem_encrypt.h:87:42: warning: unused parameter 'vaddr' [-Wunused-parameter]
early_set_memory_encrypted(unsigned long vaddr, unsigned long size) { return 0; }
^
arch/x86/include/asm/mem_encrypt.h:87:63: warning: unused parameter 'size' [-Wunused-parameter]
early_set_memory_encrypted(unsigned long vaddr, unsigned long size) { return 0; }
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:36:
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:5:
In file included from arch/x86/include/asm/processor.h:13:
In file included from arch/x86/include/asm/math_emu.h:5:
In file included from arch/x86/include/asm/ptrace.h:97:
In file included from arch/x86/include/asm/paravirt_types.h:39:
In file included from arch/x86/include/asm/pgtable_types.h:341:
include/asm-generic/pgtable-nop4d.h:21:34: warning: unused parameter 'pgd' [-Wunused-parameter]
static inline int pgd_none(pgd_t pgd) { return 0; }
^
include/asm-generic/pgtable-nop4d.h:22:33: warning: unused parameter 'pgd' [-Wunused-parameter]
static inline int pgd_bad(pgd_t pgd) { return 0; }
^
include/asm-generic/pgtable-nop4d.h:23:37: warning: unused parameter 'pgd' [-Wunused-parameter]
static inline int pgd_present(pgd_t pgd) { return 1; }
^
include/asm-generic/pgtable-nop4d.h:24:37: warning: unused parameter 'pgd' [-Wunused-parameter]
static inline void pgd_clear(pgd_t *pgd) { }
^
include/asm-generic/pgtable-nop4d.h:35:59: warning: unused parameter 'address' [-Wunused-parameter]
static inline p4d_t *p4d_offset(pgd_t *pgd, unsigned long address)
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:36:
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:5:
In file included from arch/x86/include/asm/processor.h:13:
In file included from arch/x86/include/asm/math_emu.h:5:
In file included from arch/x86/include/asm/ptrace.h:97:
In file included from arch/x86/include/asm/paravirt_types.h:39:
In file included from arch/x86/include/asm/pgtable_types.h:367:
include/asm-generic/pgtable-nopud.h:28:34: warning: unused parameter 'p4d' [-Wunused-parameter]
static inline int p4d_none(p4d_t p4d) { return 0; }
^
include/asm-generic/pgtable-nopud.h:29:33: warning: unused parameter 'p4d' [-Wunused-parameter]
static inline int p4d_bad(p4d_t p4d) { return 0; }
^
include/asm-generic/pgtable-nopud.h:30:37: warning: unused parameter 'p4d' [-Wunused-parameter]
static inline int p4d_present(p4d_t p4d) { return 1; }
^
include/asm-generic/pgtable-nopud.h:31:37: warning: unused parameter 'p4d' [-Wunused-parameter]
static inline void p4d_clear(p4d_t *p4d) { }
^
include/asm-generic/pgtable-nopud.h:42:59: warning: unused parameter 'address' [-Wunused-parameter]
static inline pud_t *pud_offset(p4d_t *p4d, unsigned long address)
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:36:
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:5:
In file included from arch/x86/include/asm/processor.h:13:
In file included from arch/x86/include/asm/math_emu.h:5:
In file included from arch/x86/include/asm/ptrace.h:97:
In file included from arch/x86/include/asm/paravirt_types.h:39:
In file included from arch/x86/include/asm/pgtable_types.h:393:
include/asm-generic/pgtable-nopmd.h:30:34: warning: unused parameter 'pud' [-Wunused-parameter]
static inline int pud_none(pud_t pud) { return 0; }
^
include/asm-generic/pgtable-nopmd.h:31:33: warning: unused parameter 'pud' [-Wunused-parameter]
static inline int pud_bad(pud_t pud) { return 0; }
^
include/asm-generic/pgtable-nopmd.h:32:37: warning: unused parameter 'pud' [-Wunused-parameter]
static inline int pud_present(pud_t pud) { return 1; }
^
include/asm-generic/pgtable-nopmd.h:33:37: warning: unused parameter 'pud' [-Wunused-parameter]
static inline void pud_clear(pud_t *pud) { }
^
include/asm-generic/pgtable-nopmd.h:44:61: warning: unused parameter 'address' [-Wunused-parameter]
static inline pmd_t * pmd_offset(pud_t * pud, unsigned long address)
^
include/asm-generic/pgtable-nopmd.h:61:47: warning: unused parameter 'mm' [-Wunused-parameter]
static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd)
^
include/asm-generic/pgtable-nopmd.h:61:58: warning: unused parameter 'pmd' [-Wunused-parameter]
static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd)
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:36:
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:5:
In file included from arch/x86/include/asm/processor.h:13:
In file included from arch/x86/include/asm/math_emu.h:5:
In file included from arch/x86/include/asm/ptrace.h:97:
In file included from arch/x86/include/asm/paravirt_types.h:39:
--
In file included from include/linux/mmdebug.h:5:
In file included from include/linux/bug.h:5:
In file included from arch/x86/include/asm/bug.h:84:
In file included from include/asm-generic/bug.h:22:
include/linux/printk.h:633:53: warning: unused parameter 'prefix_str' [-Wunused-parameter]
static inline void print_hex_dump_debug(const char *prefix_str, int prefix_type,
^
include/linux/printk.h:633:69: warning: unused parameter 'prefix_type' [-Wunused-parameter]
static inline void print_hex_dump_debug(const char *prefix_str, int prefix_type,
^
include/linux/printk.h:634:10: warning: unused parameter 'rowsize' [-Wunused-parameter]
int rowsize, int groupsize,
^
include/linux/printk.h:634:23: warning: unused parameter 'groupsize' [-Wunused-parameter]
int rowsize, int groupsize,
^
include/linux/printk.h:635:18: warning: unused parameter 'buf' [-Wunused-parameter]
const void *buf, size_t len, bool ascii)
^
include/linux/printk.h:635:30: warning: unused parameter 'len' [-Wunused-parameter]
const void *buf, size_t len, bool ascii)
^
include/linux/printk.h:635:40: warning: unused parameter 'ascii' [-Wunused-parameter]
const void *buf, size_t len, bool ascii)
^
In file included from drivers/gpu/drm/i915/i915_irq.c:32:
In file included from include/linux/slab.h:15:
In file included from include/linux/gfp.h:6:
In file included from include/linux/mmzone.h:8:
In file included from include/linux/spinlock.h:51:
In file included from include/linux/preempt.h:11:
In file included from include/linux/list.h:9:
In file included from include/linux/kernel.h:12:
In file included from include/linux/bitops.h:32:
In file included from arch/x86/include/asm/bitops.h:391:
In file included from include/asm-generic/bitops/instrumented-atomic.h:14:
include/linux/instrumented.h:116:38: warning: unused parameter 'to' [-Wunused-parameter]
instrument_copy_to_user(void __user *to, const void *from, unsigned long n)
^
include/linux/instrumented.h:133:62: warning: unused parameter 'from' [-Wunused-parameter]
instrument_copy_from_user(const void *to, const void __user *from, unsigned long n)
^
In file included from drivers/gpu/drm/i915/i915_irq.c:32:
In file included from include/linux/slab.h:15:
In file included from include/linux/gfp.h:6:
In file included from include/linux/mmzone.h:8:
In file included from include/linux/spinlock.h:51:
In file included from include/linux/preempt.h:11:
In file included from include/linux/list.h:9:
include/linux/kernel.h:323:48: warning: unused parameter 'fmt' [-Wunused-parameter]
void ____trace_printk_check_format(const char *fmt, ...)
^
In file included from drivers/gpu/drm/i915/i915_irq.c:32:
In file included from include/linux/slab.h:15:
In file included from include/linux/gfp.h:6:
In file included from include/linux/mmzone.h:8:
In file included from include/linux/spinlock.h:51:
In file included from include/linux/preempt.h:78:
In file included from arch/x86/include/asm/preempt.h:6:
In file included from arch/x86/include/asm/percpu.h:390:
In file included from include/asm-generic/percpu.h:7:
include/linux/percpu-defs.h:313:57: warning: unused parameter 'op' [-Wunused-parameter]
static inline void __this_cpu_preempt_check(const char *op) { }
^
In file included from drivers/gpu/drm/i915/i915_irq.c:32:
In file included from include/linux/slab.h:15:
In file included from include/linux/gfp.h:6:
In file included from include/linux/mmzone.h:8:
In file included from include/linux/spinlock.h:51:
In file included from include/linux/preempt.h:78:
In file included from arch/x86/include/asm/preempt.h:7:
In file included from include/linux/thread_info.h:60:
In file included from arch/x86/include/asm/thread_info.h:12:
In file included from arch/x86/include/asm/page.h:9:
In file included from arch/x86/include/asm/page_types.h:7:
In file included from include/linux/mem_encrypt.h:17:
arch/x86/include/asm/mem_encrypt.h:64:61: warning: unused parameter 'paddr' [-Wunused-parameter]
static inline void __init sme_early_encrypt(resource_size_t paddr,
^
arch/x86/include/asm/mem_encrypt.h:65:24: warning: unused parameter 'size' [-Wunused-parameter]
unsigned long size) { }
^
arch/x86/include/asm/mem_encrypt.h:66:61: warning: unused parameter 'paddr' [-Wunused-parameter]
static inline void __init sme_early_decrypt(resource_size_t paddr,
^
arch/x86/include/asm/mem_encrypt.h:67:24: warning: unused parameter 'size' [-Wunused-parameter]
unsigned long size) { }
^
arch/x86/include/asm/mem_encrypt.h:69:50: warning: unused parameter 'real_mode_data' [-Wunused-parameter]
static inline void __init sme_map_bootdata(char *real_mode_data) { }
^
arch/x86/include/asm/mem_encrypt.h:70:52: warning: unused parameter 'real_mode_data' [-Wunused-parameter]
static inline void __init sme_unmap_bootdata(char *real_mode_data) { }
^
arch/x86/include/asm/mem_encrypt.h:75:66: warning: unused parameter 'bp' [-Wunused-parameter]
static inline void __init sme_encrypt_kernel(struct boot_params *bp) { }
^
arch/x86/include/asm/mem_encrypt.h:76:58: warning: unused parameter 'bp' [-Wunused-parameter]
static inline void __init sme_enable(struct boot_params *bp) { }
^
>> arch/x86/include/asm/mem_encrypt.h:82:52: warning: unused parameter 'attr' [-Wunused-parameter]
static inline bool amd_prot_guest_has(unsigned int attr) { return false; }
^
arch/x86/include/asm/mem_encrypt.h:85:42: warning: unused parameter 'vaddr' [-Wunused-parameter]
early_set_memory_decrypted(unsigned long vaddr, unsigned long size) { return 0; }
^
arch/x86/include/asm/mem_encrypt.h:85:63: warning: unused parameter 'size' [-Wunused-parameter]
early_set_memory_decrypted(unsigned long vaddr, unsigned long size) { return 0; }
^
arch/x86/include/asm/mem_encrypt.h:87:42: warning: unused parameter 'vaddr' [-Wunused-parameter]
early_set_memory_encrypted(unsigned long vaddr, unsigned long size) { return 0; }
^
arch/x86/include/asm/mem_encrypt.h:87:63: warning: unused parameter 'size' [-Wunused-parameter]
early_set_memory_encrypted(unsigned long vaddr, unsigned long size) { return 0; }
^
In file included from drivers/gpu/drm/i915/i915_irq.c:32:
In file included from include/linux/slab.h:15:
In file included from include/linux/gfp.h:6:
In file included from include/linux/mmzone.h:8:
In file included from include/linux/spinlock.h:51:
In file included from include/linux/preempt.h:78:
In file included from arch/x86/include/asm/preempt.h:7:
In file included from include/linux/thread_info.h:60:
In file included from arch/x86/include/asm/thread_info.h:12:
arch/x86/include/asm/page.h:25:62: warning: unused parameter 'vaddr' [-Wunused-parameter]
static inline void clear_user_page(void *page, unsigned long vaddr,
^
arch/x86/include/asm/page.h:26:21: warning: unused parameter 'pg' [-Wunused-parameter]
struct page *pg)
^
arch/x86/include/asm/page.h:31:71: warning: unused parameter 'vaddr' [-Wunused-parameter]
static inline void copy_user_page(void *to, void *from, unsigned long vaddr,
^
arch/x86/include/asm/page.h:32:20: warning: unused parameter 'topage' [-Wunused-parameter]
struct page *topage)
^
In file included from drivers/gpu/drm/i915/i915_irq.c:32:
In file included from include/linux/slab.h:15:
In file included from include/linux/gfp.h:6:
In file included from include/linux/mmzone.h:8:
In file included from include/linux/spinlock.h:51:
In file included from include/linux/preempt.h:78:
In file included from arch/x86/include/asm/preempt.h:7:
In file included from include/linux/thread_info.h:60:
In file included from arch/x86/include/asm/thread_info.h:53:
In file included from arch/x86/include/asm/cpufeature.h:5:
In file included from arch/x86/include/asm/processor.h:13:
In file included from arch/x86/include/asm/math_emu.h:5:
In file included from arch/x86/include/asm/ptrace.h:97:
In file included from arch/x86/include/asm/paravirt_types.h:39:
In file included from arch/x86/include/asm/pgtable_types.h:341:
include/asm-generic/pgtable-nop4d.h:21:34: warning: unused parameter 'pgd' [-Wunused-parameter]
static inline int pgd_none(pgd_t pgd) { return 0; }
^
include/asm-generic/pgtable-nop4d.h:22:33: warning: unused parameter 'pgd' [-Wunused-parameter]
static inline int pgd_bad(pgd_t pgd) { return 0; }
^
include/asm-generic/pgtable-nop4d.h:23:37: warning: unused parameter 'pgd' [-Wunused-parameter]
static inline int pgd_present(pgd_t pgd) { return 1; }
^
include/asm-generic/pgtable-nop4d.h:24:37: warning: unused parameter 'pgd' [-Wunused-parameter]
static inline void pgd_clear(pgd_t *pgd) { }
^
include/asm-generic/pgtable-nop4d.h:35:59: warning: unused parameter 'address' [-Wunused-parameter]
static inline p4d_t *p4d_offset(pgd_t *pgd, unsigned long address)
^
In file included from drivers/gpu/drm/i915/i915_irq.c:32:
In file included from include/linux/slab.h:15:
In file included from include/linux/gfp.h:6:
In file included from include/linux/mmzone.h:8:
In file included from include/linux/spinlock.h:51:
In file included from include/linux/preempt.h:78:
In file included from arch/x86/include/asm/preempt.h:7:
In file included from include/linux/thread_info.h:60:
In file included from arch/x86/include/asm/thread_info.h:53:
In file included from arch/x86/include/asm/cpufeature.h:5:
In file included from arch/x86/include/asm/processor.h:13:
In file included from arch/x86/include/asm/math_emu.h:5:
In file included from arch/x86/include/asm/ptrace.h:97:
In file included from arch/x86/include/asm/paravirt_types.h:39:
In file included from arch/x86/include/asm/pgtable_types.h:367:
include/asm-generic/pgtable-nopud.h:28:34: warning: unused parameter 'p4d' [-Wunused-parameter]
static inline int p4d_none(p4d_t p4d) { return 0; }
^
include/asm-generic/pgtable-nopud.h:29:33: warning: unused parameter 'p4d' [-Wunused-parameter]
static inline int p4d_bad(p4d_t p4d) { return 0; }
^
include/asm-generic/pgtable-nopud.h:30:37: warning: unused parameter 'p4d' [-Wunused-parameter]
static inline int p4d_present(p4d_t p4d) { return 1; }
^
include/asm-generic/pgtable-nopud.h:31:37: warning: unused parameter 'p4d' [-Wunused-parameter]
static inline void p4d_clear(p4d_t *p4d) { }
^
include/asm-generic/pgtable-nopud.h:42:59: warning: unused parameter 'address' [-Wunused-parameter]
static inline pud_t *pud_offset(p4d_t *p4d, unsigned long address)
^
In file included from drivers/gpu/drm/i915/i915_irq.c:32:
In file included from include/linux/slab.h:15:
In file included from include/linux/gfp.h:6:
In file included from include/linux/mmzone.h:8:
In file included from include/linux/spinlock.h:51:
..


vim +/attr +82 arch/x86/include/asm/mem_encrypt.h

63
64 static inline void __init sme_early_encrypt(resource_size_t paddr,
65 unsigned long size) { }
66 static inline void __init sme_early_decrypt(resource_size_t paddr,
67 unsigned long size) { }
68
69 static inline void __init sme_map_bootdata(char *real_mode_data) { }
> 70 static inline void __init sme_unmap_bootdata(char *real_mode_data) { }
71
72 static inline void __init sme_early_init(void) { }
73 static inline void __init sev_setup_arch(void) { }
74
75 static inline void __init sme_encrypt_kernel(struct boot_params *bp) { }
76 static inline void __init sme_enable(struct boot_params *bp) { }
77
78 static inline void sev_es_init_vc_handling(void) { }
79 static inline bool sme_active(void) { return false; }
80 static inline bool sev_active(void) { return false; }
81 static inline bool sev_es_active(void) { return false; }
> 82 static inline bool amd_prot_guest_has(unsigned int attr) { return false; }
83

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip