Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6082939ybe; Tue, 10 Sep 2019 13:15:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5meP0ALBzZn7iiN4z68UD81dL3Q+KnDBeeHw3Q1FJumNoqdTyv5ApCrbwbxEWqqAPgTNL X-Received: by 2002:a17:906:ccd9:: with SMTP id ot25mr26899117ejb.147.1568146504183; Tue, 10 Sep 2019 13:15:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568146504; cv=none; d=google.com; s=arc-20160816; b=q8m5EdplgiA3Fk4qbIU9G5Es1reOLT/O5z3LbXcDVUEV00Ahh+eaogsBQGDjTGlq4x zScWStjcnja8VObRBI6TBYpvOhvfWuRQHfjCMu68qsRMHp5ABHAL5pKTMHjNJvZpE0no XNWxMgfy1bn1OvL5j5XCR/EFFhnfAr8YvEiTTnwsZ/R5+pkqp5TEPHEDWTEYuXQzjITw sowh0QCd9YOCF809/HwT4j0zqjLkFhaMSnY23sj4veX9jhfMDTkw+wSy5DFseFdx/0d6 Pm6RtObFzHWkjj/A4KeKAFT3sW9uTycUfYVqO5mJGMrZPztN72TY8knYGisMR2lQfEr7 qP1w== 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; bh=d2aOZwIpJYg0wrZBHZwlKVNN/aFyBwqzNH9mtG3DpyY=; b=EQRrdjm7bt8X5qcJJJ2EPufyrYzrueush2mymk30OugAkJ+GuAXr3wSQOEIMSd5uMt II81CUG6cMm0KKPTpbuwyZI2guF46N+W6is/eXewYMYAk+0Fl1u8d498yAKngvibV8Xa Pa7P3uuuU6YhO0DyrsNNP518wbaTs7Fc7OqSD/vXSNnVp9F0qqJzZo1QqR8RLyOsc9kM 6EEOP3WhJWs83AvggYwE20f3DlaleIgvuSuV5hvg1Mle0LOHBsU2OEwCVALNvjdxwlCQ B1Pjs/IY9Fta0etVmSR9eKaLqNMWbLC6Jfh/b+SfeechB53CBOosg2kym3tgolPtbO/A iEUw== ARC-Authentication-Results: i=1; mx.google.com; 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 c25si10036258eja.337.2019.09.10.13.14.40; Tue, 10 Sep 2019 13:15:04 -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; 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 S1730232AbfIJMrz (ORCPT + 99 others); Tue, 10 Sep 2019 08:47:55 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:42142 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727071AbfIJMry (ORCPT ); Tue, 10 Sep 2019 08:47:54 -0400 Received: by mail-qt1-f195.google.com with SMTP id c17so1167987qtv.9 for ; Tue, 10 Sep 2019 05:47:53 -0700 (PDT) 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=d2aOZwIpJYg0wrZBHZwlKVNN/aFyBwqzNH9mtG3DpyY=; b=lYHuv7kfrgq2BMyeLOTG7D1r+QqDfDmPeN9HKboQZgUSLj+xeRdsrE5PAj39EsJIkX BSjc+nzv34KxcMNK1x7SCveB10NraQSVYYere33PmlPCv3CBVjySdXXbXcSM+R9BG1SM V7aSk+/u2Jy4+ma6DlFOCBQmTWVJFIkwZ6eIRpzdvOgbdhvSUd8M48Oe2KhX07O4Rnke nhKxayVOoWSC5RFPxHgBRVECSSf9hD3YIh3sjMblL172A4cwwMI3Te+Y9PbOWuJ1FroP A4i5DkTn2m9o78v27N0ytWQ21dFQvsVCryWhafLl0Ut2MxKpd/7Kn46UrCZJcfSHxR7B MzNQ== X-Gm-Message-State: APjAAAVsl/6r4pv3tTz9rEgY7eov5xHRcF4ccH6deG5Wi0bjtUxz5XOr HQ5AbsasFHr2nSW92+BEBORB751cqtUN9emSLsM= X-Received: by 2002:ac8:32ec:: with SMTP id a41mr28491816qtb.18.1568119672229; Tue, 10 Sep 2019 05:47:52 -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: Arnd Bergmann Date: Tue, 10 Sep 2019 14:47:36 +0200 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>, Bongkyu Kim , Rui Salvaterra , Sergey Senozhatsky , Herbert Xu , "David S . Miller" , Anton Vorontsov , Colin Cross , Kees Cook , Tony Luck , "linux-kernel@vger.kernel.org" , Masahiro Yamada 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 2: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: Arnd Bergmann > 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. Right, this version is better than mine. Arnd