Re: [PATCH] x86/head64: use pointer type in sizeof

From: Ingo Molnar
Date: Tue Feb 09 2016 - 08:53:52 EST



* Alexander Kuleshov <kuleshovmail@xxxxxxxxx> wrote:

> We changed loops with memset in the 5e9ebbd87a99 commit (x86/boot:
> Micro-optimize reset_early_page_tables()). The base for size of
> memset was size of pud_p/pmd_p, but the they are actually
> represented as pointers, although they have the same sizes.

That's rather confused. Also the title is confused:

x86/head64: use pointer type in sizeof

what the fix does it to _not_ use a pointer type.

I fixed the title and the changelog, but you really need to be more careful...

Thanks,

Ingo