mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-28 16:56:26 +00:00
binfmt_flat: remove the persistent argument from flat_get_addr_from_rp
The argument is never used. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
This commit is contained in:
parent
7a8998c9d8
commit
6843d8aa5b
@ -5,7 +5,7 @@
|
||||
#include <asm/unaligned.h>
|
||||
|
||||
static inline int flat_get_addr_from_rp(u32 __user *rp, u32 relval, u32 flags,
|
||||
u32 *addr, u32 *persistent)
|
||||
u32 *addr)
|
||||
{
|
||||
*addr = get_unaligned((__force u32 *)rp);
|
||||
return 0;
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
#define flat_get_relocate_addr(rel) (rel & ~0x00000001)
|
||||
static inline int flat_get_addr_from_rp(u32 __user *rp, u32 relval, u32 flags,
|
||||
u32 *addr, u32 *persistent)
|
||||
u32 *addr)
|
||||
{
|
||||
u32 val = get_unaligned((__force u32 *)rp);
|
||||
if (!(flags & FLAT_FLAG_GOTPIC))
|
||||
|
@ -28,7 +28,7 @@
|
||||
*/
|
||||
|
||||
static inline int flat_get_addr_from_rp(u32 __user *rp, u32 relval, u32 flags,
|
||||
u32 *addr, u32 *persistent)
|
||||
u32 *addr)
|
||||
{
|
||||
u32 *p = (__force u32 *)rp;
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include <asm/unaligned.h>
|
||||
|
||||
static inline int flat_get_addr_from_rp(u32 __user *rp, u32 relval, u32 flags,
|
||||
u32 *addr, u32 *persistent)
|
||||
u32 *addr)
|
||||
{
|
||||
*addr = get_unaligned((__force u32 *)rp);
|
||||
return 0;
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include <asm/unaligned.h>
|
||||
|
||||
static inline int flat_get_addr_from_rp(u32 __user *rp, u32 relval, u32 flags,
|
||||
u32 *addr, u32 *persistent)
|
||||
u32 *addr)
|
||||
{
|
||||
*addr = get_unaligned((__force u32 *)rp);
|
||||
return 0;
|
||||
|
@ -795,7 +795,6 @@ static int load_flat_file(struct linux_binprm *bprm,
|
||||
* __start to address 4 so that is okay).
|
||||
*/
|
||||
if (rev > OLD_FLAT_VERSION) {
|
||||
u32 __maybe_unused persistent = 0;
|
||||
for (i = 0; i < relocs; i++) {
|
||||
u32 addr, relval;
|
||||
__be32 tmp;
|
||||
@ -816,8 +815,7 @@ static int load_flat_file(struct linux_binprm *bprm,
|
||||
}
|
||||
|
||||
/* Get the pointer's value. */
|
||||
ret = flat_get_addr_from_rp(rp, relval, flags,
|
||||
&addr, &persistent);
|
||||
ret = flat_get_addr_from_rp(rp, relval, flags, &addr);
|
||||
if (unlikely(ret))
|
||||
goto err;
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include <linux/uaccess.h>
|
||||
|
||||
static inline int flat_get_addr_from_rp(u32 __user *rp, u32 relval, u32 flags,
|
||||
u32 *addr, u32 *persistent)
|
||||
u32 *addr)
|
||||
{
|
||||
#ifndef CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS
|
||||
return copy_from_user(addr, rp, 4) ? -EFAULT : 0;
|
||||
|
Loading…
Reference in New Issue
Block a user