Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755802AbbBPTTO (ORCPT ); Mon, 16 Feb 2015 14:19:14 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:11796 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753933AbbBPTTN (ORCPT ); Mon, 16 Feb 2015 14:19:13 -0500 X-AuditID: cbfec7f4-b7f126d000001e9a-55-54e2421d7d11 Message-id: <54E242AC.1040200@partner.samsung.com> Date: Mon, 16 Feb 2015 22:19:08 +0300 From: Stefan Strogin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-version: 1.0 To: Joonsoo Kim Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Marek Szyprowski , Michal Nazarewicz , aneesh.kumar@linux.vnet.ibm.com, Laurent Pinchart , Dmitry Safonov , Pintu Kumar , Weijie Yang , Laura Abbott , SeongJae Park , Hui Zhu , Minchan Kim , Dyasly Sergey , Vyacheslav Tyrtov , gregory.0xf0@gmail.com, sasha.levin@oracle.com, gioh.kim@lge.com, pavel@ucw.cz, stefan.strogin@gmail.com Subject: Re: [PATCH 1/4] mm: cma: add currently allocated CMA buffers list to debugfs References: <20150213031012.GH6592@js1304-P5Q-DELUXE> In-reply-to: <20150213031012.GH6592@js1304-P5Q-DELUXE> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA02RbyzUcRzH+/7+u7r1c1HfnZXtVs1uIaX6rpX+zn5P2tRs1Ga6uGFz6H6d 0VazqHGKUP4cQwm5U3QyajhdHCrtmrqJkUhtjsx1uFLJuQd59n5/9tr79eDD4KJ2QszEJVyS KxNk8RJKQLz+22Px3Xp8PHT3RKUXKmuop9CEtZxAtrpJCn29ZgeosKiRRHXZ6RRqySqmUVbe AxoNPC+j0Gj9MokedY3QqLIng0Q187M0GnnVTaGcxZc0KigVo4W+MhxVdQ3jyNKai6GB6WUa 3S120KivsZ9EjemCo1u4gZxbGPdMM0JzpZklJKfXZlGc3pZPc+qZ9xjXW7xEcGPGJoJ7/HsK 4+Ymhwjuxfc2jMt5qgXcQ90izf3Qb+PUT36RIRvPCQ5Fy+PjkuVK/6Dzglh77ySeNEemdMxm 0GlgilADNwaygbCvtpt25c3QPNpAqYGAEbHVAM5WdmKuMgdgbtcg5aSE7B6YvXAdc2aC3QFt 0x9XM7WyZDIXAWf2ZMNhhcmKu3h36CgYXbV5sD5Qp23CnaM4O0bCzvq6lcIwm9gw2OngXTIT gB33qldlbux+mG/tx5wMzvrBT++kzjPOesOm+hn8NmA1axSa/5RmDVUJcC3wlKuikvgLMYoA P16m4FUJMX5RiQo9cL3c3gqqTAeNgGWAZIPQHDgeKiJlyXyqwgggg0s8hKFeKydhtCz1slyZ GKlUxct5I8AYN3EaIIOkV9IzvYwl9884UqsStrMSEbakflMTbvY29A8FUydvRLQHJ9nLLQb5 3mMnyOabfjuHT/vnuV+c920+VXHk8B1VraXFsMu7FH4Rr9tuUPh8Luiwa3Vtvj+l35ZT9pn/ rJdMH7CFRBR+kBpjI3VnPRLDDFZiWIG/TRw0hF+tkBB8rCxAiit52T8agQBE0AIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 981 Lines: 26 On 13/02/15 06:10, Joonsoo Kim wrote: >> @@ -28,4 +28,13 @@ extern int cma_init_reserved_mem(phys_addr_t base, >> struct cma **res_cma); >> extern struct page *cma_alloc(struct cma *cma, int count, unsigned int align); >> extern bool cma_release(struct cma *cma, struct page *pages, int count); >> + >> +#ifdef CONFIG_CMA_DEBUGFS >> +extern int cma_buffer_list_add(struct cma *cma, unsigned long pfn, int count); >> +extern void cma_buffer_list_del(struct cma *cma, unsigned long pfn, int count); >> +#else >> +#define cma_buffer_list_add(cma, pfn, count) { } >> +#define cma_buffer_list_del(cma, pfn, count) { } >> +#endif >> + > > These could be in mm/cma.h rather than include/linux/cma.h. > Thank you. I'll correct it. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/