Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp108990pxb; Thu, 14 Jan 2021 00:56:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJzOoDi6/2MKxc2yaYux1fiy84cmukkeKHLi1SO7Z1qok8OeNo7VdIVayt3oUWC/Hu/2EPqL X-Received: by 2002:a17:906:934c:: with SMTP id p12mr4627356ejw.361.1610614616509; Thu, 14 Jan 2021 00:56:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610614616; cv=none; d=google.com; s=arc-20160816; b=iZ+tJHzrNEYGukuwHD/dFfil+ZKgqAnkw0j1Eu94A3b8e3EuLK0RUGV/sdkbFazfbN k00rga3jji9HeCLcRSAbj57A3hsi6F4UVdhon7iuiO5lRcKtBqIfK9UFtcS3RngzeO4h KlfPrUV1RoSYhnDXSt5B/oOdURjP3VDvWK9BcfYnS/N360YRY3/5MZF8IBPj6zPxa65x qgz7wD7qWUMwUH42sDz/lMiYzPaphh9kUhIZSusM3CJcQXcUycuZMm8dPgOdv8wa/DTO PO0ngiBQA4U1SOf2VwPVbUqwsThHkpdPiznw4iB9UBDtxNCoIynmK/e9aG56trDv0viq 3fuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=sOpMsWvs/T4uVROXb9MIoWYAaPNKGluOO++E0andmec=; b=CEq9P7cM8oyvD9jA2JfyjFd/Mm6n6t8U9xHCbIu9DmHRdlSH45SLhOPgFFfVtdwcju 345rhb909l/qoHEsO1wWxPQI2+s0dCXRStW+hThHrIqnLHfbEK2coTL4K3Cct0V6sfbv alXzv0zkWasXVDAemxtdRgTfFn/TAP9we0g3I+R0kmBfXAmOYOjO7LRL+A9lFbk0AHCN +GePKLcH5/GlrfqBwkk8m5UAVC1rgaJJ+rLlVK3vmFcx8+0yjlF/AFOCRXKj9MEkFX48 EY1FOvbSp1wdSmEtOcS3zdcXgtC2wRLcVXye2Z+BaPwUtV+xiS/4+HwTF0Css8aY548k 29QQ== 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 n6si2275634edr.485.2021.01.14.00.56.33; Thu, 14 Jan 2021 00:56:56 -0800 (PST) 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 S1727612AbhANIzK (ORCPT + 99 others); Thu, 14 Jan 2021 03:55:10 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:11098 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727274AbhANIzK (ORCPT ); Thu, 14 Jan 2021 03:55:10 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4DGdPX5GDBzMKJn; Thu, 14 Jan 2021 16:53:04 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.498.0; Thu, 14 Jan 2021 16:54:14 +0800 From: Zou Wei To: , , , CC: , , , Zou Wei Subject: [PATCH -next] media: venus: Mark bufreq_enc with static keyword Date: Thu, 14 Jan 2021 17:05:21 +0800 Message-ID: <1610615121-15340-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warning: drivers/media/platform/qcom/venus/hfi_plat_bufs_v6.c:1242:5: warning: symbol 'bufreq_enc' was not declared. Should it be static? Signed-off-by: Zou Wei --- drivers/media/platform/qcom/venus/hfi_plat_bufs_v6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/qcom/venus/hfi_plat_bufs_v6.c b/drivers/media/platform/qcom/venus/hfi_plat_bufs_v6.c index 072e349..d43d1a5 100644 --- a/drivers/media/platform/qcom/venus/hfi_plat_bufs_v6.c +++ b/drivers/media/platform/qcom/venus/hfi_plat_bufs_v6.c @@ -1239,8 +1239,8 @@ static int bufreq_dec(struct hfi_plat_buffers_params *params, u32 buftype, return 0; } -int bufreq_enc(struct hfi_plat_buffers_params *params, u32 buftype, - struct hfi_buffer_requirements *bufreq) +static int bufreq_enc(struct hfi_plat_buffers_params *params, u32 buftype, + struct hfi_buffer_requirements *bufreq) { enum hfi_version version = params->version; struct enc_bufsize_ops *enc_ops; -- 2.6.2