All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: linux-aspeed@lists.ozlabs.org
Subject: [RFC PATCH] spi: aspeed: aspeed_spi_get_io_mode() can be static
Date: Tue, 3 Nov 2020 08:33:31 +0800	[thread overview]
Message-ID: <20201103003331.GA44379@4742e760afe2> (raw)
In-Reply-To: <20201102075213.32404-5-chin-ting_kuo@aspeedtech.com>


Signed-off-by: kernel test robot <lkp@intel.com>
---
 spi-aspeed.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/spi/spi-aspeed.c b/drivers/spi/spi-aspeed.c
index 795f67c9ca6ac3..6b067dee833246 100644
--- a/drivers/spi/spi-aspeed.c
+++ b/drivers/spi/spi-aspeed.c
@@ -144,7 +144,7 @@ static void aspeed_spi_chip_set_4byte(struct aspeed_spi_controller *ast_ctrl,
 	writel(reg_val, ast_ctrl->regs + OFFSET_CE_ADDR_MODE_CTRL);
 }
 
-uint32_t aspeed_spi_get_io_mode(uint32_t bus_width)
+static uint32_t aspeed_spi_get_io_mode(uint32_t bus_width)
 {
 	switch (bus_width) {
 	case 1:
@@ -295,8 +295,8 @@ aspeed_2600_spi_clk_basic_setting(struct aspeed_spi_controller *ast_ctrl,
  * content is too monotonous, the frequency recorded in the device
  * tree will be adopted.
  */
-int aspeed_2600_spi_timing_calibration(struct aspeed_spi_controller *ast_ctrl,
-				       uint32_t cs)
+static int aspeed_2600_spi_timing_calibration(struct aspeed_spi_controller *ast_ctrl,
+					      uint32_t cs)
 {
 	int ret = 0;
 	struct device *dev = ast_ctrl->dev;
@@ -432,7 +432,7 @@ int aspeed_2600_spi_timing_calibration(struct aspeed_spi_controller *ast_ctrl,
  * of its related flash size. Namely, the total decoded size
  * from flash 0 to flash N should be multiple of flash (N + 1).
  */
-void aspeed_2600_adjust_decode_sz(uint32_t decode_sz_arr[], int len)
+static void aspeed_2600_adjust_decode_sz(uint32_t decode_sz_arr[], int len)
 {
 	int cs, j;
 	uint32_t sz;

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>,
	broonie@kernel.org, robh+dt@kernel.org, joel@jms.id.au,
	andrew@aj.id.au, clg@kaod.org, bbrezillon@kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-aspeed@lists.ozlabs.org, linux-spi@vger.kernel.org
Cc: kbuild-all@lists.01.org
Subject: [RFC PATCH] spi: aspeed: aspeed_spi_get_io_mode() can be static
Date: Tue, 3 Nov 2020 08:33:31 +0800	[thread overview]
Message-ID: <20201103003331.GA44379@4742e760afe2> (raw)
In-Reply-To: <20201102075213.32404-5-chin-ting_kuo@aspeedtech.com>


Signed-off-by: kernel test robot <lkp@intel.com>
---
 spi-aspeed.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/spi/spi-aspeed.c b/drivers/spi/spi-aspeed.c
index 795f67c9ca6ac3..6b067dee833246 100644
--- a/drivers/spi/spi-aspeed.c
+++ b/drivers/spi/spi-aspeed.c
@@ -144,7 +144,7 @@ static void aspeed_spi_chip_set_4byte(struct aspeed_spi_controller *ast_ctrl,
 	writel(reg_val, ast_ctrl->regs + OFFSET_CE_ADDR_MODE_CTRL);
 }
 
-uint32_t aspeed_spi_get_io_mode(uint32_t bus_width)
+static uint32_t aspeed_spi_get_io_mode(uint32_t bus_width)
 {
 	switch (bus_width) {
 	case 1:
@@ -295,8 +295,8 @@ aspeed_2600_spi_clk_basic_setting(struct aspeed_spi_controller *ast_ctrl,
  * content is too monotonous, the frequency recorded in the device
  * tree will be adopted.
  */
-int aspeed_2600_spi_timing_calibration(struct aspeed_spi_controller *ast_ctrl,
-				       uint32_t cs)
+static int aspeed_2600_spi_timing_calibration(struct aspeed_spi_controller *ast_ctrl,
+					      uint32_t cs)
 {
 	int ret = 0;
 	struct device *dev = ast_ctrl->dev;
@@ -432,7 +432,7 @@ int aspeed_2600_spi_timing_calibration(struct aspeed_spi_controller *ast_ctrl,
  * of its related flash size. Namely, the total decoded size
  * from flash 0 to flash N should be multiple of flash (N + 1).
  */
-void aspeed_2600_adjust_decode_sz(uint32_t decode_sz_arr[], int len)
+static void aspeed_2600_adjust_decode_sz(uint32_t decode_sz_arr[], int len)
 {
 	int cs, j;
 	uint32_t sz;

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [RFC PATCH] spi: aspeed: aspeed_spi_get_io_mode() can be static
Date: Tue, 03 Nov 2020 08:33:31 +0800	[thread overview]
Message-ID: <20201103003331.GA44379@4742e760afe2> (raw)
In-Reply-To: <20201102075213.32404-5-chin-ting_kuo@aspeedtech.com>

[-- Attachment #1: Type: text/plain, Size: 1531 bytes --]


Signed-off-by: kernel test robot <lkp@intel.com>
---
 spi-aspeed.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/spi/spi-aspeed.c b/drivers/spi/spi-aspeed.c
index 795f67c9ca6ac3..6b067dee833246 100644
--- a/drivers/spi/spi-aspeed.c
+++ b/drivers/spi/spi-aspeed.c
@@ -144,7 +144,7 @@ static void aspeed_spi_chip_set_4byte(struct aspeed_spi_controller *ast_ctrl,
 	writel(reg_val, ast_ctrl->regs + OFFSET_CE_ADDR_MODE_CTRL);
 }
 
-uint32_t aspeed_spi_get_io_mode(uint32_t bus_width)
+static uint32_t aspeed_spi_get_io_mode(uint32_t bus_width)
 {
 	switch (bus_width) {
 	case 1:
@@ -295,8 +295,8 @@ aspeed_2600_spi_clk_basic_setting(struct aspeed_spi_controller *ast_ctrl,
  * content is too monotonous, the frequency recorded in the device
  * tree will be adopted.
  */
-int aspeed_2600_spi_timing_calibration(struct aspeed_spi_controller *ast_ctrl,
-				       uint32_t cs)
+static int aspeed_2600_spi_timing_calibration(struct aspeed_spi_controller *ast_ctrl,
+					      uint32_t cs)
 {
 	int ret = 0;
 	struct device *dev = ast_ctrl->dev;
@@ -432,7 +432,7 @@ int aspeed_2600_spi_timing_calibration(struct aspeed_spi_controller *ast_ctrl,
  * of its related flash size. Namely, the total decoded size
  * from flash 0 to flash N should be multiple of flash (N + 1).
  */
-void aspeed_2600_adjust_decode_sz(uint32_t decode_sz_arr[], int len)
+static void aspeed_2600_adjust_decode_sz(uint32_t decode_sz_arr[], int len)
 {
 	int cs, j;
 	uint32_t sz;

  parent reply	other threads:[~2020-11-03  0:33 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-02  7:52 [PATCH 0/4] Porting ASPEED FMC/SPI memory controller driver Chin-Ting Kuo
2020-11-02  7:52 ` Chin-Ting Kuo
2020-11-02  7:52 ` [PATCH 1/4] dt-bindings: spi: Add binding file for ASPEED FMC/SPI memory controller Chin-Ting Kuo
2020-11-02  7:52   ` Chin-Ting Kuo
2020-11-02  7:52 ` [PATCH 2/4] ARM: dts: aspeed: ast2600: Update FMC/SPI controller setting for spi-aspeed.c Chin-Ting Kuo
2020-11-02  7:52   ` Chin-Ting Kuo
2020-11-02  7:52 ` [PATCH 3/4] ARM: dts: aspeed: ast2600-evb: Adjust SPI flash configuration Chin-Ting Kuo
2020-11-02  7:52   ` Chin-Ting Kuo
2020-11-02  7:52 ` [PATCH 4/4] spi: aspeed: Add ASPEED FMC/SPI memory controller driver Chin-Ting Kuo
2020-11-02  7:52   ` Chin-Ting Kuo
2020-11-03  0:33   ` kernel test robot
2020-11-03  0:33     ` kernel test robot
2020-11-03  0:33     ` kernel test robot
2020-11-03  0:33   ` kernel test robot [this message]
2020-11-03  0:33     ` [RFC PATCH] spi: aspeed: aspeed_spi_get_io_mode() can be static kernel test robot
2020-11-03  0:33     ` kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201103003331.GA44379@4742e760afe2 \
    --to=lkp@intel.com \
    --cc=linux-aspeed@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.