Message ID | 20230704074357.233982-2-alexghiti@rivosinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1045283vqx; Tue, 4 Jul 2023 00:52:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlED14Nn3+RefnNSPqhNe+MNpzL2a2kE6Q67SiNe0dbjblbgIxoJjWeqpWtvDXwFDyXoXJRn X-Received: by 2002:a17:90a:f0c9:b0:256:857f:823d with SMTP id fa9-20020a17090af0c900b00256857f823dmr8937114pjb.48.1688457134543; Tue, 04 Jul 2023 00:52:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688457134; cv=none; d=google.com; s=arc-20160816; b=zBwqcijyzmz/SQPAhGCMfMRCmIVKTs3z/1zmRFNwRAdVR0IJjcDkgwGsQ3s2LMtwJz qLETdrrYdA9hZ7+RiQP4n838l7IZDXWb0WOsOy4Wr5xckbxiOCbyAL7gCgp2WG7jq+2z Mbq7t8YI6HUkaKgvxQq6Wr0CFk7GQ26Z//gOx+aiCX2Hnx/Iv8Tj5BVdW3/A4JUyQcmc pasQHlrZx8TZj4+oSunugYRvdX7dzauRjo8rjdcCSBNxF7QYi0OrAabVCgaIfLT4BjaR 7RcfFr9pdmFF1XWbLnJTi/Ww733z3cFWjTWK6i89x2VCodPDVulDDPOZD1RLyNGe22fS hyqA== 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:to:from :dkim-signature; bh=da1Ya2LZv3Pi8isMeSjt68UFYCIa9e30GSmEnk1v2WU=; fh=oUuWHtRXdl2pLIjz01E8JGLZlmXaVN4XvWpM/JVdRmE=; b=uFaThNOfhKY4QjDVk9/pjcgc6RSwUbC2qqpQwBWKA88gCcZz1IP7Jza5uS7OY38pBj MrsKYXRAPfPto30mZ0aDkJ1li3mxcy+1NASFYIaZjkI3x6GREwRTShwrpvJy//7vrxRi HMM+Rf2NBy/hV8NLgbptD5KQlpWYZpJXLzxLSwSc3p7DpJ7n9KScktGKM/D/5K0ggcf9 X+QUpMv+YtWjALVP4Rl4AcWNre5xXPHCbRP+vKSNevwD4WtVXnuOgNPP0wNX62YyrFCV DvMs+P+D8timsrpnldkfjWyrlJUhRxq3HKNiUHqcsdeFfr88EQA87xE96/3AO5QxZRJG O0Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=YBFkVrQU; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b6-20020a17090a9bc600b00262ec69bd80si17146523pjw.72.2023.07.04.00.52.00; Tue, 04 Jul 2023 00:52:14 -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=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=YBFkVrQU; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231535AbjGDHqF (ORCPT <rfc822;gnulinuxfreebsd@gmail.com> + 99 others); Tue, 4 Jul 2023 03:46:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230402AbjGDHpo (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 4 Jul 2023 03:45:44 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A703E170D for <linux-kernel@vger.kernel.org>; Tue, 4 Jul 2023 00:45:17 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-4fb9ae4cef6so8283731e87.3 for <linux-kernel@vger.kernel.org>; Tue, 04 Jul 2023 00:45:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1688456702; x=1691048702; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=da1Ya2LZv3Pi8isMeSjt68UFYCIa9e30GSmEnk1v2WU=; b=YBFkVrQUVuVXwwqDBTbaJzy2/t3gm5gTRh4YaK09x3g6uBEJPRDKE8NS/9McR10pkx P5AOrhmEQMhod+anbEHbGZuuS+GpFejHfrmbGZ41RL1pU+LGRMXu7nUNqFqNWewQd4sO kf6i9i039rdr8OPy05gX4wq3SCdopIoOXFYGZAUtqBPRk1EBV1J+MLJeFuncm1jilmjc utZRmxMCCJlnOUm5KNtQYNVWgPztKtInGKQo8hp1wH/eg97MVKRBmFL4q3dXk7UgVviq v4RixJpiBg7Jw1cubz5N39ErtAt7ZxQltLf0KWtnzrTXgo4PhZw9d8kS17eXR4rb7a7Y tiqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688456702; x=1691048702; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=da1Ya2LZv3Pi8isMeSjt68UFYCIa9e30GSmEnk1v2WU=; b=ckMxJfmGq0CU4RImDRyUBKowm0BxdjeEEXnHuGKKzyGOqZu1Sk05XN7L4Y03fG0JxL RXnDK/nRp3O8C15U7yFCoLyEvDROyOudghjQxcpCPSzA9lrXU3PH5MasQ8AzNTNkAABK aZz1R6W1y02huJGuPmvQXMySwjd4qmBHYZoLlUCfWu5G3wNSlWEJSWs3Bc3tH2InXmk4 wqXglZJqt3z3xd1lQctFjGkFZBNfj32tv4f2N99p8mtGJz7jD0SCrnbri8TD55KmZnq7 Fo2Pzq9Lr8BGLRsQ770kqmRFXtQmrYAvjmRqJ7fOeRdebSGtqJFcciSlCytOqGozB+yZ RQIg== X-Gm-Message-State: ABy/qLb2Kn2GwkshVsXUPmjz6SmwfEJay6yj4u5tRllgPNDBGZ300xVc G8x0x5UqWlLVJGifhbj0/cuLLg== X-Received: by 2002:ac2:4f0e:0:b0:4fb:8bea:f5f6 with SMTP id k14-20020ac24f0e000000b004fb8beaf5f6mr9893002lfr.34.1688456702503; Tue, 04 Jul 2023 00:45:02 -0700 (PDT) Received: from alex-rivos.ba.rivosinc.com ([93.23.105.195]) by smtp.gmail.com with ESMTPSA id a20-20020a05600c225400b003fbb06af219sm17455668wmm.32.2023.07.04.00.45.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jul 2023 00:45:02 -0700 (PDT) From: Alexandre Ghiti <alexghiti@rivosinc.com> To: Andrey Ryabinin <ryabinin.a.a@gmail.com>, Alexander Potapenko <glider@google.com>, Andrey Konovalov <andreyknvl@gmail.com>, Dmitry Vyukov <dvyukov@google.com>, Vincenzo Frascino <vincenzo.frascino@arm.com>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Alexandre Ghiti <alexghiti@rivosinc.com>, =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= <bjorn@rivosinc.com>, kasan-dev@googlegroups.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] riscv: Move create_tmp_mapping() to init sections Date: Tue, 4 Jul 2023 09:43:57 +0200 Message-Id: <20230704074357.233982-2-alexghiti@rivosinc.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230704074357.233982-1-alexghiti@rivosinc.com> References: <20230704074357.233982-1-alexghiti@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770475627887571427?= X-GMAIL-MSGID: =?utf-8?q?1770475627887571427?= |
Series |
[1/2] riscv: Mark KASAN tmp* page tables variables as static
|
|
Commit Message
Alexandre Ghiti
July 4, 2023, 7:43 a.m. UTC
This function is only used at boot time so mark it as __init.
Fixes: 96f9d4daf745 ("riscv: Rework kasan population functions")
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
---
arch/riscv/mm/kasan_init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/riscv/mm/kasan_init.c b/arch/riscv/mm/kasan_init.c index b88914741f3d..435e94a5b1bb 100644 --- a/arch/riscv/mm/kasan_init.c +++ b/arch/riscv/mm/kasan_init.c @@ -439,7 +439,7 @@ static void __init kasan_shallow_populate(void *start, void *end) kasan_shallow_populate_pgd(vaddr, vend); } -static void create_tmp_mapping(void) +static void __init create_tmp_mapping(void) { void *ptr; p4d_t *base_p4d;