All of lore.kernel.org
 help / color / mirror / Atom feed
From: Xu Yilun <yilun.xu@linux.intel.com>
To: Charles Perry <charles.perry@savoirfairelinux.com>
Cc: mdf@kernel.org, avandiver@markem-imaje.com,
	bcody@markem-imaje.com, Wu Hao <hao.wu@intel.com>,
	Xu Yilun <yilun.xu@intel.com>, Tom Rix <trix@redhat.com>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Michal Simek <michal.simek@amd.com>,
	linux-fpga@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v6 3/4] fpga: xilinx-selectmap: add new driver
Date: Sun, 31 Mar 2024 22:34:40 +0800	[thread overview]
Message-ID: <Zgl0gPt/pc+vXyGw@yilunxu-OptiPlex-7050> (raw)
In-Reply-To: <20240321220447.3260065-4-charles.perry@savoirfairelinux.com>

> +static int xilinx_selectmap_write(struct xilinx_fpga_core *core,
> +				  const char *buf, size_t count)
> +{
> +	struct xilinx_selectmap_conf *conf = to_xilinx_selectmap_conf(core);
> +	u32 i;

comparing u32 with size_t is problematic.

size_t i;

I can fix it in place.

Thanks,
Yilun

> +
> +	for (i = 0; i < count; ++i)
> +		writeb(buf[i], conf->base);
> +
> +	return 0;
> +}

WARNING: multiple messages have this Message-ID (diff)
From: Xu Yilun <yilun.xu@linux.intel.com>
To: Charles Perry <charles.perry@savoirfairelinux.com>
Cc: mdf@kernel.org, avandiver@markem-imaje.com,
	bcody@markem-imaje.com, Wu Hao <hao.wu@intel.com>,
	Xu Yilun <yilun.xu@intel.com>, Tom Rix <trix@redhat.com>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Michal Simek <michal.simek@amd.com>,
	linux-fpga@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v6 3/4] fpga: xilinx-selectmap: add new driver
Date: Sun, 31 Mar 2024 22:34:40 +0800	[thread overview]
Message-ID: <Zgl0gPt/pc+vXyGw@yilunxu-OptiPlex-7050> (raw)
In-Reply-To: <20240321220447.3260065-4-charles.perry@savoirfairelinux.com>

> +static int xilinx_selectmap_write(struct xilinx_fpga_core *core,
> +				  const char *buf, size_t count)
> +{
> +	struct xilinx_selectmap_conf *conf = to_xilinx_selectmap_conf(core);
> +	u32 i;

comparing u32 with size_t is problematic.

size_t i;

I can fix it in place.

Thanks,
Yilun

> +
> +	for (i = 0; i < count; ++i)
> +		writeb(buf[i], conf->base);
> +
> +	return 0;
> +}

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2024-03-31 14:39 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-21 22:04 [PATCH v6 0/4] fpga: xilinx-selectmap: add new driver Charles Perry
2024-03-21 22:04 ` Charles Perry
2024-03-21 22:04 ` [PATCH v6 1/4] fpga: xilinx-spi: extract a common driver core Charles Perry
2024-03-21 22:04   ` Charles Perry
2024-03-21 22:04 ` [PATCH v6 2/4] dt-bindings: fpga: xlnx,fpga-selectmap: add DT schema Charles Perry
2024-03-21 22:04   ` Charles Perry
2024-03-21 22:04 ` [PATCH v6 3/4] fpga: xilinx-selectmap: add new driver Charles Perry
2024-03-21 22:04   ` Charles Perry
2024-03-31 14:34   ` Xu Yilun [this message]
2024-03-31 14:34     ` Xu Yilun
2024-03-21 22:04 ` [PATCH v6 4/4] fpga: xilinx-core: add new gpio names for prog and init Charles Perry
2024-03-21 22:04   ` Charles Perry
2024-03-31 14:50 ` [PATCH v6 0/4] fpga: xilinx-selectmap: add new driver Xu Yilun
2024-03-31 14:50   ` Xu Yilun
2024-04-02 13:57   ` Charles Perry
2024-04-02 13:57     ` Charles Perry

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=Zgl0gPt/pc+vXyGw@yilunxu-OptiPlex-7050 \
    --to=yilun.xu@linux.intel.com \
    --cc=avandiver@markem-imaje.com \
    --cc=bcody@markem-imaje.com \
    --cc=charles.perry@savoirfairelinux.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=hao.wu@intel.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-fpga@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mdf@kernel.org \
    --cc=michal.simek@amd.com \
    --cc=robh+dt@kernel.org \
    --cc=trix@redhat.com \
    --cc=yilun.xu@intel.com \
    /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.