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 3E2683B27F8 for ; Fri, 19 Jun 2026 16:07:04 +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=1781885225; cv=none; b=qBjHPSbkQfcDPasFA7onCJw/ffV32VMau2cbaW3bmFUbkq08OGruyl3i18iSDUdFFsyDzarRWPGvEShi0bRV0vpYuVOmgOjzJpW01RuNvfunyB6FZ4y90ueZ2zfEwGwZyA37AEGdKXLdfk8vBvMjW3ubXjykrVDRS4NjmXYgq9I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781885225; c=relaxed/simple; bh=/Vf+NV0pWso/EuoMD3LiUpAzrXBF8hZNIDeuthsmCpw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PtWAxzwiVpDAFjAELaVhdJDPKrJHESZC9nzjGH5LVFxDCSq0Md2n6apQJjTZZIqCMqCsU8RHeOg8yumjozJxD1vg1Am1nWQ5G3H0dFEMujfZHMq/flGrWOAaECA64XfevVKgPDTJWUEU6KnHg59/CjbDsom9DW0cWYCTtCGbNU0= 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=LA0Nr0zd; 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="LA0Nr0zd" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1781885223; 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=upm7hjjighMX28RxALYlLLqfXqHttETy53AIK73LdCk=; b=LA0Nr0zd7zH4btg9hblGgj87nDf+6saHe6/9anG9UFoN/Ai29MCEZ7tgchab73gQcxm4Dq FJk/057c59KRIUgmlB86CyX4j7vE0mdo084hM+46dBfEL1sqq1/ymtxNMzYNaOddyvAWkV EzF9GBSFaSz4QK8c+jsedFTyFsp/WIw= 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-283-p01PRTQeNjiOZ9xLcfZq5g-1; Fri, 19 Jun 2026 12:07:00 -0400 X-MC-Unique: p01PRTQeNjiOZ9xLcfZq5g-1 X-Mimecast-MFC-AGG-ID: p01PRTQeNjiOZ9xLcfZq5g_1781885219 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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 CF661180AD54; Fri, 19 Jun 2026 16:06:58 +0000 (UTC) Received: from thuth-p1g4.redhat.corp (headnet03.pony-001.prod.iad2.dc.redhat.com [10.2.32.114]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id D7D56195419D; Fri, 19 Jun 2026 16:06:55 +0000 (UTC) From: Thomas Huth To: Andrew Morton , Baoquan He , Mike Rapoport , Pasha Tatashin , Pratyush Yadav Cc: kexec@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] kexec: Replace __ASSEMBLY__ with __ASSEMBLER__ in header file Date: Fri, 19 Jun 2026 18:06:54 +0200 Message-ID: <20260619160654.75980-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.17 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. Signed-off-by: Thomas Huth --- Note: This patch has been split from an earlier bigger patch of mine to ease reviewing. include/linux/kexec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/kexec.h b/include/linux/kexec.h index 8a22bc9b8c6c8..0af8ae4fdd087 100644 --- a/include/linux/kexec.h +++ b/include/linux/kexec.h @@ -13,7 +13,7 @@ #define IND_SOURCE (1 << IND_SOURCE_BIT) #define IND_FLAGS (IND_DESTINATION | IND_INDIRECTION | IND_DONE | IND_SOURCE) -#if !defined(__ASSEMBLY__) +#if !defined(__ASSEMBLER__) #include #include -- 2.54.0