From mboxrd@z Thu Jan 1 00:00:00 1970 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=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 65A61C2D0E4 for ; Mon, 23 Nov 2020 19:17:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E788120728 for ; Mon, 23 Nov 2020 19:17:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="MrkIwK0h" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731358AbgKWTRV (ORCPT ); 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);