From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 4F3DE2C15AB for ; Mon, 20 Apr 2026 20:31:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776717094; cv=none; b=JoKPn1gCmeZ8upuMzKEnSCUwokw+0HzJWdUrbUH21sUAFuWld2+ZECCZiYCWyIAJ2QIZWySO72PFAEzsY2eFJjk9XtXIl6wmgssDGOhjfZY9u/KMZEk7g4HMmsLiw4SyngJplUmqZHQdM1S4r/7LdrCcv6umDMcDtjkKtGSPG1c= 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.46 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-f46.google.com with SMTP id 5b1f17b1804b1-4838c15e3cbso32251935e9.3 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=g5lA5tfsXOvhlAWwh8FVknRN00CpjRkMPlCB+vhnp52/sh+/Ga8nQOpLUjlRiUjEML 7pbCo7aZLMAcW+SZGdpehkp8QcOEDrDCz2jOvtqB1VeL6JWrDVgYvVr1j2GBHhtQ5+wh 8kWD07CcgwmWdJJ5mpSpVRmTF6ndEM60VrgQpWOYpDjERCcqrzbs9yle9mNXss9TyYZb AeELhtmXhmoJLOdB4dGkW3mxD4JAknXr+CBu+ZS41BwLtJ+2ki8dERXEZjH7ZMsTJwSt jZDeth/DkXGFZoqSFXhG32aXWoJAYZSdnNS+FDDBVMnmLsbvtUPTez1J+/2glGI4zejD AE9Q== X-Forwarded-Encrypted: i=1; AFNElJ+3+b/oUEWEzjUs4ovTncRiRp1XW8SKXxuEsj7lHdc5/3bObQOqvoiHlm85sKAZoqtX8GwuC+3pM+A=@vger.kernel.org X-Gm-Message-State: AOJu0YzUSZXubTAy4b5WrN2O51RGzCo5ge7drKqPxSJZctPu/lNqLY1O 3Utsu4plRZnjznKfzaARr4p9sq/yrsbIFk2F9toNDdg4GdEkt+X6F+hpiaXeo1jVimA= X-Gm-Gg: AeBDiev6Z6AarWu9YrX1X1Z3NQi3HK7xrAfJYFWEiH5ivpTerVI8bUYqU+RpoNx/Csh Tlwn0iOe2Zp2Kh2y2dTx2gSgGZWifiG80RotHaFNCm9zSD2BqdC4vVajdzhhC2v9vjfkz/fI6Kt BapxpR6vcPFR7pToLZHxE/6G2hs+RZsvd73il82mPH4SQHSpUt6jLsHDG+1BCs9MtlLltEtX2Dl DWC1ONNqatu2IHpc68PXEpDX7H5V6oJpF/ZS9rlQoM1VWpWaU5/NO7SheRXSugbT/s8efoiIx9D 2Tj58Wyn4Nffr3fKFMLK7mkiOP70O0vnFCiUOc+/3Pwug6bmAyGiwLH4dymz8zDxtL82SqV8U4m 3dnLx7cjdW8+op8Z0HbRnt31P7Vqa83tn6J4McE5T5YcOOdNi1Kb3MY5qYnzpGpveK6wB+KUCg0 vhoQABoPDbRP0BmS+oL8GQtaE5Wf6zA2LdGKcrGv0= 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-mmc@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--