From patchwork Fri Sep 6 15:36:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 173262 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp880578ilq; Fri, 6 Sep 2019 08:37:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyAIw8MqwH9GTKD8NZs0WiGVrDEyhPP5rGxbQLxn5IHen/UoFD/4WhtkAdk7Wn6tCV13BmP X-Received: by 2002:a17:902:ba95:: with SMTP id k21mr10168617pls.80.1567784231041; Fri, 06 Sep 2019 08:37:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567784231; cv=none; d=google.com; s=arc-20160816; b=CSA2SDye29Da3gnONrwueuvbu3vThNTwoDiSEnRIsHw9edMQdN8QqkzgYxU7OY3WqI P+gDPcLw619+e32F+JudQsbDs0tQXgYCgw8doZ1h5nmarHEudy8ThEHGLUO3x/qD8EEP cokOcrMpQcLjFRQnOACYgtVO4yMPEpHiWg3vDSB59YZ1XGt5C44jRAnqa99SQXobx9nr 57Zt7LAp3oByY4MifebgdnuidDTFga5mVbsp4cgjpJNXbWQZIW/leGXYdUYTVwt4cUDy enLxus1rff8jdYTDF32pLYqjWMoRFhzDiLReOFJpKCI58KRWz9ux4bmDhuT8gyILmv1t rsJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from; bh=8tAs+YbVkTHgiJH9OUHEZHrx+Xc080PiON88gJp93yE=; b=NXXoR7E96qPPdFh3fU9asHg/YKMxcFMA5VRXQb06u4zER6TYeLFj+W9kZujTL3Q0fd XontWkjnwxkSHDBwLAVEA89NCNqG+DUEr5G7RnY9v5g9VHG2faLrSVCCRau5Ab8EyDtp 37ME8rQEtUk19oM+CcUTbxE/V4LUkwdPR2t7yyciTpT0p27mA9A0ihmIrjyo+y8Jvm75 Zr9LhT/4j5AS8L42GmDTCgStN0wW7S2YjZjndSLepNjE3sImqzdHsYUbQOw3dUL4nZQR Up+8qY02B/I1UKr+mFfx4F4PazrjXx/5SGHIVpirAoJlGrw8UT8zp1jTz7LbMPiJBhwY Rhfw== 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 l186si4591421pgd.455.2019.09.06.08.37.10; Fri, 06 Sep 2019 08:37: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 S2405770AbfIFPhJ (ORCPT + 28 others); Fri, 6 Sep 2019 11:37:09 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:45071 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404930AbfIFPhJ (ORCPT ); Fri, 6 Sep 2019 11:37:09 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPA (Nemesis) id 1MSqbe-1hiV2c2HkM-00UICm; Fri, 06 Sep 2019 17:37:04 +0200 From: Arnd Bergmann Cc: Arnd Bergmann , Emil Velikov , Denis Efremov , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH] lz4: make LZ4HC_setExternalDict as non-static Date: Fri, 6 Sep 2019 17:36:51 +0200 Message-Id: <20190906153700.2061625-1-arnd@arndb.de> X-M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qp/wn0kppyzL9xem/BEtsoHUaavueZQgj9dKJbEIhv9VHlNr6e9IvxfCrLU06OjEL9whyaHBO MiTIRSxsrG93VZasGOYHxHDMCC3P1nCDAgHT4/h6jNMKBew/+8= To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. The modpost commit is correct, but is listed here as the one that introduced the warning. Fixes: 15bfc2348d54 ("modpost: check for static EXPORT_SYMBOL* functions") Signed-off-by: Arnd Bergmann --- lib/lz4/lz4hc_compress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.0 diff --git a/lib/lz4/lz4hc_compress.c b/lib/lz4/lz4hc_compress.c index 176f03b83e56..e1075293c009 100644 --- a/lib/lz4/lz4hc_compress.c +++ b/lib/lz4/lz4hc_compress.c @@ -642,7 +642,7 @@ EXPORT_SYMBOL(LZ4_loadDictHC); /* compression */ -static void LZ4HC_setExternalDict( +void LZ4HC_setExternalDict( LZ4HC_CCtx_internal *ctxPtr, const BYTE *newBlock) {