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 259653B5837 for ; Fri, 19 Jun 2026 16:02:42 +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=1781884966; cv=none; b=rn8WorcEU4wKveBlXHa16fj3QbkqJTZg3w5pj69hlpPfSEo//tgFIZV4ssLs1TZxTRMuthrKev1Vqc0h9iv73RUFmNqjS5OpoX8rcRL05LCxvZRYYd+yPJGJKh0hSnS6Wc6YlJrYBJyHfr/DnHPoyxdueS3FaPR1EXKhwr1MLPg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781884966; c=relaxed/simple; bh=mso9Bt/eR7Efwn9XRqWEoU8SS6Kd+C5EbahLfUHGN4E=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=HAmnidziKqu4G1TkGLCgyu+bTpfgSlHFkvuzrYyxQuVzdYFamm1/5QRdAmaydymgYs/80b527PesK24rqT7IFf3/o5wpdZ6oxjN/qwz9AUxFLdCpsFc0dBd5MspWhDjEwY2vD1tFzUcJwO5sGPMwPFnczOfN+bovZweyZakKZQU= 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=GLZU8XVd; 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="GLZU8XVd" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1781884962; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=4Y1sK4eRh9HFfS7bFrVrMmWeNAmQIWGgvBGEqPSY2qQ=; b=GLZU8XVdVXdzUzKRORYNjQPSf8bKDoE+/ja7sBWIh7KiR1PQxksjx0e01LM1l+TX0AAkTn g4Q+2jrAQSfgcGGv4R4AAl6p6V4DCi0SDUhlYIhsPv+ZRntNloDGcVfV+ccoQsqRnXcSu2 f5MA50uW9n24EuYBNifp1kja0CR1j0g= 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-147-NbkSX-BTP4q3vHMsbk3ztw-1; Fri, 19 Jun 2026 12:02:38 -0400 X-MC-Unique: NbkSX-BTP4q3vHMsbk3ztw-1 X-Mimecast-MFC-AGG-ID: NbkSX-BTP4q3vHMsbk3ztw_1781884957 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 A1767195DE16; Fri, 19 Jun 2026 16:02:37 +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 4B2241956095; Fri, 19 Jun 2026 16:02:36 +0000 (UTC) From: Thomas Huth To: Rob Herring , Saravana Kannan , linux-kernel@vger.kernel.org Subject: [PATCH] of: fdt: Replace __ASSEMBLY__ with __ASSEMBLER__ in of_fdt.h header file Date: Fri, 19 Jun 2026 18:02:34 +0200 Message-ID: <20260619160234.69568-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/of_fdt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/of_fdt.h b/include/linux/of_fdt.h index 51dadbaa3d63a..72b452e388eeb 100644 --- a/include/linux/of_fdt.h +++ b/include/linux/of_fdt.h @@ -16,7 +16,7 @@ /* Definitions used by the flattened device tree */ #define OF_DT_HEADER 0xd00dfeed /* marker */ -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #if defined(CONFIG_OF_FLATTREE) @@ -103,5 +103,5 @@ static inline void unflatten_device_tree(void) {} static inline void unflatten_and_copy_device_tree(void) {} #endif /* CONFIG_OF_EARLY_FLATTREE */ -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* _LINUX_OF_FDT_H */ -- 2.54.0