Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1430387ybb; Thu, 9 Apr 2020 01:52:45 -0700 (PDT) X-Google-Smtp-Source: APiQypLyNb3+x+T1wYV2Oh5yPvVCU7WVhbtVhQnEuUbmqxLmQCC3l461wr4lw8HW5HyFlq9GyqKa X-Received: by 2002:a9d:76c7:: with SMTP id p7mr8612003otl.145.1586422365758; Thu, 09 Apr 2020 01:52:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586422365; cv=none; d=google.com; s=arc-20160816; b=iV4YAfoFRhh00jkEBhd+8IQ5daJYSKj/dlnjabrkkH5NQHd234nJLLQGLzbDY9Kdwf pwKP525vyf4aWy8L7fg470qmYic1Ne6lc0fqCcoUWq4Vw+b+FSBYrVJ/URajdCHOgV+C TuJ7RXxaOjaB5a2QZM8SWHAGnNnfsspquIBNw6NAilnynssYY8BsD6wFRwf+/PJFF6lR UQOH0c/nMn+//E+cybwM4SMTdzGIyrNUZ0lRp+IwLctHiS7g0+nU5Rhwr6iPmRkV1vaz rduEnPGY4NuWRlbNagFYzFZLLgPg0lHyoWqMX7VTdgvkV4sbqZk+T++kDklHzZPT11Ng R9wQ== 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=rJDYKaMm79wuRLE+WGXcz8gvrL7YOqxja8PzAkTKa2U=; b=iJ+9V0YX/TUWN5dHT1fRifwi4t2dynqLRDUAHwMgGeSXBi54oFkiIGgIJHReauiENK Zj2QgFvyPUeI/CelYMlHvr+tFKKqQBHR0lx3l1EZYfi6PHqAbNY6S+cOvDwVmYUM9bVw rN4hnu6iQqASldZIbpInKFmT2za7f0nLQ/hKsQZ9fPnLgGz7QQr7ua8OS2Y5zRlIYsuE opP74GPGVsTZY84YNcIVupLSblXbHYjY6PtoOJWzgckR/g/Dxgfluvo6gNH1uC2jAz9a e1n0a1qivkQ99b9KSTeg8SZwYAsGaz1+Z5VhyodBg84jFxrFs5GU6TH2R70CjbCxPlbS pe0g== 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 v6si2978766oix.67.2020.04.09.01.52.31; Thu, 09 Apr 2020 01:52:45 -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 S1726589AbgDIIvq (ORCPT + 99 others); Thu, 9 Apr 2020 04:51:46 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:12703 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725970AbgDIIvq (ORCPT ); Thu, 9 Apr 2020 04:51:46 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id B51C658B19EB8263FEEF; Thu, 9 Apr 2020 16:51:43 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Thu, 9 Apr 2020 16:51:36 +0800 From: Jason Yan To: , , , , , CC: Jason Yan Subject: [PATCH] spi: spi-mtk-nor: make mtk_nor_exec_op() statuc Date: Thu, 9 Apr 2020 16:50:09 +0800 Message-ID: <20200409085009.44971-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warning: drivers/spi/spi-mtk-nor.c:394:5: warning: symbol 'mtk_nor_exec_op' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/spi/spi-mtk-nor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-mtk-nor.c b/drivers/spi/spi-mtk-nor.c index c15a9910549f..7bc302b50396 100644 --- a/drivers/spi/spi-mtk-nor.c +++ b/drivers/spi/spi-mtk-nor.c @@ -391,7 +391,7 @@ static int mtk_nor_pp_unbuffered(struct mtk_nor *sp, return mtk_nor_cmd_exec(sp, MTK_NOR_CMD_WRITE, 6 * BITS_PER_BYTE); } -int mtk_nor_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) +static int mtk_nor_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) { struct mtk_nor *sp = spi_controller_get_devdata(mem->spi->master); int ret; -- 2.17.2