Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4daa832d authored by Mathias Krause's avatar Mathias Krause Committed by Ingo Molnar
Browse files

x86: Drop bogus __ref / __refdata annotations



The __ref / __refdata annotations used to be needed because of
referencing functions / variables annotated __cpuinit /
__cpuinitdata.

But those annotations vanished during the development of v3.11.

Therefore most of the __ref / __refdata annotations are not needed
anymore. As they may hide legitimate sections mismatches, we
better get rid of them.

Signed-off-by: default avatarMathias Krause <minipli@googlemail.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1437409973-8927-1-git-send-email-minipli@googlemail.com


Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 52721d9d
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -710,7 +710,7 @@ static void acpi_map_cpu2node(acpi_handle handle, int cpu, int physid)
#endif
}

static int _acpi_map_lsapic(acpi_handle handle, int physid, int *pcpu)
int acpi_map_cpu(acpi_handle handle, phys_cpuid_t physid, int *pcpu)
{
	int cpu;

@@ -726,12 +726,6 @@ static int _acpi_map_lsapic(acpi_handle handle, int physid, int *pcpu)
	*pcpu = cpu;
	return 0;
}

/* wrapper to silence section mismatch warning */
int __ref acpi_map_cpu(acpi_handle handle, phys_cpuid_t physid, int *pcpu)
{
	return _acpi_map_lsapic(handle, physid, pcpu);
}
EXPORT_SYMBOL(acpi_map_cpu);

int acpi_unmap_cpu(int cpu)
+1 −1
Original line number Diff line number Diff line
@@ -182,7 +182,7 @@ update_clusterinfo(struct notifier_block *nfb, unsigned long action, void *hcpu)
	return notifier_from_errno(err);
}

static struct notifier_block __refdata x2apic_cpu_notifier = {
static struct notifier_block x2apic_cpu_notifier = {
	.notifier_call = update_clusterinfo,
};

+1 −1
Original line number Diff line number Diff line
@@ -460,7 +460,7 @@ mc_cpu_callback(struct notifier_block *nb, unsigned long action, void *hcpu)
	return NOTIFY_OK;
}

static struct notifier_block __refdata mc_cpu_notifier = {
static struct notifier_block mc_cpu_notifier = {
	.notifier_call	= mc_cpu_callback,
};

+1 −1
Original line number Diff line number Diff line
@@ -390,7 +390,7 @@ static int collect_cpu_info_early(struct ucode_cpu_info *uci)
}

#ifdef DEBUG
static void __ref show_saved_mc(void)
static void show_saved_mc(void)
{
	int i, j;
	unsigned int sig, pf, rev, total_size, data_size, date;
+1 −1
Original line number Diff line number Diff line
@@ -170,7 +170,7 @@ static int cpuid_class_cpu_callback(struct notifier_block *nfb,
	return notifier_from_errno(err);
}

static struct notifier_block __refdata cpuid_class_cpu_notifier =
static struct notifier_block cpuid_class_cpu_notifier =
{
	.notifier_call = cpuid_class_cpu_callback,
};
Loading