lkml.org 
[lkml]   [2009]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] arch-x86-pci-swiotlb-cleanup-patch

* Marin Mitov <mitov@issp.bas.bg> wrote:

> Hi all,
>
> This is a simple cleanup patch for arch/x86/kernel/pci-swiotlb.c
> file.
>
> Deleted functions are already in lib/swiotlb.c, so no need to be
> duplicated.
>
> The patch is against linux-2.6.31-rc5, compile/run tested on
> x86_64.
>
> Best regards,
>
> Marin Mitov
>
> Signed-off-by: Marin Mitov <mitov@issp.bas.bg>
>
> =====================================================
> --- a/arch/x86/kernel/pci-swiotlb.c 2009-08-13 16:05:28.000000000 +0300
> +++ b/arch/x86/kernel/pci-swiotlb.c 2009-08-13 16:13:09.000000000 +0300
> @@ -13,31 +13,6 @@
>
> int swiotlb __read_mostly;
>
> -void * __init swiotlb_alloc_boot(size_t size, unsigned long nslabs)
> -{
> - return alloc_bootmem_low_pages(size);
> -}
> -
> -void *swiotlb_alloc(unsigned order, unsigned long nslabs)
> -{
> - return (void *)__get_free_pages(GFP_DMA | __GFP_NOWARN, order);
> -}
> [...]

Fujita Tomonori has already done this in these swiotlb commits:

bb52196: swiotlb: remove unused swiotlb_alloc()
3885123: swiotlb: remove unused swiotlb_alloc_boot()

about a month ago. You can find those changes in -tip:

http://people.redhat.com/mingo/tip.git/README

and in linux-next as well.

Ingo


\
 
 \ /
  Last update: 2009-08-13 22:33    [W:0.463 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site