Bug 1089833 - sparse: thousands of warnings about 'indirect_branch': unknown attribute
sparse: thousands of warnings about 'indirect_branch': unknown attribute
Status: RESOLVED FIXED
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Development
Current
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: Martin Wilck
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-04-17 10:14 UTC by Martin Wilck
Modified: 2018-04-23 10:15 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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