Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2159450ybe; Sat, 7 Sep 2019 09:57:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJRroh8/EVFxJQdMTL8CUHooDQGCPaKMux6XmjnHy2lzhwSxNNStx1XLAX0riBc7BAoXoo X-Received: by 2002:a17:90b:94e:: with SMTP id dw14mr3661730pjb.36.1567875431326; Sat, 07 Sep 2019 09:57:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567875431; cv=none; d=google.com; s=arc-20160816; b=x9tDDaIitPRmIU1F8uzL/6rxFPBd1OBpjHICkMxH+uIw2v1TIgTwFceGgHYz9C/XQh K2GKp/xUWIb95QizkFrxU35Q8BPBvg0woljXufozqRmo5PMEtr1O6uldX6mrFUD1XaMI Nd16Sq8zE5mt5a+sOcdFWsJ4LhQJRTdollcN9/nSndf/KBGe7IAZTa5bI+4afwGU+t8t 3okdLXRoPM78zsS+eekuTS8aMKrQ95bg5f7vCnvI/ZQhwOZEO4+ST5m64qCDbpHPy/l4 0X7FBmzFOPjGaxOdUf7EL6GZKwpIyDZh3JzsltRl0ao4FivaBaklTlgqxoA1jgTeoTpA 7s4w== 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=WkS2XXCTwZb6YCGTw5O8BPXzmTufdtb9zrUqg8FXBEs=; b=DyzAUN2FlsT9F7ZsUA85Rl16HpDKrs72qyXcYWWGPRzU69Yk9+xbQFcLc6f0DE3uF2 xchfuyXM1CdS1P0SYdEWZ1Mmr3vejkKEmdD9JIFTZqz2tI8N537lNvomdOuvv34kZ6T2 Bm4Jmc9S0tdNvOMCCNpOIsioF75e6PY9NiS9u/833myCyYW6iSuOEIoUSn6rGbMC2CRg OXtCURoh6dc8PIGhGaa11cmV9fuY1qTKTrRstsDqsy1lAijUeu+4hu5m9XpAZNJmtEzO WGVX2JC+yLUF666yXN6K5ss5rU7D4fu2TH/68zRygoKEpZUZG5CtJVteuyKIXVlrUloo ARMQ== 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 bi5si8091533plb.82.2019.09.07.09.55.56; Sat, 07 Sep 2019 09:57:11 -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 S2405028AbfIFSn0 (ORCPT + 99 others); Fri, 6 Sep 2019 14:43:26 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:39147 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387551AbfIFSnZ (ORCPT ); Fri, 6 Sep 2019 14:43:25 -0400 Received: by mail-qt1-f196.google.com with SMTP id n7so8205807qtb.6 for ; Fri, 06 Sep 2019 11:43:25 -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=WkS2XXCTwZb6YCGTw5O8BPXzmTufdtb9zrUqg8FXBEs=; b=XV2XZDQ8uEWM9GVBd8KC++b7cPC73XjFMgzAdTPqOTvuHH7LTkOGAn1mcRus0yZN1e 5aefbbsOJkyD/HpZ7KY1s32jb9kapi5G8HcPrg4g8+SZMUwLiYKFwbGzyYF1TIL+POXc De8TL06hvoawHMyV9OENSr6bBDg7VS5gVocm/aOqG5wxWPEpfKX9QVUPViQQTnGKNu9g oZGXSNH7YcwsbxEjZAX4YAWygr4JHPTMSePbq1ZDBljpz+Ljl6hz4Ra7rGMayxV43NYV WDCfe3FwsBFYtw64Ketre9lYUr7WCNUbfziMUZaJwSiIFyWbIdG/C3Fy/j0PeFOlzR3G e4Tg== X-Gm-Message-State: APjAAAUnhNRK9/hHlxm7H3aepHbTiTbjC3WFGAP95EeYmrMF5LuW5+nT GNzstkKUvUrIVjyiIWUQm8Q0mJMTlupzdbDtRzc= X-Received: by 2002:aed:2842:: with SMTP id r60mr10515562qtd.142.1567795404696; Fri, 06 Sep 2019 11:43:24 -0700 (PDT) MIME-Version: 1.0 References: <20190906153700.2061625-1-arnd@arndb.de> <5ce4f4c7-f764-8937-75bf-83a4d4c57fa7@linux.com> In-Reply-To: <5ce4f4c7-f764-8937-75bf-83a4d4c57fa7@linux.com> From: Arnd Bergmann Date: Fri, 6 Sep 2019 20:43:08 +0200 Message-ID: Subject: Re: [PATCH] lz4: make LZ4HC_setExternalDict as non-static To: Denis Efremov Cc: Emil Velikov , Masahiro Yamada , "linux-kernel@vger.kernel.org" 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 Fri, Sep 6, 2019 at 6:21 PM Denis Efremov wrote: > > Hi, > > > kbuild warns for exported static symbols. This one seems to > > be meant as an external API but does not have any in-kernel > > users: > > > > WARNING: "LZ4HC_setExternalDict" [vmlinux] is a static EXPORT_SYMBOL > > > > I suppose the function should not just get removed since it would > > be nice to stay close to the upstream version of lz4hc, so just > > make it global. > > I'm not sure what is better here. But just in case, I sent a different > patch that removes EXPORT_SYMBOL from this function some time ago: > https://lkml.org/lkml/2019/7/8/842 > > I checked first that this functions is indeed static in the original lib[1] > and this symbol is not used in kernel. > > [1] https://github.com/lz4/lz4/blob/dev/lib/lz4hc.c#L1054 Ah, good. Your patch is the better fix then. Arnd