* Disregard my patch: x86, vsyscall: Fix sparse warning: Using plain integer as NULL
@ 2012-04-01 14:18 Emil Goode
2012-04-01 16:49 ` Andy Lutomirski
0 siblings, 1 reply; 2+ messages in thread
From: Emil Goode @ 2012-04-01 14:18 UTC (permalink / raw)
To: kernel-janitors
Please disregard my previous patch.
I missed the comment saying "0 is a valid user pointer".
Best regards,
Emil Goode
On Sun, 2012-04-01 at 01:59 +0200, Emil Goode wrote:
> This patch silences the following sparse warning:
> arch/x86/kernel/vsyscall_64.c:250:34:
> warning: Using plain integer as NULL pointer
>
> Signed-off-by: Emil Goode <emilgoode@gmail.com>
> ---
> arch/x86/kernel/vsyscall_64.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/x86/kernel/vsyscall_64.c b/arch/x86/kernel/vsyscall_64.c
> index f386dc4..6170ff9 100644
> --- a/arch/x86/kernel/vsyscall_64.c
> +++ b/arch/x86/kernel/vsyscall_64.c
> @@ -247,7 +247,7 @@ bool emulate_vsyscall(struct pt_regs *regs, unsigned long address)
>
> ret = sys_getcpu((unsigned __user *)regs->di,
> (unsigned __user *)regs->si,
> - 0);
> + NULL);
> break;
> }
>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Disregard my patch: x86, vsyscall: Fix sparse warning: Using plain integer as NULL
2012-04-01 14:18 Disregard my patch: x86, vsyscall: Fix sparse warning: Using plain integer as NULL Emil Goode
@ 2012-04-01 16:49 ` Andy Lutomirski
0 siblings, 0 replies; 2+ messages in thread
From: Andy Lutomirski @ 2012-04-01 16:49 UTC (permalink / raw)
To: kernel-janitors
On Sun, Apr 1, 2012 at 7:18 AM, Emil Goode <emilgoode@gmail.com> wrote:
> Please disregard my previous patch.
> I missed the comment saying "0 is a valid user pointer".
The comment could be changed to "NULL", though.
--Andy
>
> Best regards,
> Emil Goode
>
> On Sun, 2012-04-01 at 01:59 +0200, Emil Goode wrote:
>> This patch silences the following sparse warning:
>> arch/x86/kernel/vsyscall_64.c:250:34:
>> warning: Using plain integer as NULL pointer
>>
>> Signed-off-by: Emil Goode <emilgoode@gmail.com>
>> ---
>> arch/x86/kernel/vsyscall_64.c | 2 +-
>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/arch/x86/kernel/vsyscall_64.c b/arch/x86/kernel/vsyscall_64.c
>> index f386dc4..6170ff9 100644
>> --- a/arch/x86/kernel/vsyscall_64.c
>> +++ b/arch/x86/kernel/vsyscall_64.c
>> @@ -247,7 +247,7 @@ bool emulate_vsyscall(struct pt_regs *regs, unsigned long address)
>>
>> ret = sys_getcpu((unsigned __user *)regs->di,
>> (unsigned __user *)regs->si,
>> - 0);
>> + NULL);
>> break;
>> }
>>
>
>
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-04-01 16:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-01 14:18 Disregard my patch: x86, vsyscall: Fix sparse warning: Using plain integer as NULL Emil Goode
2012-04-01 16:49 ` Andy Lutomirski
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.