[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090701132219.GC13524@elte.hu>
Date: Wed, 1 Jul 2009 15:22:19 +0200
From: Ingo Molnar <mingo@...e.hu>
To: Jaswinder Singh Rajput <jaswinder@...nel.org>
Cc: Joerg Roedel <joerg.roedel@....com>,
x86 maintainers <x86@...nel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH -tip RESEND] x86: amd_iommu.c device_nb should be static
* Jaswinder Singh Rajput <jaswinder@...nel.org> wrote:
>
> device_nb is used only by same file, it should be static.
>
> Also fixed NULL pointer issue.
>
> Fixed following sparse warnings :
> arch/x86/kernel/amd_iommu.c:1195:23: warning: symbol 'device_nb' was not declared. Should it be static?
> arch/x86/kernel/amd_iommu.c:1766:10: warning: Using plain integer as NULL pointer
Mind resending this with a proper changelog, along the template of:
| This Sparse warning:
|
| arch/x86/kernel/amd_iommu.c...
|
| triggers because <reason>. <do action> to fix that - this also
| addresses the Sparse warning.
Where, in this current case:
<reason> := device_nb is global but is only used in a single .c file
<do action> := change device_nb to static
Please fill in the reason and action for the NULL fix as well.
Please write all similar warning fix commit log messages in a
similar way in the future if you want me to apply them.
Thanks,
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists