From 7e738c03bc06cad9956b70baf3bd1041bf5e5781 Mon Sep 17 00:00:00 2001 From: "Mauro (mdrjr) Ribeiro" Date: Tue, 7 Apr 2020 15:05:03 -0300 Subject: [PATCH] amlogic: cpu_hotplug: fix build with newer kernels --- drivers/amlogic/cpu_hotplug/cpu_hotplug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/amlogic/cpu_hotplug/cpu_hotplug.c b/drivers/amlogic/cpu_hotplug/cpu_hotplug.c index 3df661773c00..d4db21dafc53 100644 --- a/drivers/amlogic/cpu_hotplug/cpu_hotplug.c +++ b/drivers/amlogic/cpu_hotplug/cpu_hotplug.c @@ -234,7 +234,7 @@ static int do_null_task(void *data) } static ssize_t show_hotplug_max_cpus(struct kobject *kobj, - struct attribute *attr, char *buf) + struct kobj_attribute *attr, char *buf) { unsigned int max = 0; unsigned int c = 0; @@ -245,7 +245,7 @@ static ssize_t show_hotplug_max_cpus(struct kobject *kobj, } static ssize_t store_hotplug_max_cpus(struct kobject *kobj, - struct attribute *attr, const char *buf, size_t count) + struct kobj_attribute *attr, const char *buf, size_t count) { unsigned int input; unsigned int max;