+ mm-mem-hotplug-replace-simple_strtoull-with-kstrtoull.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: mm/mem-hotplug: replace simple_strtoull() with kstrtoull()
has been added to the -mm tree.  Its filename is
     mm-mem-hotplug-replace-simple_strtoull-with-kstrtoull.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/mm-mem-hotplug-replace-simple_strtoull-with-kstrtoull.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/mm-mem-hotplug-replace-simple_strtoull-with-kstrtoull.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: Zhang Zhen <zhenzhang.zhang@xxxxxxxxxx>
Subject: mm/mem-hotplug: replace simple_strtoull() with kstrtoull()

use the newer and more pleasant kstrtoull() to replace simple_strtoull(),
because simple_strtoull() is marked for obsoletion.

Signed-off-by: Zhang Zhen <zhenzhang.zhang@xxxxxxxxxx>
Cc: David Rientjes <rientjes@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/base/memory.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff -puN drivers/base/memory.c~mm-mem-hotplug-replace-simple_strtoull-with-kstrtoull drivers/base/memory.c
--- a/drivers/base/memory.c~mm-mem-hotplug-replace-simple_strtoull-with-kstrtoull
+++ a/drivers/base/memory.c
@@ -406,7 +406,9 @@ memory_probe_store(struct device *dev, s
 	int i, ret;
 	unsigned long pages_per_block = PAGES_PER_SECTION * sections_per_block;
 
-	phys_addr = simple_strtoull(buf, NULL, 0);
+	ret = kstrtoull(buf, 0, &phys_addr);
+	if (ret)
+		return ret;
 
 	if (phys_addr & ((pages_per_block << PAGE_SHIFT) - 1))
 		return -EINVAL;
_

Patches currently in -mm which might be from zhenzhang.zhang@xxxxxxxxxx are

mm-mem-hotplug-replace-simple_strtoull-with-kstrtoull.patch
linux-next.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux