Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

qed: fix old-style function definition

The newly added file causes a harmless warning, with "make W=1":

drivers/net/ethernet/qlogic/qed/qed_iscsi.c: In function 'qed_get_iscsi_ops':
drivers/net/ethernet/qlogic/qed/qed_iscsi.c:1268:29: warning: old-style function definition [-Wold-style-definition]

This makes it a proper prototype.

Fixes: fc831825f99e ("qed: Add support for hardware offloaded iSCSI.")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Arnd Bergmann and committed by
David S. Miller
7729bad4 c2ed1880

+1 -1
+1 -1
drivers/net/ethernet/qlogic/qed/qed_iscsi.c
··· 1265 1265 .get_stats = &qed_iscsi_stats, 1266 1266 }; 1267 1267 1268 - const struct qed_iscsi_ops *qed_get_iscsi_ops() 1268 + const struct qed_iscsi_ops *qed_get_iscsi_ops(void) 1269 1269 { 1270 1270 return &qed_iscsi_ops_pass; 1271 1271 }