Skip to content

Commit fc0460d

Browse files
committed
MIPS: IP27: Remove pfn_t.
In the Linux kernel traditionally pfns are represented by an unsigned long. However a few bits of the SGI IP27 platform code that were ported from IRIX are using pfn_t for historic reasons. This is conflicting with KVM's use of pfn_t. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent f6161aa commit fc0460d

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

arch/mips/include/asm/sn/sn_private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ extern void install_cpu_nmi_handler(int slice);
1414
extern void install_ipi(void);
1515
extern void setup_replication_mask(void);
1616
extern void replicate_kernel_text(void);
17-
extern pfn_t node_getfirstfree(cnodeid_t);
17+
extern unsigned long node_getfirstfree(cnodeid_t);
1818

1919
#endif /* __ASM_SN_SN_PRIVATE_H */

arch/mips/include/asm/sn/types.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ typedef signed char partid_t; /* partition ID type */
1919
typedef signed short moduleid_t; /* user-visible module number type */
2020
typedef signed short cmoduleid_t; /* kernel compact module id type */
2121
typedef unsigned char clusterid_t; /* Clusterid of the cell */
22-
typedef unsigned long pfn_t;
2322

2423
typedef dev_t vertex_hdl_t; /* hardware graph vertex handle */
2524

arch/mips/sgi-ip27/ip27-klnuma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ void __init replicate_kernel_text()
114114
* data structures on the first couple of pages of the first slot of each
115115
* node. If this is the case, getfirstfree(node) > getslotstart(node, 0).
116116
*/
117-
pfn_t node_getfirstfree(cnodeid_t cnode)
117+
unsigned long node_getfirstfree(cnodeid_t cnode)
118118
{
119119
unsigned long loadbase = REP_BASE;
120120
nasid_t nasid = COMPACT_TO_NASID_NODEID(cnode);

arch/mips/sgi-ip27/ip27-memory.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -255,14 +255,14 @@ static void __init dump_topology(void)
255255
}
256256
}
257257

258-
static pfn_t __init slot_getbasepfn(cnodeid_t cnode, int slot)
258+
static unsigned long __init slot_getbasepfn(cnodeid_t cnode, int slot)
259259
{
260260
nasid_t nasid = COMPACT_TO_NASID_NODEID(cnode);
261261

262-
return ((pfn_t)nasid << PFN_NASIDSHFT) | (slot << SLOT_PFNSHIFT);
262+
return ((unsigned long)nasid << PFN_NASIDSHFT) | (slot << SLOT_PFNSHIFT);
263263
}
264264

265-
static pfn_t __init slot_psize_compute(cnodeid_t node, int slot)
265+
static unsigned long __init slot_psize_compute(cnodeid_t node, int slot)
266266
{
267267
nasid_t nasid;
268268
lboard_t *brd;
@@ -353,7 +353,7 @@ static void __init mlreset(void)
353353

354354
static void __init szmem(void)
355355
{
356-
pfn_t slot_psize, slot0sz = 0, nodebytes; /* Hack to detect problem configs */
356+
unsigned long slot_psize, slot0sz = 0, nodebytes; /* Hack to detect problem configs */
357357
int slot;
358358
cnodeid_t node;
359359

@@ -390,10 +390,10 @@ static void __init szmem(void)
390390

391391
static void __init node_mem_init(cnodeid_t node)
392392
{
393-
pfn_t slot_firstpfn = slot_getbasepfn(node, 0);
394-
pfn_t slot_freepfn = node_getfirstfree(node);
393+
unsigned long slot_firstpfn = slot_getbasepfn(node, 0);
394+
unsigned long slot_freepfn = node_getfirstfree(node);
395395
unsigned long bootmap_size;
396-
pfn_t start_pfn, end_pfn;
396+
unsigned long start_pfn, end_pfn;
397397

398398
get_pfn_range_for_nid(node, &start_pfn, &end_pfn);
399399

@@ -467,7 +467,7 @@ void __init paging_init(void)
467467
pagetable_init();
468468

469469
for_each_online_node(node) {
470-
pfn_t start_pfn, end_pfn;
470+
unsigned long start_pfn, end_pfn;
471471

472472
get_pfn_range_for_nid(node, &start_pfn, &end_pfn);
473473

0 commit comments

Comments
 (0)