RE: [PATCH v2] acpi: Use kstrtoul() instead of strtoul()/simple_strtoul()

Moore, Robert
2015-07-29T19:33:37Z

> -----Original Message-----
> From: Guenter Roeck [mailto:linux@roeck-us.net]
> Sent: Wednesday, July 29, 2015 11:39 AM
> To: Moore, Robert; rjw@rjwysocki.net
> Cc: lenb@kernel.org; Zheng, Lv; linux-acpi@vger.kernel.org; linux-
> kernel@vger.kernel.org; devel@acpica.org
> Subject: Re: [PATCH v2] acpi: Use kstrtoul() instead of
> strtoul()/simple_strtoul()
>
> On 07/29/2015 10:51 AM, Moore, Robert wrote:
> >
> >
> >> -----Original Message-----
> >> From: Guenter Roeck [mailto:linux@roeck-us.net]
> >> Sent: Monday, July 27, 2015 5:32 PM
> >> To: rjw@rjwysocki.net
> >> Cc: lenb@kernel.org; Moore, Robert; Zheng, Lv;
> >> linux-acpi@vger.kernel.org; linux-kernel@vger.kernel.org;
> >> devel@acpica.org; Guenter Roeck
> >> Subject: [PATCH v2] acpi: Use kstrtoul() instead of
> >> strtoul()/simple_strtoul()
> >>
> >> simple_strtoul() is deprecated; replace with kstrtoul() and
> kstrtouint().
> >
> > The ACPICA code is os-independent and cannot use these functions (at
> least not directly).
> >
> >
> Odd argument, given that kstrtoul() is used already in the acpi code.

They are not in the os-independent ACPICA code. The ACPI-related drivers are another story, since they are OS-dendent.

>
> Guenter