Re: [PATCH V6 03/15] cpufreq: Rust implementation doesn't parse BIT() macro

From: Viresh Kumar
Date: Wed Jan 08 2025 - 00:37:20 EST


On 07-01-25, 13:00, Greg KH wrote:
> On Tue, Jan 07, 2025 at 04:51:36PM +0530, Viresh Kumar wrote:
> > Rust isn't able to parse the macro for now, avoid using it.
>
> No, please fix it. You don't want to have to fend off the checkpatch.pl
> cleanups that this would cause of people putting the BIT() macro back.

Yeah, I mentioned this in the cover-letter that we need to make Rust work with
it. I should have marked it as DO-NOT-MERGE patch.

I wanted to get an idea from others on how to fix it, which Danilo shared now.
Will try that.

> Make BIT() work properly for Rust code as well, it has to be done
> eventually, right?

--
viresh