Skip to content

Commit c2068da

Browse files
author
Paul Gortmaker
committed
sparc: fix implicit use of spitfire.h in pcr.c and of_device_64.c
To resolve these on 64bit allnoconfig builds: CC arch/sparc/kernel/pcr.o arch/sparc/kernel/pcr.c: In function 'register_perf_hsvc': arch/sparc/kernel/pcr.c:102: error: 'tlb_type' undeclared (first use in this function) CC arch/sparc/kernel/of_device_64.o arch/sparc/kernel/of_device_64.c: In function 'build_device_resources': arch/sparc/kernel/of_device_64.c:406: error: 'tlb_type' undeclared (first use in this function) Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
1 parent 6a7a5dc commit c2068da

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

arch/sparc/kernel/of_device_64.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <linux/irq.h>
1010
#include <linux/of_device.h>
1111
#include <linux/of_platform.h>
12+
#include <asm/spitfire.h>
1213

1314
#include "of_device_common.h"
1415

arch/sparc/kernel/pcr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <asm/pil.h>
1414
#include <asm/pcr.h>
1515
#include <asm/nmi.h>
16+
#include <asm/spitfire.h>
1617

1718
/* This code is shared between various users of the performance
1819
* counters. Users will be oprofile, pseudo-NMI watchdog, and the

0 commit comments

Comments
 (0)