]> git.baikalelectronics.ru Git - kernel.git/commit
x86: pci-swiotlb.c swiotlb_dma_ops should be static
authorJaswinder Singh Rajput <jaswinder@kernel.org>
Sun, 12 Apr 2009 17:54:21 +0000 (23:24 +0530)
committerIngo Molnar <mingo@elte.hu>
Tue, 14 Apr 2009 00:51:04 +0000 (02:51 +0200)
commit9c44b42a830a229b13813fbc57690dc5e24b89f9
treed914426dce0e14552332b518b5eccf1a14880d31
parent62fdb787ec76dd32b26f00e7a6046f7d8e2247fe
x86: pci-swiotlb.c swiotlb_dma_ops should be static

Impact: reduce kernel size a bit, address sparse warning

Addresses the problem pointed out by this sparse warning:

  arch/x86/kernel/pci-swiotlb.c:53:20: warning: symbol 'swiotlb_dma_ops' was not declared. Should it be static?

For x86: swiotlb_dma_ops can be static, because it's not used outside
of pci-swiotlb.c

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Acked-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
LKML-Reference: <1239558861.3938.2.camel@localhost.localdomain>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/pci-swiotlb.c