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.133.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 BD2194E1C99 for ; Tue, 22 Sep 2026 06:46:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790059620; cv=none; b=pHFVs3dVeAC1DtgVpbWWwUiJFWU8ISTZtVL6HZHr2ko5oFryNJ20Sn0zLWOpo6jjugLhrrF2gAl/RGKNuqu+niSXKavkVmgitvjmOpMNOPQ3a0WQpOT4OjVJ+a8+I7Uq2MrDnLgFhc4eEtS55GlsALLX0kLS0+lH3ix6iiEO8Zw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790059620; c=relaxed/simple; bh=MGFVBQ+TrHTe9DbJ2aRmYU3aQGRxXPtwm3CTto3c1KY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=duZbUKxUFbi1Z8Gj3zu7li+ZaiHoSW8jsnS9XxFcpXXXQPEqbv9Ub3cuRlotH96QsESL06feyk2s/AKanvEuyrgL/6vdEfvzUPy5ErM67Kob2o2FKAvNhjrfjoAn8ImjiUgZEpsmrjrUSVZ+O74/Lk5rxsL2dEavG95vGf9+yjM= 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=Povh2Of+; arc=none smtp.client-ip=170.10.133.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="Povh2Of+" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1790059617; 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=SQccuqJyhP5fDCQHYD5pQI3YA0ykJFivdKYX/lD7ySw=; b=Povh2Of+/6JZYmtPHm5RAMyJpzVlaiNehs95XUo5omJ9gEuDcJNcBDf7i8b7kJTTqUS2pa rij/dNyGaqhKIY+frKHlc9xme4KZe1m27HIMp6ba5AMhnq5QVzH7pmASMa85+xoepkcXL3 uNpZzAMbKD1uzpMThhzaGTEENzmF3uU= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-400-Z4Lm0PUiPIWzKmAWxoTMWA-1; Tue, 22 Sep 2026 02:46:52 -0400 X-MC-Unique: Z4Lm0PUiPIWzKmAWxoTMWA-1 X-Mimecast-MFC-AGG-ID: Z4Lm0PUiPIWzKmAWxoTMWA_1790059609 Received: from mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.95]) (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-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 42F1D1809C96; Tue, 22 Sep 2026 06:46:49 +0000 (UTC) Received: from thuth-p1g4.redhat.corp (headnet05.pony-001.prod.iad2.dc.redhat.com [10.2.32.117]) by mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 5A95D426; Tue, 22 Sep 2026 06:46:42 +0000 (UTC) From: Thomas Huth To: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Arnaldo Carvalho de Melo , Namhyung Kim Cc: Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , K Prateek Nayak , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , James Clark , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: [PATCH] sched: Replace __ASSEMBLY__ with __ASSEMBLER__ in sched.h header Date: Tue, 22 Sep 2026 08:46:41 +0200 Message-ID: <20260922064641.61120-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.6 on 10.30.177.95 While the GCC and Clang compilers already define __ASSEMBLER__ auto- matically 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. Let's standardize now on the __ASSEMBLER__ macro to avoid this confusion. Signed-off-by: Thomas Huth --- Note: This has been split from an earlier bigger patch of mine into this separate patch to ease reviewing. I also thought I had sent out this earlier already, but I cannot find the patch on lore or any other public inbox anymore, so maybe it got lost along the way. Anyway, sorry if you got this twice! include/uapi/linux/sched.h | 2 +- tools/perf/trace/beauty/include/uapi/linux/sched.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/sched.h b/include/uapi/linux/sched.h index 33a4624285cd4..19ffeba894283 100644 --- a/include/uapi/linux/sched.h +++ b/include/uapi/linux/sched.h @@ -53,7 +53,7 @@ */ #define UNSHARE_EMPTY_MNTNS 0x00100000 /* Unshare an empty mount namespace. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ /** * struct clone_args - arguments for the clone3 syscall * @flags: Flags for the new process as listed above. diff --git a/tools/perf/trace/beauty/include/uapi/linux/sched.h b/tools/perf/trace/beauty/include/uapi/linux/sched.h index 33a4624285cd4..19ffeba894283 100644 --- a/tools/perf/trace/beauty/include/uapi/linux/sched.h +++ b/tools/perf/trace/beauty/include/uapi/linux/sched.h @@ -53,7 +53,7 @@ */ #define UNSHARE_EMPTY_MNTNS 0x00100000 /* Unshare an empty mount namespace. */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ /** * struct clone_args - arguments for the clone3 syscall * @flags: Flags for the new process as listed above. -- 2.55.0