[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160613065755.GC5993@mwanda>
Date: Mon, 13 Jun 2016 09:57:55 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: Ingo Molnar <mingo@...hat.com>, "H. Peter Anvin" <hpa@...or.com>,
x86@...nel.org, Andy Lutomirski <luto@...nel.org>,
Dave Hansen <dave.hansen@...ux.intel.com>,
Jan Beulich <JBeulich@...e.com>, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: [patch] x86/ldt: silence a static checker warning
It likely doesn't make a difference but my static checker complains
that we put an upper bound on "size" but not a lower bound. Let's just
make it unsigned.
Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
diff --git a/arch/x86/kernel/ldt.c b/arch/x86/kernel/ldt.c
index 6707039b..e25b668 100644
--- a/arch/x86/kernel/ldt.c
+++ b/arch/x86/kernel/ldt.c
@@ -34,7 +34,7 @@ static void flush_ldt(void *current_mm)
}
/* The caller must call finalize_ldt_struct on the result. LDT starts zeroed. */
-static struct ldt_struct *alloc_ldt_struct(int size)
+static struct ldt_struct *alloc_ldt_struct(unsigned int size)
{
struct ldt_struct *new_ldt;
int alloc_size;
Powered by blists - more mailing lists