* [PATCH 4/5] rds: stop including asm-generic/bitops/le.h directly [not found] <1286532193-29814-1-git-send-email-akinobu.mita@gmail.com> @ 2010-10-08 10:03 ` Akinobu Mita 2010-10-08 18:55 ` Andy Grover 0 siblings, 1 reply; 4+ messages in thread From: Akinobu Mita @ 2010-10-08 10:03 UTC (permalink / raw) To: linux-kernel, linux-arch, Arnd Bergmann, Andrew Morton Cc: Akinobu Mita, Andy Grover, rds-devel, David S. Miller, netdev asm-generic/bitops/le.h is only intended to be included directly from asm-generic/bitops/ext2-non-atomic.h or asm-generic/bitops/minix-le.h which implements generic ext2 or minix bit operations. This stops including asm-generic/bitops/le.h directly and use ext2 non-atomic bit operations instead. An alternative approach is introducing little endian bit operations in linux/bitops.h. But it needs to touch more files than this change does. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Cc: Andy Grover <andy.grover@oracle.com> Cc: rds-devel@oss.oracle.com Cc: "David S. Miller" <davem@davemloft.net> Cc: netdev@vger.kernel.org --- net/rds/cong.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/net/rds/cong.c b/net/rds/cong.c index 0871a29..5bd0f36 100644 --- a/net/rds/cong.c +++ b/net/rds/cong.c @@ -33,8 +33,7 @@ #include <linux/slab.h> #include <linux/types.h> #include <linux/rbtree.h> - -#include <asm-generic/bitops/le.h> +#include <linux/bitops.h> #include "rds.h" @@ -285,7 +284,7 @@ void rds_cong_set_bit(struct rds_cong_map *map, __be16 port) i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS; off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; - generic___set_le_bit(off, (void *)map->m_page_addrs[i]); + ext2_set_bit(off, (void *)map->m_page_addrs[i]); } void rds_cong_clear_bit(struct rds_cong_map *map, __be16 port) @@ -299,7 +298,7 @@ void rds_cong_clear_bit(struct rds_cong_map *map, __be16 port) i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS; off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; - generic___clear_le_bit(off, (void *)map->m_page_addrs[i]); + ext2_clear_bit(off, (void *)map->m_page_addrs[i]); } static int rds_cong_test_bit(struct rds_cong_map *map, __be16 port) @@ -310,7 +309,7 @@ static int rds_cong_test_bit(struct rds_cong_map *map, __be16 port) i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS; off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; - return generic_test_le_bit(off, (void *)map->m_page_addrs[i]); + return ext2_test_bit(off, (void *)map->m_page_addrs[i]); } void rds_cong_add_socket(struct rds_sock *rs) -- 1.7.1.231.gd0b16 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 4/5] rds: stop including asm-generic/bitops/le.h directly 2010-10-08 10:03 ` [PATCH 4/5] rds: stop including asm-generic/bitops/le.h directly Akinobu Mita @ 2010-10-08 18:55 ` Andy Grover 2010-10-08 18:59 ` David Miller 0 siblings, 1 reply; 4+ messages in thread From: Andy Grover @ 2010-10-08 18:55 UTC (permalink / raw) To: Akinobu Mita Cc: linux-kernel, linux-arch, Arnd Bergmann, Andrew Morton, rds-devel, David S. Miller, netdev On 10/08/2010 03:03 AM, Akinobu Mita wrote: > asm-generic/bitops/le.h is only intended to be included directly from > asm-generic/bitops/ext2-non-atomic.h or asm-generic/bitops/minix-le.h > which implements generic ext2 or minix bit operations. > > This stops including asm-generic/bitops/le.h directly and use ext2 > non-atomic bit operations instead. > > An alternative approach is introducing little endian bit operations > in linux/bitops.h. But it needs to touch more files than this change does. > - generic___set_le_bit(off, (void *)map->m_page_addrs[i]); > + ext2_set_bit(off, (void *)map->m_page_addrs[i]); I'd like a solution that doesn't have rds calling a function starting with ext2_. Seems wrong. Thanks -- Regards -- Andy ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 4/5] rds: stop including asm-generic/bitops/le.h directly 2010-10-08 18:55 ` Andy Grover @ 2010-10-08 18:59 ` David Miller 2010-10-10 15:09 ` Akinobu Mita 0 siblings, 1 reply; 4+ messages in thread From: David Miller @ 2010-10-08 18:59 UTC (permalink / raw) To: andy.grover Cc: akinobu.mita, linux-kernel, linux-arch, arnd, akpm, rds-devel, netdev From: Andy Grover <andy.grover@oracle.com> Date: Fri, 08 Oct 2010 11:55:55 -0700 > On 10/08/2010 03:03 AM, Akinobu Mita wrote: >> asm-generic/bitops/le.h is only intended to be included directly from >> asm-generic/bitops/ext2-non-atomic.h or asm-generic/bitops/minix-le.h >> which implements generic ext2 or minix bit operations. >> >> This stops including asm-generic/bitops/le.h directly and use ext2 >> non-atomic bit operations instead. >> >> An alternative approach is introducing little endian bit operations >> in linux/bitops.h. But it needs to touch more files than this change >> does. > >> - generic___set_le_bit(off, (void *)map->m_page_addrs[i]); >> + ext2_set_bit(off, (void *)map->m_page_addrs[i]); > > I'd like a solution that doesn't have rds calling a function starting > with ext2_. Seems wrong. Agreed. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 4/5] rds: stop including asm-generic/bitops/le.h directly 2010-10-08 18:59 ` David Miller @ 2010-10-10 15:09 ` Akinobu Mita 0 siblings, 0 replies; 4+ messages in thread From: Akinobu Mita @ 2010-10-10 15:09 UTC (permalink / raw) To: David Miller Cc: andy.grover, linux-kernel, linux-arch, arnd, akpm, rds-devel, netdev, Alexander Graf 2010/10/9 David Miller <davem@davemloft.net>: > From: Andy Grover <andy.grover@oracle.com> > Date: Fri, 08 Oct 2010 11:55:55 -0700 > >> On 10/08/2010 03:03 AM, Akinobu Mita wrote: >>> asm-generic/bitops/le.h is only intended to be included directly from >>> asm-generic/bitops/ext2-non-atomic.h or asm-generic/bitops/minix-le.h >>> which implements generic ext2 or minix bit operations. >>> >>> This stops including asm-generic/bitops/le.h directly and use ext2 >>> non-atomic bit operations instead. >>> >>> An alternative approach is introducing little endian bit operations >>> in linux/bitops.h. But it needs to touch more files than this change >>> does. >> >>> - generic___set_le_bit(off, (void *)map->m_page_addrs[i]); >>> + ext2_set_bit(off, (void *)map->m_page_addrs[i]); >> >> I'd like a solution that doesn't have rds calling a function starting >> with ext2_. Seems wrong. > > Agreed. OK, I'll rewrite the patch series to take the alternative approach. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-10-10 15:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1286532193-29814-1-git-send-email-akinobu.mita@gmail.com>
2010-10-08 10:03 ` [PATCH 4/5] rds: stop including asm-generic/bitops/le.h directly Akinobu Mita
2010-10-08 18:55 ` Andy Grover
2010-10-08 18:59 ` David Miller
2010-10-10 15:09 ` Akinobu Mita
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).