Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp230058imd; Fri, 2 Nov 2018 22:25:58 -0700 (PDT) X-Google-Smtp-Source: AJdET5fHHtSloIwdYTgP2mXbLucnCbt+YUGbTkMRkeqP9TXfs/YAMiVacWU9FZfHm4t+52FopZB3 X-Received: by 2002:a63:1013:: with SMTP id f19-v6mr13388726pgl.38.1541222758178; Fri, 02 Nov 2018 22:25:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541222758; cv=none; d=google.com; s=arc-20160816; b=xWZxq3fK2ggFznf6+iVB/giLKKECEeLcroWnBCeT+NNUNqBb7pfn0lKfeD2OFJD+t2 rn2L6jfznxAlSKvQa3Fu78cql5GrNEE2GJlV6eCqiEwUbD8bkwBjPh8tuwkHo5y/lOMz anEYibHsugHMwuUVtNIigwIHvY70kVZ0W4Eu/seouaLDzeMQpKQQ5foszXigyA6Da8DB cu0oQqj6gIBA2CBoIwNPAqv04mR2nm7jch0uhxHNc+IiQNNnlTOUkMDWQ+YSW2uQTmtu vviv24gcTag+O8BHcx6wUKAk5l7VVt8ODpuwleig35Pg2gjuiNn9kE0v4OfWsidoMtuJ Txmg== 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:subject:cc:to:from:date:message-id:dkim-signature; bh=UvUH25mrAM3Utue+k5STBHQeXDuVKu6z8BKR2fKN4ZE=; b=aRQKoPfkrfKNPRxLWNZ7YyPl6vFmQ/7QUR2GAqe1LiD0a8GIIBffkZ/+4F+GtfEC1e IP8jdxDqUFlnZmKgIwKhyRuGumsAdDp3eDks0veTxsGRXz3oOmzgTYMOP9TVGuUkckr+ rFMK4Ko6NmwGULRwNIxtor1jAtdBKxtwzUzj+ADpk7W/BWXxWsknbndpRWUagRhXuxy4 H+zbJY7jvsEC15XRv56QR5AE3fMdgSs1F2aU7i3vKT2LwLqbrGFZewu7q061da/SZTfW yvQQ1mSSGDnvmnoVycTMjCyVJvRpAcH1PRWKo6WhlJxBxjtZPVCQ7oBWbnGgXbdwqo0G QfAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TufRfmfi; 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 207-v6si19016790pfw.277.2018.11.02.22.25.29; Fri, 02 Nov 2018 22:25:58 -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=TufRfmfi; 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 S1726770AbeKCOfC (ORCPT + 99 others); Sat, 3 Nov 2018 10:35:02 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:37803 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726147AbeKCOfC (ORCPT ); Sat, 3 Nov 2018 10:35:02 -0400 Received: by mail-pg1-f195.google.com with SMTP id c10-v6so1859312pgq.4; Fri, 02 Nov 2018 22:24:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:to:cc:subject:mime-version:content-disposition :user-agent; bh=UvUH25mrAM3Utue+k5STBHQeXDuVKu6z8BKR2fKN4ZE=; b=TufRfmfiC6qi/3wYSc8QZy0WdLb0DKMRtVPUvUbxy/jV8cBlksue6+c3h+dwXosske ATCs9f8DW1ENRBLIieXsMIDE0LNkdeM2kyAsN9TEXOlTL3u67d3mb2/tmYzNvwuP1e3e RxILlC1mxcftoc1HyyYKSgAsfZHSmaDOdFVYYnB42jYMUYmloM25VbI+qzm0cMvV46DG jE0+ejcomLBO9DASRXc/8mXLUP8U0IitxQ2wq/AbvnVsdlEKFwLm7eouTaSjujxFrpxP e7idD4dYoWxBMDv/MeCDMGSr2yxwU/G7yShjP9tgbbxrj9+czsvMne9EBxYQ8TlSBllN 4CBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:to:cc:subject:mime-version :content-disposition:user-agent; bh=UvUH25mrAM3Utue+k5STBHQeXDuVKu6z8BKR2fKN4ZE=; b=EmoUQVTLCdrcxLSAUL+i3VjZZP0Al6GQ4gM0eJNz5YHRDe4qPjOgYYdbaJVv0j/50q UH8J057u16pMuEGHSUHTX//YrYuxxVXJv6KRtU5OyYZcIjK1v1OpxYs3DpMOfS1sfQ/E 79jMCQ+lfCtWLVJW9O5seKdorZf34WtecBQnk8I9umj90jjzomBqKUm0o9hW3ywWBQ69 1JJk/D6609RN4kGdj7Vc1dC0a7RBSRQnHF3RL1fF8NlpNDAESeSLlH91j7sFqyZ9a2Vf SWpRUZ0qKUSH7pte3wNavsczpjPi7sM7Dq+K+CyDheUb74YR2DbpgZelJ2EfF0zC0vqR sCRA== X-Gm-Message-State: AGRZ1gLFk6r45KbnNXg3Y9yCf1ClG1sveCNKJte8myixAml1UADPxcte V+eVksdIFRj2rlsRoTWUjPE= X-Received: by 2002:a62:12d0:: with SMTP id 77-v6mr14471954pfs.140.1541222697753; Fri, 02 Nov 2018 22:24:57 -0700 (PDT) Received: from sabyasachi ([45.116.191.230]) by smtp.gmail.com with ESMTPSA id b29-v6sm64422395pfj.183.2018.11.02.22.24.56 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 02 Nov 2018 22:24:56 -0700 (PDT) Message-ID: <5bdd3128.1c69fb81.4bd46.f7ce@mx.google.com> X-Google-Original-Message-ID: <20181103052452.GA5924@sabyasachi.linux@gmail.com> Date: Sat, 3 Nov 2018 10:54:52 +0530 From: Sabyasachi Gupta To: davem@davemloft.net, khandual@linux.vnet.ibm.com Cc: jrdr.linux@gmail.com, sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org, brajeswar.linux@gmail.com Subject: [PATCH] arch/sparc: Use kzalloc_node 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 Replaced kmalloc_node + memset with kzalloc_node Signed-off-by: Sabyasachi Gupta --- 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