Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed65260b authored by Adrian Bunk's avatar Adrian Bunk Committed by Ingo Molnar
Browse files

x86: pci-calgary_64.c: make a variable static



"debugging" is a horrible name for a global variable - thankfully it can
become static.

Also put it out of __read_mostly so that gcc no longer has to emit it
at all.

Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 867ab545
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -183,7 +183,7 @@ static struct calgary_bus_info bus_info[MAX_PHB_BUS_NUM] = { { NULL, 0, 0 }, };


/* enable this to stress test the chip's TCE cache */
/* enable this to stress test the chip's TCE cache */
#ifdef CONFIG_IOMMU_DEBUG
#ifdef CONFIG_IOMMU_DEBUG
int debugging __read_mostly = 1;
static int debugging = 1;


static inline unsigned long verify_bit_range(unsigned long* bitmap,
static inline unsigned long verify_bit_range(unsigned long* bitmap,
	int expected, unsigned long start, unsigned long end)
	int expected, unsigned long start, unsigned long end)
@@ -202,7 +202,7 @@ static inline unsigned long verify_bit_range(unsigned long* bitmap,
	return ~0UL;
	return ~0UL;
}
}
#else /* debugging is disabled */
#else /* debugging is disabled */
int debugging __read_mostly = 0;
static int debugging;


static inline unsigned long verify_bit_range(unsigned long* bitmap,
static inline unsigned long verify_bit_range(unsigned long* bitmap,
	int expected, unsigned long start, unsigned long end)
	int expected, unsigned long start, unsigned long end)