Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1090600pxu; Mon, 23 Nov 2020 11:22:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwTrYKQq+4ul6xN1UC9PR5kl/nRQ/5OiFA1FoFrc2eu80l/CEDLNeo+XxybNgbDb8nuANs8 X-Received: by 2002:a17:906:b53:: with SMTP id v19mr1023379ejg.136.1606159377448; Mon, 23 Nov 2020 11:22:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606159377; cv=none; d=google.com; s=arc-20160816; b=rTZiWoeU4jI1GLYE4enJzd0a3tKl5iShWtMImBUXf2bcGDgIllfaRDjI2TqM2bQBC6 HtOjAWtqqT0Bjs4qdSKTswLuTvL7mvYiKQeImZOcoR59RRqzE+Uga502G6CsKgfnhAYV tED6ftxHgoH7fhPMdWe76ymoMfmdk8286DTxDph128RbfttcO+4Jnht8dq0QweNv2n5U h4htXCCK8Iybec5ltHdPd/9jZsiWDUkeFGwoecQpUiRdz5M6nvxG3XPFsUKTrIv5Y3B5 UtGp5QqdstZ1y+hJwOr3w/tcZf3+i21AcXmwQOyzNk0eqls8LAiEjA3AGkZWX11wztki g9mg== 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=5toA88hAwlnO1D0yhqz0KvaJM3ObFcw8oTPjEzICo4I=; b=wbx3loSLpbMRDhQZrUXZdaCyDgrGpZPEFTfe79FnwAL13o9CB+FE21KHBh4siowT/l KgyvRKTlKTLezdWn9wMZvG0QKQT3A9UQUUEBDzHI52QCaTcmO0FlvlcNU0Fa0xjQXzxw irCjknqEVeoBWwkeUpVuC1Beqdqk8uTs8X9hult4jzGS2StU4ooG3+SF+8OWYp91G6TK PXcHVN6jKpyYhXMJQ8hgy0cqqyoyIxH2Vi66KAkbRM1COYf60V9R69RCJWwaxfjYr/C0 qFEPcZncdVbFnQd392JiBNP+YtS6Ke10pn5SI9Pl+e+U9f2g4q2IQaQtEaBrGVbAu4Gc LZvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=MrkIwK0h; 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 u4si7257978ejm.412.2020.11.23.11.22.34; Mon, 23 Nov 2020 11:22: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=merlin.20170209 header.b=MrkIwK0h; 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 S1730744AbgKWTRV (ORCPT + 99 others); Mon, 23 Nov 2020 14:17:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730567AbgKWTRU (ORCPT ); Mon, 23 Nov 2020 14:17:20 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9117DC0613CF; Mon, 23 Nov 2020 11:17:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=5toA88hAwlnO1D0yhqz0KvaJM3ObFcw8oTPjEzICo4I=; b=MrkIwK0hJiFO4Jqd+/AOv/IIXB FtEDMaxYBBReQJ9HOQssktMp78cZsF1ganMXx1sqEaGPo8XYOD8x7OROk7B5io4Z1Tvg1zOYpalo7 683vZlGklI4/wiGMmxfrTR/5Sj2JQsqtDCIcbuExzz1TwkZCENBgat9wIEyIQIi53G/cAfipi69Nd qnYqNqq7FmSo+YHwLeC29MoToRkCI1vlZFVQF21Dy0UXhlDsjjfBDkLO4TqKGPxemA7K6as/XS0fQ DHV7XDt0Ht6T4giJIZGJFzCpegvdWVv1c8E0ZaaF4VOWTzEyXx9Kz3S9O/kBGDjQ8AfqdKTh2IfcE MppqADyg==; Received: from [2601:1c0:6280:3f0::bcc4] (helo=smtpauth.infradead.org) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1khHKv-0003Kd-VM; Mon, 23 Nov 2020 19:17:18 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , kernel test robot , Mikhail Zaslonko , Ilya Leoshkevich , Andrew Morton , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , linux-s390@vger.kernel.org Subject: [PATCH] zlib: export S390 symbols for zlib modules Date: Mon, 23 Nov 2020 11:17:12 -0800 Message-Id: <20201123191712.4882-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 Fix build errors when ZLIB_INFLATE=m and ZLIB_DEFLATE=m and ZLIB_DFLTCC=y by exporting the 2 needed symbols in dfltcc_inflate.c. Fixes these build errors: ERROR: modpost: "dfltcc_inflate" [lib/zlib_inflate/zlib_inflate.ko] undefined! ERROR: modpost: "dfltcc_can_inflate" [lib/zlib_inflate/zlib_inflate.ko] undefined! Fixes: 126196100063 ("lib/zlib: add s390 hardware support for kernel zlib_inflate") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Mikhail Zaslonko Cc: Ilya Leoshkevich Cc: Andrew Morton Cc: Heiko Carstens Cc: Vasily Gorbik Cc: Christian Borntraeger Cc: linux-s390@vger.kernel.org --- lib/zlib_dfltcc/dfltcc_inflate.c | 3 +++ 1 file changed, 3 insertions(+) --- linux-next-20201120.orig/lib/zlib_dfltcc/dfltcc_inflate.c +++ linux-next-20201120/lib/zlib_dfltcc/dfltcc_inflate.c @@ -4,6 +4,7 @@ #include "dfltcc_util.h" #include "dfltcc.h" #include +#include #include /* @@ -29,6 +30,7 @@ int dfltcc_can_inflate( return is_bit_set(dfltcc_state->af.fns, DFLTCC_XPND) && is_bit_set(dfltcc_state->af.fmts, DFLTCC_FMT0); } +EXPORT_SYMBOL(dfltcc_can_inflate); static int dfltcc_was_inflate_used( z_streamp strm @@ -147,3 +149,4 @@ dfltcc_inflate_action dfltcc_inflate( return (cc == DFLTCC_CC_OP1_TOO_SHORT || cc == DFLTCC_CC_OP2_TOO_SHORT) ? DFLTCC_INFLATE_BREAK : DFLTCC_INFLATE_CONTINUE; } +EXPORT_SYMBOL(dfltcc_inflate);