x86: Mark device_nb as static and fix NULL noise
authorJaswinder Singh Rajput <jaswinder@kernel.org>
Wed, 1 Jul 2009 14:23:14 +0000 (19:53 +0530)
committerIngo Molnar <mingo@elte.hu>
Wed, 1 Jul 2009 14:52:53 +0000 (16:52 +0200)
commitb25ae679f613ed04aaf6ccbfdb9122fce668e4bb
tree32067e00660404ac1ef3c0c081905e79358fffdb
parent44973998a111dfda09b952aa0f27cad326a97793
x86: Mark device_nb as static and fix NULL noise

This sparse warning:

  arch/x86/kernel/amd_iommu.c:1195:23: warning: symbol 'device_nb' was not declared. Should it be static?

triggers because device_nb is global but is only used in a
single .c file. change device_nb to static to fix that - this
also addresses the sparse warning.

This sparse warning:

  arch/x86/kernel/amd_iommu.c:1766:10: warning: Using plain integer as NULL pointer

triggers because plain integer 0 is used in place of a NULL
pointer. change 0 to NULL to fix that - this also address the
sparse warning.

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Cc: Joerg Roedel <joerg.roedel@amd.com>
LKML-Reference: <1246458194.6940.20.camel@hpdv5.satnam>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/amd_iommu.c