[PATCH v2 1/2] mm: slab: Introduce __GFP_PACKED for smaller kmalloc() alignments
Catalin Marinas
catalin.marinas at arm.com
Fri Oct 28 00:32:38 PDT 2022
On Thu, Oct 27, 2022 at 09:11:49PM +0900, Hyeonggon Yoo wrote:
> On Tue, Oct 25, 2022 at 09:52:46PM +0100, Catalin Marinas wrote:
> > +/*
> > + * This alignment should be at least sizeof(unsigned long long).
> > + */
> > +#define KMALLOC_PACKED_ALIGN (KMALLOC_MIN_SIZE)
> > +
>
> I think __assume_kmalloc_alignment should be changed as well,
> to avoid compiler making wrong decision.
Good point. Thanks.
--
Catalin
More information about the linux-arm-kernel
mailing list