git: 676333296937 - main - mrsas(4) switch from PTRIN define to include sys/abi_compat.h
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 28 Apr 2023 20:53:39 UTC
The branch main has been updated by ambrisko:
URL: https://cgit.FreeBSD.org/src/commit/?id=67633329693723734aef003044e13db07f1fbf5f
commit 67633329693723734aef003044e13db07f1fbf5f
Author: Doug Ambrisko <ambrisko@FreeBSD.org>
AuthorDate: 2023-04-28 20:51:20 +0000
Commit: Doug Ambrisko <ambrisko@FreeBSD.org>
CommitDate: 2023-04-28 20:51:20 +0000
mrsas(4) switch from PTRIN define to include sys/abi_compat.h
Suggested by: dchagin
---
sys/dev/mrsas/mrsas_ioctl.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/sys/dev/mrsas/mrsas_ioctl.c b/sys/dev/mrsas/mrsas_ioctl.c
index 7f1d9a91ba0f..9d3699df5b7b 100644
--- a/sys/dev/mrsas/mrsas_ioctl.c
+++ b/sys/dev/mrsas/mrsas_ioctl.c
@@ -40,6 +40,7 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include <sys/abi_compat.h>
#include <dev/mrsas/mrsas.h>
#include <dev/mrsas/mrsas_ioctl.h>
@@ -55,10 +56,6 @@ struct mrsas_passthru_cmd {
int complete;
};
-#ifndef PTRIN
-#define PTRIN(p) ((void *)(uintptr_t)(p))
-#endif
-
/*
* Function prototypes
*/