From nobody Tue Feb 10 23:53:35 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 32B581D172F for ; Wed, 4 Sep 2024 15:58:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725465510; cv=none; b=BrxqOBodRvljJ6rZNY01MYbpv8MiJZCzY7wqkHn5OeAoXOkV2CkusjU54O/MaIuQ5SjTqzMfppn+kbCJFJ4muv9Fi5zJaP2hetbz7WbA9IyO/3gVXqD+iny8JSTazSAiT+OlsLe9VMVtmA1jjb1mNPm+46ubqQdFOX6uhLM5I+o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725465510; c=relaxed/simple; bh=JZXKEHNOBVh7HrBzuAh/ix4QyM+yFrRyCNw/WHZzYGk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oL53QLVf5hpBvgSiMObZBa8NXIqqjpLQV2SfZcpLwm+b48veM80eV+zQqMRsBqHQup4KoaCkP5nJEHhUjFLKcOQ4CfGlqWsssVhZol4wk2RJR9J+8sQjAuK4t3JdKtZTxjsVNwC887hAYjWutexrp4tYwlc7S24F0RANbAmvwvE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b=L+4MwgcM; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="L+4MwgcM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5AEAFC4CEC2; Wed, 4 Sep 2024 15:58:29 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="L+4MwgcM" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1725465507; 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=e72KV22vdv2g3YfWhATqVqG4Lxvn2VwDkeaI4raeyrs=; b=L+4MwgcMU5lIHzAQTK2q3y9PTwVDF3ld65FXRsGm+XBGFM28Pzz069ySrNR4sdV0ohyRvt N4Z6DK9FLCRd5G4F67rxmnmLIrcqS+ZHMzIdBcMZx7CfLtIrHwsh3CgmFRhS1uBW/4UcHr cvBV0Gmk4Lalbl9ezu1z6l6T6w0mlMY= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 472fa3eb (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 4 Sep 2024 15:58:26 +0000 (UTC) From: "Jason A. Donenfeld" To: adhemerval.zanella@linaro.org, linux-kernel@vger.kernel.org Cc: "Jason A. Donenfeld" Subject: [PATCH] selftests: vDSO: don't include generated headers for chacha test Date: Wed, 4 Sep 2024 17:58:17 +0200 Message-ID: <20240904155817.1153783-1-Jason@zx2c4.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" It's not correct to use $(top_srcdir) for generated header files, for builds that are done out of tree via O=3D, and $(objtree) isn't valid in the selftests context. Instead, just obviate the need for these generated header files by defining empty stubs in tools/include/asm, which is the same thing that's done for rwlock.h. Signed-off-by: Jason A. Donenfeld Reviewed-by: Adhemerval Zanella --- tools/include/asm/asm-offsets.h | 0 tools/include/asm/cpucap-defs.h | 0 tools/include/asm/sysreg-defs.h | 0 tools/testing/selftests/vDSO/Makefile | 1 - 4 files changed, 1 deletion(-) create mode 100644 tools/include/asm/asm-offsets.h create mode 100644 tools/include/asm/cpucap-defs.h create mode 100644 tools/include/asm/sysreg-defs.h diff --git a/tools/include/asm/asm-offsets.h b/tools/include/asm/asm-offset= s.h new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tools/include/asm/cpucap-defs.h b/tools/include/asm/cpucap-def= s.h new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tools/include/asm/sysreg-defs.h b/tools/include/asm/sysreg-def= s.h new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tools/testing/selftests/vDSO/Makefile b/tools/testing/selftest= s/vDSO/Makefile index 3c6fafbd83a6..55038a65fa61 100644 --- a/tools/testing/selftests/vDSO/Makefile +++ b/tools/testing/selftests/vDSO/Makefile @@ -40,6 +40,5 @@ $(OUTPUT)/vdso_test_getrandom: CFLAGS +=3D -isystem $(top= _srcdir)/tools/include \ $(OUTPUT)/vdso_test_chacha: $(top_srcdir)/tools/arch/$(SRCARCH)/vdso/vgetr= andom-chacha.S $(OUTPUT)/vdso_test_chacha: CFLAGS +=3D -idirafter $(top_srcdir)/tools/inc= lude \ -idirafter $(top_srcdir)/arch/$(SRCA= RCH)/include \ - -idirafter $(top_srcdir)/arch/$(SRCA= RCH)/include/generated \ -idirafter $(top_srcdir)/include \ -D__ASSEMBLY__ -Wa,--noexecstack --=20 2.46.0