m32r: build fixes
cover m32r: build fixes
Hi Linus,
Not sure if I should send this directly to you or not, but it seems like m32r has not received much love recently. The following patches fix the defconfig build of m32r for me (which I needed to do to test the __do_IRQ removal.)
regards, Kyle
PATCH 1/4 m32r: restore _BLOCKABLE
Commit a7f8388e accidentally removed it...
--- arch/m32r/kernel/signal.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
arch/m32r/kernel/signal.c +2 -0
@@ -28,6 +28,8 @@#define DEBUG_SIG 0 +#define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP))) + asmlinkage int sys_sigaltstack(const stack_t __user *uss, stack_t __user *uoss, unsigned long r2, unsigned long r3, unsigned long r4,
Signature · 1 line
1.7.3.1
Re: [PATCH 1/4] m32r: restore _BLOCKABLE
Quoted 12 lines · Kyle McMartin
Commit
a7f8388eaccidentally removed it...Signed-off-by Kyle McMartin <[email protected]>--- arch/m32r/kernel/signal.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)arch/m32r/kernel/signal.c +0
-0
arch/m32r/kernel/signal.c line 32
Quoted 5 lines
arch/m32r/kernel/signal.c +2
-0@@ -28,6 +28,8 @@#define DEBUG_SIG 0 +#define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP))) +
Grrr... Sorry, reordering breakage. In the signals tree here I have
static inline void sig_set_blocked(struct sigset_t *set)
{
sigdelsetmask(set, sigmask(SIGKILL) | sigmask(SIGSTOP));
spin_lock_irq(¤t->sighand->siglock);
current->blocked = *set;
recalc_sigpending();
spin_unlock_irq(¤t->sighand->siglock);
}and it's used all over the place (including quite a few places where we currently have sigprocmask(SIG_SETMASK, set, NULL), which is what it's equivalent to). With that done, m32r doesn't use _BLOCKABLE anywhere, so it got removed. And that chunk got picked when I'd been reordering the queue to pull the arch-specific fixes in front. Sorry.
PATCH 2/4 m32r: get_user takes an lvalue, not a pointer
In reply to Kyle McMartin--- arch/m32r/kernel/signal.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/m32r/kernel/signal.c +1 -1
@@ -256,7 +256,7 @@ give_sigsegv:static int prev_insn (struct pt_regs *regs) {u16 inst; -if (get_user (&inst, (u16 __user *)(regs->bpc -2 ))) +if (get_user (inst, (u16 __user *)(regs->bpc -2 )))return -EFAULT ;if ((inst &0xfff0 ) ==0x10f0 )/* trap ? */ regs->bpc -=2 ;
Signature · 1 line
1.7.3.1
Re: [PATCH 2/4] m32r: get_user takes an lvalue, not a pointer
arch/m32r/kernel/signal.c give_sigsegv: · line 259
Quoted 5 lines · Kyle McMartin
static int
prev_insn(struct pt_regs *regs)
{arch/m32r/kernel/signal.c +1
-1u16 inst; -if (get_user (&inst, (u16 __user *)(regs->bpc -2 ))) +if (get_user (inst, (u16 __user *)(regs->bpc -2 )))
Ouch... ACKed, my fuckup.
PATCH 3/4 m32r: add kernel/.gitignore and ignore vmlinux.lds
In reply to Kyle McMartin--- arch/m32r/kernel/.gitignore | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 arch/m32r/kernel/.gitignore
arch/m32r/kernel/.gitignore new file +1 -0
@@ -0,0 +1 @@ +vmlinux.lds
Signature · 1 line
1.7.3.1
PATCH 4/4 m32r: test __LITTLE_ENDIAN__ instead of __LITTLE_ENDIAN
In reply to Kyle McMartinFixes build for me... these are what's tested in byteorder.h...
--- arch/m32r/include/asm/elf.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
arch/m32r/include/asm/elf.h +2 -2
@@ -82,9 +82,9 @@ typedef elf_fpreg_t elf_fpregset_t;* These are used to set parameters in the core dumps. */ #define ELF_CLASS ELFCLASS32 -#if defined(__LITTLE_ENDIAN) +#if defined(__LITTLE_ENDIAN__)#define ELF_DATA ELFDATA2LSB -#elif defined(__BIG_ENDIAN) +#elif defined(__BIG_ENDIAN__)#define ELF_DATA ELFDATA2MSB#else #error no endian defined
Signature · 1 line
1.7.3.1