Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3384250pxb; Mon, 25 Jan 2021 14:51:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJzva12VcyuzU6BQoU2szMVkr+AQ6zjBsuAAzxxk4Rt/H5Ca3rkRTTD2ZKTRU1Myxj3zc7Pn X-Received: by 2002:a17:906:70d4:: with SMTP id g20mr1754422ejk.361.1611615102106; Mon, 25 Jan 2021 14:51:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611615102; cv=none; d=google.com; s=arc-20160816; b=YUu5iprzM7E5RNtE+FSww9DKAUjjgi7obDE6c9UJvaP5nTjlNpumbwUuJT/izbi3cz nWOInJ3XgxzN0zAyRr13Jkm9UDvn6BTpXCvEhtII9IjqaQsdM6XWxfFhXvOLyxsT1hLg MUPT6MPowV+Y5IG6zi5/Eg04OP2ifct/WM9qsI/XRPGAzEmqvRRl0+HGjSz14AgAEfXR Is+BJQctK9FFKq9YEbgJqgHnDgUcsHOZRmm2Tm4uoSBrqeMtnXxCzPATFwb4ExHLe1Iu lowfLhSnnRbpkKXKWCRgttoWzBkD5r4Z1j0iBCEdlBqarem/cFaRma9i5Ha5P9RZrM1G +WPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=dGbdIqt2CWXQblr7ptN63u8WPXbmTGjT8RbSYzvYITk=; b=n6ZomlF+xCvrqLm3/rtQiaHktFTPaFH0+ZhxTIfj7u5RLir63UjsvDFpnaI+3LaXmt ZCfLo13tm8FhZg0KdH0wXZX7xdg2o2Cg6/cD3mLnnfym2hDEfhF7d2ulnjkOZ/WPhzGp ReYYQ0tamh/OR4jd1X4LgNeabm63VgZTsDKSoVYB7DUTvCCoKycywwq39qkZyBxUO7It eX9DpTXn82EZBI6uIvluMI4jFhyN66mch7hkW7vZE+8OAk2uqMmHeHbQD1wUqRY9y6OM R1SrC4ZG9+KkxfBTEaeUbu3xBqqrb/QyvrlB6nBBieLjxsNJ2NuYkZz4L9t5kkFtEQ/6 nsZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=WJx98ur0; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z16si7771420edr.329.2021.01.25.14.51.17; Mon, 25 Jan 2021 14:51:42 -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=@linux-foundation.org header.s=korg header.b=WJx98ur0; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732814AbhAYWra (ORCPT + 99 others); Mon, 25 Jan 2021 17:47:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:57460 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732773AbhAYWqZ (ORCPT ); Mon, 25 Jan 2021 17:46:25 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id C8ECF221E7; Mon, 25 Jan 2021 22:45:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1611614737; bh=YCaeAwfzY25KrbGYNz7RDomLYi8Q+7EPQfK8l7udhMk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=WJx98ur0n4TlQUVCNMFhPsP7M/XNiVJbGcCmbPbWK3DBXVDYt9vesfxTRU7O57njm bYl/670ukflbJM+CAJd1b+q4jj6XjfQqUCtGE8fz+yhy28Pg4R073R49y4XZ/uvMFG Vivz8g4LOITPnj1+gm1qw4qRkqn1DJVLP/LctPhU= Date: Mon, 25 Jan 2021 14:45:36 -0800 From: Andrew Morton To: Marco Elver Cc: Anders Roxell , glider@google.com, dvyukov@google.com, catalin.marinas@arm.com, will@kernel.org, kasan-dev@googlegroups.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, rppt@kernel.org, david@redhat.com Subject: Re: [PATCH] kfence: fix implicit function declaration Message-Id: <20210125144536.4544d9fca3b4cda8a6e42517@linux-foundation.org> In-Reply-To: References: <20201204121804.1532849-1-anders.roxell@linaro.org> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 4 Dec 2020 13:38:25 +0100 Marco Elver wrote: > On Fri, Dec 04, 2020 at 01:18PM +0100, Anders Roxell wrote: > > 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 ‘kfence_protect_page’: > > arch/arm64/include/asm/kfence.h:12:2: error: implicit declaration of function ‘set_memory_valid’ [-Werror=implicit-function-declaration] > > 12 | set_memory_valid(addr, 1, !protect); > > | ^~~~~~~~~~~~~~~~ > > > > Use the correct include both > > f2b7c491916d ("set_memory: allow querying whether set_direct_map_*() is actually enabled") > > and 4c4c75881536 ("arm64, kfence: enable KFENCE for ARM64") went in the > > Note that -mm does not have stable commit hashes. > > > same day via different trees. > > > > Signed-off-by: Anders Roxell > > --- > > Ack, we need this patch somewhere but we should probably fix the patch > that does the move, otherwise we'll have a build-broken kernel still. > > > 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") > > I don't think that's the right way around. This would result in a > build-broken commit point as well. > > Looking at current -next, I see that "set_memory: allow querying whether > set_direct_map_*() is actually enabled" is after "arm64, kfence: enable > KFENCE for ARM64". > > I think the patch that introduces set_memory.h for arm64 simply needs to > squash in this patch (assuming the order is retained as-is in -mm). > OK, I requeued this patch as set_memory-allow-querying-whether-set_direct_map_-is-actually-enabled-fix.patch, part of Mike's secretmem patch series.