mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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: fc831825f9 ("qed: Add support for hardware offloaded iSCSI.")
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
1 parent
c2ed1880fd
commit
7729bad4fd
1 file changed
+1
-1
@@ -1265,7 +1265,7 @@ static const struct qed_iscsi_ops qed_iscsi_ops_pass = {
|
||||
.get_stats = &qed_iscsi_stats,
|
||||
};
|
||||
|
||||
const struct qed_iscsi_ops *qed_get_iscsi_ops()
|
||||
const struct qed_iscsi_ops *qed_get_iscsi_ops(void)
|
||||
{
|
||||
return &qed_iscsi_ops_pass;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user