From nobody Sun Jun 14 02:36:19 2026 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 D7FA23C2782 for ; Mon, 4 May 2026 15:32:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777908755; cv=none; b=JjlRMnrC3GDuwuomyITtEh6W07NxlwyZvrVa2sdVTVYnpPulPulgCDTssdBpq/QMOQb1ICrpDRbpY9ADsiLLIsrnQoTUr/MmL4k5GDuUze3feLCDQsXwyDzCd0absBqsVP9iHNsZTmog3bfxUW4zkpr/ui4rpz3D9kitdnS/z2o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777908755; c=relaxed/simple; bh=QGcYmlsl5RvvVmnabE6/9QQf8rqlWO0cIVN9ARkaFg0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=TRtfKvsaByZLWCsqBDgdI5QoptYxVs6WMqp/gPPDB+MjzlJC1FRUoo0uGUD0lFMy36oSk4G6WcWr9Z9V9YRRZHVueE8kBxasS7KuI/f3F1o1+dzvRxZe4i9kel+NoQK+c/bOaDEDq8JeIqd+RqknGbrA9iDgqkJvuZyKTREk+CY= 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=RS//jtrV; arc=none smtp.client-ip=209.85.128.43 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="RS//jtrV" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-488b3f8fa2bso48148655e9.1 for ; Mon, 04 May 2026 08:32:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20251104.gappssmtp.com; s=20251104; t=1777908750; x=1778513550; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=utfy0mtNce7fPeWpBMSkKi3btzcQcdRcgWFFBdltgGE=; b=RS//jtrVHpvI4D4LRfzkU2DuOzKiHa2wXUI0ojYpby2APza0qvLtMquKnKH2bLJcS4 GJRZ8mzQD+PhQZ8IFeY1J47Kn+BCLgk4jzWXyvQ41gAVgkZ47CTu5aN6GyidUYWhIFK9 QjLPDCvQY55Ad7f9mt6w3nerRD1Qcg5E2Ty73c8/aK2Hc7atFYW0MWGbs5tjDqd9i0cA 3mEGfPvTyV922QTwzPi/GEvt+4WSFY9osH1e1CQEakhK9lUqglLDel/MhxVYQrX0amLd UAtRBbieCC2FfssCg5v6YX1MWMeWIZmscmQziNA6c/Ms6ehjRaycP121k/B0X2wIuJmB pm8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777908750; x=1778513550; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=utfy0mtNce7fPeWpBMSkKi3btzcQcdRcgWFFBdltgGE=; b=COEwpeqCIQkMz9CPOER3eUQwITJ+odouP4w4sCW6/AJVGyTPdCQF//SlYdaa7sGvuK ccF+X4HHFhIOaLs/28oWWIykkDIn9faF1pif7Lq3g6K/SvFj0YoOSgj2fPfa6EhoBra4 i/j9oPd2PjbJSdfbDs3HAn63ipTzoAhjYjck67Zi7p0jVdGSdVwf6QYshEBtf4CGYdQi BKFtK+QjHqLnvnnZiw3ign47CUq4zxjLNk32WCREAkOzvwbw2g7+S+Gg19rLmCbihuoY p8jVWlzkL1kWbWlZjyICZBIIEfPH4vGOOKLxC7jj5aAnpEiFgSSR7JQ6HWEihV3goeWD BOFg== X-Forwarded-Encrypted: i=1; AFNElJ+xeGdUZXzYyHCibk0QzvKj1pMQQGKkAPyldUZInRjjY77CeY83lneO3cYdsyS7r3NYJv6Uh5TuO0IhPgI=@vger.kernel.org X-Gm-Message-State: AOJu0Yw+lQ3KSUkSdsSmfF0clUQ/Ie1Pb89lMurGKuuB8L59/UDgybpb xbe7/2svzcFkEV4/ixwRoMne/aUW+gvgjIx0E9G5m2J06QTu1RBNTcH0UvW6PhheTuc= X-Gm-Gg: AeBDietZhlgj0TZo0gPrdWIRjxLRItEQIyrbGR/0nNbbEHgFb7yv7UebAG31vqJMANH qYSaVvMHJPGIz31jChruglaxztaYw0FudsvY/gZimVmVa1r6zFa3jWuBS4iaGrMUFfKMq4gUkQE rdgqBBE2lYgzUghVrqLtCueZKLKMhPj0k+mTtkzr91SIXy6KWMYLVMqBAPoW9tRSL51QdLQt9k5 7w23vmehXQFmRih55ALPxsNn39vN40pKpnqqY0I3WUnW46uWQSR1sQH/Z/hixaezipmw4YPoxI5 LDYyYQdktDz350i4VsAt4CziOVDPI+XVuf36m8yb/CK3G15boZRV0KbPdse/DQ0oYnx4D7XAROk iC6p9T/bxWY4LgGaVDjbpGMNHG7bMl/7UmczN+bAw3dblkRcx+9FKojZyRznWKC/VM+JCQmQQdQ T3Bb5zamd+z7bSdDNCIAgl1EP2m22gE6aFf8mFQ6Dxedm+lGsNEihpWcaLfcXIxRLCxjkBH9Lr7 OTvka79y0690KDwa8oEvfopdLgcg7nFRwM1 X-Received: by 2002:a05:600c:45cd:b0:48a:5339:a46 with SMTP id 5b1f17b1804b1-48d1424f973mr335335e9.9.1777908749685; Mon, 04 May 2026 08:32:29 -0700 (PDT) Received: from localhost (p200300f65f114e08197264a4bf9e813f.dip0.t-ipconnect.de. [2003:f6:5f11:4e08:1972:64a4:bf9e:813f]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-48a8eb694fcsm302558015e9.3.2026.05.04.08.32.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2026 08:32:29 -0700 (PDT) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig=20=28The=20Capable=20Hub=29?= To: Herbert Xu , "David S. Miller" Cc: Markus Schneider-Pargmann , George Cherian , Srujana Challa , Bharat Bhushan , Kees Cook , Thomas Fourier , Amit Singh Tomar , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] crypto: Drop explicit assigment of 0 in pci_device_id array Date: Mon, 4 May 2026 17:32:21 +0200 Message-ID: <20260504153221.2151136-2-u.kleine-koenig@baylibre.com> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Developer-Signature: v=1; a=openpgp-sha256; l=3634; i=u.kleine-koenig@baylibre.com; h=from:subject; bh=QGcYmlsl5RvvVmnabE6/9QQf8rqlWO0cIVN9ARkaFg0=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBp+LwFRarwqJCQ+DumAADbwHiX9Z8uEPDyILaLL I/EQz1ZBqGJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCafi8BQAKCRCPgPtYfRL+ TqOqB/47adE8HaQccGNkZCkaulpMT7uI9fB5y3jGE6mqThAE6Inxtwyk7LphAvloY/LDCUhlE64 dMKhWFopMoXKMlqx4qec+tNX2vpqBN/5L42T+PIbq4KRN7x+uzdy7pV3OS3GChIz3uz34e6QIuB D8xLz68bVlnnaH1Io1ynxobMFcjjr5fldXHt2QR9t7xmOwXHILK6B4ToeM6+o5sgG915os3oPcF XVofXduro7FSFkzi05X0aZHJv2vMKw8kFBd7t8hgAwzq+yqYPM1HbZCaJP/6kGMlGOJLwVWfspO GB1ufYN730N+Pa0p2E34NsEXxkfs0hW92UysB89lzUvjv3uL X-Developer-Key: i=u.kleine-koenig@baylibre.com; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: quoted-printable Assigning .driver_data for drivers that don't use this struct member is just noise that can better be dropped. The same applies for an explicit zero in the terminating entry. Drop these. Signed-off-by: Uwe Kleine-K=C3=B6nig (The Capable Hub) --- Hello, this is a preparing change for making struct pci_device_id::driver_data an anonymous union (similar to https://lore.kernel.org/all/cover.1776579304.git.u.kleine-koenig@baylibre.c= om/). This requires named initializers for .driver_data, but dropping unused assignments is still better and a nice cleanup on its own. Best regards Uwe drivers/crypto/cavium/cpt/cptvf_main.c | 4 ++-- drivers/crypto/cavium/nitrox/nitrox_main.c | 4 ++-- drivers/crypto/marvell/octeontx/otx_cptvf_main.c | 4 ++-- drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/crypto/cavium/cpt/cptvf_main.c b/drivers/crypto/cavium= /cpt/cptvf_main.c index 2c9a2af38876..6af2650b1ebe 100644 --- a/drivers/crypto/cavium/cpt/cptvf_main.c +++ b/drivers/crypto/cavium/cpt/cptvf_main.c @@ -835,8 +835,8 @@ static void cptvf_shutdown(struct pci_dev *pdev) =20 /* Supported devices */ static const struct pci_device_id cptvf_id_table[] =3D { - {PCI_VDEVICE(CAVIUM, CPT_81XX_PCI_VF_DEVICE_ID), 0}, - { 0, } /* end of table */ + { PCI_VDEVICE(CAVIUM, CPT_81XX_PCI_VF_DEVICE_ID) }, + { } /* end of table */ }; =20 static struct pci_driver cptvf_pci_driver =3D { diff --git a/drivers/crypto/cavium/nitrox/nitrox_main.c b/drivers/crypto/ca= vium/nitrox/nitrox_main.c index 8664d97261fe..e474c84d8d38 100644 --- a/drivers/crypto/cavium/nitrox/nitrox_main.c +++ b/drivers/crypto/cavium/nitrox/nitrox_main.c @@ -38,9 +38,9 @@ static unsigned int num_devices; * nitrox_pci_tbl - PCI Device ID Table */ static const struct pci_device_id nitrox_pci_tbl[] =3D { - {PCI_VDEVICE(CAVIUM, CNN55XX_DEV_ID), 0}, + { PCI_VDEVICE(CAVIUM, CNN55XX_DEV_ID) }, /* required last entry */ - {0, } + { } }; MODULE_DEVICE_TABLE(pci, nitrox_pci_tbl); =20 diff --git a/drivers/crypto/marvell/octeontx/otx_cptvf_main.c b/drivers/cry= pto/marvell/octeontx/otx_cptvf_main.c index 587609db6c69..5cc5c84069a9 100644 --- a/drivers/crypto/marvell/octeontx/otx_cptvf_main.c +++ b/drivers/crypto/marvell/octeontx/otx_cptvf_main.c @@ -957,8 +957,8 @@ static void otx_cptvf_remove(struct pci_dev *pdev) =20 /* Supported devices */ static const struct pci_device_id otx_cptvf_id_table[] =3D { - {PCI_VDEVICE(CAVIUM, OTX_CPT_PCI_VF_DEVICE_ID), 0}, - { 0, } /* end of table */ + { PCI_VDEVICE(CAVIUM, OTX_CPT_PCI_VF_DEVICE_ID) }, + { } /* end of table */ }; =20 static struct pci_driver otx_cptvf_pci_driver =3D { diff --git a/drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c b/drivers/c= rypto/marvell/octeontx2/otx2_cptvf_main.c index 858f851c9c8a..62b08116f808 100644 --- a/drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c +++ b/drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c @@ -460,9 +460,9 @@ static void otx2_cptvf_remove(struct pci_dev *pdev) =20 /* Supported devices */ static const struct pci_device_id otx2_cptvf_id_table[] =3D { - {PCI_VDEVICE(CAVIUM, OTX2_CPT_PCI_VF_DEVICE_ID), 0}, - {PCI_VDEVICE(CAVIUM, CN10K_CPT_PCI_VF_DEVICE_ID), 0}, - { 0, } /* end of table */ + { PCI_VDEVICE(CAVIUM, OTX2_CPT_PCI_VF_DEVICE_ID) }, + { PCI_VDEVICE(CAVIUM, CN10K_CPT_PCI_VF_DEVICE_ID) }, + { } /* end of table */ }; =20 static struct pci_driver otx2_cptvf_pci_driver =3D { base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731 --=20 2.47.3