diff options
author | Michal Simek <michal.simek@xilinx.com> | 2014-12-18 15:38:07 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2015-01-08 08:37:21 +0100 |
commit | ed4602e13f8d7b764308d6db58ff9932353f16a3 (patch) | |
tree | 04a43c20adf7f1f957eaa22a3c85a8f43b7a4f3e /arch/microblaze/kernel | |
parent | microblaze: Use unsigned type for limit comparison in cache.c (diff) | |
download | linux-ed4602e13f8d7b764308d6db58ff9932353f16a3.tar.xz linux-ed4602e13f8d7b764308d6db58ff9932353f16a3.zip |
microblaze: Fix variable types to remove W=1 warning
This patch removes this warning:
arch/microblaze/kernel/signal.c: In function 'setup_rt_frame':
arch/microblaze/kernel/signal.c:177:3: warning: signed and unsigned type
in conditional expression [-Wsign-compare]
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/microblaze/kernel')
-rw-r--r-- | arch/microblaze/kernel/signal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/microblaze/kernel/signal.c b/arch/microblaze/kernel/signal.c index 8955a3829cf0..235706055b7f 100644 --- a/arch/microblaze/kernel/signal.c +++ b/arch/microblaze/kernel/signal.c @@ -158,7 +158,7 @@ static int setup_rt_frame(struct ksignal *ksig, sigset_t *set, { struct rt_sigframe __user *frame; int err = 0, sig = ksig->sig; - int signal; + unsigned long signal; unsigned long address = 0; #ifdef CONFIG_MMU pmd_t *pmdp; @@ -174,7 +174,7 @@ static int setup_rt_frame(struct ksignal *ksig, sigset_t *set, && current_thread_info()->exec_domain->signal_invmap && sig < 32 ? current_thread_info()->exec_domain->signal_invmap[sig] - : sig; + : (unsigned long)sig; if (ksig->ka.sa.sa_flags & SA_SIGINFO) err |= copy_siginfo_to_user(&frame->info, &ksig->info); |