diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2012-05-02 20:12:22 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-08 19:01:33 -0400 |
commit | a11cfdf4589f2f9f70d398d123c459d33dfc6bb2 (patch) | |
tree | 2782a3a5f01b56cf06b3eb17bba847bbcd4ed4a0 /drivers/vme | |
parent | 8a508ff407ea2ac0ca731962e011fad1534b52e4 (diff) |
vme: vme_ca91cx42.c: local functions should not be exposed globally
Functions not referenced outside of a source file should be marked
static to prevent them from being exposed globally.
Quiets the sparse warnings:
warning: symbol 'ca91cx42_alloc_consistent' was not declared. Should it be static?
warning: symbol 'ca91cx42_free_consistent' was not declared. Should it be static?
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Martyn Welch <martyn.welch@ge.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/vme')
-rw-r--r-- | drivers/vme/bridges/vme_ca91cx42.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/vme/bridges/vme_ca91cx42.c b/drivers/vme/bridges/vme_ca91cx42.c index a3c0f84e2fa1..e0df92ec44bd 100644 --- a/drivers/vme/bridges/vme_ca91cx42.c +++ b/drivers/vme/bridges/vme_ca91cx42.c | |||
@@ -1501,7 +1501,7 @@ static int ca91cx42_slot_get(struct vme_bridge *ca91cx42_bridge) | |||
1501 | 1501 | ||
1502 | } | 1502 | } |
1503 | 1503 | ||
1504 | void *ca91cx42_alloc_consistent(struct device *parent, size_t size, | 1504 | static void *ca91cx42_alloc_consistent(struct device *parent, size_t size, |
1505 | dma_addr_t *dma) | 1505 | dma_addr_t *dma) |
1506 | { | 1506 | { |
1507 | struct pci_dev *pdev; | 1507 | struct pci_dev *pdev; |
@@ -1512,8 +1512,8 @@ void *ca91cx42_alloc_consistent(struct device *parent, size_t size, | |||
1512 | return pci_alloc_consistent(pdev, size, dma); | 1512 | return pci_alloc_consistent(pdev, size, dma); |
1513 | } | 1513 | } |
1514 | 1514 | ||
1515 | void ca91cx42_free_consistent(struct device *parent, size_t size, void *vaddr, | 1515 | static void ca91cx42_free_consistent(struct device *parent, size_t size, |
1516 | dma_addr_t dma) | 1516 | void *vaddr, dma_addr_t dma) |
1517 | { | 1517 | { |
1518 | struct pci_dev *pdev; | 1518 | struct pci_dev *pdev; |
1519 | 1519 | ||