Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6001530ybe; Tue, 10 Sep 2019 12:00:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/QxguASfW+KKL7qNk1hF7wYaDewMhO3oLWZ/W5TODwVpc5Ye44SbAfCVCmDCZ7J928bTg X-Received: by 2002:a17:906:bb0f:: with SMTP id jz15mr25787175ejb.264.1568142017038; Tue, 10 Sep 2019 12:00:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568142017; cv=none; d=google.com; s=arc-20160816; b=KUXh/ntjm4TwCA/mC9bHRW0P3k4Ed3/pqx1wpSq2OXTB6HSebuHez6hwUQFlDSfjIW 7dhXERlLb+c9m1KN7LwyWZv9Pf775J5m6oDS3g4jXBad62djsornYYgHrs6E0cPuIP/5 lYAwBXpLxzuyOE7cJOpMExwbctukZCTiu85umRi0JWEVynYIvbJB0pRU1VU9UX5kwwnW f6QlPNYRWkKDAjJlEK9WBYEdNvoxHCaHRR0jYyYv7iStVTDRScT2T8kLhuLNFJ5Bekr1 e82HkhrVilCrrOLKWNKrwHm4ZbJIhTqZ1BZkamF3fvmhuQUNg7/wQS4aeV0WWV4/oaED VRtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=iT2EreQCQsjv1Yh12XOUi9gW7uCgo2uG/uTgJoEFfD8=; b=sinzq1lgg/+MRQPBa7tliNZycZ98qiiTUVaxhi1tJdEi5w0kJi9RMwqPH6U19SXNcH ZjjIKt0T3hcPwWKFgoFvt091uPTErLqOsyVQ6N9t6dfOHVXzEkjUK3sd7qEz9Iw/AGTr WI/4m4qUIQyJeKtYOEuDJbAjcsb/D7JHFoECb88+3N5JQSflqIo/t4BDXhh7t9glpU2T 3rkjIKV/3oIgV1qeDwj4YTS/Ma+DTWvId7mjWbgnuUxtMCmODlj7RBsFMfbtVeA1UjQf /J8aHyAuaog1v9pXqj2GrMnsCXge8gzVYUSQFiCoywUoINAgYBmX/YvBWiliE4c2vAtC kbtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=GBqkAOcJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z9si11813039edz.77.2019.09.10.11.59.53; Tue, 10 Sep 2019 12:00:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=GBqkAOcJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388215AbfIJMRL (ORCPT + 99 others); Tue, 10 Sep 2019 08:17:11 -0400 Received: from conssluserg-04.nifty.com ([210.131.2.83]:53203 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731146AbfIJMRL (ORCPT ); Tue, 10 Sep 2019 08:17:11 -0400 Received: from mail-vk1-f178.google.com (mail-vk1-f178.google.com [209.85.221.178]) (authenticated) by conssluserg-04.nifty.com with ESMTP id x8ACGxH2004523 for ; Tue, 10 Sep 2019 21:17:00 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com x8ACGxH2004523 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1568117820; bh=iT2EreQCQsjv1Yh12XOUi9gW7uCgo2uG/uTgJoEFfD8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=GBqkAOcJ6HIYqenv16F8cDQwySHEyWCoWIwH4/jVyBb8sC5woUQ1BQuX1lS3TgvI3 KgUxcv6pPocxNIOUnwXndKZ7AR4Y36iFB/ngUbOqUiYV5KVobHK2Ev6hZeQB+Sji0O zsII9UQfclt9e5GtpNM0smxTQc7TT+80b5upeUhHNiLcjr90tFj2Noy/ESeeQaY9pC Lutm5tOBsSIdjEeuP72YP4sQuo+oyM84CEsnJAMYUi/qlaGzWJu4APYMwUsxCj3ina Wp+fhKG2mBYfbCxs2pCXksUYvoZLUUhbDE+Rzo71Cy3pJX/1q6bE6aScAxMpTBO9iL 5QXY+P9qnYshA== X-Nifty-SrcIP: [209.85.221.178] Received: by mail-vk1-f178.google.com with SMTP id t136so3480491vkt.9 for ; Tue, 10 Sep 2019 05:17:00 -0700 (PDT) X-Gm-Message-State: APjAAAVfU3WrhMhvI6LC0vJB0U+2HvemDY8TM4sjNUbpdZI+OkdkbzCL 5S8PSn6tbYd9P2v6KXfqygqd3uakgvPDYWTlocI= X-Received: by 2002:a1f:9091:: with SMTP id s139mr13597058vkd.64.1568117818896; Tue, 10 Sep 2019 05:16:58 -0700 (PDT) MIME-Version: 1.0 References: <20190708151555.8070-1-efremov@linux.com> <10d12447-7b67-466e-5ab3-3d28256f0621@linux.com> In-Reply-To: <10d12447-7b67-466e-5ab3-3d28256f0621@linux.com> From: Masahiro Yamada Date: Tue, 10 Sep 2019 21:16:22 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] lib/lz4: remove the exporting of LZ4HC_setExternalDict To: Denis Efremov Cc: Andrew Morton , Sven Schmidt <4sschmid@informatik.uni-hamburg.de>, Arnd Bergmann , Bongkyu Kim , Rui Salvaterra , Sergey Senozhatsky , Herbert Xu , "David S . Miller" , Anton Vorontsov , Colin Cross , Kees Cook , Tony Luck , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 10, 2019 at 9:13 PM Denis Efremov wrote: > > +Cc: Andrew Morton , > Masahiro Yamada > > Hi, > > On 7/8/19 6:15 PM, Denis Efremov wrote: > > The function LZ4HC_setExternalDict is declared static and marked > > EXPORT_SYMBOL, which is at best an odd combination. Because the function > > is not used outside of the lib/lz4/lz4hc_compress.c file it is defined in, > > this commit removes the EXPORT_SYMBOL() marking. > > > > Signed-off-by: Denis Efremov Reviewed-by: Masahiro Yamada > > --- > > lib/lz4/lz4hc_compress.c | 1 - > > 1 file changed, 1 deletion(-) > > > > diff --git a/lib/lz4/lz4hc_compress.c b/lib/lz4/lz4hc_compress.c > > index 176f03b83e56..1b61d874e337 100644 > > --- a/lib/lz4/lz4hc_compress.c > > +++ b/lib/lz4/lz4hc_compress.c > > @@ -663,7 +663,6 @@ static void LZ4HC_setExternalDict( > > /* match referencing will resume from there */ > > ctxPtr->nextToUpdate = ctxPtr->dictLimit; > > } > > -EXPORT_SYMBOL(LZ4HC_setExternalDict); > > > > static int LZ4_compressHC_continue_generic( > > LZ4_streamHC_t *LZ4_streamHCPtr, > > > > Andrew, could you please look at this patch and accept it if everybody agrees? > static LZ4HC_setExternalDict will trigger a warning after this check > will be in tree https://lkml.org/lkml/2019/7/14/118 > > There is also a different fix by Arnd Bergmann with making this function non-static: > https://lkml.org/lkml/2019/9/6/669 > > But since there is no uses of this EXPORT_SYMBOL in kernel and LZ4HC_setExternalDict > is indeed static in the original library https://github.com/lz4/lz4/blob/dev/lib/lz4hc.c#L1054 > we came to the conclusion that it will be better to simply unexport the symbol. > > Thanks, > Denis -- Best Regards Masahiro Yamada