Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3834150ybi; Mon, 3 Jun 2019 00:42:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxpg+G0Qv85kSjQ62hq0mOm7IT/VEzoeOqLMQXVIkBB+c0sedWGaYRyRgdkAIgNx7GLV2PD X-Received: by 2002:a17:90a:2430:: with SMTP id h45mr7794619pje.14.1559547768989; Mon, 03 Jun 2019 00:42:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559547768; cv=none; d=google.com; s=arc-20160816; b=zRGqRW56vmbm7/fo/uD9xI9VtO87eguvEZnDYsl8P4LEHA/NIARmsEkRRxcZAzsY6W XYFgzbLzuSb8A16aktrXUvXSd4l1BuvngmFsD6h+L061O1imjJUTVHOWETEcVq5HE/RI ZLR85gqgRRKK+hU2oOraxHKrUDW/IlomFfr8b1+YYzgGrcm1BwVU6VA1JmUpLqvM4bFb 9KPtTarwiBVgDPj3SYuLxqsJX+z9896VhkSuWc8SSe2eQadAkx+HOVrFmS1Mdo9kU1vU UjPe/SIhxwrHfbcnzfOLMRArBDIL+g8KWCM+Kmo+MzxEKx04n8CaBWpYwf1chRVFHvx+ KrPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=7lORCX/eTLdT8VFisgODXfr6d1sjcJi2qBa/OYvQ6L0=; b=0SKcNIBXcZxR9mgnNGCuhiSCL4iiDgGyE//tJvcC0e3h1HZnfkBCw+UIaO87ovAv01 fT+NSiBpk7Zrt/kMEaSzwLNOgbMLcdu8lQtIAmZliI97Fdc3AWn6VL30Dh0kTc2YNyoX pvp8zxgucXBxViJCQrteJQ9/M4Fi0nNnGL2Sv+4JfAAhMufk3FPHlolrvkRYpnM5qWRJ piXyOYMuqjLMe6qIX3tk1+0gFx7XL7ycMRUFc+1JcTFhnLIDo7Z3Zi2Oj4tp6c2aIxvl ZRU0ZpQpfO9PsonCQ07926gcMHt+5md9UNQn10l/4cT7c3A6VSN2piTPVOs7eThBtGVb J4Kw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m7si12149528pls.392.2019.06.03.00.42.33; Mon, 03 Jun 2019 00:42:48 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726862AbfFCHlY (ORCPT + 99 others); Mon, 3 Jun 2019 03:41:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35386 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726292AbfFCHlY (ORCPT ); Mon, 3 Jun 2019 03:41:24 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6FC9A3092650; Mon, 3 Jun 2019 07:41:23 +0000 (UTC) Received: from ming.t460p (ovpn-8-18.pek2.redhat.com [10.72.8.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E930760BF1; Mon, 3 Jun 2019 07:41:17 +0000 (UTC) Date: Mon, 3 Jun 2019 15:41:13 +0800 From: Ming Lei To: Minwoo Im Cc: linux-kernel@vger.kernel.org, Minwoo Im , Thomas Gleixner , linux-block@vger.kernel.org Subject: Re: [PATCH] genirq/affinity: remove unused arg when building aff mask Message-ID: <20190603074112.GB11812@ming.t460p> References: <20190602112117.31839-1-minwoo.im.dev@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190602112117.31839-1-minwoo.im.dev@gmail.com> User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Mon, 03 Jun 2019 07:41:23 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 02, 2019 at 08:21:17PM +0900, Minwoo Im wrote: > When building affinity masks, the struct irq_affinity *affd is not > needed because irq_create_affinity_masks() has already given a cursored > current vector after pre_vectors via "curvec". > > This patch removes unused argument for irq_build_affinity_masks() and > __irq_build_affinity_masks(). No functions changes are included. > > Cc: Thomas Gleixner > Cc: Ming Lei > Cc: linux-block@vger.kernel.org > Signed-off-by: Minwoo Im > --- > kernel/irq/affinity.c | 12 +++++------- > 1 file changed, 5 insertions(+), 7 deletions(-) > > diff --git a/kernel/irq/affinity.c b/kernel/irq/affinity.c > index f18cd5aa33e8..4352b08ae48d 100644 > --- a/kernel/irq/affinity.c > +++ b/kernel/irq/affinity.c > @@ -94,8 +94,7 @@ static int get_nodes_in_cpumask(cpumask_var_t *node_to_cpumask, > return nodes; > } > > -static int __irq_build_affinity_masks(const struct irq_affinity *affd, > - unsigned int startvec, > +static int __irq_build_affinity_masks(unsigned int startvec, > unsigned int numvecs, > unsigned int firstvec, > cpumask_var_t *node_to_cpumask, > @@ -171,8 +170,7 @@ static int __irq_build_affinity_masks(const struct irq_affinity *affd, > * 1) spread present CPU on these vectors > * 2) spread other possible CPUs on these vectors > */ > -static int irq_build_affinity_masks(const struct irq_affinity *affd, > - unsigned int startvec, unsigned int numvecs, > +static int irq_build_affinity_masks(unsigned int startvec, unsigned int numvecs, > unsigned int firstvec, > struct irq_affinity_desc *masks) > { > @@ -197,7 +195,7 @@ static int irq_build_affinity_masks(const struct irq_affinity *affd, > build_node_to_cpumask(node_to_cpumask); > > /* Spread on present CPUs starting from affd->pre_vectors */ > - nr_present = __irq_build_affinity_masks(affd, curvec, numvecs, > + nr_present = __irq_build_affinity_masks(curvec, numvecs, > firstvec, node_to_cpumask, > cpu_present_mask, nmsk, masks); > > @@ -212,7 +210,7 @@ static int irq_build_affinity_masks(const struct irq_affinity *affd, > else > curvec = firstvec + nr_present; > cpumask_andnot(npresmsk, cpu_possible_mask, cpu_present_mask); > - nr_others = __irq_build_affinity_masks(affd, curvec, numvecs, > + nr_others = __irq_build_affinity_masks(curvec, numvecs, > firstvec, node_to_cpumask, > npresmsk, nmsk, masks); > put_online_cpus(); > @@ -295,7 +293,7 @@ irq_create_affinity_masks(unsigned int nvecs, struct irq_affinity *affd) > unsigned int this_vecs = affd->set_size[i]; > int ret; > > - ret = irq_build_affinity_masks(affd, curvec, this_vecs, > + ret = irq_build_affinity_masks(curvec, this_vecs, > curvec, masks); > if (ret) { > kfree(masks); > -- > 2.21.0 > Looks fine: Reviewed-by: Ming Lei Thanks, Ming