From patchwork Thu Aug 6 13:58:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qian Cai X-Patchwork-Id: 11703423 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B01AA138A for ; Thu, 6 Aug 2020 13:59:31 +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 BE85D23121 for ; Thu, 6 Aug 2020 13:59:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="dKYt64vL"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=lca.pw header.i=@lca.pw header.b="pXQv1rb1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BE85D23121 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lca.pw Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.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:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id: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=4zwZ7f75wVVSqhbF51VOrahbuy1ghFH3rn1qhbjm65s=; b=dKYt64vLmJ8CzAydlTR8urcblq Zo9DMtmBT3kE2avmIoScarU6FNFDzeGxys57VaUaT+NpMhDI9iDeZSpeVDjwIA6SOIvNEiWaVNY7V GLdviko0UuDOjweFlFyvMGnS/QlFUmIUvyfUjHK00EOBLi/G2kSzor+5W8p1SbgXv+DMz7AmSm+qU DfXz2QpPHVeDoCBEEeU4PPT1Zv2AkqNEOSjUDUR+h+H2NqXxzmhqc6Bgur0BzSdmeRBmPw/qbGiMo aKOTDCnzohjfL8372RyRN+aFN9kS+SGq8Vdgh1dDYXPtYepCNpqmoVKhRqj/7HLZIN0wtmYs4Mgrx hIUZoMTg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k3gQQ-00008n-Fx; Thu, 06 Aug 2020 13:59:18 +0000 Received: from mail-qv1-xf44.google.com ([2607:f8b0:4864:20::f44]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k3gQO-00008H-Bg for linux-arm-kernel@lists.infradead.org; Thu, 06 Aug 2020 13:59:17 +0000 Received: by mail-qv1-xf44.google.com with SMTP id y11so19440004qvl.4 for ; Thu, 06 Aug 2020 06:59:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=from:to:cc:subject:date:message-id; bh=aDhJ3BwsHEwEzPKPkJxFBX4MNurIU5lO4LLSrBoplxs=; b=pXQv1rb1LDMT9p5PJKkN34fCIy1Nuuyoj0JXb3dtmNH2cYyfiVSD29lea9Qm6P09OM 69lJrSspkIqY4nar32A/byyQSbLt2PndQGSD67O0bv4UWATkrowXoLo5TziSpMTc1suy XrTYTDszMCn/26jfkCmkQn0b4AOEH/9Y/MCYs8dnvafufaVE8CAK+LYCSDg/MN9RLYp3 MXK8H/k8lbl6s0KHZLek+gFJw7vKxecHM7L7XwSCvuMpDQoaOHiuQRE742w8cpj/D0I4 tlbAxj8WHqGCBSxuqUrIBpl3RvhdSNa/fQqptXS3Vj7BkdFIHq/FgcZo5N3/KwjokQTs gYpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=aDhJ3BwsHEwEzPKPkJxFBX4MNurIU5lO4LLSrBoplxs=; b=b9/kqJOjPILqPL4bpvIswElrxgDtcAQh3CakRsLvKzm16TfvrCyBIaRhpdi0AUGsPg kxq0n5k9pZfD9oDpaJ96EfOKLQhN6HhQr9C6UxV1b+TDhJxjS9xf7lDhiGj8ZFM4uQPm /ZqBkBV/QLvCyUz8tmnOcLv+Jyia5rBT/MsvbjTqzz7m0Qy20dWExhS9m5RLQM4fwZE2 OatkoKi/3CgI1sNQsQ7b60mYTQmUvINOeKUuhsYAZ4JfVp/QwpiQJ5+LAR+X7tlZ92gX RjNu9korc/dcNEBIwuDNF1Cbg0W3OzwHhYaC542PGDtKsB58a2eWsqqIMK82OgoULAik I5Xg== X-Gm-Message-State: AOAM531UrqkkN2CurNE74YuletSKkE4zzZhWoC91bB4TKDGqVMJ/OY/Z jPxXBow4tJmfKiecV29qgE6wuQ== X-Google-Smtp-Source: ABdhPJzFT3bBn7kvSmKrN3dp/BXM9RBI6m1pRrSjKba4KzSAlrw7TW+cwxJLIBiJb6w/1qG7dlkDyg== X-Received: by 2002:a0c:b60d:: with SMTP id f13mr6793580qve.38.1596722352707; Thu, 06 Aug 2020 06:59:12 -0700 (PDT) Received: from localhost.localdomain.com (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id r6sm4489285qkc.43.2020.08.06.06.59.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Aug 2020 06:59:11 -0700 (PDT) From: Qian Cai To: torvalds@linux-foundation.org Subject: [PATCH] random: fix a compilation error on arm64 Date: Thu, 6 Aug 2020 09:58:36 -0400 Message-Id: <20200806135836.31736-1-cai@lca.pw> X-Mailer: git-send-email 2.18.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200806_095916_500548_513D33CB X-CRM114-Status: GOOD ( 11.80 ) X-Spam-Score: 1.5 (+) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (1.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:f44 listed in] [list.dnswl.org] 1.7 URIBL_BLACK Contains an URL listed in the URIBL blacklist [URIs: lca.pw] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 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: daniel.diaz@linaro.org, tytso@mit.edu, catalin.marinas@arm.com, linux-kernel@vger.kernel.org, Qian Cai , linux@roeck-us.net, will@kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org linux-next failed to compile using this .config, https://gitlab.com/cailca/linux-mm/-/blob/master/arm64.config arch/arm64/kernel/kaslr.c: In function 'kaslr_early_init': arch/arm64/kernel/kaslr.c:128:6: error: implicit declaration of function '__early_cpu_has_rndr'; did you mean '__early_pfn_to_nid'? [-Werror=implicit-function-declaration] if (__early_cpu_has_rndr()) { ^~~~~~~~~~~~~~~~~~~~ __early_pfn_to_nid arch/arm64/kernel/kaslr.c:131:7: error: implicit declaration of function '__arm64_rndr' [-Werror=implicit-function-declaration] if (__arm64_rndr(&raw)) ^~~~~~~~~~~~ cc1: some warnings being treated as errors Fixes: 585524081ecd ("random: random.h should include archrandom.h, not the other way around") Signed-off-by: Qian Cai Reported-by: kernel test robot Reported-by: kernel test robot --- include/linux/random.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/random.h b/include/linux/random.h index f45b8be3e3c4..da782c16c20c 100644 --- a/include/linux/random.h +++ b/include/linux/random.h @@ -12,6 +12,8 @@ #include #include +#include + #include struct random_ready_callback {