Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp751533ybx; Fri, 1 Nov 2019 10:37:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzR2s3DzBd2F8pFI7CRN8A0BDU+uNRS/YwBbsVr+ODIDnYN1xwwHHJcjhOM29fbSMDBGT0 X-Received: by 2002:aa7:ca0b:: with SMTP id y11mr13945716eds.51.1572629865134; Fri, 01 Nov 2019 10:37:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572629865; cv=none; d=google.com; s=arc-20160816; b=FUEdo5wu1rsKktW2qIs1duaCJ60cjVbR+/QX/qahoBSNJxOt/x9Sfef/ln5vVUkUD1 x3SmWvuQnrjWdkQ8D6dTK9DtEtynXns6ldIwGQVgYiIFanEoFkGtyBe6C59DAZWNST+n eTZd0HjiewuvlRHV6NpnVOqtKqNigDsRtiPWiQXFaxPDU02yNs3Ky75cfG0Hi8RJ6z02 qnxqgugXo5+HgqMLdxDVDY4PNwidNIpxxP7tnDIchKXkBNhJP9wg7a+gGrNgQlPHWryM KxBmskkWRZPQielroPU7LhR2o6Qa+ezFs/lZjTJG8OETo33OKSwaRGWGFkwq1kbuUxLL cGvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=JRzMU1yHKr2OWGLS7Bk2IQMRGKOdMI7KVMiwoVX6ePk=; b=F13YpQVrY6p+FeiGbp2iFuMXHeEeXhitaebj1TbMS+z8BCbfn/wq8P9AkkA5IXeVGi Z6j3kopisFSRkUafy1rc+nsOZlfGY80YZfnGQcny+RUpa/5056Yj/437j5tcskHRMnMy AUNP1D0DHj0Gea40nAlUn08pUa7MknANJlrSDFNleHpRNfBiA7bkHUQdENWzQNdyF08p gULdZ4UWuDGb7xvMU8pjaP1H7aQpCML+L0xZZUv9NAgsP0m7dcQiep0O+lEeQZJZRU/A MitZ3HsIYs2Tcx1HuO6izAQKgNKYBxAMyMajSN73ApGBrsiUGg6oEjucq3cIicBQ8R58 p7OQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k20si1141413edj.55.2019.11.01.10.37.21; Fri, 01 Nov 2019 10:37: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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728042AbfKARgx (ORCPT + 99 others); Fri, 1 Nov 2019 13:36:53 -0400 Received: from mga05.intel.com ([192.55.52.43]:24137 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727064AbfKARgx (ORCPT ); Fri, 1 Nov 2019 13:36:53 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Nov 2019 10:36:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,256,1569308400"; d="scan'208";a="284254807" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 01 Nov 2019 10:36:50 -0700 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1iQaqw-0009N8-B7; Sat, 02 Nov 2019 01:36:50 +0800 Date: Sat, 2 Nov 2019 01:36:39 +0800 From: kbuild test robot To: "Ramuthevar,Vadivel MuruganX" Cc: kbuild-all@lists.01.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, broonie@kernel.org, vigneshr@ti.com, robh+dt@kernel.org, cheol.yong.kim@intel.com, qi-ming.wu@intel.com, Ramuthevar Vadivel Murugan Subject: [RFC PATCH] spi: cadence-quadpsi: cadence_qspi_init_timeout() can be static Message-ID: <20191101173639.nwwbykkafj4oeksz@4978f4969bb8> References: <20191030081155.29947-3-vadivel.muruganx.ramuthevar@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191030081155.29947-3-vadivel.muruganx.ramuthevar@linux.intel.com> X-Patchwork-Hint: ignore User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes: 61e865acd941 ("spi: cadence-quadpsi: Add support for the Cadence QSPI controller") Signed-off-by: kbuild test robot --- spi-cadence-quadspi.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/spi/spi-cadence-quadspi.c b/drivers/spi/spi-cadence-quadspi.c index bca391bfb58f9..56fb931596174 100644 --- a/drivers/spi/spi-cadence-quadspi.c +++ b/drivers/spi/spi-cadence-quadspi.c @@ -51,12 +51,12 @@ struct cqspi_driver_platdata { u8 quirks; }; -unsigned int cadence_qspi_init_timeout(const unsigned long timeout_in_ms) +static unsigned int cadence_qspi_init_timeout(const unsigned long timeout_in_ms) { return jiffies + msecs_to_jiffies(timeout_in_ms); } -unsigned int cadence_qspi_check_timeout(const unsigned long timeout) +static unsigned int cadence_qspi_check_timeout(const unsigned long timeout) { return time_before(jiffies, timeout); } @@ -98,7 +98,7 @@ static u32 cadence_qspi_cmd2addr(const unsigned char *addr_buf, u32 addr_width) return addr; } -void enable_qspi_direct_access(void *reg_base, bool enable) +static void enable_qspi_direct_access(void *reg_base, bool enable) { u32 reg; @@ -111,7 +111,7 @@ void enable_qspi_direct_access(void *reg_base, bool enable) writel(reg, reg_base + CQSPI_REG_CONFIG); } -void cadence_qspi_controller_enable(void *reg_base, bool enable) +static void cadence_qspi_controller_enable(void *reg_base, bool enable) { unsigned int reg; @@ -644,12 +644,12 @@ static int cqspi_indirect_write_execute(struct struct_cqspi *cqspi, u32 txlen, return ret; } -unsigned int cadence_qspi_is_controller_ready(void *reg_base) +static unsigned int cadence_qspi_is_controller_ready(void *reg_base) { return cadence_qspi_wait_idle(reg_base); } -void cadence_qspi_controller_init(struct struct_cqspi *cqspi) +static void cadence_qspi_controller_init(struct struct_cqspi *cqspi) { struct platform_device *pdev = cqspi->pdev; struct cqspi_platform_data *pdata = pdev->dev.platform_data; @@ -687,7 +687,7 @@ unsigned int calculate_ticks_for_ns(u32 ref_clk_hz, u32 ns_val) return ticks; } -void cadence_qspi_delay(struct struct_cqspi *cqspi, u32 ref_clk, u32 sclk_hz) +static void cadence_qspi_delay(struct struct_cqspi *cqspi, u32 ref_clk, u32 sclk_hz) { struct platform_device *pdev = cqspi->pdev; struct cqspi_platform_data *pdata = pdev->dev.platform_data; @@ -722,7 +722,7 @@ void cadence_qspi_delay(struct struct_cqspi *cqspi, u32 ref_clk, u32 sclk_hz) cadence_qspi_controller_enable(cqspi->iobase, 1); } -void cadence_qspi_switch_chipselect(struct struct_cqspi *cqspi, u32 cs) +static void cadence_qspi_switch_chipselect(struct struct_cqspi *cqspi, u32 cs) { struct platform_device *pdev = cqspi->pdev; struct cqspi_platform_data *pdata = pdev->dev.platform_data; @@ -924,7 +924,7 @@ static int cadence_qspi_mem_process(struct struct_cqspi *cqspi, return ret; } -int cadence_qspi_exec_mem_op(struct spi_mem *mem, const struct spi_mem_op *op) +static int cadence_qspi_exec_mem_op(struct spi_mem *mem, const struct spi_mem_op *op) { struct struct_cqspi *cqspi = spi_master_get_devdata(mem->spi->master); int ret;