From patchwork Mon Feb 1 19:43:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 12059961 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B34CCC433E6 for ; Mon, 1 Feb 2021 19:47:47 +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 685B964E54 for ; Mon, 1 Feb 2021 19:47:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 685B964E54 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.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:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:From:Subject:References:Mime-Version:Message-Id: In-Reply-To:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=7GPJFjh8dNeu21f1+hyjTZYonVzonAJtN3ccr+pjKYU=; b=PQP4z+kP9wFq2aIWOQS6+7RTM G+anYWVPVDtFpETYAy1zty5R4S5tMkHAAA5DwpTwcRjnQlCN7kaHCK1yW4XR2CQJ6DEqeROuOd2Jm KBgM0H66cLC5qLXXYyFOFVSnkNL1uAYKL6pz/o7yvbzySt+Tb/iVQ2PbqAiUW1wLiRkIwsjQpDeDO xIQyWyEUHUzvhhkouxxdbVGO5OmLWgHj02Y8osKWMtOBExqjRpnR1z+gOH+9YBOKt2KR9G0gdi6KK P4wVYuADIIr8VUVVkJj5Jt+WrsBUOIV7sq6GZTlU/gAS4cCm+tJrdNJlJnnS54MCQh6lP/3c4dbW7 MFgoTeTIA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6f9D-00034l-LC; Mon, 01 Feb 2021 19:46:07 +0000 Received: from mail-qt1-x849.google.com ([2607:f8b0:4864:20::849]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6f7M-00022Y-T4 for linux-arm-kernel@lists.infradead.org; Mon, 01 Feb 2021 19:44:16 +0000 Received: by mail-qt1-x849.google.com with SMTP id d1so11378788qtp.11 for ; Mon, 01 Feb 2021 11:44:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=9ElhXeWA9hrtQUSa92BHDv89rLolOBWVaEOaHObQHiY=; b=scCt97wjEnPKthR1OEsfg6XHzgS7EdRFiyeoCwu46hVwq5SF3m83dULHz0MWmmLGZl yY1Mcb/oHxqrO0CQyzz2RZvmAnQ0bHwXgancVwJ8Kf9cil1iktYwcALcUpt8omkBBHc3 kkd4KIyCpQULEzuHjoILesZuKjI3HCZjm6xFhHFB/41fKMgY+HzZ0fmHsvzGSo5PJQRd 1qzDE52vdQilfVBIZo6KxqHC32etk1l7O9n0C3A7cR60R+7EJMBESajOp8+nVQnDVT7t X0qHdKFBkQ62nf38KxTN6Kq6kGBIJL7HtiqGEajvgyY3xCf6RvAxjkhQOoK7XuBRQGSn QsVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=9ElhXeWA9hrtQUSa92BHDv89rLolOBWVaEOaHObQHiY=; b=SIu3gONEa2eBuWKnKJbhub6aCidtlkEt8l6zkotgc9sp4NAPZ1Ttzo794mvm5ddO3q O20lY1jbfUELsST7mQK73UVKsE0kNyYy7M55g5fma+b14UKsSzDgbsLWIL/QKzsc5K75 t6xcBCWSl6nhb5ncC6Dgx6yVMa3f4c81L4pQNubeCMM3g8DO+jf0IqkUGpaMpnDgruPL yFBSQdxjtUVYi+ARLX0rCdbCi1R7Y2P1PQ6tkJ8/1kIChUyU+ZTSlCXel9B46PmsjZvu Q7YT/0efcQDqcyM+N22NjMfl8Cv93mAE9jNIYwpzOCu6WJOQDgh7Eu5YHgnBvwvnjB3d wPFg== X-Gm-Message-State: AOAM533/IPum3g8LTZW1jVZMqkZlLWDqItnC3c1Yk+WOn4C3k0Tr1QFu aTpvLtbhb98uFI5Pqek59azh5job0D2ulFch X-Google-Smtp-Source: ABdhPJyGsScV89G9MAWMKyK7rBzUxlUepSEM9x8u78kzqVlPK95BXbpBATuTGNJidQ0HrKqL6DgEfGQHE22rUIOh X-Received: from andreyknvl3.muc.corp.google.com ([2a00:79e0:15:13:7220:84ff:fe09:7e9d]) (user=andreyknvl job=sendgmr) by 2002:a05:6214:11ab:: with SMTP id u11mr16841497qvv.17.1612208648056; Mon, 01 Feb 2021 11:44:08 -0800 (PST) Date: Mon, 1 Feb 2021 20:43:36 +0100 In-Reply-To: Message-Id: Mime-Version: 1.0 References: X-Mailer: git-send-email 2.30.0.365.g02bc693789-goog Subject: [PATCH 12/12] arm64: kasan: export MTE symbols for KASAN tests From: Andrey Konovalov To: Catalin Marinas , Vincenzo Frascino , Dmitry Vyukov , Alexander Potapenko , Marco Elver X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210201_144413_155466_26B707C6 X-CRM114-Status: GOOD ( 11.19 ) 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: Branislav Rankov , Andrey Konovalov , Kevin Brodsky , Will Deacon , linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, Andrey Ryabinin , Andrew Morton , Peter Collingbourne , Evgenii Stepanov Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Export mte_enable_kernel() and mte_set_report_once() to fix: ERROR: modpost: "mte_enable_kernel" [lib/test_kasan.ko] undefined! ERROR: modpost: "mte_set_report_once" [lib/test_kasan.ko] undefined! Signed-off-by: Andrey Konovalov Acked-by: Catalin Marinas --- arch/arm64/kernel/mte.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/kernel/mte.c b/arch/arm64/kernel/mte.c index 8b27b70e1aac..2c91bd288ea4 100644 --- a/arch/arm64/kernel/mte.c +++ b/arch/arm64/kernel/mte.c @@ -120,6 +120,7 @@ void mte_enable_kernel_sync(void) { __mte_enable_kernel("synchronous", SCTLR_ELx_TCF_SYNC); } +EXPORT_SYMBOL(mte_enable_kernel_sync); void mte_enable_kernel_async(void) { @@ -130,6 +131,7 @@ void mte_set_report_once(bool state) { WRITE_ONCE(report_fault_once, state); } +EXPORT_SYMBOL(mte_set_report_once); bool mte_report_once(void) {