From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5BAF034DCC7 for ; Mon, 20 Apr 2026 20:31:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776717094; cv=none; b=Uz8h8y4F2bEqxn8k5RO8JI45lKuHpBVxWqMUE+fgB0KJ+yCB13ngkVI7D3R7rVFqqU7MiZ0RxpgqXzU/leAmql0VoZWey7mAGXy9v8tRqjIBHgipGs5WbZUHF0tHeKR5gbmJUq74MYd0CfnorqTIdt9gn6pEPLNervuw3+pY2c0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776717094; c=relaxed/simple; bh=1fmttW43m02UXdVQMFbm1+Fjb9kM23jey1UIcB3meSs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Jx10JAJKcJ1abcFAcS1ImOn6tIXw6+8i4lRMBjw2/Ah6/J0BFdvtFL7JEGOfJYOUdBKDHhJ9P0ZhE46MJ5G8n6m5TJITWarJUuMV0UmC3qTxInQ2YpHC+1Lf9uTe4IXsesnuEDm5LpqRn5TPyaQABadV6e9v5Xr+OIc6dc4DXcc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20251104.gappssmtp.com header.i=@baylibre-com.20251104.gappssmtp.com header.b=jnamGJXH; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20251104.gappssmtp.com header.i=@baylibre-com.20251104.gappssmtp.com header.b="jnamGJXH" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-488a9033b2cso39727745e9.2 for ; Mon, 20 Apr 2026 13:31:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20251104.gappssmtp.com; s=20251104; t=1776717091; x=1777321891; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=1fmttW43m02UXdVQMFbm1+Fjb9kM23jey1UIcB3meSs=; b=jnamGJXHPA0SAWEBfg0siKGV5Ng7WOhyw+r3fxwxIz1Ikg2PiDiUTgFzBdoq/5zDUx 6nA5EGH/ueeznt9Z4IkFNKaFunFr3zFV4bYQJN15yLHVI8OU8M/T3a8GOtmroPku0GSl cRW2SyDFbDwMc7zwPytjL04UwJohpXLzNrAf/XlIoJBwsIsObw1WdWR0dHle0e4txf+n xUb06a3vxXiJBsZC6U2nY5fYe+gmsOGfFk3bbHNIrbiQty6BbwLT6hVhA7NagAl7PO2+ UZd/vVG8B3Xp4v3TtAuEVKJ3/fvn3nX26OUVyXzFyyDpalofacSPz0OPByfXXzYAPy7Y tgpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776717091; x=1777321891; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1fmttW43m02UXdVQMFbm1+Fjb9kM23jey1UIcB3meSs=; b=CpZu62iQMk1wOADh1gR0G4W6D9he4PNdQCacFCfI/8V1UPQvV5PrxoZJsOOuQa0cqu d6amEP8wTuGAulE27DC+2mx+v90rSqFrQ/K9chbzb2IGjUcwOzflUxm52kn2sKTntaPB 7/Fks+NHdcPhfb88W82Uy8hZViry7JJwZob+DeDAD6q7w8oDm1c94BmVrIECwEMRUwGH Fvf2dvqFoBdefBj6ei0Hc1C661hcT8pcuAWPQKfjTa2zdA2YcJyuVQoLvIJmddwOgRpB NnnWeWlRrXms1zSbZ6IjIRwGzqWVWjC/3rxNXK0TePebyI2gKg+VYIIMNE5iMLAIcXdr M7Qw== X-Forwarded-Encrypted: i=1; AFNElJ81HNTN8J5pzDPO/y1wh0dRG/gvyUF1Ufp519z/79dSXiAC9M8EN9yx6M3QzfJ3uc8byKTebM2LmOgNFxA=@vger.kernel.org X-Gm-Message-State: AOJu0YwyxePgHIUhetmdbgMGYJPF2Z8YNeDh2O9tDrhO18p6ZB0D65CE JM6YRKa04+f13ZWHJrPtM9yLndIAk8y7LVka3glyS4fJ303yQodVtofWitl4NpQw36c= X-Gm-Gg: AeBDietQLPUFsLtXF3iwDgTZCmrYpQf0iaX6IUSmGweI7bLn+5U2msZizxrJK43Uvvz pYDamcLtbNKZ4ARcyBti0Z15R30jd+E8KRjlmjTcZ88Ys94YqrsI9PfJl741g1+nE7X0vDbgAFx Rw3DMo0CfLfyM+SXS6U456gtGRsvgHsKMlax2KJCVT1OL3TkWN1qOzt+qZQggKeRA8jFwjAE1FI 1920a4Yj+Y89UXZOucGwCRDGJ8l//lhGhBZ4lsVbK3O3b3Cf9GxIeCR1YLcUqgXox8J3fk4YYwD 7wCZFE3cKH9N6q15hi+BuJilf/9B3xizv+YdYjocWp8cgmQOegzPbErB6rzTmRHeJxOpTBfw+gg 4J+l/BaaMmcNRxLtTP12ifmxLgNsRFHsR6pqGr6eFUA+ITKM4fV8BiDljobawWOTkK9DWrKHsSy 3zq5fEKI7XphbiPvMHTH1HMjc5nrUSALsAVzRlp18= X-Received: by 2002:a05:600c:4f49:b0:489:1ff1:74df with SMTP id 5b1f17b1804b1-4891ff176bamr64290705e9.1.1776717090675; Mon, 20 Apr 2026 13:31:30 -0700 (PDT) Received: from localhost ([2a02:8071:b783:6940:1d24:d58d:2b65:c291]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-488fb7a0745sm126204805e9.9.2026.04.20.13.31.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2026 13:31:29 -0700 (PDT) Date: Mon, 20 Apr 2026 22:31:28 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig_=28The_Capable_Hub=29?= To: Ulf Hansson Cc: "Christian A. Ehrhardt" , linux-mmc@vger.kernel.org, Greg Kroah-Hartman , Wolfram Sang , linux-kernel@vger.kernel.org, Marcel Holtmann , Luiz Augusto von Dentz , linux-bluetooth@vger.kernel.org, Matthias Brugger , AngeloGioacchino Del Regno , linux-mediatek@lists.infradead.org, Ping-Ke Shih , linux-wireless@vger.kernel.org, Felix Fietkau , Lorenzo Bianconi , Ryder Lee , Shayne Chen , Sean Wang , Brian Norris , Francesco Dolcini , Andy Shevchenko Subject: Re: [PATCH v1 1/6] sdio: Add syntactic sugar to store a pointer in sdio_driver_id Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="u46iqxpjoedhizpi" Content-Disposition: inline In-Reply-To: --u46iqxpjoedhizpi Content-Type: text/plain; protected-headers=v1; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH v1 1/6] sdio: Add syntactic sugar to store a pointer in sdio_driver_id MIME-Version: 1.0 Hello, On Fri, Apr 17, 2026 at 03:10:47PM +0200, Uwe Kleine-K=F6nig (The Capable H= ub) wrote: > On all current Linux architectures sizeof(long) =3D=3D sizeof(void *) and > this is used a lot through the kernel. For example it enables the usual > practice to store pointers in sdio_driver_id's .driver_data member. >=20 > This works fine, but involves casting and thus isn't type-safe. > Additionally with the CHERI architecture extension there are machines > with sizeof(void *) > sizeof(long) for with the traditional approach of > storing a pointer in .driver_data doesn't work. >=20 > By replacing the plain unsigned long .driver_data by an anonymous union, > most of the casting can be dropped and it yields a working solution for > CHERI. >=20 > All users of struct sdio_driver_id are initialized in a way that is > compatible with the new definition, so no adaptions are needed there. sashiko.dev found s/sdio_driver_id/sdio_device_id/ twice in the commit log and once in the short log. If you consider applying this patch please adapt the commit message accordingly. Many thanks to those who created sashiko.dev! Best regards Uwe --u46iqxpjoedhizpi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmnmjQwACgkQj4D7WH0S /k7lawf+IBy1b5wfuwWZiVYsobJ5/VQtS1uab/j//LDVdxK0lHUoqurrxgHf8aFa 2/h7V1KF+nbxyYPjLmWI8a37uIwuSKZ5vijoBeDnFRFwWdEokon2xNz+IK0hTkf4 Ill7bkiF7fk+epa8am5nZ9gUbmy1nlQbFZHlXizQA4YeFOlLyfOdPTsXw8p/P7Tq RIGbTgcE13Qkiokn+iCwGUzLfb1sjBm+Nx3M/g1/C2r4tw+M1ypwCAizKjjvFyTz 8a7d4lCX5G140aKhxhTCdN3nE5iwtvZ4w9BT2RXRY03pv4w0FW5Xyc/PqymZ2Kp/ qcp9T3xPsnUPVlIgTg1SnhlhnrS5Qg== =RSgT -----END PGP SIGNATURE----- --u46iqxpjoedhizpi--