Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp508216pxb; Wed, 18 Aug 2021 07:25:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6OKeD9x6HLoAUemakq77ER3YdueS4Hr+HXwOB7e9pPA4vGJ6zyZLvKvojAaBs2YZiBLev X-Received: by 2002:a05:6638:2712:: with SMTP id m18mr8115345jav.76.1629296732438; Wed, 18 Aug 2021 07:25:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629296732; cv=none; d=google.com; s=arc-20160816; b=SZjDY1rpWBR6UG6AtGAYNiE+c5oPCmA01OheEwU+P4vaB913Le/z/MrNUvl6RMqDNi VndZySlQF4lpX3+2izLVsu0xmAmN+1Ovvq2oLVArwXN1SgVeM89js1tLbkiJ03tyrHgc 9C6dK75h6/nHAdnJSXhVy1Q9V8Ofsu3XNN+N9zd6sMhLfTPrC53sq0TzbE7gj5yZMf9D i0xdYMKjY/zTRN2HBkOGKa4wnTHHJtT1gmz36c8hUvMpmUiSBE35hHAT0pSWCVEQogHf sRM2ZdwW/dGacUFHySX7O/xE1ZVpIpaWuMW0NkUxV1Y0rAl/kU6ny1LSqNWxly7af1fc wV7Q== 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=EItct/4LybJFgbzlVrgpqSv7WDkE+DpQx7uqSXk8vHY=; b=xEDr5ku5Kk2chei7FxfCTGeU0TtsfI42fUff3H4t9LFvqMpAYsGZx7M0opJiLS0v0t h/iERSgdQ9wn64G6VbS5D9rXYykShFNoWQik0udEGgFlDoFS8aji7J2gaNnNS2/SXAEC XTghBgsOGv1//vf+26HzypNX1onha+9PHcTRyDZxWGxZDK9WsaSM26IuvEoYaYEp3QC6 35tldZMColGiJkBA/j/CDNszv7oJ4Z8cyyya2YX3eDFvysrS8knD9V+gmJQ0YA1A1iJ1 TcFFcFnYCIyCq2MtcP7PhZ1Vt9j0LHpLnVZAW3x1Hw+kLS2NC7NNvSZL56gWzaJsoCAH fg5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Oi9YlwS3; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q16si5645164ioj.19.2021.08.18.07.25.19; Wed, 18 Aug 2021 07:25:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Oi9YlwS3; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238849AbhHROYh (ORCPT + 99 others); Wed, 18 Aug 2021 10:24:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239958AbhHROYX (ORCPT ); Wed, 18 Aug 2021 10:24:23 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38145C0612A3; Wed, 18 Aug 2021 07:22:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=EItct/4LybJFgbzlVrgpqSv7WDkE+DpQx7uqSXk8vHY=; b=Oi9YlwS38JMx8g2TCuOBCZ/rGs FvpX/QMst217W1jvJ/yiGztjw5E2p9zV9VDhXbodHOXs9Gb2Ka2LUWolbL4+Q0sF+deWk9K6/lRAI RN76vlgkG69i1yiVq0wX/GGS8/8xmU24iFYX7fdR23FRDtBRYs7N2Wvcfs6U2eo6C0tcQ8+USY4bn 03ZTm/qeArw87v+PRoTkOmIAuoruSYRtkoZPK/J0QMITKJd1ZX9FxM+eWsrfruc5qodR2tx5vNkWA f6spZbtYv/Xs2ApMtsuX9sNdXziaMqzs4Eqm1GMLiGKD9xdioADPx4Op+s39mNMwQLAnzgS8LDAHY LtaUuS0Q==; Received: from [2001:4bb8:188:1b1:5a9e:9f39:5a86:b20c] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mGMRk-003vEu-0m; Wed, 18 Aug 2021 14:21:52 +0000 From: Christoph Hellwig To: Gabriel Krisman Bertazi Cc: Shreeya Patel , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Subject: [PATCH 11/11] unicode: only export internal symbols for the selftests Date: Wed, 18 Aug 2021 16:06:51 +0200 Message-Id: <20210818140651.17181-12-hch@lst.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210818140651.17181-1-hch@lst.de> References: <20210818140651.17181-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org The exported symbols in utf8-norm.c are not needed for normal file system consumers, so move them to conditional _GPL exports just for the selftest. Signed-off-by: Christoph Hellwig --- fs/unicode/utf8-norm.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/fs/unicode/utf8-norm.c b/fs/unicode/utf8-norm.c index 829c7e2ad764..768f8ab448b8 100644 --- a/fs/unicode/utf8-norm.c +++ b/fs/unicode/utf8-norm.c @@ -17,7 +17,6 @@ int utf8version_is_supported(const struct unicode_map *um, unsigned int version) } return 0; } -EXPORT_SYMBOL(utf8version_is_supported); /* * UTF-8 valid ranges. @@ -407,7 +406,6 @@ ssize_t utf8nlen(const struct unicode_map *um, enum utf8_normalization n, } return ret; } -EXPORT_SYMBOL(utf8nlen); /* * Set up an utf8cursor for use by utf8byte(). @@ -442,7 +440,6 @@ int utf8ncursor(struct utf8cursor *u8c, const struct unicode_map *um, return -1; return 0; } -EXPORT_SYMBOL(utf8ncursor); /* * Get one byte from the normalized form of the string described by u8c. @@ -588,4 +585,10 @@ int utf8byte(struct utf8cursor *u8c) } } } -EXPORT_SYMBOL(utf8byte); + +#ifdef CONFIG_UNICODE_NORMALIZATION_SELFTEST_MODULE +EXPORT_SYMBOL_GPL(utf8version_is_supported); +EXPORT_SYMBOL_GPL(utf8nlen); +EXPORT_SYMBOL_GPL(utf8ncursor); +EXPORT_SYMBOL_GPL(utf8byte); +#endif -- 2.30.2