]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 9032/1: arm/mm: Convert PUD level pgtable helper macros into functions
authorAnshuman Khandual <anshuman.khandual@arm.com>
Mon, 30 Nov 2020 09:28:20 +0000 (10:28 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Mon, 21 Dec 2020 11:19:19 +0000 (11:19 +0000)
commit76460d613d9b4096f3567bd444e3fc275db1b96b
tree38a6da574bdf95ab9c29e8f99a0768708ddb9aa9
parent6c7a6d22fcef9181239ea7248c6b0c4117b9325e
ARM: 9032/1: arm/mm: Convert PUD level pgtable helper macros into functions

Macros used as functions can be problematic from the compiler perspective.
There was a build failure report caused primarily because of non reference
of an argument variable. Hence convert PUD level pgtable helper macros into
functions in order to avoid such problems in the future. In the process, it

fixes the argument variables sequence in set_pud() which probably remained
hidden for being a macro.

https://lore.kernel.org/linux-mm/202011020749.5XQ3Hfzc-lkp@intel.com/
https://lore.kernel.org/linux-mm/5fa49698.Vu2O3r+dU20UoEJ+%25lkp@intel.com/

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/include/asm/pgtable-2level.h