From patchwork Wed Feb 5 02:22:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 3584081 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3229B9F39B for ; Wed, 5 Feb 2014 02:22:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6B0D5201B6 for ; Wed, 5 Feb 2014 02:22:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 81FBF2018E for ; Wed, 5 Feb 2014 02:22:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754356AbaBECWX (ORCPT ); Tue, 4 Feb 2014 21:22:23 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:40920 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754281AbaBECWI (ORCPT ); Tue, 4 Feb 2014 21:22:08 -0500 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N0I00M2X3WUOJ60@mailout2.samsung.com> for linux-rdma@vger.kernel.org; Wed, 05 Feb 2014 11:22:06 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.47]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id D9.49.09028.E40A1F25; Wed, 05 Feb 2014 11:22:06 +0900 (KST) X-AuditID: cbfee68e-b7f566d000002344-e2-52f1a04ee281 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id B3.CF.29263.E40A1F25; Wed, 05 Feb 2014 11:22:06 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N0I00GWX3WT3B80@mmp2.samsung.com>; Wed, 05 Feb 2014 11:22:05 +0900 (KST) From: Jingoo Han To: 'Roland Dreier' Cc: 'Sean Hefty' , 'Hal Rosenstock' , linux-rdma@vger.kernel.org, 'Nicholas Bellinger' , 'Jingoo Han' Subject: [PATCH] IB/srpt: replace strict_strtoul() with kstrtoul() Date: Wed, 05 Feb 2014 11:22:05 +0900 Message-id: <000501cf2219$1031f530$3095df90$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac8iGRAWR6ka3SoeRSmK8B2BsP9ckw== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrJIsWRmVeSWpSXmKPExsVy+t8zfV2/BR+DDJbtlrPYuHkio8XlhZdY LZ4d6mWxaFt9htFiZ0MDk0Xz+g0sDmweO2fdZfdYvOclk8emVZ1sHve3H2Hy6NuyitHj8ya5 ALYoLpuU1JzMstQifbsEroxZWwILJvFXLL4xhamBcSZPFyMnh4SAicS+NV3sELaYxIV769m6 GLk4hASWMUr0XbvGAlO0cXorI0RiOqPE5QsLWSGcX4wSXy7/ZAWpYhNQk/jy5TDYKBEBdYn+ nhvMIEXMAkcYJX4/7AcrEhZwkng/dxEziM0ioCqx+UIf2ApeAVuJjTv2MUHYghI/Jt8DizML aEms33mcCcKWl9i85i1QLwfQSeoSj/7qQuzSk3j0r4EdokREYt+Ld4wQV19ilzjVWQmxSkDi 2+RDLBCtshKbDjBDlEhKHFxxg2UCo9gsJItnIVk8C8niWUg2LGBkWcUomlqQXFCclF5kpFec mFtcmpeul5yfu4kREo19OxhvHrA+xJgMtH4is5Rocj4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ycdq0A49ed26d w+exc+Lm1Nmek4PeX3m9pzF5RcOnzDnfX5rm83t/lbtx9aUv706lprPmrm179/M+m9bHkcbk NsNtiodVc0+tuKIU47qj2+VWqcQosRRnJBpqMRcVJwIACsOfWjoDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The usage of strict_strtoul() is not preferred, because strict_strtoul() is obsolete. Thus, kstrtoul() should be used. Signed-off-by: Jingoo Han --- drivers/infiniband/ulp/srpt/ib_srpt.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c index 520a7e5..0e537d8 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.c +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c @@ -3666,9 +3666,9 @@ static ssize_t srpt_tpg_attrib_store_srp_max_rdma_size( unsigned long val; int ret; - ret = strict_strtoul(page, 0, &val); + ret = kstrtoul(page, 0, &val); if (ret < 0) { - pr_err("strict_strtoul() failed with ret: %d\n", ret); + pr_err("kstrtoul() failed with ret: %d\n", ret); return -EINVAL; } if (val > MAX_SRPT_RDMA_SIZE) { @@ -3706,9 +3706,9 @@ static ssize_t srpt_tpg_attrib_store_srp_max_rsp_size( unsigned long val; int ret; - ret = strict_strtoul(page, 0, &val); + ret = kstrtoul(page, 0, &val); if (ret < 0) { - pr_err("strict_strtoul() failed with ret: %d\n", ret); + pr_err("kstrtoul() failed with ret: %d\n", ret); return -EINVAL; } if (val > MAX_SRPT_RSP_SIZE) { @@ -3746,9 +3746,9 @@ static ssize_t srpt_tpg_attrib_store_srp_sq_size( unsigned long val; int ret; - ret = strict_strtoul(page, 0, &val); + ret = kstrtoul(page, 0, &val); if (ret < 0) { - pr_err("strict_strtoul() failed with ret: %d\n", ret); + pr_err("kstrtoul() failed with ret: %d\n", ret); return -EINVAL; } if (val > MAX_SRPT_SRQ_SIZE) { @@ -3793,7 +3793,7 @@ static ssize_t srpt_tpg_store_enable( unsigned long tmp; int ret; - ret = strict_strtoul(page, 0, &tmp); + ret = kstrtoul(page, 0, &tmp); if (ret < 0) { printk(KERN_ERR "Unable to extract srpt_tpg_store_enable\n"); return -EINVAL;