]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Remove extern from function definition
authorBreno Leitao <leitao@debian.org>
Wed, 31 Oct 2018 14:24:11 +0000 (11:24 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 25 Nov 2018 06:11:21 +0000 (17:11 +1100)
commitd91775a06f1cb1005c02b966066d642ec4b55822
tree6195982905dad0d78af16c4cea0b5a0765c699a8
parent7bd08c711d317944d89a5394ebe9385615447145
powerpc/mm: Remove extern from function definition

Function huge_ptep_set_access_flags() has the 'extern' keyword in the
function definition and also in the function declaration. This causes a
warning in 'sparse' since the 'extern' storage class should not be used
in the function definition.

arch/powerpc/mm/pgtable.c:232:12: warning: function 'huge_ptep_set_access_flags' with external linkage has definition

This patch removes the keyword from the definition part. It also removes
the extern keyword from the declaration part, since checkpatch --strict
complains about it.

Suggested-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/hugetlb.h
arch/powerpc/mm/pgtable.c