Re: [PATCH] ACPI / CPPC: Replace cppc_attr with kobj_attribute

2021-04-08 Thread Rafael J. Wysocki
On Wed, Apr 7, 2021 at 11:32 PM Nathan Chancellor wrote: > > All of the CPPC sysfs show functions are called via indirect call in > kobj_attr_show(), where they should be of type > > ssize_t (*show)(struct kobject *kobj, struct kobj_attribute *attr, char *buf); > > because that is the type of the

[PATCH] ACPI / CPPC: Replace cppc_attr with kobj_attribute

2021-04-07 Thread Nathan Chancellor
All of the CPPC sysfs show functions are called via indirect call in kobj_attr_show(), where they should be of type ssize_t (*show)(struct kobject *kobj, struct kobj_attribute *attr, char *buf); because that is the type of the ->show() member in 'struct kobj_attribute' but they are actually of