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 D2CCD3B4E81 for ; Thu, 9 Apr 2026 09:47:46 +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=1775728068; cv=none; b=MDmvf2L4Fr3ghwsA4LJCMN0CArlkfp7z+1JecEutaQJT65xJteNpLRUHxDCowQvVup7vSaDdaQfsHT01hzINvhkRiNMUcx5FtsMCK/KpneHU9BHlk5WbfpMcXSdw4d2Y/iX5JBdboe9RKg6D5FGrOxVvfG58tBzAExLKLvc3pxQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775728068; c=relaxed/simple; bh=iCdzSnfIHg7hu83jvH0NINgMijuXJ9uGjWs8VBxB6/k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IhDYg4KuGNxQNwUVqXEXnrbPR0P5zfdLVyzqnl6CqXVS6VhgUiG3k6Gt9SzVsPX07yJ9NKnbRibWM5eyF2kQtmqjVNEtOfC8nU4Nb5kuVS8IhgMQuL7YS7mvwRMCLJBBQ6rqlH8DUKXxeD23hchENCwTbDgVM5iHruD+gzXs4mk= 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=LwFA9/e5; 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="LwFA9/e5" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1775728065; 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: in-reply-to:in-reply-to:references:references; bh=ArqqKVyWIMN9eczDpfd6+1wQ00bc1tFZsdDTLBAVmAY=; b=LwFA9/e5jy8PXkmM7DsnDuPjybpqObz7G6NChwzb6moRkKakF7i5omdwkCQ+aXVV8K2Mnv szMb/pehxSZNvrQpQThof+tXfu7w6+p8tMtxSzzEGtxpzYMeytBhmTdLT5QzQLiLjMCKk4 Qny0e28ix3maJh7c9zwFntHMfxWJHzM= Received: from mx-prod-mc-03.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-551-nKOs2kagMxmW02h-ffOE4Q-1; Thu, 09 Apr 2026 05:47:44 -0400 X-MC-Unique: nKOs2kagMxmW02h-ffOE4Q-1 X-Mimecast-MFC-AGG-ID: nKOs2kagMxmW02h-ffOE4Q_1775728063 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id AE5721956055; Thu, 9 Apr 2026 09:47:42 +0000 (UTC) Received: from thuth-p1g4.redhat.com (unknown [10.44.48.155]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 07B4B30001BE; Thu, 9 Apr 2026 09:47:37 +0000 (UTC) From: Thomas Huth To: Arnd Bergmann Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Thomas Huth , Paul Walmsley , Deepak Gupta , linux-riscv@lists.infradead.org Subject: [PATCH v5 5/8] kselftest/riscv: Replace __ASSEMBLY__ with __ASSEMBLER__ Date: Thu, 9 Apr 2026 11:47:05 +0200 Message-ID: <20260409094708.1687376-6-thuth@redhat.com> In-Reply-To: <20260409094708.1687376-1-thuth@redhat.com> References: <20260409094708.1687376-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.4.1 on 10.30.177.4 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. Cc: Paul Walmsley Cc: Deepak Gupta Cc: linux-riscv@lists.infradead.org Signed-off-by: Thomas Huth --- tools/testing/selftests/riscv/cfi/cfi_rv_test.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/riscv/cfi/cfi_rv_test.h b/tools/testing/selftests/riscv/cfi/cfi_rv_test.h index 1c8043f2b778b..184df6903d01c 100644 --- a/tools/testing/selftests/riscv/cfi/cfi_rv_test.h +++ b/tools/testing/selftests/riscv/cfi/cfi_rv_test.h @@ -56,7 +56,7 @@ #define CSR_SSP 0x011 -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__ #define __ASM_STR(x) x #else #define __ASM_STR(x) #x -- 2.53.0