Remove unused sys_mctl
Starting with commit v4.6-240-g5afdf12, nobody compiles this non-Linux code. * mem.c [MC_SYNC]: Remove. * xlat/mctl_funcs.in: Remove. * xlat/mctl_lockas.in: Remove.
This commit is contained in:
parent
6355a1f867
commit
6b82ba5b7f
42
mem.c
42
mem.c
@ -244,8 +244,6 @@ sys_mlockall(struct tcb *tcp)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef MS_ASYNC
|
||||
|
||||
#include "xlat/mctl_sync.h"
|
||||
|
||||
int
|
||||
@ -262,46 +260,6 @@ sys_msync(struct tcb *tcp)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* MS_ASYNC */
|
||||
|
||||
#ifdef MC_SYNC
|
||||
|
||||
#include "xlat/mctl_funcs.h"
|
||||
#include "xlat/mctl_lockas.h"
|
||||
|
||||
int
|
||||
sys_mctl(struct tcb *tcp)
|
||||
{
|
||||
int arg, function;
|
||||
|
||||
if (entering(tcp)) {
|
||||
/* addr */
|
||||
tprintf("%#lx", tcp->u_arg[0]);
|
||||
/* len */
|
||||
tprintf(", %lu, ", tcp->u_arg[1]);
|
||||
/* function */
|
||||
function = tcp->u_arg[2];
|
||||
printflags(mctl_funcs, function, "MC_???");
|
||||
/* arg */
|
||||
arg = tcp->u_arg[3];
|
||||
tprints(", ");
|
||||
switch (function) {
|
||||
case MC_SYNC:
|
||||
printflags(mctl_sync, arg, "MS_???");
|
||||
break;
|
||||
case MC_LOCKAS:
|
||||
printflags(mctl_lockas, arg, "MCL_???");
|
||||
break;
|
||||
default:
|
||||
tprintf("%#x", arg);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* MC_SYNC */
|
||||
|
||||
int
|
||||
sys_mincore(struct tcb *tcp)
|
||||
{
|
||||
|
@ -1,5 +0,0 @@
|
||||
MC_LOCK
|
||||
MC_LOCKAS
|
||||
MC_SYNC
|
||||
MC_UNLOCK
|
||||
MC_UNLOCKAS
|
@ -1,2 +0,0 @@
|
||||
MCL_CURRENT
|
||||
MCL_FUTURE
|
Loading…
x
Reference in New Issue
Block a user