git: a29bbfe6c6e4 - main - ofed/linuxkpi: use proper accessor function
Bjoern A. Zeeb
bz at FreeBSD.org
Wed Mar 24 22:34:12 UTC 2021
The branch main has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=a29bbfe6c6e41691bdd3bd0e5be89089523485d6
commit a29bbfe6c6e41691bdd3bd0e5be89089523485d6
Author: Bjoern A. Zeeb <bz at FreeBSD.org>
AuthorDate: 2021-03-21 21:07:45 +0000
Commit: Bjoern A. Zeeb <bz at FreeBSD.org>
CommitDate: 2021-03-24 22:23:34 +0000
ofed/linuxkpi: use proper accessor function
In the notifier event callback function rather than casting directly
to the expected type use the proper accessor function as the mlx drivers
already do.
This is preparational work to allow us to improve the struct net_device
is struct ifnet compat code shortcut in the future.
Obtained-from: bz_iwlwifi
Sponsored-by: The FreeBSD Foundation
MFC-after: 2 weeks
Reviewed-by: hselasky
Differential Revision: https://reviews.freebsd.org/D29364
---
sys/ofed/drivers/infiniband/core/ib_roce_gid_mgmt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/ofed/drivers/infiniband/core/ib_roce_gid_mgmt.c b/sys/ofed/drivers/infiniband/core/ib_roce_gid_mgmt.c
index 8f6156333f4a..02acf29159e3 100644
--- a/sys/ofed/drivers/infiniband/core/ib_roce_gid_mgmt.c
+++ b/sys/ofed/drivers/infiniband/core/ib_roce_gid_mgmt.c
@@ -380,7 +380,7 @@ roce_gid_delete_all_event(struct net_device *ndev)
static int
inetaddr_event(struct notifier_block *this, unsigned long event, void *ptr)
{
- struct net_device *ndev = ptr;
+ struct net_device *ndev = netdev_notifier_info_to_dev(ptr);
switch (event) {
case NETDEV_UNREGISTER:
More information about the dev-commits-src-all
mailing list