Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3485709ybg; Mon, 28 Oct 2019 13:41:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6H75S3+TAXe8SgoUmQasM12NIrq4vQ/wKqo919oOVrXc3uZV4zpQFL6o4sBmFqfXLC2Qg X-Received: by 2002:a05:6402:1614:: with SMTP id f20mr21921950edv.202.1572295263232; Mon, 28 Oct 2019 13:41:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572295263; cv=none; d=google.com; s=arc-20160816; b=JQhurWgrVXbfEzpcAghX1+UAX2SulsTBhgE+cgKKivyg62LHzciwl5vp8cRaqgCdVS MiN49PtymsFmtYc1ZQwHvjXeryd+6cUbmeugdA5NDlEDso61IKxDn5Wa9UvuvlaTUIhV TAQgcaxyZTd6IqBgXTY+w00zwocCfvPsJEoxriqGiQxBfOyvgDy0Gl+azUz8ed5dBugL eA3VJLfwhQb2GGaXmIO9z984xhRp26drzmD/rOfva8aUTUG78NWzn0apsW5thnRhGoju tdedzfP4sl2f3mE5C/eQ87Us7bUdVhS/erw2DuSwX6EoNXoAOqCAkyKqDfb6FpoDQ4zE ZvYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=sfmmzwa0Wf89fVjirYSQZadBq+AtGOzis7Kp57QNuko=; b=Cv5OYUN+HdeuKSoBa4SQZe643C7RMAtL4Hk47gEQv2G98NCrS/C9Lu0gHD62iVrsW/ A5nBWp6yvRxb7Iwdtur3p+x/JFb7JuNqkD0UCBgax1Qofy/llfHXHN/l3oRtW0uBGIcJ w0u8MObj8ij4612Oui9iTAvx5PgYiTbhRa+WbOnzL6zOjgeo2U72xo+9j4I2xs6vpXZJ Gd21hdmMEl7D88G9H2x6kJzWkhEUBIiSy2LkT7hmI4SaQuWTSA9wy1RIQyiAkbEN5b9o vUIc6JVoRtwVniLlLnyPhH7aUL1+XYsHF1iipZSzBDFlxVR8vprbiza3ouY34AB6zaNC Ja4g== 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 r19si6311534ejz.6.2019.10.28.13.40.39; Mon, 28 Oct 2019 13:41:03 -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 S2389187AbfJ1Ncp (ORCPT + 99 others); Mon, 28 Oct 2019 09:32:45 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:34768 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726833AbfJ1Ncp (ORCPT ); Mon, 28 Oct 2019 09:32:45 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 14AFDC67E735CB42E6F8; Mon, 28 Oct 2019 21:32:40 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.439.0; Mon, 28 Oct 2019 21:32:32 +0800 From: YueHaibing To: , , , CC: , , YueHaibing Subject: [PATCH -next] scsi: lpfc: Make lpfc_debugfs_ras_log_data static Date: Mon, 28 Oct 2019 21:25:56 +0800 Message-ID: <20191028132556.16272-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix sparse warning: drivers/scsi/lpfc/lpfc_debugfs.c:2083:1: warning: symbol 'lpfc_debugfs_ras_log_data' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/scsi/lpfc/lpfc_debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_debugfs.c b/drivers/scsi/lpfc/lpfc_debugfs.c index 6c8effc..2e6a68d 100644 --- a/drivers/scsi/lpfc/lpfc_debugfs.c +++ b/drivers/scsi/lpfc/lpfc_debugfs.c @@ -2079,8 +2079,8 @@ lpfc_debugfs_lockstat_write(struct file *file, const char __user *buf, } #endif -int -lpfc_debugfs_ras_log_data(struct lpfc_hba *phba, char *buffer, int size) +static int lpfc_debugfs_ras_log_data(struct lpfc_hba *phba, + char *buffer, int size) { int copied = 0; struct lpfc_dmabuf *dmabuf, *next; -- 2.7.4