Message ID | tencent_54C2A2746A83BA29EE92248CE9683F0C6509@qq.com (mailing list archive) |
---|---|
State | Changes Requested |
Headers | show |
Series | MIPS: Fix undefined behavior in PAGE_MASK calculation | expand |
> How do you think about a wording variant like the following? What you said is exactly what I want to express. > Would you like to add the tag “Fixes”? I agree with that. Thank you for your feedback and suggestion.
On Mon, Jul 10, 2023 at 02:02:00PM +0800, linke li wrote: > > How do you think about a wording variant like the following? > > What you said is exactly what I want to express. > > > Would you like to add the tag “Fixes”? > > I agree with that. > > Thank you for your feedback and suggestion. plesas resend with this changes. Thomas.
diff --git a/arch/mips/include/asm/page.h b/arch/mips/include/asm/page.h index 5978a8dfb917..3061a5586954 100644 --- a/arch/mips/include/asm/page.h +++ b/arch/mips/include/asm/page.h @@ -33,7 +33,7 @@ #define PAGE_SHIFT 16 #endif #define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT) -#define PAGE_MASK (~((1 << PAGE_SHIFT) - 1)) +#define PAGE_MASK (~(PAGE_SIZE - 1)) /* * This is used for calculating the real page sizes