All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Binbin Zhou <zhoubinbin@loongson.cn>,
	Binbin Zhou <zhoubb.aaron@gmail.com>,
	Huacai Chen <chenhuacai@loongson.cn>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzk@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Ulf Hansson <ulf.hansson@linaro.org>
Cc: oe-kbuild-all@lists.linux.dev, Xuerui Wang <kernel@xen0n.name>,
	loongarch@lists.linux.dev, devicetree@vger.kernel.org,
	linux-mmc@vger.kernel.org
Subject: Re: [PATCH v2 2/4] mmc: loongson2: Add Loongson-2K SD/SDIO controller driver
Date: Tue, 13 May 2025 10:09:40 +0800	[thread overview]
Message-ID: <202505130918.uanOGxju-lkp@intel.com> (raw)
In-Reply-To: <1308b6ca9ffc2674cc0f089cfd163da87e53a8cd.1746581751.git.zhoubinbin@loongson.cn>

Hi Binbin,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 9e12816f9a6195f1f5b7c5dc2e388c2458411b97]

url:    https://github.com/intel-lab-lkp/linux/commits/Binbin-Zhou/dt-bindings-mmc-Add-Loongson-2K-SD-SDIO-eMMC-controller-binding/20250507-153435
base:   9e12816f9a6195f1f5b7c5dc2e388c2458411b97
patch link:    https://lore.kernel.org/r/1308b6ca9ffc2674cc0f089cfd163da87e53a8cd.1746581751.git.zhoubinbin%40loongson.cn
patch subject: [PATCH v2 2/4] mmc: loongson2: Add Loongson-2K SD/SDIO controller driver
config: csky-randconfig-r112-20250513 (https://download.01.org/0day-ci/archive/20250513/202505130918.uanOGxju-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20250513/202505130918.uanOGxju-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505130918.uanOGxju-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/mmc/host/loongson2-mmc.c:534:41: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] @@     got restricted __be32 [usertype] @@
   drivers/mmc/host/loongson2-mmc.c:534:41: sparse:     expected unsigned int [usertype]
   drivers/mmc/host/loongson2-mmc.c:534:41: sparse:     got restricted __be32 [usertype]

vim +534 drivers/mmc/host/loongson2-mmc.c

   500	
   501	static int loongson2_reorder_cmd_list[] = { SD_APP_SEND_SCR, SD_APP_SEND_NUM_WR_BLKS,
   502						    SD_APP_SD_STATUS, MMC_SEND_WRITE_PROT,
   503						    SD_SWITCH };
   504	
   505	/*
   506	 * According to SD spec, ACMD13, ACMD22, ACMD51 and CMD30
   507	 * response datas has different byte order with usual data packets.
   508	 * However sdio controller will send these datas in usual data format,
   509	 * so we need to adjust these datas to a protocol consistent byte order.
   510	 */
   511	static void loongson2_mmc_reorder_cmd_data(struct loongson2_mmc_host *host,
   512						   struct mmc_command *cmd)
   513	{
   514		struct scatterlist *sg;
   515		u32 *data;
   516		int i, j;
   517	
   518		if (mmc_cmd_type(cmd) != MMC_CMD_ADTC)
   519			return;
   520	
   521		for (i = 0; i < ARRAY_SIZE(loongson2_reorder_cmd_list); i++)
   522			if (cmd->opcode == loongson2_reorder_cmd_list[i])
   523				break;
   524	
   525		if (i == ARRAY_SIZE(loongson2_reorder_cmd_list))
   526			return;
   527	
   528		for_each_sg(cmd->data->sg, sg, cmd->data->sg_len, i) {
   529			data = sg_virt(&sg[i]);
   530			for (j = 0; j < (sg_dma_len(&sg[i]) / 4); j++)
   531				if (cmd->opcode == SD_SWITCH)
   532					data[j] = bitrev8x4(data[j]);
   533				else
 > 534					data[j] = cpu_to_be32(data[j]);
   535		}
   536	}
   537	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  parent reply	other threads:[~2025-05-13  2:09 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-07  7:28 [PATCH v2 0/4] LoongArch: Introduce the Loongson-2K MMC host controller driver Binbin Zhou
2025-05-07  7:28 ` [PATCH v2 1/4] dt-bindings: mmc: Add Loongson-2K SD/SDIO/eMMC controller binding Binbin Zhou
2025-05-08 15:00   ` Conor Dooley
2025-05-09  1:22     ` Binbin Zhou
2025-05-07  7:28 ` [PATCH v2 2/4] mmc: loongson2: Add Loongson-2K SD/SDIO controller driver Binbin Zhou
2025-05-08 10:13   ` kernel test robot
2025-05-13  2:09   ` kernel test robot [this message]
2025-05-19 11:03   ` Ulf Hansson
2025-06-05  3:03     ` Binbin Zhou
2025-05-07  7:28 ` [PATCH v2 3/4] dt-bindings: mmc: loongson,ls2k-mmc: Add compatible for Loongson-2K2000 Binbin Zhou
2025-05-08 15:00   ` Conor Dooley
2025-05-07  7:28 ` [PATCH v2 4/4] mmc: loongson2: Add Loongson-2K2000 SD/SDIO/eMMC controller driver Binbin Zhou
2025-05-19 11:17   ` Ulf Hansson
2025-06-03 12:54     ` Binbin Zhou
2025-06-10 12:52       ` Ulf Hansson

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=202505130918.uanOGxju-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=chenhuacai@loongson.cn \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=kernel@xen0n.name \
    --cc=krzk@kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=loongarch@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=robh+dt@kernel.org \
    --cc=ulf.hansson@linaro.org \
    --cc=zhoubb.aaron@gmail.com \
    --cc=zhoubinbin@loongson.cn \
    /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.