Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2977891ybe; Sun, 8 Sep 2019 04:42:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0YUESdUS4FWko6DfGtyoLWGeDHiMupyxdlSRkfHuEo4bQCNOzx42TkHCh3cyf4Cki8FXA X-Received: by 2002:a62:e915:: with SMTP id j21mr22078684pfh.239.1567942955462; Sun, 08 Sep 2019 04:42:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567942955; cv=none; d=google.com; s=arc-20160816; b=TTvb8xOQGadUO3a1Drj1oo1KljHUgm4QgJGUiE9nrFhGTTiHOD6nc3xYovyeecPC2Z A9pcdXkOmD9N/Q2iqo30y9PUnnYWMdiWMuW4iHuJVb3UFEzCJCFlYG7vtBa+aV9bB7MC kzbvjnbid1gk2nPa8uudBZTEXNaafzGpDS+7gISFGu9Gv5z+kdVF5SE0tQZtQK2ENa2i eF9rLaeQF3cyyhKpMeGCT2Gtm5jUh8PJ6ir+C0B7t86lG9sRFFDfq3UZSU3hc6UblbqD bLgLBOuyarOGBNfwl1gKMoQaB4IPrKSXypnNUu6T41aVrLfT4+5fqFs7+q9qa3cCP6wF Bymw== 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=nuq0HAmBDFXooLNLzl7SJHQtZrnXNqCd5Q1OJYGkr20=; b=LqeF1xQf/x5xkwEVbB9JI7wekGM7DQVwAKhcsFiAasOyaiupkQq3tqLQ6Ijik3KDhf ev4PuwIXM5zKLhsVomUDuXAJUBXDSeYDfW5aazGnWBSjM+YU9UVgeySlC83+h9d4ZDBr d5Ltrdi5vtiYgxknvyy6r97LLPITq+1bJjlkZInCjMLfUebvZpny644dtIk9dQagTwQJ LWFgPWtspDuq4EFAn3kYAcrG5KZNSRRKZ9wYHFpFoiF8hUtt5pO5vvOsuZdLaAbKfowu QA2M8YqMk4EdJj6TbURM7uU4SNMjR2yG4xr1VsgZRGLigd8evirPzM+XLF+dQvNUxjnW jgWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=wlCXz96P; 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 a3si10021341pld.371.2019.09.08.04.42.06; Sun, 08 Sep 2019 04:42:35 -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=wlCXz96P; 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 S2393694AbfIGCPf (ORCPT + 99 others); Fri, 6 Sep 2019 22:15:35 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:19693 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732445AbfIGCPe (ORCPT ); Fri, 6 Sep 2019 22:15:34 -0400 Received: from mail-vk1-f177.google.com (mail-vk1-f177.google.com [209.85.221.177]) (authenticated) by conssluserg-01.nifty.com with ESMTP id x872FGVD027947 for ; Sat, 7 Sep 2019 11:15:17 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com x872FGVD027947 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1567822517; bh=nuq0HAmBDFXooLNLzl7SJHQtZrnXNqCd5Q1OJYGkr20=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=wlCXz96PqicMIU02gSTkxZoawNPQZ9fvlE38/ui6fsxmsqZ6pVTdSS6YPMCSa16h+ k6a4TIjUsh3ws9Joa8dejUtbzlz7YBdX8Gm8s3oOeVWImnLss9QYN128CDBkEWKBJu qHiP4b+jBSZ1WninM857eLwZ7WFZC1mgYmJDXuYWNHvOEh7NsrSCKVc8krjEauvON6 Ii12Mlc8dGGH695Izki8rQIC9B9jAWoK81X1Zzn9fxsqrOyXdOKOAoEn7X/aunFKfF C4WFuQaHMLcQRVNffki/m9779aOM+ibSTkNAaK9G15Y3H/Umbng/V857bUqQrx8fxX wBuYbpubW7BNA== X-Nifty-SrcIP: [209.85.221.177] Received: by mail-vk1-f177.google.com with SMTP id 70so795829vkz.8 for ; Fri, 06 Sep 2019 19:15:16 -0700 (PDT) X-Gm-Message-State: APjAAAWidldSeLJlF43EEzMrBVVsw0BlfoLtVn1rzvZ2X2/w4XedfSC/ dyDWWpg9A2MwJqyO111xvX9g6GWN4fCA4ZK2ZL8= X-Received: by 2002:a1f:294a:: with SMTP id p71mr6166358vkp.74.1567822515710; Fri, 06 Sep 2019 19:15:15 -0700 (PDT) MIME-Version: 1.0 References: <20190906153700.2061625-1-arnd@arndb.de> <5ce4f4c7-f764-8937-75bf-83a4d4c57fa7@linux.com> In-Reply-To: From: Masahiro Yamada Date: Sat, 7 Sep 2019 11:14:39 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] lz4: make LZ4HC_setExternalDict as non-static To: Arnd Bergmann Cc: Denis Efremov , Emil Velikov , "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 Sat, Sep 7, 2019 at 3:43 AM Arnd Bergmann wrote: > > 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. When you make the symbol global, you need to provide a prototype declaration in a global header. (include/linux/lz4.h in this case) Otherwise, nobody cannot call this function anyway. I prefer Denis's fix-up. > > 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 -- Best Regards Masahiro Yamada