Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp755813ybz; Fri, 17 Apr 2020 09:28:39 -0700 (PDT) X-Google-Smtp-Source: APiQypLrRezkCxK4of02o65fu3QHei/cKUfwjilUPW7Ow38s4Pjfs166QyzlsESAnGdHEffXq5b9 X-Received: by 2002:aa7:d5d5:: with SMTP id d21mr3917445eds.160.1587140919008; Fri, 17 Apr 2020 09:28:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587140919; cv=none; d=google.com; s=arc-20160816; b=HYBF+xP2cvNYUoX2jBW7tzIxkcRFAq5qf6M8z0qfymkOwn1dVho9a8PqWuGQIfcCqE 0WwqD/oPTIkYFApvbCLFkYAs7xlzrQuY7m90GdeMViKUBMWORhhSghCg9ly9qMju1YfI 3q6HWLip8s5FuYia5ZfujCVJSDh3ZbL9GKZdkv0O0PJYHBpKoocoALeujOLAwheqMlkS thix0S2Y8u28FI8Ml/M0ksVC4AXAZm4IeU8R51etVlXvFmEhiFhdRXY858rNDjj21Ide cDiGWwKtoleoTN0AnF5PvPfP2k6aof0RkF/lCiJm2q5VE99nkVgb7VYqYcKNOvBy813F /tSQ== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=w4mvMIU59Tgjzyml3IlfpgeYlc2XX4cjx3GBkz0n/Hs=; b=zGRFejTESEWGjo10kRUNQ+5sYVaKYDgwgxx2fE8Hp74SRcUNRLycdLyYOpoztol9ne mLi0UzPXsOM37idEqVQkqJoKfsd6OhI8jF0sWnyshIyq5pQfzpHWMsWKYhfrp7JpX0am lpH0lLf4Yq9uGmAI3SDhTBOHluVvR2PYmJ00Zy63hAhUnSYv2MEWPMdWyb20o4cfMMmO ogQGBcsg9V8Sw78/tb946Ry5jZUspAoS6AmtHGL/s3Zs8wOa7sUB7UBsZ82WcStWUYuT XQ86Z+Laz8hLH2brn6lZS3zUMvJLUSERUgxLa2cLSRyEw3aFM0KOkjiugn12ZX6rT/nf rG7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="hZZMSC/9"; 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 e6si16664496edc.18.2020.04.17.09.28.15; Fri, 17 Apr 2020 09:28:38 -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="hZZMSC/9"; 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 S1726372AbgDQQZI (ORCPT + 99 others); Fri, 17 Apr 2020 12:25:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725914AbgDQQZH (ORCPT ); Fri, 17 Apr 2020 12:25:07 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6DF8C061A0C for ; Fri, 17 Apr 2020 09:25:07 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id m21so1262216pff.13 for ; Fri, 17 Apr 2020 09:25:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=w4mvMIU59Tgjzyml3IlfpgeYlc2XX4cjx3GBkz0n/Hs=; b=hZZMSC/94+3O3uvUn6raCeZVif/elK1EcJm/A0/ruTeyffcvFB664wQnZLW3iurHku s6PrncY7tRmztJEJ34V9K8fWF/LqPu2xjINjcazkwuXpapNrC4XX6+NKmhXFbxC5fkG8 lXP/z0pkdV2tNTjdbskAVYOUWG5O8ZcL0eMoYOnIp/yzywU7FGxSmuQVSHH6TZaUiGoR F6dHHCv6TOhEhO0/ecKfaLS9OuGpa2nWOv7Unoq7+l3M6VFGOQbb90MucKnzNEi4pTO2 wf7cIQA3fSNvGvTx+1Mfsf5C7SyQSwNbYD0ckjxPG3kFNXndNBoNAla7viRsoGDZWTPh orgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=w4mvMIU59Tgjzyml3IlfpgeYlc2XX4cjx3GBkz0n/Hs=; b=H0td0Ck/IpubgpnXctZu4jFlCBOZKpJAXZVce4Zyu7xpriUeTELH3kgPI5/SRxdI6n KgUCiRUh4FVrB7in+hzozwv2yyyPeHVP7SBI3itpXZ9p0SQykezy5yJflgHuoh22azGv 0VQnaL5denDl4YKjBWqJW3L+bOcqSCnfGMN+M4Jzn2Wk7Ti8OSXNE0r8MWUuLXZ4lRI+ hmL/jkAuIqjfq7pDGKSg3W0gn/ZIfvdkd3bfTmSqH1ml+h396n5KOK8KXDIkqDwD3QnG jNxOouBtkguIckBPYaZDvXnCJwGS/X2dABxUc5wutgtDJyZdQxIVIfBkYFyTe7FSDvLU kOEQ== X-Gm-Message-State: AGi0PuZr2eHJUd+6GIJMuFuYTSpxFCSnyxdRpE6cxF0ZpSbQknhfTFoI vOyGT3DcZc+Q6r+e/mPxzno= X-Received: by 2002:aa7:842b:: with SMTP id q11mr3953910pfn.302.1587140707439; Fri, 17 Apr 2020 09:25:07 -0700 (PDT) Received: from Smcdef-MBP.lan ([103.136.220.73]) by smtp.gmail.com with ESMTPSA id x16sm6328292pfc.61.2020.04.17.09.25.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Apr 2020 09:25:07 -0700 (PDT) From: Kaitao Cheng To: tglx@linutronix.de, peterz@infradead.org, bigeasy@linutronix.de, namit@vmware.com, linux-kernel@vger.kernel.org Cc: songmuchun@bytedance.com, Kaitao Cheng Subject: [PATCH RESEND] kernel/smp: Use smp_call_func_t in on_each_cpu() Date: Sat, 18 Apr 2020 00:24:51 +0800 Message-Id: <20200417162451.91969-1-pilgrimtao@gmail.com> X-Mailer: git-send-email 2.21.0 (Apple Git-122) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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; -- 2.20.1