From mboxrd@z Thu Jan 1 00:00:00 1970 From: maxime.ripard@free-electrons.com (Maxime Ripard) Date: Fri, 21 Apr 2017 10:24:17 +0200 Subject: [PATCH] dmaengine: sun4i: fix invalid argument In-Reply-To: <584a2c53-100b-945b-d665-cef3fa856526@free.fr> References: <20170421084033.5c987e13@canb.auug.org.au> <9858a4ed-bdd9-bd6c-d8a4-e9e6bd539904@free.fr> <584a2c53-100b-945b-d665-cef3fa856526@free.fr> Message-ID: <20170421082417.7cqtevwuhjvfgjcx@lukather> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Fri, Apr 21, 2017 at 10:06:10AM +0200, Mason wrote: > The "pchans_used" field is an unsigned long array. > > for_each_clear_bit_from() expects an unsigned long pointer, > not an array address. > > $ make C=2 drivers/dma/sun4i-dma.o > CHECK drivers/dma/sun4i-dma.c > drivers/dma/sun4i-dma.c:241:9: warning: incorrect type in argument 1 (different base types) > drivers/dma/sun4i-dma.c:241:9: expected unsigned long const *p > drivers/dma/sun4i-dma.c:241:9: got unsigned long ( * )[1] The patch looks good... > Signed-off-by: Mason However this doesn't. See https://www.kernel.org/doc/html/latest/process/submitting-patches.html#developer-s-certificate-of-origin-1-1 Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: