From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.69 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792440794; b=xXN6ghThqpQ81jFCJ3YvEcyc2HV97nI8JHw0ln9GH/q8JFOzvOYADeIF3f2RCDOmUDJM CqqW5jETIMd4SH0F6A7S/c8va22oiSrZ9zH4mZEK5wrYbxTHeddfLYtl3I4mRf/5sHz/o vbZw0SS5EcOuaGNa20Cr1xityz9qFPQOyiUBB7KD1FgYQd+AquH/kyrzCIQMqmG8XI9Ve 8S/W6SEq0mfDcoRLSbaFw9mhY1jia+TK65gQkAuiwC+0uPP7kR4cAkTh0MZvUD3ehEOB5 OnkWfYA//ComOUgq3GP6Mb0kGsJl7Qgs1NzEyenYG+EhSWEjDUGjpzOl++UzBAiITKg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792440794; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:X-Mailer:Message-ID:Subject:From:To:Cc: Content-Type; bh=n6Cutn76HGVOvz/pUDurQ4xzloi5+zrfO4jU85m5dbQ=; b=K56lDEVKzz/ozkmCzm3PgW8S1daQU8upPzBuSQVSt3uTBTb+w/1jenW635uf9qoUFHhK rwVU3Ow8xUrWN5fp7t6FXOwbncPirptDZsYdTBGTrKmE8JewwZuKZUFGirnIMQsLjqLMH aQGBGRFOIzP9zmVgZP6+mBxh80JvfADsc5BJG7nIiJjAkjCzGcLMNk4DLZ78vO9xGax9x +09P5BNtiCZhduESkTJbDlJTzWxDTkQo6uAW8e838fF9ozmDSeGjEITeC8+5gmjF+G1J8 V5+fKNdhYmngFIRZa3ks5W0MWJ6LkvvImSNNK93fCO5FzjC9QcQ0ZuNxtG3VrMa4cjA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20251104 header.b="G/goLFy3"; arc=none smtp.remote-ip=74.125.82.69 Received: from mail-dl1-f69.google.com (mail-dl1-f69.google.com [74.125.82.69]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8098F606A31B for ; Mon, 19 Oct 2026 20:13:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8098F606A31B Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20251104 header.b=G/goLFy3 Received: by mail-dl1-f69.google.com with SMTP id a92af1059eb24-155a75f91e1so32729c88.1 for ; Mon, 19 Oct 2026 13:13:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1792440793; x=1793045593; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=n6Cutn76HGVOvz/pUDurQ4xzloi5+zrfO4jU85m5dbQ=; b=G/goLFy3N5fUF3FufCX34sm82wi1PoHTX/PxSwRJvkVyIuoO23I2KkXrx6SkY/UYX0 hwspYa5jETSjYyi2wJ3J5EkJwoYa65HQ0odaAKg4k9Sr0rFWnkAFHjNBimUWsIkmdrcp sxub9f/OSQZPcfItd/NREM2+dXNkCS1LIXS4JGpvmJP22lVMNKN6xDN34yGR/lnhZoux KlwNXzkmVdyHQYXDmvpxssoLvWX6OeJ9XixqtUK+RQuqL+7oAqpPtY24OnYfIQ3ULZt8 y448Z5ja916i9Pq4CuIpkLM6+7iDAQa/8y83iAKJfdQBoR2wfLTh2lYbXY7iARpweF6/ lCkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792440793; x=1793045593; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=n6Cutn76HGVOvz/pUDurQ4xzloi5+zrfO4jU85m5dbQ=; b=pbyv0iK4ox5rgOQ117hQARkyWGwDQ4vVDKT6EROyjMH5fNH9r0OUUOxrfF3Ai/GFb6 2xTP71ahU6w3u6rwdFV7OBFH0/a5YC9ti4TKxwzgWfLnI01kDsBFMGtuFEUk0QDmto6r K+puBQpt/3xPGgLW9242cy+yOJ6/jTPtwa0DBXa/7X/F4dT0zaUJEfltyGGefO6a9Jol nk2W2MB1qgXYCyGDi0cifwQtL3s8Dc3szg9DdDn2t2/P4BOtYejtEKeB0AV00j7uBZi+ Pu+f+BKHMwuFgzUxvdyOSsc0OedlUySnG+VmoDAfkZQVyrPCR71TEY5Gdy8MIPqb8o+x 3C3A== X-Forwarded-Encrypted: i=1; AKwUvBxjEk5Pn0M68l/ifQe7KHD710rz+eBmN9WgNV78QExMW/+P4riP4j/25FlR5fMGfhPH8EJsbzejm8WJex8=@vger.kernel.org X-Gm-Message-State: AFq9FYLVP/Vozfi/fJp/Cd8/h9T/FJcODAa55No1mQ0BQ8OKt1sc4QdU /gByQZ6Yt5Uvr7zAZEyx2b2YJiUwhfrRjEED6xXjJTEAuoza+OmdknyRzP5G1g7bDBHiQhskbBo LpwiIvDxTsw== X-Received: from dlep19.prod.google.com ([2002:a05:701b:4593:b0:168:9e52:72b9]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7022:130d:b0:182:c472:b123 with SMTP id a92af1059eb24-18db853ba02mr237142c88.1.1792440792662; Mon, 19 Oct 2026 13:13:12 -0700 (PDT) Date: Mon, 19 Oct 2026 13:12:57 -0700 In-Reply-To: <20261019201257.3805356-1-irogers@google.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261019201257.3805356-1-irogers@google.com> X-Mailer: git-send-email 2.56.0.212.g129ede20d9-goog Message-ID: <20261019201257.3805356-2-irogers@google.com> Subject: [PATCH v1 2/2] tools headers: Update the vdso/unaligned.h copy with the kernel sources From: Ian Rogers To: Thomas Gleixner , Andy Lutomirski , Vincenzo Frascino , Arnd Bergmann , Stefan Kerkmann , Marc Kleine-Budde , Christophe Leroy Cc: David Laight , Arnaldo Carvalho de Melo , Namhyung Kim , Eric Biggers , Al Viro , "Jason A . Donenfeld" , Ian Rogers , linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" To pick up the changes in: vdso: Add VDSO_UNALIGNED_PACKED config option for ARMv5 Signed-off-by: Ian Rogers --- tools/include/vdso/unaligned.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tools/include/vdso/unaligned.h b/tools/include/vdso/unaligned.h index 9076483c9fbb..726fd15efc82 100644 --- a/tools/include/vdso/unaligned.h +++ b/tools/include/vdso/unaligned.h @@ -4,6 +4,20 @@ #include +#ifdef CONFIG_VDSO_UNALIGNED_PACKED + +#define __get_unaligned_t(type, ptr) ({ \ + const struct { type x; } __packed * __get_pptr = (typeof(__get_pptr))(ptr); \ + __get_pptr->x; \ +}) + +#define __put_unaligned_t(type, val, ptr) do { \ + struct { type x; } __packed * __put_pptr = (typeof(__put_pptr))(ptr); \ + __put_pptr->x = (val); \ +} while (0) + +#else /* !CONFIG_VDSO_UNALIGNED_PACKED */ + /** * __get_unaligned_t - read an unaligned value from memory. * @type: the type to load from the pointer. @@ -41,4 +55,6 @@ sizeof(__put_unaligned_val)); \ } while (0) +#endif /* CONFIG_VDSO_UNALIGNED_PACKED */ + #endif /* __VDSO_UNALIGNED_H */ -- 2.56.0.212.g129ede20d9-goog