public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] add generic round_up_pow2() macro
@ 2005-04-08  0:44 Nick Wilson
  2005-04-08  0:48 ` [PATCH 1/6] include/linux/kernel.h: use " Nick Wilson
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Nick Wilson @ 2005-04-08  0:44 UTC (permalink / raw)
  To: linux-kernel, akpm, rddunlap

Randy.Dunlap wrote:
> >+#define ALIGN_DATA_SIZE(size)       ((size + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1))                      
>                                                                                                        
> ISTM that we need a generic round_up() function or macro in kernel.h.                                  
>                                                                                                        
> a.out.h, reiserfs_fs.h, and ufs_fs.h all have their own round-up                                       
> macros.                                                                                                
 
I've found many more places in the kernel that use their own functions for
doing this. These patches are the beginning of an attempt to clean these
up.

The first patch adds a generic round_up_pow2() macro to kernel.h. The
remaining patches modify a few files to make use of the new macro.
Comments welcome.

Thanks,
        
Nick

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-04-08 18:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-08  0:44 [PATCH 0/6] add generic round_up_pow2() macro Nick Wilson
2005-04-08  0:48 ` [PATCH 1/6] include/linux/kernel.h: use " Nick Wilson
2005-04-08  0:49 ` [PATCH 2/6] " Nick Wilson
2005-04-08  0:50 ` [PATCH 3/6] include/linux/a.out.h: " Nick Wilson
2005-04-08  0:50 ` [PATCH 0/6] add " Andrew Morton
2005-04-08  9:57   ` P
2005-04-08 10:32     ` P
2005-04-08 18:50   ` [PATCH] Use ALIGN to remove duplicate code Nick Wilson
2005-04-08  0:50 ` [PATCH 4/6] kernel/resource.c: use generic round_up_pow2() macro Nick Wilson
2005-04-08  0:51 ` [PATCH 5/6] lib/bitmap.c: " Nick Wilson
2005-04-08  0:52 ` [PATCH 6/6] mm/bootmem.c: " Nick Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox