From: akpm@linux-foundation.org Subject: + mm-memory_hotplugc-fix-printk-format-warnings.patch added to -mm tree Date: Wed, 22 May 2013 15:31:01 -0700 Message-ID: <519d4725.QtBjHLLQ9oTQAIuf%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:42358 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756967Ab3EVWbC (ORCPT ); Wed, 22 May 2013 18:31:02 -0400 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: mm-commits@vger.kernel.org, geert@linux-m68k.org, rdunlap@infradead.org Subject: + mm-memory_hotplugc-fix-printk-format-warnings.patch added to -mm tree To: rdunlap@infradead.org,geert@linux-m68k.org From: akpm@linux-foundation.org Date: Wed, 22 May 2013 15:31:01 -0700 The patch titled Subject: mm/memory_hotplug.c: fix printk format warnings has been added to the -mm tree. Its filename is mm-memory_hotplugc-fix-printk-format-warnings.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Randy Dunlap Subject: mm/memory_hotplug.c: fix printk format warnings Fix printk format warnings in mm/memory_hotplug.c by using "%pa": mm/memory_hotplug.c: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type 'resource_size_t' [-Wformat] mm/memory_hotplug.c: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'resource_size_t' [-Wformat] Signed-off-by: Randy Dunlap Reported-by: Geert Uytterhoeven Signed-off-by: Andrew Morton --- mm/memory_hotplug.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff -puN mm/memory_hotplug.c~mm-memory_hotplugc-fix-printk-format-warnings mm/memory_hotplug.c --- a/mm/memory_hotplug.c~mm-memory_hotplugc-fix-printk-format-warnings +++ a/mm/memory_hotplug.c @@ -720,9 +720,12 @@ int __remove_pages(struct zone *zone, un start = phys_start_pfn << PAGE_SHIFT; size = nr_pages * PAGE_SIZE; ret = release_mem_region_adjustable(&iomem_resource, start, size); - if (ret) - pr_warn("Unable to release resource <%016llx-%016llx> (%d)\n", - start, start + size - 1, ret); + if (ret) { + resource_size_t endres = start + size - 1; + + pr_warn("Unable to release resource <%pa-%pa> (%d)\n", + &start, &endres, ret); + } sections_to_remove = nr_pages / PAGES_PER_SECTION; for (i = 0; i < sections_to_remove; i++) { _ Patches currently in -mm which might be from rdunlap@infradead.org are origin.patch linux-next.patch linux-kernelh-fix-kernel-doc-warning.patch auditfilterc-fix-kernel-doc-warnings.patch mm-memory_hotplugc-fix-printk-format-warnings.patch debugging-keep-track-of-page-owners-fix-2.patch