From patchwork Fri Feb 5 15:39:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 12070397 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 4BD40C433DB for ; Fri, 5 Feb 2021 15:42:11 +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 DCEDE650EC for ; Fri, 5 Feb 2021 15:42:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DCEDE650EC 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=UdpYc+4ZJjOvyS1G/qhiEkiFjScSKb8x4fH9yfxfgKA=; b=rt5236vrG3RqGKMtX/d/c38cA +DqEsBBqNv3MoVQCgCJtw6XXxt8El1M20f8WFCpvTFUyNJWm7ph4d3XDmpw4AEuBJXMT4Sl/C+eYV IcJGrQSSaqc06D9Xck+oqGitPmi/xFq+AZ2IN6ovfC9f805y3OY/Mo+uJIrktELU5ncCuK3EZ+4O1 WCTmkYqYX1H9y4aJTbVFBbNnpkxpnkOb7EehBBnKivkqX5nYCtuMlAeB9uTbe02rBuLB4PJ8pjWaH nxKo0gvNz0tYXjXdNKkGZ2uL/zBMmzO8oiaRHzxtgvGlZg6OEy+rsJFsWOa/iLUa9NSuJljQ+84CC Cg/1U0nyA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l83E6-0008S4-Fo; Fri, 05 Feb 2021 15:40:54 +0000 Received: from mail-yb1-xb4a.google.com ([2607:f8b0:4864:20::b4a]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l83D6-0007uH-1G for linux-arm-kernel@lists.infradead.org; Fri, 05 Feb 2021 15:39:53 +0000 Received: by mail-yb1-xb4a.google.com with SMTP id i2so7488716ybl.16 for ; Fri, 05 Feb 2021 07:39:48 -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=jIaeLYAzRLuX+Bh9Y7uHrxQjgj3fqKxlpOgYc1EJ990=; b=gxafKVSjEdKfMi+epPlKRwmPrE34Nz4U8OjnRmWLqqm/8o7BQY8xx3KC3dFp6fPjPM X8HZGZ/5/LtXi1oLUzN0En3X9lftRUQVYepeq7RfrreRHKD+M+CgmYBRIJ8FpM+UXumV i6aWJhkv95qOmweLBQxRdIOcKg/8FbF/eBHX9Nor/DJ/znPBx2YZn9KDxaX2IacPF/SX x+Bb1Gmu+ncxDnZCkIpsy4Wldr5IUHQSvvG098nSFiYpcXLPRwA7OcKMnHExKNt+p0hU 6FvKas1BFmtYRhe6iDn9Q5RBGWWmZ6gZiyVg4yIVYUC1Y1IDOw9TJ0q9t8wyb9Sy536H vgGQ== 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=jIaeLYAzRLuX+Bh9Y7uHrxQjgj3fqKxlpOgYc1EJ990=; b=ZGeA74IV5vxWJE+yjwd7MQ4cyo4WiM3mrBZ3I8GHiIZ12twFIEK9SKT9Eudch/zZ7k rVw4Ms/Sl9gdNoo43nrcJtlp4nqzZvSxmRe8TCSu+KBltjJa+Nr3IIHTgMZz4Ps6ns4K y02GMQpaae5vLumf8+uawcNLzRBjX4o8kGXj859Yh8SMZ49TCoHnDKiiXjmADnYV4s+d YZz8EBysJu+pv7F+owBw9XYuYgZU6yExVyPVlKYkelOM4x/4IKIxxxqa8lFL/mTBBMoZ 2DaFwrWRHKS+UU6pHYdCLtchwymKuTYW6hcfF1/gjflnumc4IjtBDSHJczrOsYQ555hd y7Uw== X-Gm-Message-State: AOAM531f2rcxUShSXx9s5spAUQGCTjbqOCiBoAhmw9wNd5VTEVG0BOuZ LWR4lY5GZPOMi14p7uvoD2o7e1ZngbSyPLG3 X-Google-Smtp-Source: ABdhPJywuIcjamxfCRpOr02hXFSCeN+u8fLAfBL1fEi3HK/aV7eWDTn1xkNVkVPGJ9mUhxsCfkPWbZAwBK/wAylo X-Received: from andreyknvl3.muc.corp.google.com ([2a00:79e0:15:13:edb8:b79c:2e20:e531]) (user=andreyknvl job=sendgmr) by 2002:a25:31c3:: with SMTP id x186mr6809008ybx.500.1612539587288; Fri, 05 Feb 2021 07:39:47 -0800 (PST) Date: Fri, 5 Feb 2021 16:39:13 +0100 In-Reply-To: Message-Id: <068ab897dc5e73d4a8d7c919b84339216c2f99da.1612538932.git.andreyknvl@google.com> Mime-Version: 1.0 References: X-Mailer: git-send-email 2.30.0.365.g02bc693789-goog Subject: [PATCH v2 12/12] arm64: kasan: export MTE symbols for KASAN tests From: Andrey Konovalov To: Andrew Morton , 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-20210205_103952_160725_AF572947 X-CRM114-Status: GOOD ( 11.33 ) 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 , 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_sync() and mte_set_report_once() to fix: ERROR: modpost: "mte_enable_kernel_sync" [lib/test_kasan.ko] undefined! ERROR: modpost: "mte_set_report_once" [lib/test_kasan.ko] undefined! Reviewed-by: Catalin Marinas Signed-off-by: Andrey Konovalov --- 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..fc753fb77940 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_GPL(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_GPL(mte_set_report_once); bool mte_report_once(void) {