Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3855844pxu; Tue, 20 Oct 2020 02:11:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzD5UASnxW2jRZY2dtLkzk6Zw0i4FQScsdrUUi2FIjGKMV834TGH2GbDmydl9gme4t7axci X-Received: by 2002:a17:907:33d2:: with SMTP id zk18mr2128277ejb.145.1603185081782; Tue, 20 Oct 2020 02:11:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603185081; cv=none; d=google.com; s=arc-20160816; b=BuvYOTr3BUAUHb3aVXbhA+WMJgEZTloL88w/uQA0cFO0Egbd+9mEl3AszAkakZKn11 83RrA+DwLHVSuPnhADVCO1RB5QGQIEiJBQNK3p/Ta+X2FIjMiuOI+ElcVRKOAW3Sfqb0 k5WVv65Dkz8pNhu7vLCyf4aF6nYD1ZIGhX1vtZ9k2XJ+qFPZ9wcGvVLwU5a0yqg02C9r gQF5IncEgSLat2NuMe+Iuz82M4Re0tEXY64Iu5tfptJbx741TOdLaPFtd78L6tRpZLH+ qRB4Neg5CxOGzRxv9VobYoxOosSbJlP/HS8YNaG/EcY1uxXDjHDjpkMTlwfjyul6bex1 rgmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=bXYB+yLS64Y7h7DzJ/Nyx5O5H7i3ymnEMJ6e5fDaxm4=; b=pSkTICGepx+4QxJTIC8lkAp1SsAcawk2TYNAse0OONkUbTfVKpen7CH4yRhIpW7pgU AeJooOju2zMhVzNH8fKVlxTAnzQQhkP844praVj4K27ETgM6omxjcTAZx+bRdSrqw3ls C+Dv+GtFGGuscZPKTkxqWG9ArSCRNc+AClBQbsh15cR4e3/J2FXSopK8VL8JcPoa9uGl mOqnTq+9MvLMIo6zGt7iQci7kESapJR7mHrQynpOXv/zpw40Fqt6n+agqzqw57l/m5FW 3u3CVDQqmeXyqC2cVNDDOPQjsuHE9VZZxg4pIt3kqbZmETbZFVuJT24tyP7OrC9yBTOT AIyQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f10si856709ejf.89.2020.10.20.02.10.59; Tue, 20 Oct 2020 02:11:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390976AbgJTDKV (ORCPT + 99 others); Mon, 19 Oct 2020 23:10:21 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:52522 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2390963AbgJTDKV (ORCPT ); Mon, 19 Oct 2020 23:10:21 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 02930A3FA46EE92B8C80; Tue, 20 Oct 2020 11:10:19 +0800 (CST) Received: from huawei.com (10.175.127.227) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Tue, 20 Oct 2020 11:10:09 +0800 From: Jason Yan To: , CC: , Jason Yan Subject: [PATCH] lib/lzo: make lzogeneric1x_1_compress() static Date: Tue, 20 Oct 2020 11:14:15 +0800 Message-ID: <20201020031415.136874-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warning: lib/lzo/lzo1x_compress.c:304:5: warning: symbol 'lzogeneric1x_1_compress' was not declared. Should it be static? Signed-off-by: Jason Yan --- lib/lzo/lzo1x_compress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lzo/lzo1x_compress.c b/lib/lzo/lzo1x_compress.c index 8ad5ba2b86e2..76758e9296ba 100644 --- a/lib/lzo/lzo1x_compress.c +++ b/lib/lzo/lzo1x_compress.c @@ -301,7 +301,7 @@ lzo1x_1_do_compress(const unsigned char *in, size_t in_len, return in_end - (ii - ti); } -int lzogeneric1x_1_compress(const unsigned char *in, size_t in_len, +static int lzogeneric1x_1_compress(const unsigned char *in, size_t in_len, unsigned char *out, size_t *out_len, void *wrkmem, const unsigned char bitstream_version) { -- 2.25.4