Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101598
b: refs/heads/master
c: 1c21a29
h: refs/heads/master
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed May 14, 2008
1 parent 1659e48 commit ec877b0
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 32 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1c8950ff87de950a3b6ccfb26650fc0a56278836
refs/heads/master: 1c21a2937b1f342a8f5d580203c3396557d53b6e
6 changes: 3 additions & 3 deletions trunk/arch/powerpc/kernel/lparcfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,15 +573,15 @@ static int lparcfg_open(struct inode *inode, struct file *file)
return single_open(file, lparcfg_data, NULL);
}

const struct file_operations lparcfg_fops = {
static const struct file_operations lparcfg_fops = {
.owner = THIS_MODULE,
.read = seq_read,
.write = lparcfg_write,
.open = lparcfg_open,
.release = single_release,
};

int __init lparcfg_init(void)
static int __init lparcfg_init(void)
{
struct proc_dir_entry *ent;
mode_t mode = S_IRUSR | S_IRGRP | S_IROTH;
Expand All @@ -601,7 +601,7 @@ int __init lparcfg_init(void)
return 0;
}

void __exit lparcfg_cleanup(void)
static void __exit lparcfg_cleanup(void)
{
if (proc_ppc64_lparcfg)
remove_proc_entry("lparcfg", proc_ppc64_lparcfg->parent);
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/powerpc/kernel/machine_kexec_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ void kexec_copy_flush(struct kimage *image)
* on calling the interrupts, but we would like to call it off irq level
* so that the interrupt controller is clean.
*/
void kexec_smp_down(void *arg)
static void kexec_smp_down(void *arg)
{
if (ppc_md.kexec_cpu_down)
ppc_md.kexec_cpu_down(0, 1);
Expand Down Expand Up @@ -249,7 +249,7 @@ static void kexec_prepare_cpus(void)
* We could use a smaller stack if we don't care about anything using
* current, but that audit has not been performed.
*/
union thread_union kexec_stack
static union thread_union kexec_stack
__attribute__((__section__(".data.init_task"))) = { };

/* Our assembly helper, in kexec_stub.S */
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/kernel/msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ int arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)

void arch_teardown_msi_irqs(struct pci_dev *dev)
{
return ppc_md.teardown_msi_irqs(dev);
ppc_md.teardown_msi_irqs(dev);
}
14 changes: 7 additions & 7 deletions trunk/arch/powerpc/kernel/rtas-proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ static int sensors_open(struct inode *inode, struct file *file)
return single_open(file, ppc_rtas_sensors_show, NULL);
}

const struct file_operations ppc_rtas_sensors_operations = {
static const struct file_operations ppc_rtas_sensors_operations = {
.open = sensors_open,
.read = seq_read,
.llseek = seq_lseek,
Expand All @@ -172,7 +172,7 @@ static int poweron_open(struct inode *inode, struct file *file)
return single_open(file, ppc_rtas_poweron_show, NULL);
}

const struct file_operations ppc_rtas_poweron_operations = {
static const struct file_operations ppc_rtas_poweron_operations = {
.open = poweron_open,
.read = seq_read,
.llseek = seq_lseek,
Expand All @@ -185,7 +185,7 @@ static int progress_open(struct inode *inode, struct file *file)
return single_open(file, ppc_rtas_progress_show, NULL);
}

const struct file_operations ppc_rtas_progress_operations = {
static const struct file_operations ppc_rtas_progress_operations = {
.open = progress_open,
.read = seq_read,
.llseek = seq_lseek,
Expand All @@ -198,7 +198,7 @@ static int clock_open(struct inode *inode, struct file *file)
return single_open(file, ppc_rtas_clock_show, NULL);
}

const struct file_operations ppc_rtas_clock_operations = {
static const struct file_operations ppc_rtas_clock_operations = {
.open = clock_open,
.read = seq_read,
.llseek = seq_lseek,
Expand All @@ -211,7 +211,7 @@ static int tone_freq_open(struct inode *inode, struct file *file)
return single_open(file, ppc_rtas_tone_freq_show, NULL);
}

const struct file_operations ppc_rtas_tone_freq_operations = {
static const struct file_operations ppc_rtas_tone_freq_operations = {
.open = tone_freq_open,
.read = seq_read,
.llseek = seq_lseek,
Expand All @@ -224,7 +224,7 @@ static int tone_volume_open(struct inode *inode, struct file *file)
return single_open(file, ppc_rtas_tone_volume_show, NULL);
}

const struct file_operations ppc_rtas_tone_volume_operations = {
static const struct file_operations ppc_rtas_tone_volume_operations = {
.open = tone_volume_open,
.read = seq_read,
.llseek = seq_lseek,
Expand All @@ -237,7 +237,7 @@ static int rmo_buf_open(struct inode *inode, struct file *file)
return single_open(file, ppc_rtas_rmo_buf_show, NULL);
}

const struct file_operations ppc_rtas_rmo_buf_ops = {
static const struct file_operations ppc_rtas_rmo_buf_ops = {
.open = rmo_buf_open,
.read = seq_read,
.llseek = seq_lseek,
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/powerpc/kernel/rtas.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ int rtas_get_error_log_max(void)
EXPORT_SYMBOL(rtas_get_error_log_max);


char rtas_err_buf[RTAS_ERROR_LOG_MAX];
int rtas_last_error_token;
static char rtas_err_buf[RTAS_ERROR_LOG_MAX];
static int rtas_last_error_token;

/** Return a copy of the detailed error text associated with the
* most recent failed call to rtas. Because the error text
Expand Down Expand Up @@ -484,7 +484,7 @@ unsigned int rtas_busy_delay(int status)
}
EXPORT_SYMBOL(rtas_busy_delay);

int rtas_error_rc(int rtas_rc)
static int rtas_error_rc(int rtas_rc)
{
int rc;

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/powerpc/kernel/rtas_flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ static const struct file_operations validate_flash_operations = {
.release = validate_flash_release,
};

int __init rtas_flash_init(void)
static int __init rtas_flash_init(void)
{
int rc;

Expand Down Expand Up @@ -817,7 +817,7 @@ int __init rtas_flash_init(void)
return rc;
}

void __exit rtas_flash_cleanup(void)
static void __exit rtas_flash_cleanup(void)
{
rtas_flash_term_hook = NULL;

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/powerpc/kernel/rtas_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ static int rtas_pci_write_config(struct pci_bus *bus,
return PCIBIOS_DEVICE_NOT_FOUND;
}

struct pci_ops rtas_pci_ops = {
static struct pci_ops rtas_pci_ops = {
.read = rtas_pci_read_config,
.write = rtas_pci_write_config,
};

int is_python(struct device_node *dev)
static int is_python(struct device_node *dev)
{
const char *model = of_get_property(dev, "model", NULL);

Expand Down
4 changes: 0 additions & 4 deletions trunk/arch/powerpc/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,12 +365,8 @@ void smp_call_function_interrupt(void)
}
}

extern struct gettimeofday_struct do_gtod;

struct thread_info *current_set[NR_CPUS];

DECLARE_PER_CPU(unsigned int, pvr);

static void __devinit smp_store_cpu_info(int id)
{
per_cpu(pvr, id) = mfspr(SPRN_PVR);
Expand Down
10 changes: 5 additions & 5 deletions trunk/arch/powerpc/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ static unsigned long __initdata iSeries_recal_titan;
static signed long __initdata iSeries_recal_tb;

/* Forward declaration is only needed for iSereis compiles */
void __init clocksource_init(void);
static void __init clocksource_init(void);
#endif

#define XSEC_PER_SEC (1024*1024)
Expand All @@ -150,8 +150,8 @@ u64 tb_to_xs;
unsigned tb_to_us;

#define TICKLEN_SCALE NTP_SCALE_SHIFT
u64 last_tick_len; /* units are ns / 2^TICKLEN_SCALE */
u64 ticklen_to_xs; /* 0.64 fraction */
static u64 last_tick_len; /* units are ns / 2^TICKLEN_SCALE */
static u64 ticklen_to_xs; /* 0.64 fraction */

/* If last_tick_len corresponds to about 1/HZ seconds, then
last_tick_len << TICKLEN_SHIFT will be about 2^63. */
Expand All @@ -164,7 +164,7 @@ static u64 tb_to_ns_scale __read_mostly;
static unsigned tb_to_ns_shift __read_mostly;
static unsigned long boot_tb __read_mostly;

struct gettimeofday_struct do_gtod;
static struct gettimeofday_struct do_gtod;

extern struct timezone sys_tz;
static long timezone_offset;
Expand Down Expand Up @@ -832,7 +832,7 @@ void update_vsyscall_tz(void)
++vdso_data->tb_update_count;
}

void __init clocksource_init(void)
static void __init clocksource_init(void)
{
struct clocksource *clock;

Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/powerpc/platforms/maple/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
#define DBG(x...)
#endif

extern void GregorianDay(struct rtc_time * tm);

static int maple_rtc_addr;

static int maple_clock_read(int addr)
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/asm-powerpc/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ extern void cpu_die(void);
extern void smp_send_debugger_break(int cpu);
extern void smp_message_recv(int);

DECLARE_PER_CPU(unsigned int, pvr);

#ifdef CONFIG_HOTPLUG_CPU
extern void fixup_irqs(cpumask_t map);
int generic_cpu_disable(void);
Expand Down
1 change: 1 addition & 0 deletions trunk/include/asm-powerpc/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ extern unsigned tb_to_us;

struct rtc_time;
extern void to_tm(int tim, struct rtc_time * tm);
extern void GregorianDay(struct rtc_time *tm);
extern time_t last_rtc_update;

extern void generic_calibrate_decr(void);
Expand Down

0 comments on commit ec877b0

Please sign in to comment.