linux-next: build failure after merge of the scsi-mkp tree
Subsystems (2)
Hi all,
After merging the scsi-mkp tree, today's linux-next build (x86_64 allmodconfig) failed like this:
In file included from <command-line>:./usr/include/linux/ioprio.h:107:8: error: unknown type name '__always_inline'
107 | static __always_inline __u16 ioprio_value(int class, int level, int hint)
| ^~~~~~~~~~~~~~~
./usr/include/linux/ioprio.h:107:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ioprio_value'
107 | static __always_inline __u16 ioprio_value(int class, int level, int hint)
| ^~~~~~~~~~~~Caused by commit
bfaaaa3d9d09 ("scsi: block: Improve ioprio value validity checks")
I have used the scsi-mkp tree from next-20230614 for today.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 13 lines · Stephen Rothwell
Hi all,
After merging the scsi-mkp tree, today's linux-next build (
x86_64allmodconfig) failed like this:In file included from <command-line>:
./usr/include/linux/ioprio.h:107:8: error: unknown type name '__always_inline'
107 | static__always_inline__u16ioprio_value(int class, int level, int hint)| ^~~~~~~~~~~~~~~ ./usr/include/linux/ioprio.h:107:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ioprio_value' 107 | static __always_inline __u16 ioprio_value(int class, int level, int hint) | ^~~~~~~~~~~~
Quoted 5 lines
Caused by commit
bfaaaa3d9d09("scsi: block: Improve ioprio value validity checks")I have used the scsi-mkp tree from next-20230614 for today.
Not sure how this is triggered as I have no error compiling (using gcc)...
Martin,
I believe this should fix the issue:
include/uapi/linux/ioprio.h +3 -0
@@ -2,6 +2,9 @@#ifndef _UAPI_LINUX_IOPRIO_H#define _UAPI_LINUX_IOPRIO_H +#include <linux/stddef.h> +#include <linux/types.h> +/* * Gives us 8 prio classes with 13-bits of data for each class */
Could you squash this fix in the ioprio patch you just queued ? Or I can send a fix.
Thanks !
Signature · 2 lines
Damien Le Moal Western Digital Research
Damien,
Quoted 5 lines
Quoted 3 lines
bfaaaa3d9d09("scsi: block: Improve ioprio value validity checks")I have used the scsi-mkp tree from next-20230614 for today.
I believe this should fix the issue:
Now fixed up.
Thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering