Re: [PATCH v5 2/5] powercap/drivers/dtpm: Create a registering system

From: Greg KH
Date: Wed Mar 31 2021 - 14:07:35 EST


On Wed, Mar 31, 2021 at 01:00:45PM +0200, Daniel Lezcano wrote:
> +struct dtpm *dtpm_lookup(const char *name);
> +
> +int dtpm_add(const char *name, struct dtpm *dtpm);
> +
> +void dtpm_del(const char *name);

You can not add new kernel apis that have no user. How do you know if
they actually work or not? We have no idea as we do not see anyone
using them :(

So no need to add things with no user, feel free to just drop this patch
until you have one.

thanks,

greg k-h