From patchwork Tue May 16 16:06:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 94792 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp542833vqo; Tue, 16 May 2023 09:10:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5xkrDzOZvgWQLUM4K5eLHTlJl20DXuXmNefJ9Lhec+yAzpT994M+PgwzGaQX4ArfOPqfSD X-Received: by 2002:a05:6870:90c7:b0:18f:1113:c6be with SMTP id s7-20020a05687090c700b0018f1113c6bemr14575200oab.11.1684253448620; Tue, 16 May 2023 09:10:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684253448; cv=none; d=google.com; s=arc-20160816; b=pEMKu2fihOB8QugXktc0hjJDJ/ok0BmIVWoi2PwxQBKYawY2Iu2fJ6ZXERf5oM/Vpd 8Qw6xh5bKzG3rPL0nG50yOeII0ss0eXBx2YzelhK0UrE/AbIrLFDV4cXiX1spublvcDy VvwdqzfpzWBnx0vhiRRxrF9KYQ81IeV2BqXhxpERtR+cTe2vk6270nD80Mfv0S1i5pJf jJ173Cw9i2l9vOvRoSsQl0Q80lejUrsoTKneBcti3vH4ZJJvAIhMwmXFDoej8bTTyTZV XEO378puN7+2tr+TPHE+Lt8TIRv57zwLCiknTLJI1jsUaxdGuAG2sQRAsNxymBJ2PIBz P3EA== 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:date:subject:cc:to:from :dkim-signature; bh=LadwUllIOaKKqvy95YUphwzcQCspJO/68KiLJnQpF/Q=; b=YYSbZ9KcgQf4FDuPyrPJi3x7Qp4/sZVb1CVWjXUZxpjqof06ISwwSi6Fq0XII5YHCo VT1YyeskDFmYH/8RianeKSbt2gDaJ6u8SivNFOqesTk8kaUnWJ2SsYOjS34YExR3j/Cw UR4bvTT+QQBHSzvo3pLbtLxPS4hkhf5UWk9yJpOT+GJ/3BjpTUjKSHI7eGEPy1M7RO3q Z5tNF6Xh601m1l3fyrTb0tkQyp9e4gg9sNfQpfSQ+nsnCGUnbhNXMnGO/89fOUjC3XOD 2kgx7VyD+/o/kAEZwPwm7jy1yylfqk9lpXjqwhIzaY8aB31cIVWEYkh+zr1lJB/F7d4g zlkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uwck9pxe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s8-20020a056830438800b006aca17571dfsi6404869otv.45.2023.05.16.09.10.34; Tue, 16 May 2023 09:10:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uwck9pxe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234489AbjEPQIh (ORCPT + 99 others); Tue, 16 May 2023 12:08:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234462AbjEPQIL (ORCPT ); Tue, 16 May 2023 12:08:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70712869A; Tue, 16 May 2023 09:07:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9466D632E4; Tue, 16 May 2023 16:07:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B98AC4339E; Tue, 16 May 2023 16:07:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684253265; bh=UcWVdIx6eUNRqB58lvyqa00FuN14YMlQl7kvQIYp62I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uwck9pxebUmJ5elwV8JbBowvzYFpqDcwvO+VjLC6ovtT5Zh8jbQn59jRACTo+f4Y/ 7l0M8zxg2Np+BaiSbNSH14j2nYQP/XRbMAn93yj7xQ3SkvKIuntJt8KoZfrVTT9IU/ MrUn/2xa8+GbgCJmL4EeOBlFYppKePkdIq+DGQVbhNF9sV3i3DvsgPCXWTSQ3132uP U9qPFdkImKIqjVSrHZY9q2gitN64HJoDSwj18p/c6zu6y7Xt91mTG1f26mBIVvC4MW BwCIVuj2VVBxhDnJK+je2EjtBEQR6sCFizppprMVkDM36HeKFb3xDDRpH89RmhM2hJ Ps4L3KXuhyDNw== From: Arnd Bergmann To: Catalin Marinas , Will Deacon Cc: Arnd Bergmann , Ard Biesheuvel , Mark Rutland , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Anshuman Khandual , Kees Cook , Suren Baghdasaryan , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, kvmarm@lists.linux.dev Subject: [PATCH 12/15] arm64: kaslr: add kaslr_early_init() declaration Date: Tue, 16 May 2023 18:06:39 +0200 Message-Id: <20230516160642.523862-13-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230516160642.523862-1-arnd@kernel.org> References: <20230516160642.523862-1-arnd@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766067743870690718?= X-GMAIL-MSGID: =?utf-8?q?1766067743870690718?= From: Arnd Bergmann kaslr_early_init() is called from assembler code and does not need a declaration to work, but adding one anyway shuts up this W=1 warning: arch/arm64/kernel/pi/kaslr_early.c:88:16: error: no previous prototype for 'kaslr_early_init' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann --- arch/arm64/include/asm/archrandom.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/include/asm/archrandom.h b/arch/arm64/include/asm/archrandom.h index 2f5f3da34782..b0abc64f86b0 100644 --- a/arch/arm64/include/asm/archrandom.h +++ b/arch/arm64/include/asm/archrandom.h @@ -129,4 +129,6 @@ static inline bool __init __early_cpu_has_rndr(void) return (ftr >> ID_AA64ISAR0_EL1_RNDR_SHIFT) & 0xf; } +u64 kaslr_early_init(void *fdt); + #endif /* _ASM_ARCHRANDOM_H */