From nobody Sat Feb 7 18:26:34 2026 Received: from mx.treblig.org (mx.treblig.org [46.235.229.95]) (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 87FFB21C186 for ; Fri, 20 Dec 2024 16:57:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.229.95 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734713880; cv=none; b=jOFGMcZzIL00sO5jPncrEdip7T5Ss1ae7ClAFK7TX875FBz0OblBn2uS47i3IlZcJE5rjHHKH5FDTPvidr0kAGIlwrkbq7h5URT8aqoCmt6j/+MKj8Xz31Hh1hxRhkCwHzgZtJ0gSnrqz3qLmvUQAFF6y5NZi/HqX9Zbheb0/vA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734713880; c=relaxed/simple; bh=pUmNbornmo810OcTUFyzZiGcxTMGOKXo4jbmaaDWYMc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=k5n4TABNDn2Iijpt1pQwlvxiHJyObJ/wuqWPHTTZi2qlRbZzKt20wBFFs/cGnbwvGBL6qunSJFK0MKRVGHb3JZXj9pHidLlrSvpe9fRgNSoKC0dmc+jzT+P4FGMpu6yMO8ukgK4ZnbEXR4FyvBV7zsj1S+QzFQyyPmJrR6/UVpQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org; spf=pass smtp.mailfrom=treblig.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b=olzfvxSk; arc=none smtp.client-ip=46.235.229.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=treblig.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b="olzfvxSk" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=MIME-Version:Message-ID:Date:Subject:From:Content-Type:From :Subject; bh=Rr8TpRx723bbLsexQo46YSxFfSaq5kQsZToUOfnGYPg=; b=olzfvxSkt5AHkC9B cOHq5uuqO2rzV7bwuZSF9wIVdzuTy4IGRGgbjKbyxMD6rcYDcihNj6cvqZTxtNBKkazwlpeBRzv/2 ptm1ku2/scmi31zoouM4D3ghKtnNLUIRTvhtDGs6J4KkaeApAGR41zOM1h0YJy0f5rnewG2K7lt9M x0hDUnza8U4moEdnAEyUDmt0ID6Y/57l84XyJrPHBAcAI2yyWtOLuAPAZ+qx9yiFpmxIc4NkfpQVV YwUg3lE2AuDd3DeugAl6mS7qqOUbZ8kc00UARyS9PHsp0u1aphwLdgCWZPWUB7fPIISi8//aZ8IZF yMiOcHZJqRxO1mBgdQ==; Received: from localhost ([127.0.0.1] helo=dalek.home.treblig.org) by mx.treblig.org with esmtp (Exim 4.96) (envelope-from ) id 1tOgJp-006ZOr-1f; Fri, 20 Dec 2024 16:57:41 +0000 From: linux@treblig.org To: yury.norov@gmail.com, linux@rasmusvillemoes.dk, tglx@linutronix.de, peterz@infradead.org Cc: linux-kernel@vger.kernel.org, "Dr. David Alan Gilbert" Subject: [PATCH] cpu: Remove unused init_cpu_online Date: Fri, 20 Dec 2024 16:57:39 +0000 Message-ID: <20241220165739.201412-1-linux@treblig.org> X-Mailer: git-send-email 2.47.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: "Dr. David Alan Gilbert" The last use of init_cpu_online() was removed by the commit cf8e8658100d ("arch: Remove Itanium (IA-64) architecture") Remove it. Signed-off-by: Dr. David Alan Gilbert --- include/linux/cpumask.h | 1 - kernel/cpu.c | 5 ----- 2 files changed, 6 deletions(-) diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h index 9278a50d514f..590d8438514c 100644 --- a/include/linux/cpumask.h +++ b/include/linux/cpumask.h @@ -1043,7 +1043,6 @@ extern const DECLARE_BITMAP(cpu_all_bits, NR_CPUS); /* Wrappers for arch boot code to manipulate normally-constant masks */ void init_cpu_present(const struct cpumask *src); void init_cpu_possible(const struct cpumask *src); -void init_cpu_online(const struct cpumask *src); =20 #define assign_cpu(cpu, mask, val) \ assign_bit(cpumask_check(cpu), cpumask_bits(mask), (val)) diff --git a/kernel/cpu.c b/kernel/cpu.c index b605334f8ee6..2ac860df1ff0 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -3128,11 +3128,6 @@ void init_cpu_possible(const struct cpumask *src) cpumask_copy(&__cpu_possible_mask, src); } =20 -void init_cpu_online(const struct cpumask *src) -{ - cpumask_copy(&__cpu_online_mask, src); -} - void set_cpu_online(unsigned int cpu, bool online) { /* --=20 2.47.1