* [PATCH] x86: amd_iommu.c prealloc_protection_domains should be static
@ 2008-12-29 16:15 Jaswinder Singh Rajput
2009-01-03 15:50 ` Joerg Roedel
0 siblings, 1 reply; 2+ messages in thread
From: Jaswinder Singh Rajput @ 2008-12-29 16:15 UTC (permalink / raw)
To: Ingo Molnar, joerg.roedel, leo.duran, x86 maintainers, LKML
Impact: cleanup, reduce kernel size a bit, avoid sparse warning
Fixes sparse warning:
arch/x86/kernel/amd_iommu.c:1299:6: warning: symbol 'prealloc_protection_domains' was not declared. Should it be static?
Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
---
arch/x86/kernel/amd_iommu.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c
index 2e2da71..658e29e 100644
--- a/arch/x86/kernel/amd_iommu.c
+++ b/arch/x86/kernel/amd_iommu.c
@@ -1296,7 +1296,7 @@ static int amd_iommu_dma_supported(struct device *dev, u64 mask)
* we don't need to preallocate the protection domains anymore.
* For now we have to.
*/
-void prealloc_protection_domains(void)
+static void prealloc_protection_domains(void)
{
struct pci_dev *dev = NULL;
struct dma_ops_domain *dma_dom;
--
1.5.5.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] x86: amd_iommu.c prealloc_protection_domains should be static
2008-12-29 16:15 [PATCH] x86: amd_iommu.c prealloc_protection_domains should be static Jaswinder Singh Rajput
@ 2009-01-03 15:50 ` Joerg Roedel
0 siblings, 0 replies; 2+ messages in thread
From: Joerg Roedel @ 2009-01-03 15:50 UTC (permalink / raw)
To: Jaswinder Singh Rajput; +Cc: Ingo Molnar, leo.duran, x86 maintainers, LKML
On Mon, Dec 29, 2008 at 09:45:22PM +0530, Jaswinder Singh Rajput wrote:
> Impact: cleanup, reduce kernel size a bit, avoid sparse warning
>
> Fixes sparse warning:
> arch/x86/kernel/amd_iommu.c:1299:6: warning: symbol 'prealloc_protection_domains' was not declared. Should it be static?
Applied, thanks.
--
| AMD Saxony Limited Liability Company & Co. KG
Operating | Wilschdorfer Landstr. 101, 01109 Dresden, Germany
System | Register Court Dresden: HRA 4896
Research | General Partner authorized to represent:
Center | AMD Saxony LLC (Wilmington, Delaware, US)
| General Manager of AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-03 15:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-29 16:15 [PATCH] x86: amd_iommu.c prealloc_protection_domains should be static Jaswinder Singh Rajput
2009-01-03 15:50 ` Joerg Roedel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox