Skip to content

Commit

Permalink
[PATCH] ppc64 iSeries: remove LparData.h
Browse files Browse the repository at this point in the history
include/asm-ppc64/iSeries/LparData.h just included a whole lot of other files
to declare variables that would be better declared in those other files.  So,
remove it.  This will reduce that number of things needed to be included in
most cases to access the relevant variables.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Stephen Rothwell authored and Linus Torvalds committed Jun 22, 2005
1 parent 6b7feec commit 0bc0ffd
Show file tree
Hide file tree
Showing 23 changed files with 29 additions and 62 deletions.
2 changes: 1 addition & 1 deletion arch/ppc64/kernel/HvLpEvent.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <asm/system.h>
#include <asm/iSeries/HvLpEvent.h>
#include <asm/iSeries/HvCallEvent.h>
#include <asm/iSeries/LparData.h>
#include <asm/iSeries/ItLpNaca.h>

/* Array of LpEvent handler functions */
LpEventHandler lpEventHandler[HvLpEvent_Type_NumTypes];
Expand Down
1 change: 0 additions & 1 deletion arch/ppc64/kernel/ItLpQueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include <asm/iSeries/ItLpQueue.h>
#include <asm/iSeries/HvLpEvent.h>
#include <asm/iSeries/HvCallEvent.h>
#include <asm/iSeries/LparData.h>

static __inline__ int set_inUse( struct ItLpQueue * lpQueue )
{
Expand Down
1 change: 0 additions & 1 deletion arch/ppc64/kernel/iSeries_VpdInfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include <asm/iSeries/HvCallPci.h>
#include <asm/iSeries/HvTypes.h>
#include <asm/iSeries/mf.h>
#include <asm/iSeries/LparData.h>
#include <asm/iSeries/iSeries_pci.h>
#include "pci.h"

Expand Down
1 change: 0 additions & 1 deletion arch/ppc64/kernel/iSeries_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#include <asm/iSeries/HvCallPci.h>
#include <asm/iSeries/HvCallSm.h>
#include <asm/iSeries/HvCallXm.h>
#include <asm/iSeries/LparData.h>
#include <asm/iSeries/iSeries_irq.h>
#include <asm/iSeries/iSeries_pci.h>
#include <asm/iSeries/mf.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/ppc64/kernel/iSeries_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <asm/iSeries/ItLpQueue.h>
#include <asm/iSeries/HvCallXm.h>
#include <asm/iSeries/IoHriMainStore.h>
#include <asm/iSeries/LparData.h>
#include <asm/iSeries/IoHriProcessorVpd.h>

static int __init iseries_proc_create(void)
{
Expand Down
5 changes: 4 additions & 1 deletion arch/ppc64/kernel/iSeries_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
#include <asm/paca.h>
#include <asm/cache.h>
#include <asm/sections.h>
#include <asm/iSeries/LparData.h>
#include <asm/abs_addr.h>
#include <asm/iSeries/HvCallHpt.h>
#include <asm/iSeries/HvLpConfig.h>
#include <asm/iSeries/HvCallEvent.h>
Expand All @@ -58,6 +58,9 @@
#include <asm/iSeries/mf.h>
#include <asm/iSeries/HvLpEvent.h>
#include <asm/iSeries/iSeries_irq.h>
#include <asm/iSeries/IoHriProcessorVpd.h>
#include <asm/iSeries/ItVpdAreas.h>
#include <asm/iSeries/LparMap.h>

extern void hvlog(char *fmt, ...);

Expand Down
1 change: 0 additions & 1 deletion arch/ppc64/kernel/iSeries_smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#include <asm/io.h>
#include <asm/smp.h>
#include <asm/paca.h>
#include <asm/iSeries/LparData.h>
#include <asm/iSeries/HvCall.h>
#include <asm/iSeries/HvCallCfg.h>
#include <asm/time.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/ppc64/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
#include <asm/cache.h>
#include <asm/prom.h>
#include <asm/ptrace.h>
#include <asm/iSeries/LparData.h>
#include <asm/iSeries/ItLpQueue.h>
#include <asm/machdep.h>
#include <asm/paca.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/ppc64/kernel/lparcfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
#include <asm/uaccess.h>
#include <asm/iSeries/HvLpConfig.h>
#include <asm/lppaca.h>
#include <asm/iSeries/LparData.h>
#include <asm/hvcall.h>
#include <asm/cputable.h>
#include <asm/rtas.h>
#include <asm/system.h>
#include <asm/time.h>
#include <asm/iSeries/ItExtVpdPanel.h>

#define MODULE_VERS "1.6"
#define MODULE_NAME "lparcfg"
Expand Down
1 change: 0 additions & 1 deletion arch/ppc64/kernel/ras.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
#include <asm/cache.h>
#include <asm/prom.h>
#include <asm/ptrace.h>
#include <asm/iSeries/LparData.h>
#include <asm/machdep.h>
#include <asm/rtas.h>
#include <asm/ppcdebug.h>
Expand Down
1 change: 0 additions & 1 deletion arch/ppc64/kernel/rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
#include <asm/time.h>
#include <asm/rtas.h>

#include <asm/iSeries/LparData.h>
#include <asm/iSeries/mf.h>
#include <asm/machdep.h>
#include <asm/iSeries/ItSpCommArea.h>
Expand Down
3 changes: 2 additions & 1 deletion arch/ppc64/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
#include <asm/smp.h>
#include <asm/elf.h>
#include <asm/machdep.h>
#include <asm/iSeries/LparData.h>
#include <asm/paca.h>
#include <asm/ppcdebug.h>
#include <asm/time.h>
Expand All @@ -57,6 +56,8 @@
#include <asm/cache.h>
#include <asm/page.h>
#include <asm/mmu.h>
#include <asm/lmb.h>
#include <asm/iSeries/ItLpNaca.h>

#ifdef DEBUG
#define DBG(fmt...) udbg_printf(fmt)
Expand Down
2 changes: 1 addition & 1 deletion arch/ppc64/kernel/viopath.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#include <asm/system.h>
#include <asm/uaccess.h>
#include <asm/iSeries/HvTypes.h>
#include <asm/iSeries/LparData.h>
#include <asm/iSeries/ItExtVpdPanel.h>
#include <asm/iSeries/HvLpEvent.h>
#include <asm/iSeries/HvLpConfig.h>
#include <asm/iSeries/HvCallCfg.h>
Expand Down
1 change: 0 additions & 1 deletion include/asm-ppc64/iSeries/HvLpConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include <asm/iSeries/HvCallCfg.h>
#include <asm/iSeries/HvTypes.h>
#include <asm/iSeries/ItLpNaca.h>
#include <asm/iSeries/LparData.h>

extern HvLpIndex HvLpConfig_getLpIndex_outline(void);

Expand Down
2 changes: 2 additions & 0 deletions include/asm-ppc64/iSeries/HvReleaseData.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,6 @@ struct HvReleaseData {
char xRsvd3[20]; /* Reserved x2C-x3F */
};

extern struct HvReleaseData hvReleaseData;

#endif /* _HVRELEASEDATA_H */
2 changes: 2 additions & 0 deletions include/asm-ppc64/iSeries/IoHriMainStore.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,6 @@ struct IoHriMainStoreSegment5 {
u64 reserved3;
};

extern u64 xMsVpd[];

#endif /* _IOHRIMAINSTORE_H */
2 changes: 2 additions & 0 deletions include/asm-ppc64/iSeries/IoHriProcessorVpd.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,6 @@ struct IoHriProcessorVpd {
char xProcSrc[72]; // CSP format SRC xB8-xFF
};

extern struct IoHriProcessorVpd xIoHriProcessorVpd[];

#endif /* _IOHRIPROCESSORVPD_H */
2 changes: 2 additions & 0 deletions include/asm-ppc64/iSeries/ItExtVpdPanel.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,6 @@ struct ItExtVpdPanel {
u8 xRsvd2[48];
};

extern struct ItExtVpdPanel xItExtVpdPanel;

#endif /* _ITEXTVPDPANEL_H */
2 changes: 2 additions & 0 deletions include/asm-ppc64/iSeries/ItIplParmsReal.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,6 @@ struct ItIplParmsReal {
u64 xRsvd13; // Reserved x38-x3F
};

extern struct ItIplParmsReal xItIplParmsReal;

#endif /* _ITIPLPARMSREAL_H */
4 changes: 4 additions & 0 deletions include/asm-ppc64/iSeries/ItLpNaca.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#ifndef _ITLPNACA_H
#define _ITLPNACA_H

#include <linux/types.h>

/*
* This control block contains the data that is shared between the
* hypervisor (PLIC) and the OS.
Expand Down Expand Up @@ -73,4 +75,6 @@ struct ItLpNaca {
u64 xInterruptHdlr[32]; // Interrupt handlers 300-x3FF
};

extern struct ItLpNaca itLpNaca;

#endif /* _ITLPNACA_H */
2 changes: 2 additions & 0 deletions include/asm-ppc64/iSeries/ItVpdAreas.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,6 @@ struct ItVpdAreas {
void *xSlicVpdAdrs[ItVpdMaxEntries];// Array of VPD buffers 130-1EF
};

extern struct ItVpdAreas itVpdAreas;

#endif /* _ITVPDAREAS_H */
48 changes: 0 additions & 48 deletions include/asm-ppc64/iSeries/LparData.h

This file was deleted.

2 changes: 2 additions & 0 deletions include/asm-ppc64/iSeries/LparMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,6 @@ struct LparMap {
u64 xVPN; // Virtual Page Number (0x000C000000000000)
};

extern struct LparMap xLparMap;

#endif /* _LPARMAP_H */

0 comments on commit 0bc0ffd

Please sign in to comment.