mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-20 15:43:16 +00:00
hptmv(4): Fix broken sysctl(9) API assumptions
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
971c23c9a0
commit
ab22155114
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=290519
@ -51,9 +51,6 @@ int hpt_rescan_all(void);
|
||||
static char hptproc_buffer[256];
|
||||
extern char DRIVER_VERSION[];
|
||||
|
||||
#define FORMAL_HANDLER_ARGS struct sysctl_oid *oidp, void *arg1, \
|
||||
intptr_t arg2, struct sysctl_req *req
|
||||
#define REAL_HANDLER_ARGS oidp, arg1, arg2, req
|
||||
typedef struct sysctl_req HPT_GET_INFO;
|
||||
|
||||
static int
|
||||
@ -572,7 +569,7 @@ hpt_get_info(IAL_ADAPTER_T *pAdapter, HPT_GET_INFO *pinfo)
|
||||
}
|
||||
|
||||
static __inline int
|
||||
hpt_proc_in(FORMAL_HANDLER_ARGS, int *len)
|
||||
hpt_proc_in(SYSCTL_HANDLER_ARGS, int *len)
|
||||
{
|
||||
int i, error=0;
|
||||
|
||||
@ -590,12 +587,12 @@ hpt_proc_in(FORMAL_HANDLER_ARGS, int *len)
|
||||
}
|
||||
|
||||
static int
|
||||
hpt_status(FORMAL_HANDLER_ARGS)
|
||||
hpt_status(SYSCTL_HANDLER_ARGS)
|
||||
{
|
||||
int length, error=0, retval=0;
|
||||
IAL_ADAPTER_T *pAdapter;
|
||||
|
||||
error = hpt_proc_in(REAL_HANDLER_ARGS, &length);
|
||||
error = hpt_proc_in(oidp, arg1, arg2, req, &length);
|
||||
|
||||
if (req->newptr != NULL)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user