Bug 1089833

Summary: sparse: thousands of warnings about 'indirect_branch': unknown attribute
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Wilck <martin.wilck>
Component: DevelopmentAssignee: Martin Wilck <martin.wilck>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Martin Wilck 2018-04-17 10:14:30 UTC
sparse emits thousands of warning messages when compiling the kernel with retpoline support:

> ./include/linux/init.h:134:6: warning: attribute 'indirect_branch': unknown attribute
> ./include/linux/init.h:135:5: warning: attribute 'indirect_branch': unknown attribute
> ./include/linux/init.h:268:6: warning: attribute 'indirect_branch': unknown attribute
> ./include/linux/init.h:269:6: warning: attribute 'indirect_branch': unknown attribute
> ./include/linux/printk.h:200:6: warning: attribute 'indirect_branch': unknown attribute
> ./arch/x86/include/asm/mem_encrypt.h:60:20: warning: attribute 'indirect_branch': unknown attribute
> ./arch/x86/include/asm/mem_encrypt.h:62:20: warning: attribute 'indirect_branch': unknown attribute
> ./arch/x86/include/asm/mem_encrypt.h:65:20: warning: attribute 'indirect_branch': unknown attribute
> ./arch/x86/include/asm/mem_encrypt.h:66:20: warning: attribute 'indirect_branch': unknown attribute
> ./arch/x86/include/asm/mem_encrypt.h:68:20: warning: attribute 'indirect_branch': unknown attribute
> ./arch/x86/include/asm/mem_encrypt.h:70:20: warning: attribute 'indirect_branch': unknown attribute
> ./arch/x86/include/asm/mem_encrypt.h:71:20: warning: attribute 'indirect_branch': unknown attribute
> ...

This is solved in sparse 0.5.2 (20180324).
Comment 1 Martin Wilck 2018-04-17 10:16:21 UTC
OBS request 597409.
Comment 2 Martin Wilck 2018-04-23 10:15:09 UTC
Fixed with  https://build.opensuse.org/request/show/597806