Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2811211ybz; Sun, 19 Apr 2020 10:10:13 -0700 (PDT) X-Google-Smtp-Source: APiQypLV71tL6YOyaUfSlQulFLTikV9iuBNmYFWVboqvk5mKjs4ibQoqLbjNoxmBMWeeGcyPzNRr X-Received: by 2002:aa7:d892:: with SMTP id u18mr9911834edq.156.1587316213442; Sun, 19 Apr 2020 10:10:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587316213; cv=none; d=google.com; s=arc-20160816; b=vug7ZX/gf3NP7g5dEjIvHh0eFlWAsMWzrR9CiGPp6gWDDwUJLhAFe7aOAOI24Bzlzj 0WOx7SgrWJ1aKUuUv2/v71znjXOFU5MmvXFhteFdLnHzzA4/IVIaqk2bX0byN1Tk5kDu IMO6NDx4UzDuMPaRrWHimVjrAxFHIfMruu+xLJOClzkGaW+9hAPaLj1f8dSPlH160ukX EqdqVLLUoxPOiIvnopPdtL+6kib21xOeS2pui8SQK2m/IsSr5s9dRfVNsS9+AX7B6TkM L3faDU+F7AH/zQBh4/0UgivNPVjoWG1rfPeiU9LgP2g8d6ubY76FTUJHltoMNkxM52SN 0vgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=VT+t0JPeEFalx3x/0ZiNw80xUFUI0ACY6ou3Ev3eMAc=; b=xXHod60eo8kLO4iscnArKYjIeKfnv84ZwfrjKHLeJAK611lq19d1V0O6Hso1dOQsjz omMM2yeKM9XX6l5BVpGZ/F86lV1v1SJ2C9V8bwqpCcB5/KAYX2SulH/EreynTUd70Emx dOAXjtvqdEq3QdDHOVgaLVZS/hBdR5tTsY8V9XHTs7Y4nxayzmT4TkbulZaVealppC78 SfTsRdWtJyE+JYIFzoOGD1q+pLMaeDIiIfpmSXafe2slpiQRzFVEI21c2jTPg0h7GX9S T3Rvf5ioMk8DG2jVh1/97mIq1OoGqUol2BXEtELG6kjsf3ivm9p9K1jG32G8G17Gj5l3 fr9Q== 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 f23si10073157ejf.414.2020.04.19.10.09.50; Sun, 19 Apr 2020 10:10:13 -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 S1726343AbgDSPz5 (ORCPT + 99 others); Sun, 19 Apr 2020 11:55:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725939AbgDSPz5 (ORCPT ); Sun, 19 Apr 2020 11:55:57 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3017AC061A0C; Sun, 19 Apr 2020 08:55:57 -0700 (PDT) Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jQCIU-0003qi-8r; Sun, 19 Apr 2020 17:55:54 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id C20DE1C0325; Sun, 19 Apr 2020 17:55:50 +0200 (CEST) Date: Sun, 19 Apr 2020 15:55:50 -0000 From: "tip-bot2 for Kaitao Cheng" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: smp/core] smp: Use smp_call_func_t in on_each_cpu() Cc: Kaitao Cheng , Thomas Gleixner , Sebastian Andrzej Siewior , x86 , LKML In-Reply-To: <20200417162451.91969-1-pilgrimtao@gmail.com> References: <20200417162451.91969-1-pilgrimtao@gmail.com> MIME-Version: 1.0 Message-ID: <158731175026.28353.13223791220426564135.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the smp/core branch of tip: Commit-ID: 58eb7b77ad01f058e523554cb7bae7272a7d2579 Gitweb: https://git.kernel.org/tip/58eb7b77ad01f058e523554cb7bae7272a7d2579 Author: Kaitao Cheng AuthorDate: Sat, 18 Apr 2020 00:24:51 +08:00 Committer: Thomas Gleixner CommitterDate: Sun, 19 Apr 2020 17:51:48 +02:00 smp: Use smp_call_func_t in on_each_cpu() Use smp_call_func_t instead of the open coded function pointer argument. Signed-off-by: Kaitao Cheng Signed-off-by: Thomas Gleixner Acked-by: Sebastian Andrzej Siewior Link: https://lkml.kernel.org/r/20200417162451.91969-1-pilgrimtao@gmail.com --- kernel/smp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/smp.c b/kernel/smp.c index 786092a..8430319 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;