mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-22 07:13:23 +07:00
MIPS: Delete unused code in linux32.c
The A() & AA() macros have been unused since commit 05e4396651
("[MIPS] Use SYSVIPC_COMPAT to fix various problems on N32"), which
switched to the more standard compat_ptr().
RLIM_INFINITY32, RESOURCE32() & struct rlimit32 have been present but
unused since the beginning of the git era.
Remove the dead code.
Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/20108/
Cc: James Hogan <jhogan@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
This commit is contained in:
parent
3a1c0fc592
commit
48ae93fdd1
@ -43,17 +43,6 @@
|
|||||||
#include <asm/mmu_context.h>
|
#include <asm/mmu_context.h>
|
||||||
#include <asm/mman.h>
|
#include <asm/mman.h>
|
||||||
|
|
||||||
/* Use this to get at 32-bit user passed pointers. */
|
|
||||||
/* A() macro should be used for places where you e.g.
|
|
||||||
have some internal variable u32 and just want to get
|
|
||||||
rid of a compiler warning. AA() has to be used in
|
|
||||||
places where you want to convert a function argument
|
|
||||||
to 32bit pointer or when you e.g. access pt_regs
|
|
||||||
structure and want to consider 32bit registers only.
|
|
||||||
*/
|
|
||||||
#define A(__x) ((unsigned long)(__x))
|
|
||||||
#define AA(__x) ((unsigned long)((int)__x))
|
|
||||||
|
|
||||||
#ifdef __MIPSEB__
|
#ifdef __MIPSEB__
|
||||||
#define merge_64(r1, r2) ((((r1) & 0xffffffffUL) << 32) + ((r2) & 0xffffffffUL))
|
#define merge_64(r1, r2) ((((r1) & 0xffffffffUL) << 32) + ((r2) & 0xffffffffUL))
|
||||||
#endif
|
#endif
|
||||||
@ -61,14 +50,6 @@
|
|||||||
#define merge_64(r1, r2) ((((r2) & 0xffffffffUL) << 32) + ((r1) & 0xffffffffUL))
|
#define merge_64(r1, r2) ((((r2) & 0xffffffffUL) << 32) + ((r1) & 0xffffffffUL))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define RLIM_INFINITY32 0x7fffffff
|
|
||||||
#define RESOURCE32(x) ((x > RLIM_INFINITY32) ? RLIM_INFINITY32 : x)
|
|
||||||
|
|
||||||
struct rlimit32 {
|
|
||||||
int rlim_cur;
|
|
||||||
int rlim_max;
|
|
||||||
};
|
|
||||||
|
|
||||||
SYSCALL_DEFINE4(32_truncate64, const char __user *, path,
|
SYSCALL_DEFINE4(32_truncate64, const char __user *, path,
|
||||||
unsigned long, __dummy, unsigned long, a2, unsigned long, a3)
|
unsigned long, __dummy, unsigned long, a2, unsigned long, a3)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user