[PATCH v2 1/2] RISC-V: hwprobe: Use BIT macro to avoid warnings
Andreas Schwab
schwab at suse.de
Thu Feb 6 00:58:33 PST 2025
On Feb 05 2025, Palmer Dabbelt wrote:
> From: Jesse Taube <jesse at rivosinc.com>
>
> In uapi/asm/hwprobe.h file, (1 << N) is used to define the bit field
> which causes checkpatch to warn. Use BIT(N) and BIT_ULL(N) to avoid
> these warnings.
_BITUL(N) and _BITULL(N)
> @@ -98,6 +99,6 @@ struct riscv_hwprobe {
> /* Increase RISCV_HWPROBE_MAX_KEY when adding items. */
>
> /* Flags */
> -#define RISCV_HWPROBE_WHICH_CPUS (1 << 0)
> +#define RISCV_HWPROBE_WHICH_CPUS BIT(0)
s/BIT/_BITUL/
--
Andreas Schwab, SUSE Labs, schwab at suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the linux-riscv
mailing list