Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp2806189imc; Sat, 23 Feb 2019 11:33:21 -0800 (PST) X-Google-Smtp-Source: AHgI3IYTbrLdRwhibIRcf+ETA3jv0gL0VfUlCkQIaC4/HFbJLoAk1hueBctOnh7sNfvu/gFaMgwp X-Received: by 2002:a63:4542:: with SMTP id u2mr9916099pgk.291.1550950401075; Sat, 23 Feb 2019 11:33:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550950401; cv=none; d=google.com; s=arc-20160816; b=gmUXgDOzPhyhTTqMaYDeAm9FxDr7YiJChL9gXbkxFB/oWa6kvRAI0w0FoGXO4jl/r9 jkQWPVcunKa7RMHtZvdUgp+bNmNnTvHr3ToFrpwy9QKndgx9gqvhlQBqqdxl/0LHOmlt p9wLDBOjER1ylh/t/HkqeBUdQ8paSUtTcRCLP3ZB2S8d2m5AxOnnsBWwukL3qj7L7BF9 rGeE15Dq3K74VdnJNS3biDme14KoSLJ4V3Np8bALm7fj5rVXVl2VNJ8eRxaGkv2zuoqD MIaE625gpLSkkTwTR7waheeMU10tqzqYaGRgn34nJeVxM7v6lr8sPRgAnXc5CmNGiFYW 6Xhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=ssFjCsLxVlihmULnX9SRRGwKDgdg88epL5TDtFu8OTc=; b=NZ4kA/pHZifRPXkp56n16eLpn6IjzfT7hMI9gQSo79EXG3CGnfR/Dn/uIOkYGShv2E rbRf8UP+LKBXD0FD8vvmXxxrS/Kf+2tCb7gqfui50Ola7AciQTLFNMGEalf14VNAuTR0 ibW4aCFfaeAQ64z103J+RkR3nPh5J0R15Z1f+xxrqfx1kzwesBrdtD4mX48h26NnEVIc Il/DLA2Vii3p3ZBPwqStux/aKyC6WF1I/HC2dCPxLsv2JpY1yIG7+SChtmKmRBIJVK0h 7sajcIvog6mlexR2dRLH2zg9+qtjwPCAhdtkHXpFrNb/zWs6+HXPOm2n4kVjeBg2c1JH +GWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DA6nU3pR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a143si4751730pfd.24.2019.02.23.11.32.30; Sat, 23 Feb 2019 11:33:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DA6nU3pR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727594AbfBWTba (ORCPT + 99 others); Sat, 23 Feb 2019 14:31:30 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:46264 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726326AbfBWTba (ORCPT ); Sat, 23 Feb 2019 14:31:30 -0500 Received: by mail-pl1-f195.google.com with SMTP id o6so2591313pls.13 for ; Sat, 23 Feb 2019 11:31:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=ssFjCsLxVlihmULnX9SRRGwKDgdg88epL5TDtFu8OTc=; b=DA6nU3pROfIsM/4Zdt3FIX/LjJwZqvRBavLhOUhvQg7INp8597zUS96LDazCkEDIHA FTen7EjTeTRMVog/0YzR38cx3LqrFy+pRh2d2StPMjba/M9MAEu3v8YRxJP3DWhdrsBr S3ZqcxujOOuWnC7irqAgLuGBBQIWRa52MD9iru+cPSQJRxjqh5QMNQceiYe9DAIdmz5H XCMTyhkxVdTRJCEk58UQzzey+TLb6WqoZVxM6BUlaRQ2bxj94rX5/rBkCm4/JaxhKHNi 5GZ026a50lKowz0tDPAFq0nBYPusJHsgqEg/wiv4s4ISolCv/UI1EwIjy/4Lj08AyMZq zvJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=ssFjCsLxVlihmULnX9SRRGwKDgdg88epL5TDtFu8OTc=; b=W6VpuIJbGVO285WeMpSMbhF1mSg6gAOckbzZVSoESe2nvb71p7z3s08lr00qj/Vb8i 1DOtiuuxSnFmC1A5dDUeGZIeOsJ8vS3wizp3jU3ViraXWQ6dUisOaglt3DBUcTn6307a rQyGqqFCGlivfZIN2826h19GDdGEQ8R22Cf2NRS0yqmW68i22SlT1zVZLDMLeVhUp69U j/GOGqyGvjqBr+qi4+9787wtWTowJU1eA+bIJmbUlNS0xIXa8tj4VuQBw3YSPpRwbiaC GoTfektDjQWNJ5NVnecXI3Y9DBlK97DIL1E4Rvy6jM7VLiemQdTXRiTPv8+e8jgFI1lX xljg== X-Gm-Message-State: AHQUAuaA9upp7kXT/Wxs5zEEn0YFX5TMkF0SONjD50peEr3JDmginqoX 5TaZSDB7h5atOBRjcZiDTX8= X-Received: by 2002:a17:902:27a8:: with SMTP id d37mr1179103plb.164.1550950289825; Sat, 23 Feb 2019 11:31:29 -0800 (PST) Received: from bharath12345-Inspiron-5559 ([103.110.42.32]) by smtp.gmail.com with ESMTPSA id j197sm6843036pgc.76.2019.02.23.11.31.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Feb 2019 11:31:29 -0800 (PST) Date: Sun, 24 Feb 2019 01:01:21 +0530 From: Bharath Vedartham To: w.d.hubbs@gmail.com Cc: chris@the-brannons.com, kirk@reisers.ca, samuel.thibault@ens-lyon.org, gregkh@linuxfoundation.org, speakup@linux-speakup.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: speakup: Replace simple_strtoul with kstrtoul Message-ID: <20190223193121.GA4402@bharath12345-Inspiron-5559> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org simple_strtoul is obsolete. Change it to kstrtoul. Kernel is building and booting successfully. Signed-off-by: Bharath Vedartham --- drivers/staging/speakup/kobjects.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/speakup/kobjects.c b/drivers/staging/speakup/kobjects.c index 2e36d87..ad5a2b2 100644 --- a/drivers/staging/speakup/kobjects.c +++ b/drivers/staging/speakup/kobjects.c @@ -787,7 +787,9 @@ static ssize_t message_store_helper(const char *buf, size_t count, continue; } - index = simple_strtoul(cp, &temp, 10); + retval = kstrtoul(cp, 0, &index); + if (retval) + return retval; while ((temp < linefeed) && (*temp == ' ' || *temp == '\t')) temp++; -- 2.7.4