Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4812837ybv; Mon, 17 Feb 2020 06:27:44 -0800 (PST) X-Google-Smtp-Source: APXvYqyBZ4GMLvk4xrpaztIFVgwnH6R2nqV8/acUU73+KzrUXDQ6JXYXXQGs4+04iBNJz/IRrhCB X-Received: by 2002:a9d:f45:: with SMTP id 63mr12782099ott.0.1581949664685; Mon, 17 Feb 2020 06:27:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581949664; cv=none; d=google.com; s=arc-20160816; b=DiAuyqiwY4yCA55fTJyey77caH59qbJsAQWLjLtiFtpaymMAvLnzr67pfib36MVs44 xt+OHngr/iMuKwHri/Qo/tlhWyDmdrXCu6hlPnmkFwoVOSlDsE/h07Y+ta87OqMuD5zg 98b08pL9Qj+Rc+/RRfZzVsBohifLTjrA5QRXThaQ6uAfoigMwEPz/TmTcTrOnjcPOVOk K2/uRTSNmlQc/VRTxn7+DMfyxG0hcgzDTNTgfKk6i90G2kiEClurCWuvrRBUOM+trKGM SfQBaCfSzw5pXSuxuEagJP6tpUOJwIRBHxV3gOMlS43FSirt4Tsd7WhC/Riv45wtAHuk VOLg== 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=M1A6TYOxCqBJgjeIIO9IA0dhPxwCgjry9FpeoSZZn2E=; b=USu+LR2TfhvAIqib9u6fDBV7uXNPeU363Kx85EKc1c/eFCZFMU3eZ1KDORubZU8W27 3z5VUx4jmT1fxUu1MhsBTUOsSJoNwX71dmvsw64f6FkZmjq5emLCdHRKGNsj61MuFyDC ZHcsp8e/wwWTo0h/YdZ5lHuPCFk79bKIBbVyO94TOz7GDJ45VO15Si4YqqQZbS/aTQKR qQtSb7BAah5l2bRwwavosCQgGXa5pIJdi/qPT12ZmuSwX3D53OjaG+jNN1PgO09bBlnI nvrjEZV7vEMNxknoTh8qOozcGxAgukXYTcs5qyPWtrFqqt4uDJ9oEI0lh3PD6x3HhGBC SzNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qfVFosKY; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m24si270844otf.101.2020.02.17.06.27.32; Mon, 17 Feb 2020 06:27:44 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qfVFosKY; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728829AbgBQO0z (ORCPT + 99 others); Mon, 17 Feb 2020 09:26:55 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:35104 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727421AbgBQO0y (ORCPT ); Mon, 17 Feb 2020 09:26:54 -0500 Received: by mail-pg1-f194.google.com with SMTP id v23so5865183pgk.2 for ; Mon, 17 Feb 2020 06:26:54 -0800 (PST) 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=M1A6TYOxCqBJgjeIIO9IA0dhPxwCgjry9FpeoSZZn2E=; b=qfVFosKY+4nEorpoWT+SQJg/3sxsaEdR60jC58OI3OWoAMRBdtwXB6SxsF2XlfBD3c iwjhwsO/5u/n9SkbqgBbhqefidWuI7flw1i9cM8z/ofHb5UwhSbzYEbZkVtyhzAPKsFq B50xb2hkKwl4AFy2EyCF7Rzr9IFS785xxM5Bcu7STgoe1UmMVAdY91EO/v3+cuw329Hj MBIlPuO/5nWcQ3AfdbQRRXBTggFMqnNGgD64biLPhXbKK4cfDuhSE8lPrHpZ+Ri8qgtl 3OMXpEVlwOBAmoZboCVqTchAmHcT7axVVxCCS/PVCRsW+mHh1dkePOYSZEzCcO86PIvx cK/Q== 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=M1A6TYOxCqBJgjeIIO9IA0dhPxwCgjry9FpeoSZZn2E=; b=rlAzZw90nZ8YtOeNW4OReS2hb/CIgHvT8RCHZs4AwoGh3SI2Vit83i2+rg05ixTkTq FADrzY7dohSAc0wsW8iXIYAgXcPPzsl7ZGMA+uagjVA03ExL6LErA6rIBjwxCMY+UlQW fDxraJFeZq4gnm7ztMm5F7+P9JKoVm1pP+9tbRLEmk+ZoxGufYNWf4PGT62Q89YLj5xI 2LVwz0gH4JuUKYztNVNLfcfqGinm49whWzMGVdUdBrEC7lBXtKqp31KnowjenVtg9P4F F8LpsxhorJxwJ0bPNNOfAKsUY9T1r6prnAw2YqChOwJxViWuEneObTjqWGTGWMw7O10r EuAg== X-Gm-Message-State: APjAAAVHw2LBx0EHCZOC0x/tYwjZdRfZTqeaeQQVGb82/bXm5RreI+sR ThysoBETqcFU6OOO8jdhpng= X-Received: by 2002:a62:33c6:: with SMTP id z189mr16921230pfz.246.1581949614386; Mon, 17 Feb 2020 06:26:54 -0800 (PST) Received: from localhost.localdomain ([2408:8025:ad:7e20:f532:3cc5:d0f0:19dc]) by smtp.gmail.com with ESMTPSA id k8sm1111207pgg.18.2020.02.17.06.26.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Feb 2020 06:26:53 -0800 (PST) From: chengkaitao To: tglx@linutronix.de Cc: peterz@infradead.org, bigeasy@linutronix.de, namit@vmware.com, linux-kernel@vger.kernel.org, smuchun@gmail.com, Kaitao Cheng Subject: [PATCH] kernel/smp: Use smp_call_func_t in on_each_cpu() Date: Mon, 17 Feb 2020 06:26:16 -0800 Message-Id: <20200217142616.3510-1-pilgrimtao@gmail.com> X-Mailer: git-send-email 2.20.1 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 From: Kaitao Cheng 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 d0ada39eb4d4..6819a3f114be 100644 --- a/kernel/smp.c +++ b/kernel/smp.c @@ -619,7 +619,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