[MIPS] Fix modpost warning: Rename op_model_xxx to op_model_xxx_ops.
The modpost uses a whitelist for commonly used suffix on checking the section mismatch. Adding "_ops" suffix to op_modex_xxx get rid of this modpost warning. WARNING: arch/mips/oprofile/oprofile.o - Section mismatch: reference to .init.text: from .data after 'op_model_mipsxx' (at offset 0x528) Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
5ee823507b
commit
1acf1ca7e9
@ -14,8 +14,8 @@
|
|||||||
|
|
||||||
#include "op_impl.h"
|
#include "op_impl.h"
|
||||||
|
|
||||||
extern struct op_mips_model op_model_mipsxx __attribute__((weak));
|
extern struct op_mips_model op_model_mipsxx_ops __attribute__((weak));
|
||||||
extern struct op_mips_model op_model_rm9000 __attribute__((weak));
|
extern struct op_mips_model op_model_rm9000_ops __attribute__((weak));
|
||||||
|
|
||||||
static struct op_mips_model *model;
|
static struct op_mips_model *model;
|
||||||
|
|
||||||
@ -83,11 +83,11 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
|
|||||||
case CPU_74K:
|
case CPU_74K:
|
||||||
case CPU_SB1:
|
case CPU_SB1:
|
||||||
case CPU_SB1A:
|
case CPU_SB1A:
|
||||||
lmodel = &op_model_mipsxx;
|
lmodel = &op_model_mipsxx_ops;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CPU_RM9000:
|
case CPU_RM9000:
|
||||||
lmodel = &op_model_rm9000;
|
lmodel = &op_model_rm9000_ops;
|
||||||
break;
|
break;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
#define M_COUNTER_OVERFLOW (1UL << 31)
|
#define M_COUNTER_OVERFLOW (1UL << 31)
|
||||||
|
|
||||||
struct op_mips_model op_model_mipsxx;
|
struct op_mips_model op_model_mipsxx_ops;
|
||||||
|
|
||||||
static struct mipsxx_register_config {
|
static struct mipsxx_register_config {
|
||||||
unsigned int control[4];
|
unsigned int control[4];
|
||||||
@ -34,7 +34,7 @@ static struct mipsxx_register_config {
|
|||||||
|
|
||||||
static void mipsxx_reg_setup(struct op_counter_config *ctr)
|
static void mipsxx_reg_setup(struct op_counter_config *ctr)
|
||||||
{
|
{
|
||||||
unsigned int counters = op_model_mipsxx.num_counters;
|
unsigned int counters = op_model_mipsxx_ops.num_counters;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
/* Compute the performance counter control word. */
|
/* Compute the performance counter control word. */
|
||||||
@ -62,7 +62,7 @@ static void mipsxx_reg_setup(struct op_counter_config *ctr)
|
|||||||
|
|
||||||
static void mipsxx_cpu_setup (void *args)
|
static void mipsxx_cpu_setup (void *args)
|
||||||
{
|
{
|
||||||
unsigned int counters = op_model_mipsxx.num_counters;
|
unsigned int counters = op_model_mipsxx_ops.num_counters;
|
||||||
|
|
||||||
switch (counters) {
|
switch (counters) {
|
||||||
case 4:
|
case 4:
|
||||||
@ -83,7 +83,7 @@ static void mipsxx_cpu_setup (void *args)
|
|||||||
/* Start all counters on current CPU */
|
/* Start all counters on current CPU */
|
||||||
static void mipsxx_cpu_start(void *args)
|
static void mipsxx_cpu_start(void *args)
|
||||||
{
|
{
|
||||||
unsigned int counters = op_model_mipsxx.num_counters;
|
unsigned int counters = op_model_mipsxx_ops.num_counters;
|
||||||
|
|
||||||
switch (counters) {
|
switch (counters) {
|
||||||
case 4:
|
case 4:
|
||||||
@ -100,7 +100,7 @@ static void mipsxx_cpu_start(void *args)
|
|||||||
/* Stop all counters on current CPU */
|
/* Stop all counters on current CPU */
|
||||||
static void mipsxx_cpu_stop(void *args)
|
static void mipsxx_cpu_stop(void *args)
|
||||||
{
|
{
|
||||||
unsigned int counters = op_model_mipsxx.num_counters;
|
unsigned int counters = op_model_mipsxx_ops.num_counters;
|
||||||
|
|
||||||
switch (counters) {
|
switch (counters) {
|
||||||
case 4:
|
case 4:
|
||||||
@ -116,7 +116,7 @@ static void mipsxx_cpu_stop(void *args)
|
|||||||
|
|
||||||
static int mipsxx_perfcount_handler(struct pt_regs *regs)
|
static int mipsxx_perfcount_handler(struct pt_regs *regs)
|
||||||
{
|
{
|
||||||
unsigned int counters = op_model_mipsxx.num_counters;
|
unsigned int counters = op_model_mipsxx_ops.num_counters;
|
||||||
unsigned int control;
|
unsigned int control;
|
||||||
unsigned int counter;
|
unsigned int counter;
|
||||||
int handled = 0;
|
int handled = 0;
|
||||||
@ -187,37 +187,37 @@ static int __init mipsxx_init(void)
|
|||||||
|
|
||||||
reset_counters(counters);
|
reset_counters(counters);
|
||||||
|
|
||||||
op_model_mipsxx.num_counters = counters;
|
op_model_mipsxx_ops.num_counters = counters;
|
||||||
switch (current_cpu_data.cputype) {
|
switch (current_cpu_data.cputype) {
|
||||||
case CPU_20KC:
|
case CPU_20KC:
|
||||||
op_model_mipsxx.cpu_type = "mips/20K";
|
op_model_mipsxx_ops.cpu_type = "mips/20K";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CPU_24K:
|
case CPU_24K:
|
||||||
op_model_mipsxx.cpu_type = "mips/24K";
|
op_model_mipsxx_ops.cpu_type = "mips/24K";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CPU_25KF:
|
case CPU_25KF:
|
||||||
op_model_mipsxx.cpu_type = "mips/25K";
|
op_model_mipsxx_ops.cpu_type = "mips/25K";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#ifndef CONFIG_SMP
|
#ifndef CONFIG_SMP
|
||||||
case CPU_34K:
|
case CPU_34K:
|
||||||
op_model_mipsxx.cpu_type = "mips/34K";
|
op_model_mipsxx_ops.cpu_type = "mips/34K";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CPU_74K:
|
case CPU_74K:
|
||||||
op_model_mipsxx.cpu_type = "mips/74K";
|
op_model_mipsxx_ops.cpu_type = "mips/74K";
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
case CPU_5KC:
|
case CPU_5KC:
|
||||||
op_model_mipsxx.cpu_type = "mips/5K";
|
op_model_mipsxx_ops.cpu_type = "mips/5K";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CPU_SB1:
|
case CPU_SB1:
|
||||||
case CPU_SB1A:
|
case CPU_SB1A:
|
||||||
op_model_mipsxx.cpu_type = "mips/sb1";
|
op_model_mipsxx_ops.cpu_type = "mips/sb1";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -233,12 +233,12 @@ static int __init mipsxx_init(void)
|
|||||||
|
|
||||||
static void mipsxx_exit(void)
|
static void mipsxx_exit(void)
|
||||||
{
|
{
|
||||||
reset_counters(op_model_mipsxx.num_counters);
|
reset_counters(op_model_mipsxx_ops.num_counters);
|
||||||
|
|
||||||
perf_irq = null_perf_irq;
|
perf_irq = null_perf_irq;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct op_mips_model op_model_mipsxx = {
|
struct op_mips_model op_model_mipsxx_ops = {
|
||||||
.reg_setup = mipsxx_reg_setup,
|
.reg_setup = mipsxx_reg_setup,
|
||||||
.cpu_setup = mipsxx_cpu_setup,
|
.cpu_setup = mipsxx_cpu_setup,
|
||||||
.init = mipsxx_init,
|
.init = mipsxx_init,
|
||||||
|
@ -126,7 +126,7 @@ static void rm9000_exit(void)
|
|||||||
free_irq(rm9000_perfcount_irq, NULL);
|
free_irq(rm9000_perfcount_irq, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct op_mips_model op_model_rm9000 = {
|
struct op_mips_model op_model_rm9000_ops = {
|
||||||
.reg_setup = rm9000_reg_setup,
|
.reg_setup = rm9000_reg_setup,
|
||||||
.cpu_setup = rm9000_cpu_setup,
|
.cpu_setup = rm9000_cpu_setup,
|
||||||
.init = rm9000_init,
|
.init = rm9000_init,
|
||||||
|
Loading…
Reference in New Issue
Block a user