Skip to content

Commit

Permalink
x86 gart: make some variables and functions static
Browse files Browse the repository at this point in the history
This patch makes some functions and variables static in pci-gart_64.c which are
not used somewhere else.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Acked-by: Muli Ben-Yehuda <muli@il.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Joerg Roedel authored and Thomas Gleixner committed Oct 29, 2007
1 parent 966396d commit 79da087
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arch/x86/kernel/pci-gart_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
#include <asm/dma.h>
#include <asm/k8.h>

unsigned long iommu_bus_base; /* GART remapping area (physical) */
static unsigned long iommu_bus_base; /* GART remapping area (physical) */
static unsigned long iommu_size; /* size of remapping area bytes */
static unsigned long iommu_pages; /* .. and in pages */

u32 *iommu_gatt_base; /* Remapping table */
static u32 *iommu_gatt_base; /* Remapping table */

/* If this is disabled the IOMMU will use an optimized flushing strategy
of only flushing when an mapping is reused. With it true the GART is flushed
Expand Down Expand Up @@ -135,8 +135,8 @@ static void flush_gart(void)
/* Debugging aid for drivers that don't free their IOMMU tables */
static void **iommu_leak_tab;
static int leak_trace;
int iommu_leak_pages = 20;
void dump_leak(void)
static int iommu_leak_pages = 20;
static void dump_leak(void)
{
int i;
static int dump;
Expand Down

0 comments on commit 79da087

Please sign in to comment.