Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5950727pxu; Wed, 23 Dec 2020 09:18:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYFPFJC5zrZ8SJ5C34Ecp783JMDaLBPheW62UNsnsJDTU4+baK3hUkiSUjRvdIGUmVp9vs X-Received: by 2002:a17:907:20dc:: with SMTP id qq28mr24831619ejb.403.1608743920829; Wed, 23 Dec 2020 09:18:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608743920; cv=none; d=google.com; s=arc-20160816; b=o6XD7xC7LXgyn3AosEcm4cD6ozixjW6/hAxL8VufXwWnOeca6b0gQJs8VuW/UMaNF7 ktENLroWcPeOxsKA06tuKpCXj2RrsEcSKP3zpLvALZoDMMF0N6daSh2IYK4QifNnC404 cx6d6s56h0QnqqvLI6obAhGZiFrvyJ/sMN3pm+MadXEbwOO1GMSDJBPqxkxgyZ4Mot+I vNVhig0Ape5y2vBCS9sM6XT4NiE+SFPGaD/8rcshdxrf7tUl3laakCb0utu4F2+V/Gfa RSu1e6XnU5Wp8MSRRl73DMjAzRlSpuDCegn5gnigZd8tG1cUju6JTRmx9qZWFXmDnSDU tNOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=wZ/er/0/M4r2p33K9bkRZvIZvNiN0ENPgw3pdqo3T7M=; b=rfoRBJFWWwg+Mo6e+YszblFX6I+/fmx6gBqNCUbeHxocO+stcMMPzCW8zGfFwIngV7 PHSL9TY5TgPGOmUZN/BuXws2fE91U/R0KF/Zjyzz42e6NubnshZqOzOtAxw49ZngAhdq PSeiQYglBeALveBNJ5TPCZZ4oxiXKBHl+tfbx3Uczm9SWiOJmY5cECeo8vHZnZOSZ21y G5fjQapKPzJRUz2OFPLiNd7yRV3hF4AUB0T59jUlsp/12GkMPQdTQ2a26weznX3jXVNd zgiJfN6D64IKenyonSMCKlZX+B/YM0csHXoIlC++LdmCIRCr9iTbhXUVaZLJrPjhwa2c Pq/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=d0gFgAIt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f8si12075025ejr.517.2020.12.23.09.18.18; Wed, 23 Dec 2020 09:18:40 -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=@ibm.com header.s=pp1 header.b=d0gFgAIt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726837AbgLWRRM (ORCPT + 99 others); Wed, 23 Dec 2020 12:17:12 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:61352 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726012AbgLWRRL (ORCPT ); Wed, 23 Dec 2020 12:17:11 -0500 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0BNH2xUr001091; Wed, 23 Dec 2020 12:16:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=wZ/er/0/M4r2p33K9bkRZvIZvNiN0ENPgw3pdqo3T7M=; b=d0gFgAIt4lkcjAsSpwpgmlo0lPixzenLxbMEU/JwQnUsVfab+59wPJ/2Ux7EbEXgfvzi eSwCfb3g62RoBBHe4DFlPNnhcsrgGyZ0+5yRxJNqUROryaD4VWVEQy3W6Cebb6IocqTW SLKpItbIBNI+SlB2oocf0EUif/Zdw46GwHFIiVTASsyxTy/g5+3bWnBe39lSUzqYsW24 YLDkQIE3P9qDnNLWOqiaLymqYD2AS+VGUxH/qUUMrdZU+eOt4XG979L1u35GuWLJT9K4 Dzm+DyQVtshlYXljGL0nkemud/2yQI1F1rtGvP+F1avf8+U37EDIhsIGjFYhb+RBWFQ4 0Q== Received: from ppma01fra.de.ibm.com (46.49.7a9f.ip4.static.sl-reverse.com [159.122.73.70]) by mx0a-001b2d01.pphosted.com with ESMTP id 35m7xxbgph-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 23 Dec 2020 12:16:24 -0500 Received: from pps.filterd (ppma01fra.de.ibm.com [127.0.0.1]) by ppma01fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 0BNHDMjU005772; Wed, 23 Dec 2020 17:16:22 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma01fra.de.ibm.com with ESMTP id 35h958a5ku-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 23 Dec 2020 17:16:22 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0BNHGIPT18416124 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 23 Dec 2020 17:16:18 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5B979AE051; Wed, 23 Dec 2020 17:16:19 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F3399AE045; Wed, 23 Dec 2020 17:16:18 +0000 (GMT) Received: from oc7455500831.ibm.com (unknown [9.171.59.200]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 23 Dec 2020 17:16:18 +0000 (GMT) Subject: Re: [PATCH] zlib: move EXPORT_SYMBOL() and MODULE_LICENSE() out of dfltcc_syms.c To: Randy Dunlap , linux-kernel@vger.kernel.org Cc: Zaslonko Mikhail , Andrew Morton , "Acked-by : Ilya Leoshkevich" , Heiko Carstens , Vasily Gorbik References: <20201219052530.28461-1-rdunlap@infradead.org> From: Christian Borntraeger Message-ID: Date: Wed, 23 Dec 2020 18:16:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <20201219052530.28461-1-rdunlap@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343,18.0.737 definitions=2020-12-23_07:2020-12-23,2020-12-23 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 impostorscore=0 suspectscore=0 adultscore=0 mlxlogscore=999 mlxscore=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 bulkscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012230125 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19.12.20 06:25, Randy Dunlap wrote: > 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 Makes sense I see that Andrew has already picked this up, in case this helps Acked-by: 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"); >