Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 4 messages Mar 2, 2020 – Mar 6, 2020 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the scsi-mkp 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/list.h:5,
from include/linux/module.h:12,
from drivers/scsi/ibmvscsi/ibmvfc.c:10:
drivers/scsi/ibmvscsi/ibmvfc.c: In function 'ibmvfc_tgt_implicit_logout_and_del':
include/linux/stddef.h:8:14: warning: 'return' with a value, in function returning void [-Wreturn-type]

    8 | #define NULL ((void *)0)
      |              ^
drivers/scsi/ibmvscsi/ibmvfc.c:3644:10: note: in expansion of macro 'NULL'
 3644 |   return NULL;
      |          ^~~~
drivers/scsi/ibmvscsi/ibmvfc.c:3638:13: note: declared here
 3638 | static void ibmvfc_tgt_implicit_logout_and_del(struct ibmvfc_target *tgt)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Introduced by commit

54b04c99d02e ("scsi: ibmvfc: Avoid loss of all paths during SVC node reboot")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 22 lines · Stephen Rothwell

Hi all,

After merging the scsi-mkp 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/list.h:5,
from include/linux/module.h:12,
from drivers/scsi/ibmvscsi/ibmvfc.c:10:
drivers/scsi/ibmvscsi/ibmvfc.c: In function 'ibmvfc_tgt_implicit_logout_and_del':
include/linux/stddef.h:8:14: warning: 'return' with a value, in function returning void [-Wreturn-type]

    8 | #define NULL ((void *)0)
      |              ^
drivers/scsi/ibmvscsi/ibmvfc.c:3644:10: note: in expansion of macro 'NULL'
 3644 |   return NULL;
      |          ^~~~
drivers/scsi/ibmvscsi/ibmvfc.c:3638:13: note: declared here
 3638 | static void ibmvfc_tgt_implicit_logout_and_del(struct ibmvfc_target *tgt)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Quoted 4 lines

Introduced by commit

54b04c99d02e ("scsi: ibmvfc: Avoid loss of all paths during SVC node reboot")

Thanks. I'll send the one line fix.

Signature · 3 lines
Brian King
Power Linux I/O
IBM Linux Technology Center
#2 lore raw

Hi all,

Quoted 24 lines · On Mon, 2 Mar 2020 08:36:20 -0600 Brian King <[email protected]> wrote:
Quoted 22 lines · Stephen Rothwell

Hi all,

After merging the scsi-mkp 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/list.h:5,
from include/linux/module.h:12,
from drivers/scsi/ibmvscsi/ibmvfc.c:10:
drivers/scsi/ibmvscsi/ibmvfc.c: In function 'ibmvfc_tgt_implicit_logout_and_del':
include/linux/stddef.h:8:14: warning: 'return' with a value, in function returning void [-Wreturn-type]

    8 | #define NULL ((void *)0)
      |              ^
drivers/scsi/ibmvscsi/ibmvfc.c:3644:10: note: in expansion of macro 'NULL'
 3644 |   return NULL;
      |          ^~~~
drivers/scsi/ibmvscsi/ibmvfc.c:3638:13: note: declared here
 3638 | static void ibmvfc_tgt_implicit_logout_and_del(struct ibmvfc_target *tgt)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Quoted 5 lines
Quoted 3 lines

Introduced by commit

54b04c99d02e ("scsi: ibmvfc: Avoid loss of all paths during SVC node reboot")

Thanks. I'll send the one line fix.

I am still getting this warning, but it is now after the merge of the scsi tree.

Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw
Quoted 27 lines · Stephen Rothwell

Hi all,

Quoted 24 lines · On Mon, 2 Mar 2020 08:36:20 -0600 Brian King <[email protected]> wrote:
Quoted 22 lines · Stephen Rothwell

Hi all,

After merging the scsi-mkp 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/list.h:5,
from include/linux/module.h:12,
from drivers/scsi/ibmvscsi/ibmvfc.c:10:
drivers/scsi/ibmvscsi/ibmvfc.c: In function 'ibmvfc_tgt_implicit_logout_and_del':
include/linux/stddef.h:8:14: warning: 'return' with a value, in function returning void [-Wreturn-type]

    8 | #define NULL ((void *)0)
      |              ^
drivers/scsi/ibmvscsi/ibmvfc.c:3644:10: note: in expansion of macro 'NULL'
 3644 |   return NULL;
      |          ^~~~
drivers/scsi/ibmvscsi/ibmvfc.c:3638:13: note: declared here
 3638 | static void ibmvfc_tgt_implicit_logout_and_del(struct ibmvfc_target *tgt)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Quoted 9 lines
Quoted 5 lines
Quoted 3 lines

Introduced by commit

54b04c99d02e ("scsi: ibmvfc: Avoid loss of all paths during SVC node reboot")

Thanks. I'll send the one line fix.

I am still getting this warning, but it is now after the merge of the scsi tree.

I sent the fix to the list, waiting for it to get pulled in:

https://marc.info/?l=linux-scsi&m=158315998321290&w=2

Signature · 3 lines
Brian King
Power Linux I/O
IBM Linux Technology Center