[RFC PATCH 1/3] arm64: add CPU prefetch and cache modulation sysfs interface

Breno Leitao leitao at debian.org
Wed Aug 19 07:43:28 PDT 2026


On Mon, Aug 17, 2026 at 10:23:33AM +0800, KobaK wrote:
> +static void cpumod_attr_read_remote(void *info)
> +{
> +	struct cpumod_attr_call *call = info;
> +	u64 *value = cpumod_attr_value_ptr(call->subsys, call->attr);
> +
> +	*value = cpumod_attr_read_reg(call->attr);
> +}

Why do you need value in this case? Also, isn't cpumod_attr_read_reg()
anmd returning to a variable that is never read?



More information about the linux-arm-kernel mailing list