X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Falloc%2Falloc.c;fp=ccan%2Falloc%2Falloc.c;h=64475078c0a6811f88b5dcf9861492a117a2ff41;hp=643efedc85d1be3212e175051e3558def8021545;hb=1c005e1223d2f8f664ce4b3be6cd7eb4dd449844;hpb=56dd95485204eb282f5d7684861a1b55bada5ef0 diff --git a/ccan/alloc/alloc.c b/ccan/alloc/alloc.c index 643efedc..64475078 100644 --- a/ccan/alloc/alloc.c +++ b/ccan/alloc/alloc.c @@ -527,9 +527,8 @@ static bool huge_allocated(struct header *head, unsigned long offset) } /* They want something really big. Aim for contiguous pages (slow). */ -static COLD_ATTRIBUTE -void *huge_alloc(void *pool, unsigned long poolsize, - unsigned long size, unsigned long align) +static COLD void *huge_alloc(void *pool, unsigned long poolsize, + unsigned long size, unsigned long align) { struct header *head = pool; struct huge_alloc *ha; @@ -647,7 +646,7 @@ done: return (char *)pool + ha->off; } -static COLD_ATTRIBUTE void +static COLD void huge_free(struct header *head, unsigned long poolsize, void *free) { unsigned long i, off, pgnum, free_off = (char *)free - (char *)head; @@ -687,8 +686,7 @@ huge_free(struct header *head, unsigned long poolsize, void *free) alloc_free(head, poolsize, ha); } -static COLD_ATTRIBUTE unsigned long -huge_size(struct header *head, void *p) +static COLD unsigned long huge_size(struct header *head, void *p) { unsigned long i, off = (char *)p - (char *)head; struct huge_alloc *ha;