Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2666197pxu; Fri, 18 Dec 2020 21:27:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXZ+Nzfy+Rxj8QY3mNjcEexbRf4345bI05pK0pf7YT1e8+fg5ViDN0tfYqSzGsKC7EkK1n X-Received: by 2002:a05:6402:8da:: with SMTP id d26mr7391172edz.157.1608355677248; Fri, 18 Dec 2020 21:27:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608355677; cv=none; d=google.com; s=arc-20160816; b=oydmN+ocG8FqIOpZ3hwDq6xXz9y00ygoOV3SfnpQ6YFJEzU6xBn3PPqkw/YSngd278 FxARNeIWSp7sPjCmbmJ/ObLZHwozEw1QKtIxnM5qCqE7yO05YPGZxtGlTlGRvTkA5tmO tBD6vUTQqojxmFeGUJjYdi850Ie6klDgjZsnTdhn7QLp6+Sd0fomxuZnYf2gmXfCiEBR hEkF4uszksy1XUjmorLrI4Zkoj3VtixHP5rvsSQcWHCQqbttH6DaXGC4ewUshpVUkmiC 9lWAiOFkF7uCQ8B5pZXD4Q+mldAb1RiFOCWzIqqxm2RuIxkjqXnyEI7kl0onyVP7X4tO sZEg== 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=7NOCJf6gSJieeeFiTAn8QMejK/YJVRySx4FEmsssJ68=; b=PAGBDgcR9JePk5RnQoN9Q77g4N8e+K7I2P6ol13Lg9FahZcHi59zXGDKTfl2+eQ3G1 mXllTiLMOMKGBe0Ns/KHMw4IECormjwCZ3ZmLjUAdYbJw0GUtJxCf3UTcI9NB26Q9nFl QZEhdt7cyahmpMjLE6Op/zOswSNzoXAp8NJVhFXCKuWXygC93PASFE21EXWC56Eib374 bB6f5fJxJ7q8E1mT4oESkKI9FHPTMK7CotaLlYbCaEUF7l/5+lmP60wHBYyXjENZtr70 P9tGonzDIf/hNL3CnVwQpFQd7ZsTGPuOPdP+sAwzRn9R0EH4VbvG401JGTuYwP1Nc0P3 rL+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=XKQR8ilZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 q16si6156313ejd.199.2020.12.18.21.27.34; Fri, 18 Dec 2020 21:27:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=XKQR8ilZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726320AbgLSF0U (ORCPT + 99 others); Sat, 19 Dec 2020 00:26:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726034AbgLSF0T (ORCPT ); Sat, 19 Dec 2020 00:26:19 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79E0EC06138C for ; Fri, 18 Dec 2020 21:25:39 -0800 (PST) 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: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=7NOCJf6gSJieeeFiTAn8QMejK/YJVRySx4FEmsssJ68=; b=XKQR8ilZN8FePpiFjh3StysKK5 fScFP8g1v6IZzFxSKo19SjXdWBSt0JpmR8qJW9pvfldM/LTkJW/wwDtHbzg756Wy82tIUeMwZ/MBv NCgcLUbdC0xK16HuG0foMasYvHZz9tcy0hGs55WRuSiOpIjV0bz6wGQTf9zdcP3Za1u4bGmSvhioy fQUNTg1+JYMzmKF1PaBxhtbo9GDKChFuaQM+/sMlD5RrMj60KYs5lf/PYdGHilLjUCwVjINrENK9l O3/hMGLyPly+zGDF9DwotcllvkNFRWvynKvRPIG6OAV34dh12mercmzkojVJRl/Nitl+BSpzgpQeL wX3AWmtw==; Received: from [2601:1c0:6280:3f0::64ea] (helo=smtpauth.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kqUkK-0000Y1-DP; Sat, 19 Dec 2020 05:25:36 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Zaslonko Mikhail , Andrew Morton , "Acked-by : Ilya Leoshkevich" , Heiko Carstens , Vasily Gorbik , Christian Borntraeger Subject: [PATCH] zlib: move EXPORT_SYMBOL() and MODULE_LICENSE() out of dfltcc_syms.c Date: Fri, 18 Dec 2020 21:25:30 -0800 Message-Id: <20201219052530.28461-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In 11fb479ff5d9 ("zlib: export S390 symbols for zlib modules"), I added EXPORT_SYMBOL()s to dfltcc_inflate.c but then Mikhail said that these should probably be in dfltcc_syms.c with the other EXPORT_SYMBOL()s. However, that is contrary to the current kernel style, which places EXPORT_SYMBOL() immediately after the function that it applies to, so move all EXPORT_SYMBOL()s to their respective function locations and drop the dfltcc_syms.c file. Also move MODULE_LICENSE() from the deleted file to dfltcc.c. Fixes: 11fb479ff5d9 ("zlib: export S390 symbols for zlib modules") Signed-off-by: Randy Dunlap Cc: Zaslonko Mikhail Cc: Andrew Morton Cc: Acked-by: Ilya Leoshkevich Cc: Heiko Carstens Cc: Vasily Gorbik Cc: Christian Borntraeger --- lib/zlib_dfltcc/dfltcc.c | 6 +++++- lib/zlib_dfltcc/dfltcc_deflate.c | 3 +++ lib/zlib_dfltcc/dfltcc_syms.c | 17 ----------------- 3 files changed, 8 insertions(+), 18 deletions(-) --- linux-next-20201218.orig/lib/zlib_dfltcc/dfltcc.c +++ linux-next-20201218/lib/zlib_dfltcc/dfltcc.c @@ -1,7 +1,8 @@ // SPDX-License-Identifier: Zlib /* dfltcc.c - SystemZ DEFLATE CONVERSION CALL support. */ -#include +#include +#include #include "dfltcc_util.h" #include "dfltcc.h" @@ -53,3 +54,6 @@ void dfltcc_reset( dfltcc_state->dht_threshold = DFLTCC_DHT_MIN_SAMPLE_SIZE; dfltcc_state->param.ribm = DFLTCC_RIBM; } +EXPORT_SYMBOL(dfltcc_reset); + +MODULE_LICENSE("GPL"); --- linux-next-20201218.orig/lib/zlib_dfltcc/dfltcc_deflate.c +++ linux-next-20201218/lib/zlib_dfltcc/dfltcc_deflate.c @@ -4,6 +4,7 @@ #include "dfltcc_util.h" #include "dfltcc.h" #include +#include #include /* @@ -34,6 +35,7 @@ int dfltcc_can_deflate( return 1; } +EXPORT_SYMBOL(dfltcc_can_deflate); static void dfltcc_gdht( z_streamp strm @@ -277,3 +279,4 @@ again: goto again; /* deflate() must use all input or all output */ return 1; } +EXPORT_SYMBOL(dfltcc_deflate); --- linux-next-20201218.orig/lib/zlib_dfltcc/dfltcc_syms.c +++ /dev/null @@ -1,17 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-only -/* - * linux/lib/zlib_dfltcc/dfltcc_syms.c - * - * Exported symbols for the s390 zlib dfltcc support. - * - */ - -#include -#include -#include -#include "dfltcc.h" - -EXPORT_SYMBOL(dfltcc_can_deflate); -EXPORT_SYMBOL(dfltcc_deflate); -EXPORT_SYMBOL(dfltcc_reset); -MODULE_LICENSE("GPL");