Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2376095rda; Wed, 25 Oct 2023 00:20:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGrXB+tJ/MmEcomxOSMQ6SVHdjpeA2zi1e0BX8MdVzWQD2/cfMxUc3CFRXsxmNWTFCU6th1 X-Received: by 2002:a0d:d5cb:0:b0:5a7:e3f9:a1fb with SMTP id x194-20020a0dd5cb000000b005a7e3f9a1fbmr15798122ywd.42.1698218408079; Wed, 25 Oct 2023 00:20:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698218408; cv=none; d=google.com; s=arc-20160816; b=dRas7jphWdzORzVCSEhNr0Ovo6R+DpppBUgDc4aimUYE21wEmkUGeiIxFwYWI01lZn YpMPGveeh5I91eopIK5kvSYNWH6Ep8cSQQ4Mv1h4iIYNJYeezyrPftZho43BLGTtrpQ8 JhqUOkTYJbBDATTF55vCfsqNwrLJD9z7q4BKXnE77DXEPTglfTkYnafRt2h6M1RNScl4 zS/oIoX0CLJMuX9UqIgvVBLPy1YrC6TcjBkYYBsOl4/pdVWNLUGe8EZouVURmmzVLxbF I3tqfFoHZOsLSC3OLWpzlP+bN43a609S2uMSCmdI/dWVQDL0enHRYCoxh3wOvHlrxtX7 OVpw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=vmv2xaN3QXy/TcB2Hwd3sZ2tBZVcuZW4MBclh8XkGJY=; fh=tSxhzcUNOKywWJ3afW+9+Fxiu3qTasSEbPMMtqeFUsU=; b=p5wYX75nG62Ox57sE3Dk+uRkc6YrQFp8yBQsAsCXi960uNLPGN5FQK1dxpsnGVSLOC 9Y2xE8bNDg4dPfWRy5ZjFYSPsrimGYbAZfOWV+kQLtzV8XU6xq3aZujwESfhuEiOA+qD NuBo3RUcJAO5o3yqabrcR2wyuSeNkQkur4TUdWSnMkFsBtSqq8e4tCQbjmlirpugOXLx KP/f+HQElQPV17xJo+XPZXwdGgnJuYv7D45VrOGRNFKKLXpHT+UmjKVFFlgbj+7I/94k lD//T9M/n04HEzs5n/PSWpX3yazsakofQS+QEFJNalNG8qRGnZRixx81qyFpDyWJycDa n5jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=M5Yq2sr0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id d65-20020a814f44000000b005a7ba289d95si10496085ywb.50.2023.10.25.00.20.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 00:20:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=M5Yq2sr0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id AC4BA80321E8; Wed, 25 Oct 2023 00:20:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232584AbjJYHTx (ORCPT + 99 others); Wed, 25 Oct 2023 03:19:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232654AbjJYHTu (ORCPT ); Wed, 25 Oct 2023 03:19:50 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1379137 for ; Wed, 25 Oct 2023 00:19:47 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3925C433C7; Wed, 25 Oct 2023 07:19:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698218387; bh=l5SLShQsxwI3OqVim20c6BSlmvdMyEKaxlcFl0STH/8=; h=From:To:Cc:Subject:Date:From; b=M5Yq2sr0PHpnp602mMGLHAbm14Rd5wFt2fZAOPLTd91Euf+ayhrmZ8wcB8mFgbBxO St5R+bw0ZBUp7bFaGpmwg4BuwMdYGw3rd0J6EgweCWSF0JOZ+Ct3Zok9WdanyHgf5v qk1SohHqgbcrLcpwNsv7s4GnRJ69krUxlLGGlrHu+a0lDfm4JXkQYG/4ClekVc5uOL s4CRnktXzT+WX6TkYYKSEUaPlNc1fhmeUD/Mj8qkhjD+ZZtwFbqebeeY1fuei44lEi hg5sqCrmkuaDdn5QPkGrESQj2fDIIahYR9NLjEvL7olSlL5/DztmD2YFoTLZWeMPGq txXW+ew8SZSMA== From: Arnd Bergmann To: Catalin Marinas , Will Deacon , Ard Biesheuvel Cc: Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: pi: add early_map_kernel prototype Date: Wed, 25 Oct 2023 09:19:31 +0200 Message-Id: <20231025071942.2879030-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 25 Oct 2023 00:20:05 -0700 (PDT) From: Arnd Bergmann The newly added function only has a caller from assembler code, so it works without an extern prototype, but we get a warning if it's missing: arch/arm64/kernel/pi/map_kernel.c:224:24: error: no previous prototype for 'early_map_kernel' [-Werror=missing-prototypes] Fixes: 478ea5689054 ("arm64: head: Move early kernel mapping routines into C code") Signed-off-by: Arnd Bergmann --- arch/arm64/kernel/pi/pi.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/kernel/pi/pi.h b/arch/arm64/kernel/pi/pi.h index 93d7457dd10d..c07eea032b7e 100644 --- a/arch/arm64/kernel/pi/pi.h +++ b/arch/arm64/kernel/pi/pi.h @@ -28,3 +28,5 @@ void map_range(u64 *pgd, u64 start, u64 end, u64 pa, pgprot_t prot, int level, pte_t *tbl, bool may_use_cont, u64 va_offset); asmlinkage u64 create_init_idmap(pgd_t *pgd, pteval_t clrmask); + +asmlinkage void early_map_kernel(u64 boot_status, void *fdt); -- 2.39.2