From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.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 B4C9D3CD8AC for ; Tue, 26 May 2026 09:38:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779788300; cv=none; b=bdfEmzyUge/r4LLR7j0BkqD7qYgaSflgHeYly2X++oc0MUSKYOi6uBE/LsJ7o3eXbUZRfNMuBkJrWsmJNM2pRvyMVCfI5j3ma6RrA/Qej/NdF2bSuJ13kkubKF4shcOFbzJm1ZRo6DYBdYrLSbNCLSpBgT100NVOElMpW7lqw2M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779788300; c=relaxed/simple; bh=RXJWIuO8bbHBBvc8hAmAJEeX88yUO/65JWt4BhqEy1c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=t5kuVhdP9lU+MKTHya2HTXkmHCghnQLPAkuh25ws494dWu0+bSl4Xjac544Q0QrKt6TsrVPxEFrdlOn4dWi/BfmyGG/M73xb6m+bNe1+ayd4+uyqX1fWGUavd8vKPfHhZcmsryzYmMwzHsvnCHkWWm5ztiqAUyDWlv13Vby8MWE= 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 header.i=@baylibre.com header.b=lEKKrvK4; arc=none smtp.client-ip=209.85.221.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 header.i=@baylibre.com header.b="lEKKrvK4" Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-44985f4ab0fso5742868f8f.0 for ; Tue, 26 May 2026 02:38:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1779788297; x=1780393097; 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=RXJWIuO8bbHBBvc8hAmAJEeX88yUO/65JWt4BhqEy1c=; b=lEKKrvK49QgmB6x/y+qpXA1KA0bnbMEP6IO3yJzfYm3FBYiPa5hAcQMU6Z9eUMT1Ot y2U+uCnwT0Dph9Fy9Wu73sypiEmroqtd7H0h358q8bgNpXyTvNsXFkG5w/uKC4Qt1Aic IftxxMPtWO6sVN3DJ1bwOS2pmDQlaSlNlRSiv3fu9mhf0UoMeKUaxH5ByfzQWHn6nnK1 GlIqILqAaaPTbQ3PoNcAKnmiOzbz0r5tbaTbBAdfObngsANtyBiOXgkdVDLygd30rzys VA2yfKASkWiYh9UoDqDQTzHe3OrNl7mGvDRIQxHWoVXEUoWMIdhTceUwajQ6ZOftmbBw IbHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779788297; x=1780393097; 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=RXJWIuO8bbHBBvc8hAmAJEeX88yUO/65JWt4BhqEy1c=; b=rKIRYZxDmVUuRFqh5HDCW/p7jX3kHkmOENEb3JJlZnjGnTllrKejyU6bkzTuBLSXHI 0hagAOu6hsWIG/nRT5MsXzJwu/R3T9FxWj4h4l0P3gnfy3r3jPg8jMfatSE7/V7tAjdh 9NhQitVmlsodydTpwAeaYn21IULMIJpRvsYfOyerXFs0kHLCx2rNgCXygZ/9qBGMWwth pCOAtu0D8Nu6HY2UXayrVUM9U24LeCrsWkVmEFE0sPtSJFevUPLDX9RXBNUJOaB8Okrm Rq8wgFEFa5Jw9BY2vQT1ZKDWxkPJFdqICSwNxEq+TNWc3hmE88gOgioTyvr+jnfkEcyA O+Bg== X-Forwarded-Encrypted: i=1; AFNElJ+wcUcJzApJrEDEA9dqxGSomqYWvVJOmK64SJGIfa6/Pfvc++7cs4C9jdQX5m01x5owlV57/cN6fjHUUcM=@vger.kernel.org X-Gm-Message-State: AOJu0YyMbfYp36RDYRuoRIMsvznlwa+IN4YMpltduRhGq5/AUclpNtWj Na4HBqzWv7gp+piH8Tu/S6YzzhiFy3YhBiAtbYHOwC/Y2XFpuhyo+H2Yb5lj0m7q3WQ= X-Gm-Gg: Acq92OEAZrrW9XdsY+qUEVaGjf+ecjijnstiAPnsOutY8WyC7Oq/9FgDlCasRQpypw8 gq+OnqfOUGJ5Xu/s6VbAj1t+ETGCm/28M6obYWRv/zWETkPB+sscvd/YMP/F0LELvDT3bi00AWy i53ykDhtIVTZr6avMMusu7q2vCnQ1Q+ZBGXWtK+OZTbLAP+lOo1v/i+q6r57Gzs87M4KWjsAzl6 HE35FK07AThLRMMf8yVO3EpxygbpsZHXRFBIUTs9cHRxLo43XjETff0pZXTKAlDUJp7Pay0KGcM /ocTDdwRBx+IS1vr/DnJXCL9zV0wLMGOsShoLt4cLkm6KVM69pfWLX7nHK6Y+KXQWDlFxyR+UGA tO7KIml5nfkJZ+srfRYAiwlTn21U6TxlEam78jCCuJzz912E+a4kU8QeTXQ4MW+M2x98l2RfXwx QW7/DYAQFN/95q+BqbxM4qGKD/6qSTuS7ouS5FUA+9Nem34uT/hCgIajam1HYL4gqnScT/kx3+p vEJXk5DWBkQNw== X-Received: by 2002:a05:6000:1447:b0:452:d03a:7abe with SMTP id ffacd0b85a97d-45eb38b91c3mr32067787f8f.17.1779788297057; Tue, 26 May 2026 02:38:17 -0700 (PDT) Received: from localhost (p200300f65f47db047ec792ae18ec05cd.dip0.t-ipconnect.de. [2003:f6:5f47:db04:7ec7:92ae:18ec:5cd]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-45eb6d49132sm34150219f8f.24.2026.05.26.02.38.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2026 02:38:16 -0700 (PDT) Date: Tue, 26 May 2026 11:38:15 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig_=28The_Capable_Hub=29?= To: Luiz Augusto von Dentz Cc: Ulf Hansson , "Christian A. Ehrhardt" , linux-mmc@vger.kernel.org, Greg Kroah-Hartman , Wolfram Sang , linux-kernel@vger.kernel.org, Marcel Holtmann , 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="vtihelpcu7j6kvgw" Content-Disposition: inline In-Reply-To: --vtihelpcu7j6kvgw Content-Type: text/plain; protected-headers=v1; charset=utf-8 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 On Mon, Apr 20, 2026 at 04:46:56PM -0400, Luiz Augusto von Dentz wrote: > Hi Uwe, >=20 > On Mon, Apr 20, 2026 at 4:31=E2=80=AFPM Uwe Kleine-K=C3=B6nig (The Capabl= e Hub) > wrote: > > > > Hello, > > > > On Fri, Apr 17, 2026 at 03:10:47PM +0200, Uwe Kleine-K=C3=B6nig (The Ca= pable Hub) 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 usu= al > > > practice to store pointers in sdio_driver_id's .driver_data member. > > > > > > 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. > > > > > > By replacing the plain unsigned long .driver_data by an anonymous uni= on, > > > most of the casting can be dropped and it yields a working solution f= or > > > CHERI. > > > > > > 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. >=20 > No problem I can fix them up once applying. Now that Ulf gave his blessing, would you please merge the first patch and the bluetooth ones (#2 and #3)? I will follow up then once your tree hits Linus's tree with the remaining patches for wifi. Please don't forget about s/sdio_driver_id/sdio_device_id/. Thanks Uwe --vtihelpcu7j6kvgw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmoVagQACgkQj4D7WH0S /k5P8Af7B8UAQJSjX3WHqmRdJihAfbJzuB0qsIl9eOVYHCAaEiAnVpqnjNkntHIU lX0CcswR4fXl9pEV+1mobDSLHsbDhg9BtXTuAm4pavvYRoS5isVyCkasNUeNDGt9 B68NNR4oKyApL/DFvXCG4CPWrhA8TL+m9HE7DCkm2IYcH2TB2WdUCQnnQFV8E94x 1eyEfCrTCqn5UlW+2urdJLmngSk7o3yv1wJ36pgHxMNQMXU8mPWN4nOCqEZAvtmP CrtRviKQ1QpRXNBA7blduSvvqqfr7uQEKta7E2argdEhkor6XY/fTTlu687QRi6n Po62G/0XCxIUYpanmYULzD9YbpSlyA== =Zdz8 -----END PGP SIGNATURE----- --vtihelpcu7j6kvgw--