Re: [PATCH V8 36/44] memremap_pages: Reserve a PKS PKey for eventual use by PMEM

From: Dan Williams
Date: Tue Feb 08 2022 - 18:22:40 EST


On Tue, Feb 8, 2022 at 2:48 PM Ira Weiny <ira.weiny@xxxxxxxxx> wrote:
[..]
> * // 5) Add initial value to PKS_INIT_VALUE
> * #define PKS_INIT_VALUE ((PKS_ALL_AD & (GENMASK(31, PKS_KEY_MAX * PKR_BITS_PER_PKEY))) | \
> * PKS_KEY_DEFAULT_INIT | \
> * PKS_KEY_MY_FEATURE_INIT | \

Does this compile? I.e. can you have a '|' operator with nothing on
the right hand side?

> * )
> */
>
>
> Let me know if this is clear enough?

Looks good to me.