Re: [PATCH] btrfs: replace simple_strtoul() with kstrtoul()

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

 



On Mon, 12 May 2014, Zhang Zhen wrote:

use the newer and more pleasant kstrtoul() to replace simple_strtoul(),
because simple_strtoul() is marked for obsoletion.
[...]
-		devid = simple_strtoull(devstr, &end, 10);
+		devid = kstrtoul(devstr, &end, 10);

kstrtoul appears to take its arguments in a different order:

unsigned long long simple_strtoull(const char * cp,
 char ** endp, unsigned int base);

int kstrtoul(const char *s, unsigned int base, unsigned long *res);

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




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux