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

Commit 669e200d authored by Abhimanyu Kapur's avatar Abhimanyu Kapur Committed by Matt Wagantall
Browse files

drivers: base: cpu: fix compiler warning



Linux Kernel 3.18 introduced few compile-time warnings, fix
them.

1. /kernel/drivers/base/cpu.c:317:12: warning: 'cpu_uevent' defined but not used [-Wunused-function]
 static int cpu_uevent(struct device *dev, struct kobj_uevent_env *evt)

Signed-off-by: default avatarAbhimanyu Kapur <abhimany@codeaurora.org>
parent fd7bd0e6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -314,6 +314,7 @@ static ssize_t print_cpu_modalias(struct device *dev,
#define print_cpu_modalias	arch_print_cpu_modalias
#endif

#ifdef CONFIG_ARCH_HAS_CPU_AUTOPROBE
static int cpu_uevent(struct device *dev, struct kobj_uevent_env *env)
{
	char *buf = kzalloc(PAGE_SIZE, GFP_KERNEL);
@@ -324,6 +325,7 @@ static int cpu_uevent(struct device *dev, struct kobj_uevent_env *env)
	}
	return 0;
}
#endif /*CONFIG_ARCH_HAS_CPU_AUTOPROBE*/
#endif

/*