Received: by 2002:ab2:715a:0:b0:1fd:c064:50c with SMTP id l26csp13378lqm; Mon, 10 Jun 2024 11:05:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWsn5YHPucWGY5ij1jQYhwHcTwsoAEKcVmKNlUQRySx92MixoOPPqhg0jNSENe/VWT6Nr25hlIVW42MOs8SF1bX+NYKSMCtOvmdDl2pNg== X-Google-Smtp-Source: AGHT+IFudy5PNvUdsZB/FjK6SyVRyWKXdLEN/zi2n4/ls/g6oN0/dkcDvNJei6sQXiCEXPfUfXMw X-Received: by 2002:a05:6a00:2ea2:b0:705:a47a:9c66 with SMTP id d2e1a72fcca58-705a84c5137mr592525b3a.9.1718042746520; Mon, 10 Jun 2024 11:05:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718042746; cv=pass; d=google.com; s=arc-20160816; b=M/GaQaXfJyFN8DXckiKUw/M/5X5hVrJw0f5RyKlq1/qf/SOAqxTcdvLNPd242GwGbE WH986W8uBTjVNPXf3XFEv/UqJadI22geucOtcYUzn2TGYI8dLHz46ngih1DUNyfKRyf/ M2gtrgXuDwZW0nigFN2rbg+T4A6dsnDiNPEzFbjhPSAdWOBELpoydAFZ4/YEZTYS/im2 DBJONzKCXg2IT34Iu8wNi3kqaAZLX+HTGG4jDFLGgvNgNYGs0sRlpkVFt8SqvAXR9sD8 lo0sxYNX/yfnt+7TNGmFnIOz2J50Ijx+aSjrwX4PCgZu5ruRN9WW9OUn75cmC/iGOjG6 1Hug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=oyMEHJUJO6/qQiK5PKOLatV+tf3yfVA/JShwBLC1hfE=; fh=rgzFxqIsD/RjvOa/G1XDpaJO5ocvolqkb+yxWEJTqlY=; b=F3IWwD1pS5G/k9zQxpZzugSuxRCgFHxWk/CuKLIVMu0j9/L8bxjxtDqbQAbFcvJEAL WQjjcfBlisFgzsAyxHfBITNTkpXiIM89x/HtzidNJ/o3Tr/XRhNvRlphFjgw8AzpDnQR c5hJg/1mf6eqFDrjZhti28FdckQcQuqiGkHdLpvT9+eJVHUInTe1DNG4oQipgGh8nCwm rKndJ0/AtPxvRkpkMaEjDZDI1JF/wV/dT/rO3LgOC5OUm2gzPIUa2woLBWBGAGkvoHer SFtJe9K34jbqySFmvnjkapTqS4xBfIHNzTwTFGnNOZvQYmzhBl1N2QKD6YQkRhv3JwZO qt8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=MXV81zes; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-208659-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208659-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6e60b3e4b86si5029226a12.180.2024.06.10.11.05.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 11:05:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208659-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=MXV81zes; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-208659-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208659-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 07D30B22CBA for ; Mon, 10 Jun 2024 17:36:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 030AB14AD3E; Mon, 10 Jun 2024 17:35:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="MXV81zes"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="MGKd13y/" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A469D14387E; Mon, 10 Jun 2024 17:35:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718040951; cv=none; b=dBAxdFcH9Tjs6h57izuVDJGEqB9aOWQjigf22WMc8Ze+awKkKBWUqu6k2uI73KVRWuFLpCESxO/idAHcLSa4LmtyO7KFCX3j1HsIsH1ErDK3xcc/AgiDuenf5I5xfFhuCTGxroIAnfy1Vh09WcY7MqXcVIvPnpwPgnaVwKpmAF0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718040951; c=relaxed/simple; bh=gXK6UKjolIGO1r7nMuHUNbiLA0oxODzI+Y/jnnEy/Nc=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=ChoCnKrPQU2nVXif1z5z4boipE3U9v97tZTSr6oacfXVTzTyU4e1skXQpMos77ocx9CVOSBx1+O+QDjSahWyt3xRUVqsqle8GF1mSXQAXOg5V97F+LOiJOJJJzs+k9tm+5mcnyeI+mL3R/XCtEDtrKR0j2m7+bB+ofQoKp2UN8E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=MXV81zes; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=MGKd13y/; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Mon, 10 Jun 2024 17:35:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1718040946; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oyMEHJUJO6/qQiK5PKOLatV+tf3yfVA/JShwBLC1hfE=; b=MXV81zes9cPL3J6PYZ1UG3YCC+qI7OtLOKeix/zNzNWH2rvi5FJJ8QcRG9pl5OJABuYQeA OY7jNj3z3uUYTCEx7wVsyHxjuox7x1biG3jKnIo7JyFfQx0sXmD84HopcDNojhQriQxJrw 9x1kg5znVXMPVe5pUb2VtZYr1o/S9rYdPxKJZKLmxawIC4Phh1WvrSyPTOPzn8i/lYrLG0 HbWYNXAJbostBcvH4iShekBTW8qaDpkYlUtOlB5/4pcow/4W51bvEr6rpWpuxaw6Pzs1mQ Xfwb8tnj2Dz0YYQSm30f83dwOWYUQZQzdDq8CFsUY7xMLSDB+5GcwArr1UWS8w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1718040946; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oyMEHJUJO6/qQiK5PKOLatV+tf3yfVA/JShwBLC1hfE=; b=MGKd13y/ZkL09Z6G2d5TA92HaIrhP0qOrhvgQDm3Tt40BWw0P5TIhDEHoRVIKqu6BDoVxD /eB8eSQfLlw3vlCA== From: "tip-bot2 for Tony Luck" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cache] cpu: Drop "extern" from function declarations in cpuhplock.h Cc: Tony Luck , "Borislav Petkov (AMD)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240610003927.341707-3-tony.luck@intel.com> References: <20240610003927.341707-3-tony.luck@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171804094647.10875.12160602953473020955.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the x86/cache branch of tip: Commit-ID: ddefcfdeb5a2238cbcb07b80dda9ac3136735b1e Gitweb: https://git.kernel.org/tip/ddefcfdeb5a2238cbcb07b80dda9ac3136735b1e Author: Tony Luck AuthorDate: Sun, 09 Jun 2024 17:39:25 -07:00 Committer: Borislav Petkov (AMD) CommitterDate: Mon, 10 Jun 2024 08:50:05 +02:00 cpu: Drop "extern" from function declarations in cpuhplock.h This file was created with a direct cut and paste from cpu.h so kept the legacy declaration style. But the Linux coding standard for function declarations in header files is to avoid use of "extern". Drop "extern" from all function declarations. Signed-off-by: Tony Luck Signed-off-by: Borislav Petkov (AMD) Link: https://lore.kernel.org/r/20240610003927.341707-3-tony.luck@intel.com --- include/linux/cpuhplock.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/linux/cpuhplock.h b/include/linux/cpuhplock.h index 386abc4..431560b 100644 --- a/include/linux/cpuhplock.h +++ b/include/linux/cpuhplock.h @@ -15,18 +15,18 @@ struct device; extern int lockdep_is_cpus_held(void); #ifdef CONFIG_HOTPLUG_CPU -extern void cpus_write_lock(void); -extern void cpus_write_unlock(void); -extern void cpus_read_lock(void); -extern void cpus_read_unlock(void); -extern int cpus_read_trylock(void); -extern void lockdep_assert_cpus_held(void); -extern void cpu_hotplug_disable(void); -extern void cpu_hotplug_enable(void); +void cpus_write_lock(void); +void cpus_write_unlock(void); +void cpus_read_lock(void); +void cpus_read_unlock(void); +int cpus_read_trylock(void); +void lockdep_assert_cpus_held(void); +void cpu_hotplug_disable(void); +void cpu_hotplug_enable(void); void clear_tasks_mm_cpumask(int cpu); int remove_cpu(unsigned int cpu); int cpu_device_down(struct device *dev); -extern void smp_shutdown_nonboot_cpus(unsigned int primary_cpu); +void smp_shutdown_nonboot_cpus(unsigned int primary_cpu); #else /* CONFIG_HOTPLUG_CPU */