Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1974077imd; Sat, 27 Oct 2018 23:41:37 -0700 (PDT) X-Google-Smtp-Source: AJdET5dzkBagqP1JjJnY3cu/YiJiKPp5vEnfjtK9qg3dSzeFePdSTOBQWlsTkhAuhW7yNmZ+NQNq X-Received: by 2002:a62:7982:: with SMTP id u124-v6mr9924661pfc.95.1540708897405; Sat, 27 Oct 2018 23:41:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540708897; cv=none; d=google.com; s=arc-20160816; b=ueiifs+BC509iQziqy4O1+h192oL4UALq+tIMREWtCuSH3DgUad/oIrZudCVcWU2DT yRk9nfbolxzwpMi2FNcwfDqMV3b0SEjvw4R4GdrJm6A7ZLCCFEo6af2x727Azc2bPHY+ SkO94xahcsT5bRTf6LU4CtJmgye8Sj6pUw/1fBHe0WzQ3QnAGbiKPmkaHlHfda8iGzcT LQY272Kmlcyi53rY4OgKOahgGmmpTDBmK/BhFzUUyvdiSLAh7HZBtYApd3X98PTY7yBA 9GaE1GrR5ZMsreLpKoM9NcIGjIAE0OnJLQyP9IMffW0JV5EGDNfQeWIcS0McSFGqM8mT YfRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=0YuOJIcBRXQNlro26KjI0BDU5QceW/0+0TNtCTTzRBg=; b=iJw5lsoCfmTaOqd5YDsYvwg7JjHdPHNr8iECmDc3Q/W+O8pllyb7G9Z2rgIwnWyTLk Mw90Z42aVXGst7O/d31eq8BC1IG/tAdh6a6U7g+PMaccmn2gdMvTcpxqpQKibC9tvDgr f0yKNc68tCzAX09FrF9QhixvopfHeb7wQiSH1hQrNtW0XRX13beq2jt/IZtaajLWU4AW WyPq2swAT9RBeMDVUrfVB1A67r/NtZJBDP4+5rdce5ZbNsFOL5WJ843MxLdh++sdpeW9 bLEGW55uksA4u+RSLMpWBX4aOXc+vH/jlkpLotpmxE9vsIxX6Eto6IDMNDCyX6HsJP0g hLHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=h2tjJEb2; 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 m5-v6si16387031pgi.327.2018.10.27.23.41.21; Sat, 27 Oct 2018 23:41:37 -0700 (PDT) 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=h2tjJEb2; 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 S1727532AbeJ1PXJ (ORCPT + 99 others); Sun, 28 Oct 2018 11:23:09 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:35047 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725791AbeJ1PXJ (ORCPT ); Sun, 28 Oct 2018 11:23:09 -0400 Received: by mail-pl1-f194.google.com with SMTP id n4-v6so1746197plp.2 for ; Sat, 27 Oct 2018 23:39:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=0YuOJIcBRXQNlro26KjI0BDU5QceW/0+0TNtCTTzRBg=; b=h2tjJEb2RWhnyogE+fdeQV9RoXBj3b528GsmugR27Vg19R43GdJm0TW6qGtuxCitmO tstw8rOmnMpvCpS4N7xOTahE7qSk3yl8F7chPWz5Vd8U8hyfxZQq/VePPM65aVcRIHqB y+mc22nch+32MbxHMFsVI1oWQL0obInbkEOXXHBzIR3IyNFvGOEYGHSgnOOVr8wAGKuo jrCPgemaAXjKM/5PgZWdg7Y6nIHoE8UMHa3lxNLwxQ1q/Fmbkhdx5D44clbIhuG9m8e8 rCzPOr7rhV9xACUYnhDhA9sVGfRuAoe9vt1khHROQ/ScvZVTJLaJa0AoSIst2lzYod4/ 0r/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=0YuOJIcBRXQNlro26KjI0BDU5QceW/0+0TNtCTTzRBg=; b=Ap7Zgw5FdSt0sXT9mAO7QksCMqb8t2XrvuwZExeWeJGX6CjKwMxB7loiCVFjJDBXHU KdO6bwLFGBKN0bDAlLcbpVvbqihXeCsv7SZyWpZATXXZ5wByf55WrWzi/aC8NRUctShh 72dm3OQAyfYpgwgrNuWEI5QfvM+5NJ8BEy5Qx+0/1o6+CesWkiSP2l1JeKA9mmohbtTC T6ZOfCjDlc7hKsMvweWN7+SFNg3FJEyiVloS+zlpuVyekgSs5AbpMIMwgoLJvKh4L5Fo smoL2pxyjVecUAADFE0pvUVRAa7ga8lb74cmMSboZ/JtN2LFqInRIp9Jeb1FVaL46tg4 ueow== X-Gm-Message-State: AGRZ1gLD1Ic+UyyCwoGYA8QtsnHDg6K4/bVlKNHBaRtRc0UOtQS8SqEy saJeVo03iUXappQ4f7knKbv5pXDv17A= X-Received: by 2002:a17:902:2924:: with SMTP id g33-v6mr9720599plb.76.1540708768474; Sat, 27 Oct 2018 23:39:28 -0700 (PDT) Received: from localhost.localdomain ([104.238.150.158]) by smtp.gmail.com with ESMTPSA id a4-v6sm21020657pga.2.2018.10.27.23.39.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 27 Oct 2018 23:39:27 -0700 (PDT) From: Muchun Song To: gregkh@linuxfoundation.org, rafael@kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] driver core: Replace simple_strtol by kstrtoint Date: Sun, 28 Oct 2018 14:39:11 +0800 Message-Id: <20181028063911.51586-1-smuchun@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The simple_strtol() function is deprecated, use kstrtoint() instead. Signed-off-by: Muchun Song --- drivers/base/dd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/base/dd.c b/drivers/base/dd.c index 169412ee4ae8..940abad069c0 100644 --- a/drivers/base/dd.c +++ b/drivers/base/dd.c @@ -223,7 +223,10 @@ DEFINE_SHOW_ATTRIBUTE(deferred_devs); static int deferred_probe_timeout = -1; static int __init deferred_probe_timeout_setup(char *str) { - deferred_probe_timeout = simple_strtol(str, NULL, 10); + int timeout; + + if (!kstrtoint(str, 10, &timeout)) + deferred_probe_timeout = timeout; return 1; } __setup("deferred_probe_timeout=", deferred_probe_timeout_setup); -- 2.17.1