Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2268712ybz; Sat, 18 Apr 2020 20:26:16 -0700 (PDT) X-Google-Smtp-Source: APiQypI1rrxTzanRYsgUkke1MTeRU3SEQQlvTMS8TzcAd4peGpNlB+vjuW+3k03XATJkYx0mgmCp X-Received: by 2002:a17:906:310e:: with SMTP id 14mr10462754ejx.177.1587266776211; Sat, 18 Apr 2020 20:26:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587266776; cv=none; d=google.com; s=arc-20160816; b=Bhf1zRzVFfL4OvuLZe6FdTJwdetjEAeODq061zKkRi+nTl/lgj6sHzRYvGMAI7DAsu t7Rf/+yRpfcVieyx5/bpSJxkVFIUWURFlQ2NVcrVwUljsCBKJLjsIAKTCTI4WjTgIuWA /0YtkRl3qjXDxyojKVRD5pY/8825pHgZedsNm1tG0wk1r9GUyciBHcPSxBic3yTt/IMU SVcbPW4RUoAUKjgDv1GqNWw35xC/rosfOMmAK7ACnsknO77thhUXk3p+JJ4DO5fjYYjI XZabl0qw36eHxaci0ik+9g5RmWzMPkEzfw1yuMpVUXRtqFp2NLyOJIxziGehzi/2ngFI O2BQ== 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=1Qx8nDbaFMkUzFVZR7ocRhoUCDYt1J+4uYo1UgQQZqo=; b=zsfljLrTGH3Yt8dshZSmlJ43Ess1MiCeFoB9PtIdsdmDg9M+WAibYiDB47ZgNuoeRd cGx14ER1fGFLz4qrlwLFiWSGiACl0bkGmKN/mkmFw5wXJ84A79ZUscIlDRy8516XFX5L 4unteHLei2IDl3iw51TsbFSew2N4ehDc6g1cdx0OrY8Dy2Xxsh3Q/d31d4srNkR5/VcG xM5PteyGwrbmTanJ82Pp1DcUTrYKTHNnqJiUgOeGI5u4l1VYp1jeyPpVOrUf4WF8zWWb LKv65bDskGbWrRk4s9vcKfjPK1RXRb08rIB0TpKGTs00ayJqkhcIA4aU7VNKi7cLDQ6P oNLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PnEgVOnD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id v3si8552847ede.381.2020.04.18.20.25.53; Sat, 18 Apr 2020 20:26:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PnEgVOnD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1725960AbgDSDWN (ORCPT + 99 others); Sat, 18 Apr 2020 23:22:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725879AbgDSDWN (ORCPT ); Sat, 18 Apr 2020 23:22:13 -0400 Received: from mail-vs1-xe44.google.com (mail-vs1-xe44.google.com [IPv6:2607:f8b0:4864:20::e44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6470EC061A0C for ; Sat, 18 Apr 2020 20:22:11 -0700 (PDT) Received: by mail-vs1-xe44.google.com with SMTP id 184so3799534vsu.3 for ; Sat, 18 Apr 2020 20:22:11 -0700 (PDT) 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=1Qx8nDbaFMkUzFVZR7ocRhoUCDYt1J+4uYo1UgQQZqo=; b=PnEgVOnDNJXXYPdCDGx/XAl7N+Z2fAAAoJMoPad4k+esD9S79bdLo5Xz9G9naZjIFY tQWZn1CTmWRy5zS8fiMQShcEyF8N5py/9QRqyuaEPlpY3u3wERWgSe3Ol3zOkwjbz8eN 3lWVYpDYxUV1cSEdyyhj7ODek1CMak84ag6uxP2DljyUEYKqSmDdXwqWEunXp8Jcvs30 Nm+jbRDu0iybyZiK5J6DYfmpzjY+A08+AyWmC9Yj4C+SQDROffKPUcowxruhANXUOX65 RHeykxUSUG+5OZzcGrYGliWwiNPK15xjKGCmXb/IdolAwAJfzHIbHkcyIxk/mZMhC3TT DWPg== 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=1Qx8nDbaFMkUzFVZR7ocRhoUCDYt1J+4uYo1UgQQZqo=; b=rFsBxvhK+/w+1bB1LED2YAlNyGFgQ2iHldjVrRSmkTG1VOY7A4m7gw0d0aPtIS0Us+ yNuflgJvT8rI0qd4CCaNbdo5sEvlwTgC85UtB4TvCeMlgbyUl9RS0LHOtxn6IiqtKO/0 NChuy8rp35UzdLfjDvHUIVT6yNQCIyRnrsZmo/Y8P2GePYPoJvd0uBXJSmGcak/BJUNO JPMRTrS9sybQSBNnLoCTFzNWocQLHiWJosB9D1hzn4Foda07dAGdK/TASoywE55xGYK7 nMNMBxs4DeMSiQcDPqXOH5+6Ybwuwe5NlWezdj5lPj9FTbZ8QWUFgPywzOVXq4U5Zh6G Iaig== X-Gm-Message-State: AGi0PuYrXGqOydkR80NOUDJdW879/FIq5xI0ajHMN4fhlTywiFyYcbu+ 5EbZU40Ghyu6zybNrOxxlrogmtfRcxZjPH0Zscmd3p+/ X-Received: by 2002:a67:d90f:: with SMTP id t15mr7737339vsj.214.1587266530482; Sat, 18 Apr 2020 20:22:10 -0700 (PDT) MIME-Version: 1.0 References: <20200417162451.91969-1-pilgrimtao@gmail.com> <20200417170506.ldz2eee4mm4szqij@linutronix.de> In-Reply-To: <20200417170506.ldz2eee4mm4szqij@linutronix.de> From: Tao pilgrim Date: Sun, 19 Apr 2020 11:21:59 +0800 Message-ID: Subject: Re: [PATCH RESEND] kernel/smp: Use smp_call_func_t in on_each_cpu() To: Sebastian Andrzej Siewior Cc: tglx@linutronix.de, peterz@infradead.org, namit@vmware.com, linux-kernel@vger.kernel.org, songmuchun@bytedance.com 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, Apr 18, 2020 at 1:05 AM Sebastian Andrzej Siewior wrote: > > On 2020-04-18 00:24:51 [+0800], Kaitao Cheng wrote: > > There is already a typedef smp_call_func_t, so we can just use it, > > maybe better. > > > > Fixes: 3a5f65df5a0fc ("Typedef SMP call function pointer") > > Signed-off-by: Kaitao Cheng > > I would not go as far as the Fixes: tag but otherwise: > > Acked-by: Sebastian Andrzej Siewior Thanks for your review. Do you mean I should delete the Fixes tag? > > > --- > > kernel/smp.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/kernel/smp.c b/kernel/smp.c > > index 786092aabdcd..84303197caf9 100644 > > --- a/kernel/smp.c > > +++ b/kernel/smp.c > > @@ -620,7 +620,7 @@ void __init smp_init(void) > > * early_boot_irqs_disabled is set. Use local_irq_save/restore() instead > > * of local_irq_disable/enable(). > > */ > > -void on_each_cpu(void (*func) (void *info), void *info, int wait) > > +void on_each_cpu(smp_call_func_t func, void *info, int wait) > > { > > unsigned long flags; > > > > Sebastian