Skip to contentSkip to conversation

linux-next: build failure after merge of the scsi-mkp tree

DISCUSSION Stephen Rothwell 3 participants 3 messages Jun 15, 2023 – Jun 16, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
#1 lore raw
Quoted 13 lines · Stephen Rothwell

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)
      |                              ^~~~~~~~~~~~
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
index 7310449c0178..92a769b9786d 100644
@@ -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
#2 lore raw

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