Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1870708ybe; Sat, 7 Sep 2019 04:36:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJayFGa2/aofvgjTPbLIYtFjDPI2LU0JZvCJe5RpQpdq65kognxHxSGVCh1Who+rAbLf99 X-Received: by 2002:a65:608e:: with SMTP id t14mr12189524pgu.373.1567856214764; Sat, 07 Sep 2019 04:36:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567856214; cv=none; d=google.com; s=arc-20160816; b=eu8WJVIS0M5UtKI0+uKfuUiLsNzRj75Ax2fwpLHfaNb6UucvTcq6J3FuytDpL5h/UB otyObK2PA/69+dDbIroLtMpyd+EJrajuC+kyVFydBkCx9j5lHAYyB6H7tsv+rAwVEhj7 yW9ck5pu6HGIRK5M5RIgSts1QM3MUU4AJ/ADnze4/mlfUKT4uLm0lZR3EsLId1rATqrb uL5K7hmPpPQT8LpJPSh62cuyYkhYECUjbOXLIhZU3hKviX0f68ZXldp2fODAFNQGc+xs 8l/MmKAJW0yNL7/aD23/omjjzOagbH59JzPr3/rEzucOk9P1Ffe8VOGjHA66l3pyLu/L LdCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=YyFs4U3ikiTAqwiYM1xeX9g2LY/fcWKN2WJ80eqPNSk=; b=0y20ZCNE/xW8VbWVKbWIzVCfxI/56jNWvmWoDL4/ym4gNJDcbtVLbgEOLBiVjh0+4M OEAk7tn4WdfAsl1RFACC8RBVlIp4QpmpZOldE7c5mARsRyQXQd7p+m++ccS393pnBcXl v0FIscvSAx6dcX8/liYNBslvST0qzD05UTam9jHbEW9b5Df367yJWYglgC5Lb4SLHBfv 37PRFBgo7hZuh+8EVeDSiD0gxMziCz72ZHKrwK0PAgmH9KUZjpdx/e5/Ef81bUYDA+Qx N6ONtcKL6qYlI8a48PjsBxnHjEYZcI909GiWEFlNXWLMe0H76H2sob4skwK5gna1mQbl Ye9Q== 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 c19si8074934pfo.190.2019.09.07.04.36.04; Sat, 07 Sep 2019 04:36:54 -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 S1733271AbfIFQVx (ORCPT + 99 others); Fri, 6 Sep 2019 12:21:53 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:39319 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727391AbfIFQVx (ORCPT ); Fri, 6 Sep 2019 12:21:53 -0400 Received: by mail-wr1-f66.google.com with SMTP id t16so7208213wra.6 for ; Fri, 06 Sep 2019 09:21:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=YyFs4U3ikiTAqwiYM1xeX9g2LY/fcWKN2WJ80eqPNSk=; b=nHKWzwJEcTwkpSy9DqLd/W0PNW9yq9keDn8HaEhnQtavg8cilXdEnbWvLslHAA5abG lfbkSWbbrKXzggI1zIngcIGFzSBueAOcK3+DWIurRaxv4D7UtpC70KKetSaSFiwW+Ju/ 53Oelg2UFISt+6tnyIQKvzSvDZZvVrsuU+Asmmj2FprhNSM4N7NeOSv8D5zWIHoDJAW6 mC/Q3RcFEN+KKtM3O2TSIB0B/Ws7nXX39oAdCSMOJXvuwjvbcguUSzFE/2L0GoPutl+J 7ankZ4lE2yeh25jwvHX9yYsIrrImxqTEitFpj8DhKIi1vRJ0eslnTnaeUS/KV3DYqITH pZVg== X-Gm-Message-State: APjAAAUdze6lNzLLBylltrs6IygJKRv1THqVc+mRAYiZN9IBKMPMIo5S gaoHKxTb36LHnPDGAsA8w1fp4yhL4GI= X-Received: by 2002:adf:ec41:: with SMTP id w1mr8382828wrn.215.1567786911095; Fri, 06 Sep 2019 09:21:51 -0700 (PDT) Received: from [10.68.32.192] (broadband-188-32-48-208.ip.moscow.rt.ru. [188.32.48.208]) by smtp.gmail.com with ESMTPSA id c6sm10994479wrb.60.2019.09.06.09.21.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 Sep 2019 09:21:50 -0700 (PDT) Subject: Re: [PATCH] lz4: make LZ4HC_setExternalDict as non-static To: Arnd Bergmann Cc: Emil Velikov , Masahiro Yamada , linux-kernel@vger.kernel.org References: <20190906153700.2061625-1-arnd@arndb.de> From: Denis Efremov Message-ID: <5ce4f4c7-f764-8937-75bf-83a4d4c57fa7@linux.com> Date: Fri, 6 Sep 2019 19:21:49 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.0 MIME-Version: 1.0 In-Reply-To: <20190906153700.2061625-1-arnd@arndb.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Thanks, Denis