[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <xa1tioj92zt2.fsf@mina86.com>
Date: Fri, 24 Oct 2014 18:32:57 +0200
From: Michal Nazarewicz <mina86@...a86.com>
To: PINTU KUMAR <pintu.k@...sung.com>, akpm@...ux-foundation.org,
riel@...hat.com, aquini@...hat.com, paul.gortmaker@...driver.com,
jmarchan@...hat.com, lcapitulino@...hat.com,
kirill.shutemov@...ux.intel.com, m.szyprowski@...sung.com,
aneesh.kumar@...ux.vnet.ibm.com, iamjoonsoo.kim@....com,
lauraa@...eaurora.org, gioh.kim@....com, mgorman@...e.de,
rientjes@...gle.com, hannes@...xchg.org, vbabka@...e.cz,
sasha.levin@...cle.com, linux-kernel@...r.kernel.org,
linux-mm@...ck.org
Cc: pintu_agarwal@...oo.com, cpgs@...sung.com, vishnu.ps@...sung.com,
rohit.kr@...sung.com, ed.savinay@...sung.com
Subject: Re: [PATCH v2 1/2] mm: cma: split cma-reserved in dmesg log
>> On Wed, Oct 22 2014, Pintu Kumar wrote:
>>> diff --git a/mm/page_alloc.c b/mm/page_alloc.c
>>> index dd73f9a..ababbd8 100644
>>> --- a/mm/page_alloc.c
>>> +++ b/mm/page_alloc.c
>>> @@ -110,6 +110,7 @@ static DEFINE_SPINLOCK(managed_page_count_lock);
>>>
>>> unsigned long totalram_pages __read_mostly;
>>> unsigned long totalreserve_pages __read_mostly;
>>> +unsigned long totalcma_pages __read_mostly;
>>
>> Move this to cma.c.
On Fri, Oct 24 2014, PINTU KUMAR <pintu.k@...sung.com> wrote:
> In our earlier patch (first version), we added it in cmc.c itself.
> But, Andrew wanted this variable to be visible in non-CMA case as well to avoid build error, when we use
> this variable in mem_init_print_info, without CONFIG_CMA.
> So, we moved it to page_alloc.c
If you add
+#ifdef CONFIG_CMA
+extern unsigned long totalcma_pages;
+#else
+# define totalcma_pages 0UL
+#endif
to linux/cma.h the variable will get replaced with a constant zero if
!CONFIG_CMA.
--
Best regards, _ _
.o. | Liege of Serenely Enlightened Majesty of o' \,=./ `o
..o | Computer Science, Michał “mina86” Nazarewicz (o o)
ooo +--<mpn@...gle.com>--<xmpp:mina86@...ber.org>--ooO--(_)--Ooo--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists