From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f169.google.com (mail-qt1-f169.google.com [209.85.160.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 370F0213E97 for ; Thu, 23 Jan 2025 19:08:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737659296; cv=none; b=VL052exg5PgNbnssR6O3QP+jzP18jt5AT12KAd67M6FIKv/Bs65sBfySMD2HFI6zqVELANP/BEIFLWPJ4W/SGh6E5jVFLK0V8lDhUyLgqmH/Eu91v34pWDqQnkWuNKQqlDV2zrWNaJU3MX/Pw9m9A7ZVPXNy+XvGKu3LhpHH/pA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737659296; c=relaxed/simple; bh=BEPFEYfZhVnrc2haWzepIzQUSH71N7kszwYEBMJYM8Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KoOPD3zZGR1mun0MwYnehfGHxibE2N0unthWpehh3k1RHGZills0bgYeLsPyTmpmi35BnAGXgCeMzuE4IkFcXcD7S2rgq9Rhy/v25wb8HGB8Tmu4piX5GXgowKk/ZazJUc0WGYreok64VblhM2/YjbxD1Wuha4idWeiDyvIjlZ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=SfzUp0h3; arc=none smtp.client-ip=209.85.160.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SfzUp0h3" Received: by mail-qt1-f169.google.com with SMTP id d75a77b69052e-467725245a2so13489661cf.3 for ; Thu, 23 Jan 2025 11:08:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737659294; x=1738264094; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5sGGkTFKJLssIh+3P+6euS+EEOl7z8lG+7Njs3tNXqY=; b=SfzUp0h3hmA3GSk+kh7R7ANK6+17scnD5W/vcnOlhhN+nmkyOdUOqFy09QxUZkcKWv eIkLI10BuZDW+KCw56Hyr8ORrVdUKgyxQrotaf7yfN3ljsG8CDzSpFZvNxtwiufs9x0O hEWKi76V0xoU4iA2HGQLqbMQG/XWy4QuhE7NEksEvXOIeUdzNnRaULXFjya8TY8w7pOP 8NkPSV/3KrKp0zeGiartdqT/o2zIzJBg52HxK5AD4fLDosJnV4iXf1yl+24E7eSwQNOH 24X06FhDlayUainS9TRUcZDYczgmLCal6tLcs/w7G8MDORdQG9PR9eL3J5zRlWGVog5u m+2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737659294; x=1738264094; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5sGGkTFKJLssIh+3P+6euS+EEOl7z8lG+7Njs3tNXqY=; b=oDbCtKBQzvV0p3sARjFQbP+BTkShxBdIRrlFe0Z1uAPzAk37KhvyCh3l7ozR5/jGeF SgIPZv8WQK0Td7seqyykruYIekxVQg/D+IQBwUSeGSDHTruQTWhGhQJFmQgrGGlh+R1d SJFNKuWf6V4A17992/lexY9i9N60MCsxblG9/m4vbmlkdWScEC+/C771212MVIwvF4+M +zC6fxQhT4CQXyXqrEwdMFHDrGOc0VcyynRhx3oWO4AIOh73bLwSTwENCX68lrBgEzxT uPfDhF50q6l3BFmmYpXoNAUeWMrpLCkTXmKRHrJnNKsQVczU1VxsPdeRD1Wu+RUHs2qB D3fA== X-Gm-Message-State: AOJu0YzsGsKHfXxyWyaPGRZPEpOl09UT6HZb6UD+Ur3k5yNqkJtl4bXM pp4VQS8lZfN0ES+/sKOJtGXtHcpPLfNYreKx7MD60FDKLkcGIBLBnVYi X-Gm-Gg: ASbGncuxMPDuG37a0r97aJAvGQ2rqNmdg7K6GlskSicMF6fzDxNhTfQ2SmYW+3k0GLc QYO20SDt0xsXU+bJJtOZRo15oYWRrMv/xhKu8Ny5Ri/PkExekf4zFP6UPBSCHal9WR7686M5YYp GtpQVQwY3rJj11kmT9qAXQ9FX6vsKOa9OrNycrWoaEwk1ojtUGNPlMefox/0u909X1mTPTHl9QT sMS3Tu8FJ2+y6Pk6fl208Kv8BF03QiSv4tfnxYJ+cRj1x/Joy3GgjJ/gQWVgw== X-Google-Smtp-Source: AGHT+IFz7JaTy7x6Z82B+hqGNgtHsIHNadVI/9ViLaI6EIAxXhK9pHeEJ+h/GwAspFXVmKdGcVzEUw== X-Received: by 2002:a05:622a:20d:b0:467:70ce:75ea with SMTP id d75a77b69052e-46e12a9a0d0mr436747401cf.23.1737659293664; Thu, 23 Jan 2025 11:08:13 -0800 (PST) Received: from citadel.lan ([2600:6c4a:4d3f:6d5c::1019]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-46e66b880b6sm1768021cf.69.2025.01.23.11.08.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 11:08:12 -0800 (PST) From: Brian Gerst To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: Ingo Molnar , "H . Peter Anvin" , Thomas Gleixner , Borislav Petkov , Ard Biesheuvel , Uros Bizjak , Brian Gerst Subject: [PATCH v6 12/15] percpu: Remove PER_CPU_FIRST_SECTION Date: Thu, 23 Jan 2025 14:07:44 -0500 Message-ID: <20250123190747.745588-13-brgerst@gmail.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250123190747.745588-1-brgerst@gmail.com> References: <20250123190747.745588-1-brgerst@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit x86-64 was the last user. Signed-off-by: Brian Gerst Reviewed-by: Ard Biesheuvel --- include/asm-generic/vmlinux.lds.h | 1 - include/linux/percpu-defs.h | 12 ------------ 2 files changed, 13 deletions(-) diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 54504013c749..4a69658739de 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -1061,7 +1061,6 @@ defined(CONFIG_AUTOFDO_CLANG) || defined(CONFIG_PROPELLER_CLANG) */ #define PERCPU_INPUT(cacheline) \ __per_cpu_start = .; \ - *(.data..percpu..first) \ . = ALIGN(PAGE_SIZE); \ *(.data..percpu..page_aligned) \ . = ALIGN(cacheline); \ diff --git a/include/linux/percpu-defs.h b/include/linux/percpu-defs.h index 5b520fe86b60..40d34e032d5b 100644 --- a/include/linux/percpu-defs.h +++ b/include/linux/percpu-defs.h @@ -26,13 +26,11 @@ #define PER_CPU_SHARED_ALIGNED_SECTION "..shared_aligned" #define PER_CPU_ALIGNED_SECTION "..shared_aligned" #endif -#define PER_CPU_FIRST_SECTION "..first" #else #define PER_CPU_SHARED_ALIGNED_SECTION "" #define PER_CPU_ALIGNED_SECTION "..shared_aligned" -#define PER_CPU_FIRST_SECTION "" #endif @@ -114,16 +112,6 @@ #define DEFINE_PER_CPU(type, name) \ DEFINE_PER_CPU_SECTION(type, name, "") -/* - * Declaration/definition used for per-CPU variables that must come first in - * the set of variables. - */ -#define DECLARE_PER_CPU_FIRST(type, name) \ - DECLARE_PER_CPU_SECTION(type, name, PER_CPU_FIRST_SECTION) - -#define DEFINE_PER_CPU_FIRST(type, name) \ - DEFINE_PER_CPU_SECTION(type, name, PER_CPU_FIRST_SECTION) - /* * Declaration/definition used for per-CPU variables that must be cacheline * aligned under SMP conditions so that, whilst a particular instance of the -- 2.47.1