Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3141106pxf; Sun, 28 Mar 2021 13:28:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvl9wCvGYUVUyPE45qWX7XG8nSpCUcda1C60AtdHqbRfm0m20096csw9v9GY4wGPAXDUYW X-Received: by 2002:a50:ee95:: with SMTP id f21mr25963963edr.130.1616963328504; Sun, 28 Mar 2021 13:28:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616963328; cv=none; d=google.com; s=arc-20160816; b=pkRCSPY1HsqQm9HLHreEIKMhhsEmvbB/VaNzejXYKCMHhlyGr7fxXcWn5n4uFCpJ6q xaHsjKh/w1XlmDrfm0wfMINSsuG3mYMZOOdOy/uEpSB/JJVXjq3YIHClhzmAGSqKwWkx eYFRJ/YmHgNk02ylDBTaa50E3l8qqA0y5t4WXtzoxbsyaxgbQ++8uaOIpOGn0mEVFi/F Nlm+OAFHbqxQauUnOKB52zt91G/fr8tAAkthT9uKDq6jKkSWS04FgGvv297v52WUTmb8 tmr6/VutQHsP1r4oKHxUe6zmFn4SZGKb+UKuhcOWfOYnL0wk3RbGuXy2/uhnE3R8P1ts pNgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=dGgxsKIZ3ZTl676JeHS4fOQwF1EPR3Hj3EDiz1utvk4=; b=kBQPKxQ+6l9Nh8410nVMyKn/ok7gWjBK3IHz7P303De1TJaO4ktCtLExbFGk6TG7J0 RplncsSJ30ezxwnmGWly49PKodIkgDjonYfzgiTZOqplLFG7rpghMgrjjnqFdbQLReCS 8Jk/8NnFDbK5FSYg0Ess+Ox1/WqAOchB17E/gouxfL0FAC7m+oGbqfrUI0wmhdUiKFwB G5rSyOXFfYxTom7Ms00iu+jN34SbMto89ukCblqEFCpVypR7nT9cHbXnGAuuHmtEdpMN 3qpK+79llQ8QndlIVvJw3GAoADwFuhxheQGb/i8i7oZ7hvxU5u3Zjq1Lm4b48r+C5mkb yKoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VS5q4Vxi; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e1si10409678edr.103.2021.03.28.13.28.16; Sun, 28 Mar 2021 13:28:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@gmail.com header.s=20161025 header.b=VS5q4Vxi; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231265AbhC1U1m (ORCPT + 99 others); Sun, 28 Mar 2021 16:27:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230187AbhC1U1U (ORCPT ); Sun, 28 Mar 2021 16:27:20 -0400 Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14351C061756; Sun, 28 Mar 2021 13:27:20 -0700 (PDT) Received: by mail-yb1-xb36.google.com with SMTP id a143so11647272ybg.7; Sun, 28 Mar 2021 13:27:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dGgxsKIZ3ZTl676JeHS4fOQwF1EPR3Hj3EDiz1utvk4=; b=VS5q4VxiAS87vvfgBnL2SidrpAg/XELlQwKgngDhkEgMRpxGB39RnlEYeY8I7htT/a hMrPZobTQbgpX29GLYdNvayQ+u/5sPEV0eCWwm5/pEDHuG6MpZE32jZcGcUOOwcrIT1o 9XvuWADd2LoVpLMVsJSRTy9SXnxXGV3Smn/hZ/6YBUWEmnMdsm8nxc0MUPOA2dvYf9bD ezss+DucD2pifMU8obi+vgXy2JT2m6tjn1x07o1MmzmRSimmgfftTFvin+efdODqMBfN ht/DkDR8ADwxGQ8/EvkS+qWY7szaPqsvGZiSUHqYVgVYi3QD/Gl+FVQQd84BU35qZt9n uIug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dGgxsKIZ3ZTl676JeHS4fOQwF1EPR3Hj3EDiz1utvk4=; b=QBo2maJM8fi1o5HQOpsha7MO36fgGb+nyk5c6wvEeLamWJst5J0C+mOU1NQG9Sn0do /GsmxRsYGWrTwMdtph15mFIowRAx1aq6IyNP9S7sLjhe71nRmAnIbN9LX1uLkSpuZ8DL Y3akQPGrHxfVZ8elAOLKImVlIc9H5w2oflD3wwusbICrtOFNXgVgmgAg38Mi48+wP6Jr txsiZSUADoLd07s9sdZDHVfuvJ11expYTCX2KWDmxE8aw6Dgza1S6UpB4hLKLNh2nISj Iv1lHHKIQHVrg5dKCYw9HlspDCkJ5lTBNLTtRrrMY5iRipsuC1aBwmbSZ4cSdv+moYGc vi9A== X-Gm-Message-State: AOAM5301Yk2LRD4hZRQbkDhXndCZEwkQ9KByhENKWQZWlcG+7hWDn/Wa RBmmC61xdYXIUXKsriEa2SIA+7leFLnAi4/0OcA= X-Received: by 2002:a25:2d62:: with SMTP id s34mr30625290ybe.209.1616963239300; Sun, 28 Mar 2021 13:27:19 -0700 (PDT) MIME-Version: 1.0 References: <20210326191859.1542272-2-nickrterrell@gmail.com> <202103271719.VoxPHugN-lkp@intel.com> <20210327214810.ldijpbr2tnkh2gce@spock.localdomain> In-Reply-To: <20210327214810.ldijpbr2tnkh2gce@spock.localdomain> From: Nick Terrell Date: Sun, 28 Mar 2021 13:27:08 -0700 Message-ID: Subject: Re: [PATCH v8 1/3] lib: zstd: Add kernel-specific API To: Oleksandr Natalenko Cc: kernel test robot , Herbert Xu , kbuild-all@lists.01.org, linux-crypto@vger.kernel.org, linux-btrfs@vger.kernel.org, squashfs-devel@lists.sourceforge.net, linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Kernel Team , Chris Mason , Petr Malat Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Sat, Mar 27, 2021 at 2:48 PM Oleksandr Natalenko wrote: > > Hello. > > On Sat, Mar 27, 2021 at 05:48:01PM +0800, kernel test robot wrote: > > >> ERROR: modpost: "ZSTD_maxCLevel" [fs/f2fs/f2fs.ko] undefined! > > Since f2fs can be built as a module, the following correction seems to > be needed: Thanks Oleksandr! Looks like f2fs has been updated to use ZSTD_maxCLevel() since the first version of these patches. I'll put up a new version shortly with the fix, and update my test suite to build f2fs and other users as modules, so it can catch this. Best, Nick > ``` > diff --git a/lib/zstd/compress/zstd_compress.c b/lib/zstd/compress/zstd_compress.c > index 9c998052a0e5..584c92c51169 100644 > --- a/lib/zstd/compress/zstd_compress.c > +++ b/lib/zstd/compress/zstd_compress.c > @@ -4860,6 +4860,7 @@ size_t ZSTD_endStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output) > > #define ZSTD_MAX_CLEVEL 22 > int ZSTD_maxCLevel(void) { return ZSTD_MAX_CLEVEL; } > +EXPORT_SYMBOL(ZSTD_maxCLevel); > int ZSTD_minCLevel(void) { return (int)-ZSTD_TARGETLENGTH_MAX; } > > static const ZSTD_compressionParameters ZSTD_defaultCParameters[4][ZSTD_MAX_CLEVEL+1] = { > ``` > > Not sure if the same should be done for `ZSTD_minCLevel()` since I don't > see it being used anywhere else. > > -- > Oleksandr Natalenko (post-factum)