From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 EA202361DCB for ; Fri, 19 Jun 2026 15:47:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781884034; cv=none; b=h85KgNPd45gQF7pVM2AIa7G1gEeYoUsCWSELmB+LYOx7KZv3apKQ5fibq8WYUB7DYrz3EOBmtvYBjcLSzYj10plYPxh4gGhYQky3SU7h+JHKvERouBVQ0gZ+NG/8TULE3okjqdP3dbRJsTtKf3Sveyslz63Sv6rYmOpLLHoom/8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781884034; c=relaxed/simple; bh=mjGax9TNgF+rtS+C74GVeMdfpNWaRbDNDp/u3nmp4Sg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jLra7jaNRTEeKXn3h8/qbtwg7zVWgfhpB0oE8dBOTCudN8up/8FmimGjQmDh2WSShrh4tihYoA8JS5KZHN5GH2f8EErVSIeOlpxSAipdJnJfTjAxx2Xm5Wf1V5hshYlNr27hZKzToAt3H/i4GXbY94rpKDcjsD5wIJlv6l2uLSs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=bdyeRZc9; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="bdyeRZc9" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1781884032; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=GAzDhoVdtpZYLl4TTqX1/urTejCGM2zR+/1agFVZ7Hc=; b=bdyeRZc9ZwvNjYD27xj0zYMkG191+ELpMggb4MM8Iox/qb40h31xNg1FzP8pavWY5m9Q0z hsNq0/SGQ62qLqVUG2OZR1NciUr8YTeVOIbv9dAW2rPGZbAAVucXrBY6KAhW7XjJxlS3qa 9i6vl5CuPcu62fmF7Od4RJi9tVnbEcg= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-271-yXaf8j-cNdG94rlTD8-fZw-1; Fri, 19 Jun 2026 11:47:08 -0400 X-MC-Unique: yXaf8j-cNdG94rlTD8-fZw-1 X-Mimecast-MFC-AGG-ID: yXaf8j-cNdG94rlTD8-fZw_1781884027 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 639251956040; Fri, 19 Jun 2026 15:47:07 +0000 (UTC) Received: from thuth-p1g4.redhat.corp (headnet03.pony-001.prod.iad2.dc.redhat.com [10.2.32.114]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id AD3101956095; Fri, 19 Jun 2026 15:47:05 +0000 (UTC) From: Thomas Huth To: Dennis Zhou , Tejun Heo Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] percpu: Replace __ASSEMBLY__ with __ASSEMBLER__ in percpu-defs.h header file Date: Fri, 19 Jun 2026 17:47:04 +0200 Message-ID: <20260619154704.41293-1-thuth@redhat.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 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 From: Thomas Huth While the GCC and Clang compilers already define __ASSEMBLER__ automatically when compiling assembly code, __ASSEMBLY__ is a macro that only gets defined by the Makefiles in the kernel. This can be very confusing when switching between userspace and kernelspace coding, or when dealing with uapi headers that rather should use __ASSEMBLER__ instead. So let's standardize now on the __ASSEMBLER__ macro that is provided by the compilers. This is a completely mechanical patch (done with a simple "sed -i" statement. Signed-off-by: Thomas Huth --- Note: This patch has been split from an earlier bigger patch of mine to ease reviewing. include/linux/percpu-defs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/percpu-defs.h b/include/linux/percpu-defs.h index 43c854a273c3a..2cba7cc2b01f9 100644 --- a/include/linux/percpu-defs.h +++ b/include/linux/percpu-defs.h @@ -203,7 +203,7 @@ /* * Accessors and operations. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ /* * __verify_pcpu_ptr() verifies @ptr is a percpu pointer without evaluating @@ -514,5 +514,5 @@ do { \ #define this_cpu_inc_return(pcp) this_cpu_add_return(pcp, 1) #define this_cpu_dec_return(pcp) this_cpu_add_return(pcp, -1) -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _LINUX_PERCPU_DEFS_H */ -- 2.54.0