Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752853AbbG2T5h (ORCPT ); Wed, 29 Jul 2015 15:57:37 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:33682 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750814AbbG2T5f (ORCPT ); Wed, 29 Jul 2015 15:57:35 -0400 MIME-Version: 1.0 In-Reply-To: <55B91DAF.3060605@roeck-us.net> References: <1438043542-2960-1-git-send-email-linux@roeck-us.net> <94F2FBAB4432B54E8AACC7DFDE6C92E37D329493@ORSMSX112.amr.corp.intel.com> <55B91DAF.3060605@roeck-us.net> Date: Wed, 29 Jul 2015 21:57:34 +0200 X-Google-Sender-Auth: iCZ1-Cw5u1ZJCOiQnAFh3MyA750 Message-ID: Subject: Re: [PATCH v2] acpi: Use kstrtoul() instead of strtoul()/simple_strtoul() From: "Rafael J. Wysocki" To: Guenter Roeck Cc: "Moore, Robert" , "rjw@rjwysocki.net" , "lenb@kernel.org" , "Zheng, Lv" , "linux-acpi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devel@acpica.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1358 Lines: 40 Hi Guenter, On Wed, Jul 29, 2015 at 8:38 PM, Guenter Roeck wrote: > 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. Boib is right, the change in sysfs.c is OK, but the one in evgpeinit.c isn't (this code is automatically generated from the upstream ACPICA source and manual updates of it are painful). You might provide a strtoul() wrapper around kstrtoul() instead of its definition in acpi/platform/aclinux.h, though. Thanks, Rafael -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/