sh: include linux/time_types.h for sockios
PATCH 1/1 sh: include linux/time_types.h for sockios
Using the socket ioctls on arch/sh (and only there) causes build time problems when __kernel_old_timeval/__kernel_old_timespec are not already visible to the compiler.
Add an explict include line for the header that defines these structures.
--- arch/sh/include/uapi/asm/sockios.h | 2 ++ 1 file changed, 2 insertions(+)
arch/sh/include/uapi/asm/sockios.h +2 -0
@@ -2,6 +2,8 @@#ifndef __ASM_SH_SOCKIOS_H#define __ASM_SH_SOCKIOS_H +#include <linux/time_types.h> +/* Socket-level I/O control calls. */ #define FIOGETOWN _IOR('f', 123, int)#define FIOSETOWN _IOW('f', 124, int)
Signature · 1 line
2.26.2
Quoted 6 lines · On Tue, 19 May 2020 15:13:13 +0200 Arnd Bergmann <[email protected]> wrote:
Using the socket ioctls on
arch/sh(and only there) causes build time problems when __kernel_old_timeval/__kernel_old_timespec are not already visible to the compiler.Add an explict include line for the header that defines these structures.
I can grab this.
Quoted 4 lines
Reported-by John Paul Adrian Glaubitz <[email protected]>Fixes 8c709f9a0693 ("y2038: sh: remove timeval/timespec usage from headers")Fixes 0768e17073dc ("net: socket: implement 64-bit timestamps")
Quoted 18 lines
Signed-off-by Arnd Bergmann <[email protected]>--- arch/sh/include/uapi/asm/sockios.h | 2 ++ 1 file changed, 2 insertions(+)arch/sh/include/uapi/asm/sockios.h +2
-0@@ -2,6 +2,8 @@#ifndef __ASM_SH_SOCKIOS_H#define __ASM_SH_SOCKIOS_H +#include <linux/time_types.h> +/* Socket-level I/O control calls. */ #define FIOGETOWN _IOR('f', 123, int)#define FIOSETOWN _IOW('f', 124, int)
Quoted 11 lines · Andrew Morton
Quoted 6 lines · On Tue, 19 May 2020 15:13:13 +0200 Arnd Bergmann <[email protected]> wrote:
Using the socket ioctls on
arch/sh(and only there) causes build time problems when __kernel_old_timeval/__kernel_old_timespec are not already visible to the compiler.Add an explict include line for the header that defines these structures.
I can grab this.
Thanks!
Quoted 6 lines
Quoted 4 lines
Reported-by John Paul Adrian Glaubitz <[email protected]>Fixes 8c709f9a0693 ("y2038: sh: remove timeval/timespec usage from headers")Fixes 0768e17073dc ("net: socket: implement 64-bit timestamps")cc stable?
Yes, I missed that.
Arnd
Hi Arnd, Andrew,
Quoted 13 lines · Arnd Bergmann
Quoted 9 lines · Andrew Morton
Quoted 6 lines · On Tue, 19 May 2020 15:13:13 +0200 Arnd Bergmann <[email protected]> wrote:
Using the socket ioctls on
arch/sh(and only there) causes build time problems when __kernel_old_timeval/__kernel_old_timespec are not already visible to the compiler.Add an explict include line for the header that defines these structures.
I can grab this.
Thanks!
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Reported-by John Paul Adrian Glaubitz <[email protected]>Fixes 8c709f9a0693 ("y2038: sh: remove timeval/timespec usage from headers")Fixes 0768e17073dc ("net: socket: implement 64-bit timestamps")cc stable?Yes, I missed that.
Doesn't matter, the stable bots will pick it up anyway, based on the Fixes tag.
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Quoted 19 lines · Geert Uytterhoeven
Quoted 18 lines · Arnd Bergmann
Quoted 9 lines · Andrew Morton
Quoted 6 lines · On Tue, 19 May 2020 15:13:13 +0200 Arnd Bergmann <[email protected]> wrote:
Using the socket ioctls on
arch/sh(and only there) causes build time problems when __kernel_old_timeval/__kernel_old_timespec are not already visible to the compiler.Add an explict include line for the header that defines these structures.
I can grab this.
Thanks!
Quoted 5 lines
Quoted 4 lines
Reported-by John Paul Adrian Glaubitz <[email protected]>Fixes 8c709f9a0693 ("y2038: sh: remove timeval/timespec usage from headers")Fixes 0768e17073dc ("net: socket: implement 64-bit timestamps")
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
cc stable?Yes, I missed that.
Doesn't matter, the stable bots will pick it up anyway, based on the Fixes tag.
I normally prefer to be explicit, as some bug fixes may address something that has been caused by an earlier commit, but should not be backported for some reason.
Arnd
Hi Arnd,
Quoted 22 lines · Arnd Bergmann
Quoted 21 lines · Geert Uytterhoeven
Quoted 20 lines · Arnd Bergmann
Quoted 9 lines · Andrew Morton
Quoted 6 lines · On Tue, 19 May 2020 15:13:13 +0200 Arnd Bergmann <[email protected]> wrote:
Using the socket ioctls on
arch/sh(and only there) causes build time problems when __kernel_old_timeval/__kernel_old_timespec are not already visible to the compiler.Add an explict include line for the header that defines these structures.
I can grab this.
Thanks!
Quoted 6 lines
Quoted 4 lines
Reported-by John Paul Adrian Glaubitz <[email protected]>Fixes 8c709f9a0693 ("y2038: sh: remove timeval/timespec usage from headers")Fixes 0768e17073dc ("net: socket: implement 64-bit timestamps")cc stable?
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Yes, I missed that.
Doesn't matter, the stable bots will pick it up anyway, based on the Fixes tag.
I normally prefer to be explicit, as some bug fixes may address something that has been caused by an earlier commit, but should not be backported for some reason.
Which means that with the current "intelligent' backporting, you need a Not-for-stable tag instead...
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds