]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: libcxgbi: remove unused function to stop warning
authorAustin Kim <austindh.kim@gmail.com>
Tue, 24 Sep 2019 09:37:16 +0000 (18:37 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 1 Oct 2019 03:27:04 +0000 (23:27 -0400)
commit0cacd9df9a5edb6190dece43116f267dd22a8663
tree23886197d93653acaeb8f1e31bbd7a7cd0ef0d00
parent0b6a0d7ef8734c1b08e8605879ba6f2b5aa0cda4
scsi: libcxgbi: remove unused function to stop warning

Since 'commit 459f31f014f8 ("libcxgbi: Add ipv6 api to driver")' was
introduced, there is no call to csk_print_port() and csk_print_ip() is
made.

Hence kernel build with clang complains below message:
   drivers/scsi/cxgbi/libcxgbi.c:2287:19: warning: unused function 'csk_print_port' [-Wunused-function]
   static inline int csk_print_port(struct cxgbi_sock *csk, char *buf)
                          ^
   drivers/scsi/cxgbi/libcxgbi.c:2298:19: warning: unused function 'csk_print_ip' [-Wunused-function]
   static inline int csk_print_ip(struct cxgbi_sock *csk, char *buf)
                        ^

Remove csk_print_port() and csk_print_ip() to stop warning.

Link: https://lore.kernel.org/r/20190924093716.GA78230@LGEARND20B15
Signed-off-by: Austin Kim <austindh.kim@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/cxgbi/libcxgbi.c