* [PATCH] PPC: asm/bitops.h: drp unused ext2* and minix* stuff
@ 2015-06-03 8:32 Antony Pavlov
2015-06-04 7:04 ` Sascha Hauer
0 siblings, 1 reply; 4+ messages in thread
From: Antony Pavlov @ 2015-06-03 8:32 UTC (permalink / raw)
To: barebox
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
arch/ppc/include/asm/bitops.h | 63 -------------------------------------------
1 file changed, 63 deletions(-)
diff --git a/arch/ppc/include/asm/bitops.h b/arch/ppc/include/asm/bitops.h
index c4ed2de..e4572bc 100644
--- a/arch/ppc/include/asm/bitops.h
+++ b/arch/ppc/include/asm/bitops.h
@@ -189,67 +189,4 @@ extern __inline__ int ffs(int x)
#include <asm-generic/bitops/find.h>
-#define _EXT2_HAVE_ASM_BITOPS_
-
-#ifdef __KERNEL__
-/*
- * test_and_{set,clear}_bit guarantee atomicity without
- * disabling interrupts.
- */
-#define ext2_set_bit(nr, addr) test_and_set_bit((nr) ^ 0x18, addr)
-#define ext2_clear_bit(nr, addr) test_and_clear_bit((nr) ^ 0x18, addr)
-
-#else
-extern __inline__ int ext2_set_bit(int nr, void * addr)
-{
- int mask;
- unsigned char *ADDR = (unsigned char *) addr;
- int oldbit;
-
- ADDR += nr >> 3;
- mask = 1 << (nr & 0x07);
- oldbit = (*ADDR & mask) ? 1 : 0;
- *ADDR |= mask;
- return oldbit;
-}
-
-extern __inline__ int ext2_clear_bit(int nr, void * addr)
-{
- int mask;
- unsigned char *ADDR = (unsigned char *) addr;
- int oldbit;
-
- ADDR += nr >> 3;
- mask = 1 << (nr & 0x07);
- oldbit = (*ADDR & mask) ? 1 : 0;
- *ADDR = *ADDR & ~mask;
- return oldbit;
-}
-#endif /* __KERNEL__ */
-
-extern __inline__ int ext2_test_bit(int nr, __const__ void * addr)
-{
- __const__ unsigned char *ADDR = (__const__ unsigned char *) addr;
-
- return (ADDR[nr >> 3] >> (nr & 7)) & 1;
-}
-
-/*
- * This implementation of ext2_find_{first,next}_zero_bit was stolen from
- * Linus' asm-alpha/bitops.h and modified for a big-endian machine.
- */
-
-#define ext2_find_first_zero_bit(addr, size) \
- ext2_find_next_zero_bit((addr), (size), 0)
-
-#define ext2_find_next_zero_bit(addr, size, off) \
- generic_find_next_zero_le_bit((unsigned long*)addr, size, off)
-
-/* Bitmap functions for the minix filesystem. */
-#define minix_test_and_set_bit(nr,addr) ext2_set_bit(nr,addr)
-#define minix_set_bit(nr,addr) ((void)ext2_set_bit(nr,addr))
-#define minix_test_and_clear_bit(nr,addr) ext2_clear_bit(nr,addr)
-#define minix_test_bit(nr,addr) ext2_test_bit(nr,addr)
-#define minix_find_first_zero_bit(addr,size) ext2_find_first_zero_bit(addr,size)
-
#endif /* _PPC_BITOPS_H */
--
2.1.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] PPC: asm/bitops.h: drp unused ext2* and minix* stuff
2015-06-03 8:32 [PATCH] PPC: asm/bitops.h: drp unused ext2* and minix* stuff Antony Pavlov
@ 2015-06-04 7:04 ` Sascha Hauer
2015-06-04 7:32 ` Antony Pavlov
0 siblings, 1 reply; 4+ messages in thread
From: Sascha Hauer @ 2015-06-04 7:04 UTC (permalink / raw)
To: Antony Pavlov; +Cc: barebox
On Wed, Jun 03, 2015 at 11:32:11AM +0300, Antony Pavlov wrote:
> Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
> ---
> arch/ppc/include/asm/bitops.h | 63 -------------------------------------------
> 1 file changed, 63 deletions(-)
Applied, thanks
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] PPC: asm/bitops.h: drp unused ext2* and minix* stuff
2015-06-04 7:04 ` Sascha Hauer
@ 2015-06-04 7:32 ` Antony Pavlov
2015-06-04 8:56 ` Sascha Hauer
0 siblings, 1 reply; 4+ messages in thread
From: Antony Pavlov @ 2015-06-04 7:32 UTC (permalink / raw)
To: Sascha Hauer; +Cc: barebox
On Thu, 4 Jun 2015 09:04:36 +0200
Sascha Hauer <s.hauer@pengutronix.de> wrote:
> On Wed, Jun 03, 2015 at 11:32:11AM +0300, Antony Pavlov wrote:
> > Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
> > ---
> > arch/ppc/include/asm/bitops.h | 63 -------------------------------------------
> > 1 file changed, 63 deletions(-)
>
> Applied, thanks
Sascha, please change "drp" -> "drop" in the patch's subject line.
I have supplied RESEND version of the patch just for this purpose.
--
Best regards,
Antony Pavlov
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] PPC: asm/bitops.h: drp unused ext2* and minix* stuff
2015-06-04 7:32 ` Antony Pavlov
@ 2015-06-04 8:56 ` Sascha Hauer
0 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2015-06-04 8:56 UTC (permalink / raw)
To: Antony Pavlov; +Cc: barebox
On Thu, Jun 04, 2015 at 10:32:25AM +0300, Antony Pavlov wrote:
> On Thu, 4 Jun 2015 09:04:36 +0200
> Sascha Hauer <s.hauer@pengutronix.de> wrote:
>
> > On Wed, Jun 03, 2015 at 11:32:11AM +0300, Antony Pavlov wrote:
> > > Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
> > > ---
> > > arch/ppc/include/asm/bitops.h | 63 -------------------------------------------
> > > 1 file changed, 63 deletions(-)
> >
> > Applied, thanks
>
> Sascha, please change "drp" -> "drop" in the patch's subject line.
> I have supplied RESEND version of the patch just for this purpose.
Ok, I took that one instead.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-06-04 8:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-03 8:32 [PATCH] PPC: asm/bitops.h: drp unused ext2* and minix* stuff Antony Pavlov
2015-06-04 7:04 ` Sascha Hauer
2015-06-04 7:32 ` Antony Pavlov
2015-06-04 8:56 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox