From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 B61233CD8D3 for ; Tue, 26 May 2026 09:38:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779788300; cv=none; b=p/YQmBDQjLwMVX9HR9fd2Kva5k8j1DtPSqajUzcoWZEp5DvIFZTjh1UmAA+/NDRConrINTeiTSEKNKKCMrvLtEgyj2hff/MMKqJOki5DNIhSIWftcxchL2sERPz3KENmJ5RcyomflYZ3v+py1mCzx1CAZcy4dy18sVDsRSUp7Tg= 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.48 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-f48.google.com with SMTP id ffacd0b85a97d-43fe62837baso6037051f8f.3 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=GSg96eD3RfBH2jKWhRuFCGROZclLywMneu+WJH9utc0mnYuLUh4FP5M3RbegBL+maS 0BVwGKBc79g1RsPcI+Fzdxbe+5u0OzKqDif2bkmFhnmEuFDtB407KJBgxTGFf2kw/1tB lworVDzOyF2tt/jPw/3Eg1xI1Bp7nd1PsfBxTjZLhpbfbi/1Iua94S43di1nsXemIjTd aAcuSbmUtVGnCPevxOJF/F5gb/kMBEuLJ8bLme4dPqi2XVH59tRG6pQEiWVaRxS6Vi8W vSodtHp7x0oBBaIFe329ENKSQ5yFSBK9t7MrahzJBu2SbB2KBT2UZMYZ3RWTyUkfRiMt 1BMA== X-Forwarded-Encrypted: i=1; AFNElJ/k7RKGhgFTOJoBWyI8q3VTZBiCxTn9PMesQcGnwZG6Nks0LuPI/3EPOFmf1wn52QvSqF5XeuX5FIuTgWyJfA==@vger.kernel.org X-Gm-Message-State: AOJu0YxTv/HLoNXkEEqirrhc1qaA0w3UA47mGTAMAzQZnYYnI8/GH9g1 BDKtBiNWVe3dlpgz/2ans1f47cQcujmJmdGcYE2+sC66dhmr6LX138m2SXpN/SDv5vc= X-Gm-Gg: Acq92OEpQMRKLe8JBWi7pXV0QM2RTB1rFbM4yDGjdBCyBKpkNG9bp8EihjOhn8ybjTw 6V0mfE+AGeipA2m5YpLbn1E2Vo5vjCXDfJiCGuNcfbVshf68KEbVwYq2y21efwVUtlXeIBBrWa4 D6I2UxmhrEwpfg6BWpbDz6cppE47reiKRMKeYArzKvpUme/5YBP+80NrGM48Ct2V8BddGyR4K/h CcoEfbtNCqmdqQ2hMS+WCtPdo6FaBMeVWdkfsT0GoG9AHhulnKJ8ys9ZJ2fSfm+hCTsp8z5syen H/4GE3ek8OhYrdYxdduu2wBM3gaEoGvtJKFHLCv1Bes6cw5Hh9sebY7oI2XRMyiEOCvHTzvoO/m 24k0+d3JUzWLcHarCiqQcatlyr09LDn2DfC9ySP5kX/ETlJWVHFCO4Vl+LnFq0sWyNI3cwQehxZ Eys90FpoTnl6z+fKfdYtQFsAeOc1fzMET59OSNZxEWvEp/5tqOaRigl4+0Vky7qaU5vbP7vJvRx 6Kx3JIakUprOg== 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-wireless@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--