From: Mason <slash.tmp@free.fr> To: Russell King - ARM Linux <linux@armlinux.org.uk> Cc: Vinod Koul <vinod.koul@intel.com>, Stephen Rothwell <sfr@canb.auug.org.au>, linux-next <linux-next@vger.kernel.org>, LKML <linux-kernel@vger.kernel.org>, Linux ARM <linux-arm-kernel@lists.infradead.org>, arm-soc <arm@kernel.org>, Emilio Lopez <emilio@elopez.com.ar>, dmaengine@vger.kernel.org, Dan Williams <dan.j.williams@intel.com>, Maxime Ripard <maxime.ripard@free-electrons.com>, Chen-Yu Tsai <wens@csie.org> Subject: [PATCH v2] arm: bitops: Align prototypes to generic API Date: Thu, 27 Apr 2017 00:34:01 +0200 [thread overview] Message-ID: <f3eb1c46-a413-955a-0cfa-c297691e2b23@free.fr> (raw) In-Reply-To: <20170424042033.GC6263@localhost> From: Marc Gonzalez <marc_gonzalez@sigmadesigns.com> include/asm-generic/bitops/find.h declares: extern unsigned long find_first_zero_bit(const unsigned long *addr, unsigned long size); while arch/arm/include/asm/bitops.h declares: #define find_first_zero_bit(p,sz) _find_first_zero_bit_le(p,sz) extern int _find_first_zero_bit_le(const void * p, unsigned size); Align the arm prototypes to the generic API, to have gcc report inadequate arguments, such as pointer to u32. Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com> --- The patch fixing drivers/dma/sun4i-dma.c ("dmaengine: sun4i: fix invalid argument") has landed on linux-next (thanks Vinod) as 57192245bc074710ea1a128d39ecc429455ac815 --- arch/arm/include/asm/bitops.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/include/asm/bitops.h b/arch/arm/include/asm/bitops.h index e943e6cee254..f308c8c40cb9 100644 --- a/arch/arm/include/asm/bitops.h +++ b/arch/arm/include/asm/bitops.h @@ -159,16 +159,16 @@ extern int _test_and_change_bit(int nr, volatile unsigned long * p); /* * Little endian assembly bitops. nr = 0 -> byte 0 bit 0. */ -extern int _find_first_zero_bit_le(const void * p, unsigned size); -extern int _find_next_zero_bit_le(const void * p, int size, int offset); +extern int _find_first_zero_bit_le(const unsigned long *p, unsigned size); +extern int _find_next_zero_bit_le(const unsigned long *p, int size, int offset); extern int _find_first_bit_le(const unsigned long *p, unsigned size); extern int _find_next_bit_le(const unsigned long *p, int size, int offset); /* * Big endian assembly bitops. nr = 0 -> byte 3 bit 0. */ -extern int _find_first_zero_bit_be(const void * p, unsigned size); -extern int _find_next_zero_bit_be(const void * p, int size, int offset); +extern int _find_first_zero_bit_be(const unsigned long *p, unsigned size); +extern int _find_next_zero_bit_be(const unsigned long *p, int size, int offset); extern int _find_first_bit_be(const unsigned long *p, unsigned size); extern int _find_next_bit_be(const unsigned long *p, int size, int offset); -- 2.11.0
WARNING: multiple messages have this Message-ID (diff)
From: slash.tmp@free.fr (Mason) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2] arm: bitops: Align prototypes to generic API Date: Thu, 27 Apr 2017 00:34:01 +0200 [thread overview] Message-ID: <f3eb1c46-a413-955a-0cfa-c297691e2b23@free.fr> (raw) In-Reply-To: <20170424042033.GC6263@localhost> From: Marc Gonzalez <marc_gonzalez@sigmadesigns.com> include/asm-generic/bitops/find.h declares: extern unsigned long find_first_zero_bit(const unsigned long *addr, unsigned long size); while arch/arm/include/asm/bitops.h declares: #define find_first_zero_bit(p,sz) _find_first_zero_bit_le(p,sz) extern int _find_first_zero_bit_le(const void * p, unsigned size); Align the arm prototypes to the generic API, to have gcc report inadequate arguments, such as pointer to u32. Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com> --- The patch fixing drivers/dma/sun4i-dma.c ("dmaengine: sun4i: fix invalid argument") has landed on linux-next (thanks Vinod) as 57192245bc074710ea1a128d39ecc429455ac815 --- arch/arm/include/asm/bitops.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/include/asm/bitops.h b/arch/arm/include/asm/bitops.h index e943e6cee254..f308c8c40cb9 100644 --- a/arch/arm/include/asm/bitops.h +++ b/arch/arm/include/asm/bitops.h @@ -159,16 +159,16 @@ extern int _test_and_change_bit(int nr, volatile unsigned long * p); /* * Little endian assembly bitops. nr = 0 -> byte 0 bit 0. */ -extern int _find_first_zero_bit_le(const void * p, unsigned size); -extern int _find_next_zero_bit_le(const void * p, int size, int offset); +extern int _find_first_zero_bit_le(const unsigned long *p, unsigned size); +extern int _find_next_zero_bit_le(const unsigned long *p, int size, int offset); extern int _find_first_bit_le(const unsigned long *p, unsigned size); extern int _find_next_bit_le(const unsigned long *p, int size, int offset); /* * Big endian assembly bitops. nr = 0 -> byte 3 bit 0. */ -extern int _find_first_zero_bit_be(const void * p, unsigned size); -extern int _find_next_zero_bit_be(const void * p, int size, int offset); +extern int _find_first_zero_bit_be(const unsigned long *p, unsigned size); +extern int _find_next_zero_bit_be(const unsigned long *p, int size, int offset); extern int _find_first_bit_be(const unsigned long *p, unsigned size); extern int _find_next_bit_be(const unsigned long *p, int size, int offset); -- 2.11.0
next prev parent reply other threads:[~2017-04-26 22:34 UTC|newest] Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-04-20 22:40 linux-next: build failure after merge of the arm tree Stephen Rothwell 2017-04-21 7:58 ` Mason 2017-04-21 7:58 ` Mason 2017-04-21 8:06 ` [PATCH] dmaengine: sun4i: fix invalid argument Mason 2017-04-21 8:06 ` Mason 2017-04-21 8:24 ` Maxime Ripard 2017-04-21 8:24 ` Maxime Ripard 2017-04-21 8:24 ` Maxime Ripard 2017-04-21 8:43 ` [PATCH v2] " Mason 2017-04-21 8:43 ` Mason 2017-04-21 14:40 ` Maxime Ripard 2017-04-21 14:40 ` Maxime Ripard 2017-04-21 14:40 ` Maxime Ripard 2017-04-21 8:12 ` linux-next: build failure after merge of the arm tree Stephen Rothwell 2017-04-21 8:12 ` Stephen Rothwell 2017-04-21 8:30 ` Mason 2017-04-21 8:30 ` Mason 2017-04-21 23:43 ` Russell King - ARM Linux 2017-04-21 23:43 ` Russell King - ARM Linux 2017-04-21 23:43 ` Russell King - ARM Linux 2017-04-22 8:41 ` Mason 2017-04-22 8:41 ` Mason 2017-04-22 8:41 ` Mason 2017-04-24 4:20 ` Vinod Koul 2017-04-24 4:20 ` Vinod Koul 2017-04-26 22:34 ` Mason [this message] 2017-04-26 22:34 ` [PATCH v2] arm: bitops: Align prototypes to generic API Mason 2017-06-14 19:23 ` linux-next: build failure after merge of the arm tree Mason 2017-06-14 19:23 ` Mason 2017-04-21 11:27 ` Mason 2017-04-21 11:27 ` Mason
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=f3eb1c46-a413-955a-0cfa-c297691e2b23@free.fr \ --to=slash.tmp@free.fr \ --cc=arm@kernel.org \ --cc=dan.j.williams@intel.com \ --cc=dmaengine@vger.kernel.org \ --cc=emilio@elopez.com.ar \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-next@vger.kernel.org \ --cc=linux@armlinux.org.uk \ --cc=maxime.ripard@free-electrons.com \ --cc=sfr@canb.auug.org.au \ --cc=vinod.koul@intel.com \ --cc=wens@csie.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: linkBe 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.