Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8334745imu; Thu, 15 Nov 2018 09:55:03 -0800 (PST) X-Google-Smtp-Source: AJdET5ewL2yk+xhLTKZwdkszy1P81uCTBtdOYGhi2tleohuYeZvzkphzNG2Gw8DsCcNlQvYm7E/Y X-Received: by 2002:a17:902:8a89:: with SMTP id p9-v6mr7373793plo.183.1542304503410; Thu, 15 Nov 2018 09:55:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542304503; cv=none; d=google.com; s=arc-20160816; b=hEaH8er4C3c1sV5QA43ZF5a7lHb6MWisfVo3UchUGTuIvLjkjflp/LtEQCT3wSAwhn r7ny6JASUsgCEtsA7O25p0V1NyakHWKs8qmIsuChu8R/fLI5cpjZ4v/HMgMMk71x2fqT 4V/vG4zSUX7wPGeattZ5WSr4f6dROgtRRqekUvKVMyW3NBe4VeUEsPBBwve526VHGTJc FzHNnGCFpcjHSsiNaZyFJbria/7b09ogVys8qbchQnXfN0DGIKcOXo65Pl2KREWYQMFN EYYM+BvDcQ+xC/RlQoBEXFWo0MDtvgRHikz70FWNxuaYqjx29nk+YSpHtfIt+AjAMYuJ x29w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=G4D7WJ/hBzEye/EUTRh+exlih9C1bIqp9OyFvvPCJjg=; b=cuIiF+WuxOZzKco9GPe/NLw29ZHXiIJVsZxnz9CD5I/rMT3F+nFYiJs5h6126lVifS GAawjTi69lcBLVrvw0ebitD5BREje9dQGrA+9MNqSeqAsvklFPqpWlV4TxBkWlzGBmLp THwDh3qhYVzFNJ1tStteDAVVZgsHHHo5tTAIKS4OuT1Vo2LhZN9Z8roFO+Z+xzHdEIUA Z+VaZMHfy05+P6sK9ncp9eah6qiMaVR2dO56VOEyohpYD+GER07ODzi81hCgjYEBXB1L HLgqioBCHiYNyACbG89F7UZNTVOkTWGtkhiT30YoZAz5QiMF8VYrwNt1ruAie+AP3Pzx /JJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FhkISYUf; 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 f14si11943839pln.289.2018.11.15.09.54.48; Thu, 15 Nov 2018 09:55:03 -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=FhkISYUf; 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 S2388454AbeKPECm (ORCPT + 99 others); Thu, 15 Nov 2018 23:02:42 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:36251 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726746AbeKPECm (ORCPT ); Thu, 15 Nov 2018 23:02:42 -0500 Received: by mail-pg1-f194.google.com with SMTP id n2so2164124pgm.3; Thu, 15 Nov 2018 09:53:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=G4D7WJ/hBzEye/EUTRh+exlih9C1bIqp9OyFvvPCJjg=; b=FhkISYUfhyLnpvUbUb+SbyIKHrcntFz+w6MhT6LZCBFrbNMXfP0XDLN9xs7mJf8WCL Wi75B08HUF5hV2EcnCFFLdGF7z/QdOPl2Hp+42HHZqfuGD86pbuBISpUB53mI31XT5xA qFzgevEr8ej+ZdYvWs3uJHNvbfbz+gm0QAdhl781be1EgHsr/TDyMPprDQ2fS0xZPqtm XsKl6DbaheDEw/tnIQ690WVobQWeb+hLtesYiRIFRMwwogJJMFSVlTNDFavUxk1oBQqw P0K4l9IbICyxJrVzR0ecz7p7ri0dxiJTtfKWVEhUI02QL1ahIQKdOi33j2UW0kfdfb66 plow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=G4D7WJ/hBzEye/EUTRh+exlih9C1bIqp9OyFvvPCJjg=; b=SRknVH2hIQC+4A0S5QuPdntXH9V0wCbjbDEkNJ8NTGJd3nw5rp/qblUfeNXGKQui5/ /uFcz2bu9rSOW9lCUS289WqLyzEPE3aPFPXA5DhuUTfk+rb+DjEBqGzpBJLUa6Hd9yk4 3b7DDlII7EocR+4v2Z8clQkk0oapav2p/+d/aa5zZMPTeLt1X7ygZ8INsOiXRu3I4ZAs o8YuVub0boOmunrql0m+zGmfRO9AtfKPFjqMaCr9Sw/WOUt4VQn9NYeQAEsxvIElJkaJ 5V7GvudlgULc6M0Vp3O5YJDHvcxsaQEm7Xp7qnookgzoqYjH83UZ0iTfyfBl5nu7AInr hszg== X-Gm-Message-State: AGRZ1gKtGl8ImvgZyP+Rhd9DOvnDuqPbOBMcMlvy1XCusYp5QUf0Baaq gLhNuK/VVstgfrbQqeC31lbVvl+UIscuOG6OX5ueMw== X-Received: by 2002:a63:5153:: with SMTP id r19mr6654726pgl.281.1542304433757; Thu, 15 Nov 2018 09:53:53 -0800 (PST) MIME-Version: 1.0 References: <5bdd3128.1c69fb81.4bd46.f7ce@mx.google.com> In-Reply-To: <5bdd3128.1c69fb81.4bd46.f7ce@mx.google.com> From: Sabyasachi Gupta Date: Thu, 15 Nov 2018 23:23:42 +0530 Message-ID: Subject: Re: [PATCH] arch/sparc: Use kzalloc_node To: davem@davemloft.net, khandual@linux.vnet.ibm.com Cc: Souptick Joarder , sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org, Brajeswar Ghosh Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 3, 2018 at 10:54 AM Sabyasachi Gupta wrote: > > Replaced kmalloc_node + memset with kzalloc_node > > Signed-off-by: Sabyasachi Gupta Any comment on this patch? > --- > arch/sparc/kernel/iommu.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/arch/sparc/kernel/iommu.c b/arch/sparc/kernel/iommu.c > index 40d008b..05eb016 100644 > --- a/arch/sparc/kernel/iommu.c > +++ b/arch/sparc/kernel/iommu.c > @@ -108,10 +108,9 @@ int iommu_table_init(struct iommu *iommu, int tsbsize, > /* Allocate and initialize the free area map. */ > sz = num_tsb_entries / 8; > sz = (sz + 7UL) & ~7UL; > - iommu->tbl.map = kmalloc_node(sz, GFP_KERNEL, numa_node); > + iommu->tbl.map = kzalloc_node(sz, GFP_KERNEL, numa_node); > if (!iommu->tbl.map) > return -ENOMEM; > - memset(iommu->tbl.map, 0, sz); > > iommu_tbl_pool_init(&iommu->tbl, num_tsb_entries, IO_PAGE_SHIFT, > (tlb_type != hypervisor ? iommu_flushall : NULL), > -- > 2.7.4 >