From patchwork Mon Jan 25 12:50:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 12043373 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DFB62C433E0 for ; Mon, 25 Jan 2021 12:54:27 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5F4ED22472 for ; Mon, 25 Jan 2021 12:54:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5F4ED22472 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=4eBzDEijMd0x1pBPWFOZPhWM88VDiMCFSq7Llhw0d5M=; b=uRN/9D83DR/2ELNIZIW3efDA7c 5PZDuiGnLNNdEdUQUhkx1lh4AXtqjM0Oq5v6c/TXB5mGiyXDnVKAhu1SyASlPbFUHlFDZGwUUOeJG 1WxcDOxC8n5EPRGqTRXF7PMCiRKYe1EJ2r4aMDiYvL5+LeIY5nTMf/8oByuhPKh95t/5uMOg0E701 lgJB9+Ck+L/cOBwKZnfKI4wnyJOTBOLvDRHqbX2n/V0hrK9sLHNdEeJaQImCDfgTt/iK6yY68DO1L Kbktq7J7VSl4yK+NuBgQp8LDJx+Ji8SYkHtW2A6bPaQWyOuxCiSdMkqhfvIuMI9E+EkpS8E/yTs9Y 2z8TXzsg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l41KE-00021a-8T; Mon, 25 Jan 2021 12:50:34 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l41KB-000219-Ix for linux-arm-kernel@lists.infradead.org; Mon, 25 Jan 2021 12:50:32 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id D288122242; Mon, 25 Jan 2021 12:50:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611579030; bh=Mxhwg+UDKM8wuGIvGKD1s6VRf2UKfTSt1jkq1w6O030=; h=From:To:Cc:Subject:Date:From; b=H8ciKPeeEysLON81tT/e2uHWJvzVCLpZuUpTJbOFjQ/tokbNe45yK1zo/oD6z4NO/ 0pU82f2OSww8AjuQ/kQ6UAtSVO+A+21Ty1FGgZyH5nhZIzDuZ2V0WksokAjMDPhqFc 32XX7awtIvVZu2bLEBZekD4A00/zxpG2tu5ECi3StnfA+zaLdgv7rDDGt8HTcj4xVw SRnpZmheAnDIqdVmdIS97COHcEDe5Byj5A3nSr48wUQtjqHNmW5sfYzD0jWZNHpoBq 5oD1rvLbHLnwYGhnp9rye5y+H+tjWq2p9gfzslQ6RorM9gwQhLlzmd1XigRBbuB2D/ BqQK1XC6x7REg== From: Arnd Bergmann To: Alexander Potapenko , Marco Elver , Catalin Marinas , Will Deacon , Stephen Rothwell , Mike Rapoport , David Hildenbrand , Mark Rutland , Andrew Morton , Dmitry Vyukov , Jann Horn Subject: [PATCH] arm64: kfence: fix header inclusion Date: Mon, 25 Jan 2021 13:50:20 +0100 Message-Id: <20210125125025.102381-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210125_075031_730704_558D7A1A X-CRM114-Status: GOOD ( 13.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, kasan-dev@googlegroups.com, Arnd Bergmann , linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Arnd Bergmann Randconfig builds started warning about a missing function declaration after set_memory_valid() is moved to a new file: In file included from mm/kfence/core.c:26: arch/arm64/include/asm/kfence.h:17:2: error: implicit declaration of function 'set_memory_valid' [-Werror,-Wimplicit-function-declaration] Include the correct header again. Fixes: 9e18ec3cfabd ("set_memory: allow querying whether set_direct_map_*() is actually enabled") Fixes: 204555ff8bd6 ("arm64, kfence: enable KFENCE for ARM64") Signed-off-by: Arnd Bergmann Acked-by: Catalin Marinas --- arch/arm64/include/asm/kfence.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/kfence.h b/arch/arm64/include/asm/kfence.h index d061176d57ea..aa855c6a0ae6 100644 --- a/arch/arm64/include/asm/kfence.h +++ b/arch/arm64/include/asm/kfence.h @@ -8,7 +8,7 @@ #ifndef __ASM_KFENCE_H #define __ASM_KFENCE_H -#include +#include static inline bool arch_kfence_init_pool(void) { return true; }