Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp792282ybz; Fri, 17 Apr 2020 10:06:32 -0700 (PDT) X-Google-Smtp-Source: APiQypL8hXzzMYCUB3rOlEjFsx5yypd8cMYwzG6wtNOeQI7CDDw8RkxzvY/4BUxSGHHlkZ5F5+j/ X-Received: by 2002:a5d:4ecf:: with SMTP id s15mr5300664wrv.226.1587143191933; Fri, 17 Apr 2020 10:06:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587143191; cv=none; d=google.com; s=arc-20160816; b=yxUZcBTiJWJsfKqTCO/aqKptbR2SQoGucfdwl40fPlUk+BSgW/w6aG4ceHnCbHWdM3 t2P6xQJcQ0Cme9uqIov3kKvQw7I5GYdDbiKR8PHQASUwJfEGDvV9eUrDGGyHKWsQ6x1G 4ux7gUoWMdJBT5nQsHgoVhmrdgoxXK93Ooa1Hxxgbs3QYG3lSxmorzpfeNZCaRBSzBbw 7gvVGClPgJQtCgqEcftMu8y4x+qnnSJ6iCUT+sszabykwDlfDV2axTSf7c4D/K6PRAgp SxEMof0eA9ZSzUY9/Y0bbCvFYHfQSaCdphEY/RBo0s+H5zoHWfhdQNrqmuV3gonJiEiz jakQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=XMLt9uQxewSlItu1dt/1lcg6+DXqI3vjBxAIiV/KROI=; b=PzyswO7/4oOBBidy4HlH8M6K6xEFKK0v2w1RQGKBwLTqcyTpdtdx3zt5EdazD1k6PG rqQ3chaw5tO0SDCeXfEn3LCSjkcF7XOKn8Qpm23JT2royQEdlop0RhNqk4kdWb+xzsfg hYqhBSn+a0hWCVAvv/R/A26S2XNwqzQve2h+lHMzC431STWc+xK1yvbFaz/fVUG1CsOQ uqQye/V8+hGaCUiQ9PsbL4PxdxCSBIuhZgp1u859YwYm5bMZPX6xubJgTrmiK4XMIirg 4G9iexMjzSLc7SI5lfasHvD3SZ97G+7Gn+y19XlWkcWdkxcTfBJ7Mg04Kc6GHfuG2nGi qKvg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id co4si9388145edb.83.2020.04.17.10.06.08; Fri, 17 Apr 2020 10:06:31 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728345AbgDQRFP (ORCPT + 99 others); Fri, 17 Apr 2020 13:05:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727913AbgDQRFO (ORCPT ); Fri, 17 Apr 2020 13:05:14 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF4F1C061A0C for ; Fri, 17 Apr 2020 10:05:14 -0700 (PDT) Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1jPUQM-0003TL-Qf; Fri, 17 Apr 2020 19:05:06 +0200 Date: Fri, 17 Apr 2020 19:05:06 +0200 From: Sebastian Andrzej Siewior To: Kaitao Cheng Cc: tglx@linutronix.de, peterz@infradead.org, namit@vmware.com, linux-kernel@vger.kernel.org, songmuchun@bytedance.com Subject: Re: [PATCH RESEND] kernel/smp: Use smp_call_func_t in on_each_cpu() Message-ID: <20200417170506.ldz2eee4mm4szqij@linutronix.de> References: <20200417162451.91969-1-pilgrimtao@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200417162451.91969-1-pilgrimtao@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > 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