Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp331905pxu; Fri, 4 Dec 2020 04:34:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJztwUDnsyKoI1EKqJPww2G1eTMgpvgODNphPvEIRoGxNFnXnCW+XP4aZ5YiQkr5ubsQJOO/ X-Received: by 2002:a17:907:2179:: with SMTP id rl25mr6731731ejb.470.1607085257204; Fri, 04 Dec 2020 04:34:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607085257; cv=none; d=google.com; s=arc-20160816; b=wUXxcRjoI5bgSh0evi7YrQ9//OHXesJrKbBxWOxlT1JamLCkt6f9lyGyWr8/LMnTzz +5RUWNZPvMg5VM/ef1urTMq3NdQcQPpaw8aR/HHHxGhDy5gUr367nH11uKRuC31OFuA7 YelJ8ehyYXBGiPL65/gT9fa2ajf71cY152qn2cRJTqeP4ql6fyfbth+SMnJK/2JhIuwr zzNlauFmEgOVlxmg9AelO8zsWi476BmPUZD2Wy6ma0NYO3sOjRIwJVbj1Eni5wnBXg4h ZUnePbYtMBONgnfXTPbKw1LXh/RNjR6cB/ANEZtxm4WEgFpXKLG6CcmSxClM+K4Qv3EJ 7pgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=E+yzFXIW/SQF93FksrpbqqTewefE+vrapU8Z3tg/OfY=; b=ssdykVJp50Lsn7T4S6Fu4zwU4AK43xL8hc3YqSorAMMlnckzSYONgPZUnfF0vaLLQa cW+sUc45cwcLGIN453UTHMi+3y7hBP1vNGwcZ6HEcPIOk+s3UbynRINPm++E/pD0XLgT k3/ebIU6sSFWyvwde69o30KDSRZM59hQtVrfeRchjBxUxjBB/AgJIRj9DCShVo0/DbJg QVmmSJpqxQdcFCp/+S2zZA3n+MMabgDKZ2AQG6oJDKxz0hcTuhWcui+np7TyNzfqoEot rttWSXll/FmkuGKQ/Q/DLMnlr9RbUj0e+ybX6k9iSDWTwqZEX9Ypd6UKlwuwbZvMlwHe w4ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="vQyupD/h"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hs7si1553623ejc.342.2020.12.04.04.33.51; Fri, 04 Dec 2020 04:34:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="vQyupD/h"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728780AbgLDMaB (ORCPT + 99 others); Fri, 4 Dec 2020 07:30:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725867AbgLDM37 (ORCPT ); Fri, 4 Dec 2020 07:29:59 -0500 Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75A94C0613D1 for ; Fri, 4 Dec 2020 04:29:13 -0800 (PST) Received: by mail-qt1-x841.google.com with SMTP id o1so3730172qtp.5 for ; Fri, 04 Dec 2020 04:29:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=E+yzFXIW/SQF93FksrpbqqTewefE+vrapU8Z3tg/OfY=; b=vQyupD/hnfpF1w+LBmivJCLJbF/uyr95MEQGWWFEUS55KnvlgBibrZJ5tV2uofztNP 9wEffK+/5P3iYW5hKwx3rmO1TTRcvSS2j/fNq2BkP6tGhz/wbai7GjeJyRrRHEfxJMTz XfAoPoI9tKsoOB+uZdAdLQUToK/GXFYqOXIkGw06uZKp0mAtTtcuK9shfdwjGZik7bWB 76EPD7uyiW9hOTbMBXV3I/ZrnG+ZhvzGjupfzeAlSnQnTz9DZg/okSUa7uAdxRZCOnYD OWEiTm/bAebMah9fe/BmfT8emf8SaKenWSF7e2+15ZBr3Af4Vm6rHqmPFRTnycqqwE3p V26g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=E+yzFXIW/SQF93FksrpbqqTewefE+vrapU8Z3tg/OfY=; b=qjtsmSRVuXiWv9F5Dx9QTPbTeLmQ2ba+kaiyKP1jVH4AjjAb1NcEiDjcViF327W49F msbpCIPjDYgBOsRBeLXPpLwGYJQEAPTPaVwVgzSbaguZ5AFp1wbSFKZzGcRgj/PiOc63 OCKAmFhb3D8Uw0sORdZh8Ljbyzg05+3mMlDh8bMb4AcjoGROW7vYS/pmfFm7EH5H4VHA hRNNV+X2FXCqZUg6c9I+MNmbxEME9KFrpd7F7Nw/2QpWL+Iu1I4IqbWF4pzbZqWhaWHm iXHn0mxWo8qDGLgzg1hwcw8UfcPSlwCorDr6Lui82QGLDbnk+TxTswW+5J/qxSwIgbTv JHew== X-Gm-Message-State: AOAM531PsMAwXh4Anfvr/o5Ckm6EVhOyxWklpTwi9h98BXezQdedHy9o WN4QNQnRs4bfYdT+k+R15XB/iaLNuqDkc/jX5A7rDQ== X-Received: by 2002:ac8:4c89:: with SMTP id j9mr8912771qtv.8.1607084952474; Fri, 04 Dec 2020 04:29:12 -0800 (PST) MIME-Version: 1.0 References: <20201204121804.1532849-1-anders.roxell@linaro.org> In-Reply-To: <20201204121804.1532849-1-anders.roxell@linaro.org> From: Alexander Potapenko Date: Fri, 4 Dec 2020 13:29:01 +0100 Message-ID: Subject: Re: [PATCH] kfence: fix implicit function declaration To: Anders Roxell Cc: Andrew Morton , Marco Elver , Dmitriy Vyukov , Catalin Marinas , Will Deacon , kasan-dev , Linux ARM , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 4, 2020 at 1:18 PM Anders Roxell wro= te: > > When building kfence the following error shows up: > > In file included from mm/kfence/report.c:13: > arch/arm64/include/asm/kfence.h: In function =E2=80=98kfence_protect_page= =E2=80=99: > arch/arm64/include/asm/kfence.h:12:2: error: implicit declaration of func= tion =E2=80=98set_memory_valid=E2=80=99 [-Werror=3Dimplicit-function-declar= ation] > 12 | set_memory_valid(addr, 1, !protect); > | ^~~~~~~~~~~~~~~~ > > Use the correct include both > f2b7c491916d ("set_memory: allow querying whether set_direct_map_*() is a= ctually enabled") > and 4c4c75881536 ("arm64, kfence: enable KFENCE for ARM64") went in the > same day via different trees. > > Signed-off-by: Anders Roxell Reviewed-by: Alexander Potapenko Thanks! > --- > > I got this build error in todays next-20201204. > Andrew, since both patches are in your -mm tree, I think this can be > folded into 4c4c75881536 ("arm64, kfence: enable KFENCE for ARM64") > > 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/kfe= nce.h > index 6c0afeeab635..c44bb368a810 100644 > --- a/arch/arm64/include/asm/kfence.h > +++ b/arch/arm64/include/asm/kfence.h > @@ -3,7 +3,7 @@ > #ifndef __ASM_KFENCE_H > #define __ASM_KFENCE_H > > -#include > +#include > > static inline bool arch_kfence_init_pool(void) { return true; } > > -- > 2.29.2 > --=20 Alexander Potapenko Software Engineer Google Germany GmbH Erika-Mann-Stra=C3=9Fe, 33 80636 M=C3=BCnchen Gesch=C3=A4ftsf=C3=BChrer: Paul Manicle, Halimah DeLaine Prado Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg