* [PATCH 01/12] [arch/tile] Remove obsolete strict_strto calls
@ 2014-05-26 21:59 Daniel Walter
2014-05-28 19:51 ` Chris Metcalf
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Walter @ 2014-05-26 21:59 UTC (permalink / raw)
To: linux-kernel; +Cc: cmetcalf, richard
From: Daniel Walter <dwalter@google.com>
Subject: [PATCH 01/12] [arch/tile] replace strict_strto* call with kstrto*
remove obsolete calls to strict_strto* and replace them
with kstrto* calls accordingly.
Signed-off-by: Daniel Walter <dwalter@google.com>
---
arch/tile/kernel/setup.c | 7 ++-----
arch/tile/kernel/signal.c | 7 +++----
arch/tile/kernel/traps.c | 5 ++---
arch/tile/mm/init.c | 2 +-
4 files changed, 8 insertions(+), 13 deletions(-)
diff --git a/arch/tile/kernel/setup.c b/arch/tile/kernel/setup.c
index 74c9172..9ff0074 100644
--- a/arch/tile/kernel/setup.c
+++ b/arch/tile/kernel/setup.c
@@ -228,13 +228,10 @@ early_param("isolnodes", setup_isolnodes);
#if defined(CONFIG_PCI) && !defined(__tilegx__)
static int __init setup_pci_reserve(char* str)
{
- unsigned long mb;
-
- if (str == NULL || strict_strtoul(str, 0, &mb) != 0 ||
- mb > 3 * 1024)
+ if (str == NULL || kstrtouint(str, 0, &pci_reserve_mb) != 0 ||
+ pci_reserve_mb > 3 * 1024)
return -EINVAL;
- pci_reserve_mb = mb;
pr_info("Reserving %dMB for PCIE root complex mappings\n",
pci_reserve_mb);
return 0;
diff --git a/arch/tile/kernel/signal.c b/arch/tile/kernel/signal.c
index 2d1dbf3..d1d026f 100644
--- a/arch/tile/kernel/signal.c
+++ b/arch/tile/kernel/signal.c
@@ -321,14 +321,13 @@ int show_unhandled_signals = 1;
static int __init crashinfo(char *str)
{
- unsigned long val;
const char *word;
if (*str == '\0')
- val = 2;
- else if (*str != '=' || strict_strtoul(++str, 0, &val) != 0)
+ show_unhandled_signals = 2;
+ else if (*str != '=' || kstrtoint(++str, 0, &show_unhandled_signals) != 0)
return 0;
- show_unhandled_signals = val;
+
switch (show_unhandled_signals) {
case 0:
word = "No";
diff --git a/arch/tile/kernel/traps.c b/arch/tile/kernel/traps.c
index 6b603d5..f3ceb63 100644
--- a/arch/tile/kernel/traps.c
+++ b/arch/tile/kernel/traps.c
@@ -42,10 +42,9 @@ static int __init setup_unaligned_fixup(char *str)
* will still parse the instruction, then fire a SIGBUS with
* the correct address from inside the single_step code.
*/
- long val;
- if (strict_strtol(str, 0, &val) != 0)
+ if (kstrtoint(str, 0, &unaligned_fixup) != 0)
return 0;
- unaligned_fixup = val;
+
pr_info("Fixups for unaligned data accesses are %s\n",
unaligned_fixup >= 0 ?
(unaligned_fixup ? "enabled" : "disabled") :
diff --git a/arch/tile/mm/init.c b/arch/tile/mm/init.c
index 0fa1acf..df0e1c5 100644
--- a/arch/tile/mm/init.c
+++ b/arch/tile/mm/init.c
@@ -912,7 +912,7 @@ static long __write_once initfree = 1;
static int __init set_initfree(char *str)
{
long val;
- if (strict_strtol(str, 0, &val) == 0) {
+ if (kstrtol(str, 0, &val) == 0) {
initfree = val;
pr_info("initfree: %s free init pages\n",
initfree ? "will" : "won't");
--
1.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH 01/12] [arch/tile] Remove obsolete strict_strto calls
2014-05-26 21:59 [PATCH 01/12] [arch/tile] Remove obsolete strict_strto calls Daniel Walter
@ 2014-05-28 19:51 ` Chris Metcalf
0 siblings, 0 replies; 2+ messages in thread
From: Chris Metcalf @ 2014-05-28 19:51 UTC (permalink / raw)
To: Daniel Walter, linux-kernel; +Cc: richard
On 5/26/2014 5:59 PM, Daniel Walter wrote:
> From: Daniel Walter<dwalter@google.com>
> Subject: [PATCH 01/12] [arch/tile] replace strict_strto* call with kstrto*
>
> remove obsolete calls to strict_strto* and replace them
> with kstrto* calls accordingly.
>
> Signed-off-by: Daniel Walter<dwalter@google.com>
> ---
> arch/tile/kernel/setup.c | 7 ++-----
> arch/tile/kernel/signal.c | 7 +++----
> arch/tile/kernel/traps.c | 5 ++---
> arch/tile/mm/init.c | 2 +-
> 4 files changed, 8 insertions(+), 13 deletions(-)
Thanks, taken into the tile tree.
--
Chris Metcalf, Tilera Corp.
http://www.tilera.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-28 19:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-26 21:59 [PATCH 01/12] [arch/tile] Remove obsolete strict_strto calls Daniel Walter
2014-05-28 19:51 ` Chris Metcalf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox