Skip to contentSkip to conversation

linux-next: build warning after merge of the drm-misc-fixes tree

DISCUSSION Stephen Rothwell 2 participants 4 messages Oct 21, 2019 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the drm-misc-fixes tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning:

In file included from include/uapi/linux/posix_types.h:5,

                 from include/uapi/linux/types.h:14,
                 from include/linux/types.h:6,
                 from include/linux/limits.h:6,
                 from include/linux/kernel.h:7,
                 from fs/aio.c:14:
fs/aio.c: In function '__do_compat_sys_io_pgetevents':
include/linux/stddef.h:8:14: warning: initialization of 'unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
    8 | #define NULL ((void *)0)
      |              ^

fs/aio.c:2196:38: note: in expansion of macro 'NULL'
2196 | struct __compat_aio_sigset ksig = { NULL, };
| ^~~~
include/linux/stddef.h:8:14: note: (near initialization for 'ksig.sigmask')

    8 | #define NULL ((void *)0)
      |              ^

fs/aio.c:2196:38: note: in expansion of macro 'NULL'
2196 | struct __compat_aio_sigset ksig = { NULL, };
| ^~~~
fs/aio.c: In function '__do_compat_sys_io_pgetevents_time64':
include/linux/stddef.h:8:14: warning: initialization of 'unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]

    8 | #define NULL ((void *)0)
      |              ^

fs/aio.c:2231:38: note: in expansion of macro 'NULL'
2231 | struct __compat_aio_sigset ksig = { NULL, };
| ^~~~
include/linux/stddef.h:8:14: note: (near initialization for 'ksig.sigmask')

    8 | #define NULL ((void *)0)
      |              ^

fs/aio.c:2231:38: note: in expansion of macro 'NULL'
2231 | struct __compat_aio_sigset ksig = { NULL, };
| ^~~~

Introduced by commit

de80166a573d ("aio: Fix io_pgetevents() struct __compat_aio_sigset layout")

Signature · 2 lines
Cheers,
Stephen Rothwell

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#1 lore raw

Hi all,

This should have been reported against the vfs-fixes tree, sorry.

Quoted 42 lines · On Tue, 22 Oct 2019 08:07:34 +1100 Stephen Rothwell <[email protected]>…

Hi all,

After merging the drm-misc-fixes tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning:

In file included from include/uapi/linux/posix_types.h:5,

                 from include/uapi/linux/types.h:14,
                 from include/linux/types.h:6,
                 from include/linux/limits.h:6,
                 from include/linux/kernel.h:7,
                 from fs/aio.c:14:
fs/aio.c: In function '__do_compat_sys_io_pgetevents':
include/linux/stddef.h:8:14: warning: initialization of 'unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
    8 | #define NULL ((void *)0)
      |              ^

fs/aio.c:2196:38: note: in expansion of macro 'NULL'
2196 | struct __compat_aio_sigset ksig = { NULL, };
| ^~~~
include/linux/stddef.h:8:14: note: (near initialization for 'ksig.sigmask')

    8 | #define NULL ((void *)0)
      |              ^

fs/aio.c:2196:38: note: in expansion of macro 'NULL'
2196 | struct __compat_aio_sigset ksig = { NULL, };
| ^~~~
fs/aio.c: In function '__do_compat_sys_io_pgetevents_time64':
include/linux/stddef.h:8:14: warning: initialization of 'unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]

    8 | #define NULL ((void *)0)
      |              ^

fs/aio.c:2231:38: note: in expansion of macro 'NULL'
2231 | struct __compat_aio_sigset ksig = { NULL, };
| ^~~~
include/linux/stddef.h:8:14: note: (near initialization for 'ksig.sigmask')

    8 | #define NULL ((void *)0)
      |              ^

fs/aio.c:2231:38: note: in expansion of macro 'NULL'
2231 | struct __compat_aio_sigset ksig = { NULL, };
| ^~~~

Introduced by commit

de80166a573d ("aio: Fix io_pgetevents() struct __compat_aio_sigset layout")

Signature · 2 lines
Cheers,
Stephen Rothwell

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw

linux-next: build warning after merge of the vfs-fixes tree

In reply to Stephen Rothwell

Hi all,

[Some people didn't get this due to a typo]

This should have been reported against the vfs-fixes tree, sorry.

Quoted 40 lines · On Tue, 22 Oct 2019 08:07:34 +1100 Stephen Rothwell <[email protected]>…

After merging the drm-misc-fixes tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning:

In file included from include/uapi/linux/posix_types.h:5,

                 from include/uapi/linux/types.h:14,
                 from include/linux/types.h:6,
                 from include/linux/limits.h:6,
                 from include/linux/kernel.h:7,
                 from fs/aio.c:14:
fs/aio.c: In function '__do_compat_sys_io_pgetevents':
include/linux/stddef.h:8:14: warning: initialization of 'unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
    8 | #define NULL ((void *)0)
      |              ^

fs/aio.c:2196:38: note: in expansion of macro 'NULL'
2196 | struct __compat_aio_sigset ksig = { NULL, };
| ^~~~
include/linux/stddef.h:8:14: note: (near initialization for 'ksig.sigmask')

    8 | #define NULL ((void *)0)
      |              ^

fs/aio.c:2196:38: note: in expansion of macro 'NULL'
2196 | struct __compat_aio_sigset ksig = { NULL, };
| ^~~~
fs/aio.c: In function '__do_compat_sys_io_pgetevents_time64':
include/linux/stddef.h:8:14: warning: initialization of 'unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]

    8 | #define NULL ((void *)0)
      |              ^

fs/aio.c:2231:38: note: in expansion of macro 'NULL'
2231 | struct __compat_aio_sigset ksig = { NULL, };
| ^~~~
include/linux/stddef.h:8:14: note: (near initialization for 'ksig.sigmask')

    8 | #define NULL ((void *)0)
      |              ^

fs/aio.c:2231:38: note: in expansion of macro 'NULL'
2231 | struct __compat_aio_sigset ksig = { NULL, };
| ^~~~

Introduced by commit

de80166a573d ("aio: Fix io_pgetevents() struct __compat_aio_sigset layout")

Signature · 2 lines
Cheers,
Stephen Rothwell

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#3 lore raw

Re: linux-next: build warning after merge of the vfs-fixes tree

Hi!

Quoted 9 lines · Stephen Rothwell

Fixes tag

Fixes 7a074e96 ("aio: implement io_pgetevents")

has these problem(s):

- SHA1 should be at least 12 digits long
Can be fixed by setting core.abbrev to 12 (or more) or (for git v2.11 or later) just making sure it is not set (or set to "auto").

Quoted 13 lines · Stephen Rothwell
Quoted 11 lines · On Tue, 22 Oct 2019 08:07:34 +1100 Stephen Rothwell <[email protected]>…

fs/aio.c:2196:38: note: in expansion of macro 'NULL'
2196 | struct __compat_aio_sigset ksig = { NULL, };
| ^~~~

fs/aio.c:2196:38: note: in expansion of macro 'NULL'
2196 | struct __compat_aio_sigset ksig = { NULL, };
| ^~~~

fs/aio.c:2231:38: note: in expansion of macro 'NULL'
2231 | struct __compat_aio_sigset ksig = { NULL, };
| ^~~~

Quoted 7 lines
Quoted 7 lines

fs/aio.c:2231:38: note: in expansion of macro 'NULL'
2231 | struct __compat_aio_sigset ksig = { NULL, };
| ^~~~

Introduced by commit

de80166a573d ("aio: Fix io_pgetevents() struct __compat_aio_sigset layout")

Ugh, sorry about that, I guess I didn't see the warnings in the scroll back when I built this back then for testing. :/ Sending a new version fixing both issues.

Thanks,
Guillem