From: vinod.koul@intel.com (Vinod Koul)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] dmaengine: bcm2835: fix 64-bit warning
Date: Fri, 1 Jul 2016 08:40:31 +0530 [thread overview]
Message-ID: <20160701031031.GR14945@localhost> (raw)
In-Reply-To: <20160630124845.184259-1-arnd@arndb.de>
On Thu, Jun 30, 2016 at 02:47:10PM +0200, Arnd Bergmann wrote:
> When building this driver on arm64, we get a harmless type
> mismatch warning:
>
> drivers/dma/bcm2835-dma.c: In function 'bcm2835_dma_fill_cb_chain_with_sg':
> include/linux/kernel.h:743:17: warning: comparison of distinct pointer types lacks a cast
> (void) (&_min1 == &_min2); \
> ^
> drivers/dma/bcm2835-dma.c:409:21: note: in expansion of macro 'min'
> cb->cb->length = min(len, max_len);
>
> This changes the type of the 'len' variable to size_t, which
> avoids the problem.
Applied, thanks
--
~Vinod
WARNING: multiple messages have this Message-ID (diff)
From: Vinod Koul <vinod.koul@intel.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Stephen Warren <swarren@wwwdotorg.org>,
Lee Jones <lee@kernel.org>, Eric Anholt <eric@anholt.net>,
Martin Sperl <kernel@martin.sperl.org>,
dmaengine@vger.kernel.org, linux-rpi-kernel@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] dmaengine: bcm2835: fix 64-bit warning
Date: Fri, 1 Jul 2016 08:40:31 +0530 [thread overview]
Message-ID: <20160701031031.GR14945@localhost> (raw)
In-Reply-To: <20160630124845.184259-1-arnd@arndb.de>
On Thu, Jun 30, 2016 at 02:47:10PM +0200, Arnd Bergmann wrote:
> When building this driver on arm64, we get a harmless type
> mismatch warning:
>
> drivers/dma/bcm2835-dma.c: In function 'bcm2835_dma_fill_cb_chain_with_sg':
> include/linux/kernel.h:743:17: warning: comparison of distinct pointer types lacks a cast
> (void) (&_min1 == &_min2); \
> ^
> drivers/dma/bcm2835-dma.c:409:21: note: in expansion of macro 'min'
> cb->cb->length = min(len, max_len);
>
> This changes the type of the 'len' variable to size_t, which
> avoids the problem.
Applied, thanks
--
~Vinod
next prev parent reply other threads:[~2016-07-01 3:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-30 12:47 [PATCH] dmaengine: bcm2835: fix 64-bit warning Arnd Bergmann
2016-06-30 12:47 ` Arnd Bergmann
2016-07-01 3:10 ` Vinod Koul [this message]
2016-07-01 3:10 ` Vinod Koul
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=20160701031031.GR14945@localhost \
--to=vinod.koul@intel.com \
--cc=linux-arm-kernel@lists.infradead.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.