From nobody Sat Jun 13 23:13:18 2026 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37B3833D6DD for ; Tue, 5 May 2026 10:29:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777976999; cv=none; b=Db1m0IDy5VEF55622PadtIK4LwNzPNn+2iO+YXZzYUb0z14ue6AeK3djuyifBNdBplJX2263BXJmFcSFvCrqta1oKSU5e8nbCP2JywkvNchYptklJNWYdkBRC8RLq/Nzua7kdb5Bwj4ynUrFX9dg9HDNgFx4DCEDT4PvOog7FPc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777976999; c=relaxed/simple; bh=VDkI/YIhe/XVJqRBZwnhVwQZX3km79hsSqkFGwSIFV4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ocH3raepKSG3jp+/CT29m4K6DICYuKx1GpC5GKhK86oTofUkTVcac4gJfXx1WwK3KFSoZ8j/j5x1c4a7NPxNUUYs+Eu6ceeyuQUZFafkyiuORILGSuHG9nsQLhcOstpEvEeicmf3T9eaa7mBAbTK771T541jObaruTpVgGbYPX8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=lIgcX3Xi; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=QBQz9RxL; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="lIgcX3Xi"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="QBQz9RxL" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 645A4GAn3740708 for ; Tue, 5 May 2026 10:29:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=qcppdkim1; bh=MB+OotB3e/NHRMtFj5ZsRfgooB5x8zth72z dR0iYyVU=; b=lIgcX3XidbQ+SR+YEyIlEgIsD7/Iqnv9ygPNDDvHQpuQxVb5TK7 k9IC9mONN4OtwulGoyq98ProXGsSSDzdVKcIMX+DwRSF8+Z52qcl4sAOT033ff1c BGCzeDt0PNWIHQGC8bLPXSF+yIXBxcepQ+xiCSHk40ukbWO22gcN3Y4toVGc5oq4 kwHXPNcZBKIoSJOK4fnWO+M6eunJQ74SAjgmhAgbtUsJ+6bFbC83wS1OuzoulN5j fNmdVpO2TTf+MYCWf3TCRPw6rvkHxtihVFkOxcyJ5RCa7ume5CkthWG9okDbQcvt ofy/dgCO5pKlt1X/JajzxcBtDJm7J7+Nlqw== Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dyefq83sc-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 05 May 2026 10:29:57 +0000 (GMT) Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-50eb8bad331so19978551cf.0 for ; Tue, 05 May 2026 03:29:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1777976996; x=1778581796; 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=MB+OotB3e/NHRMtFj5ZsRfgooB5x8zth72zdR0iYyVU=; b=QBQz9RxL/IeTzU9JUQ95pJ8WyUISGcl02AN1GLfU77zQwr5QjTqjJtYIvCZf35R6VL MKB4oDvJE7PxTdYQg0MqDOiJVjEuXNnr7GhgWIl+0MzgDVJHsC9xv8pn+4KVauJRY8Hv rVmBHy+iOnDkPGs+V/u935IEoswydq5OFJHtNrfApKDY9LV6m9Tjhk1NRB/kAK5xYIo6 sXmMNaNC5wobjWiYnZsz9sjT4Dv1Z3vUnlyrmYs5vM+zoGQ8YPcxmEMGfvWlRUegZIGZ KdTIbeCd+I9BQGjpgk3Qr1ZAQo7nvavCQ4wJruXzZlzGcnFY5MfQ1uELXdaLQ420Sf3r o04w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777976996; x=1778581796; 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=MB+OotB3e/NHRMtFj5ZsRfgooB5x8zth72zdR0iYyVU=; b=lWN42eCN72WQ8D9mnUOFTuA0ImK/RR7Sua9usXCtsyGCtcnEbTxoC2EUedsUr/9IkQ +eqqb14P1DNm76kB2luGOTkZ8tmLzTJmRshZA1l049lOhlc26cWtNVtbNPVqrb5sHDwU qWt7aF03UxETt6ADWOe3zZELquwgf5Y5tu1bzkGvQ7DDASBgjv3m3b+KiTz5X6878/wy Ddk/y+vRZ0b2M5TgGb/yX2a/WKqUmg8Pv23EZBJ2GJthaQLSD8palL8Wv9uHdxVzQMhC m3sQT+MpJmu6gUkeNWvp7gq+8/I15MwaDs2WcXvLRaHIzGI6ME0pKd7WsDwBTgxtGSyT G0Gg== X-Forwarded-Encrypted: i=1; AFNElJ8ynUsC4xWEbsdWoQajGGlHZEuhZbZN9HQWCYLDN2bV7O37IuPNnmF0qKVM8ljJiCl2W5ot0v+eVwW9xxc=@vger.kernel.org X-Gm-Message-State: AOJu0YwXXaf9jw633DfEkuSqDVnKoUTKjY63J8GcqTtzd73ygGhrPsih +hKxZeD7LARfGduPBoMvA4rh10DqVfXE3J9jlLzRvRpbOOJIbU2GuZJ0qgqAx5vatx1PPTRiYYT onV81V+G+IHMpRQO+KTjkFhUO92SpnzShKKiJ8MbfBzgGpmEqxd+3EFBRp9LswNRFgns= X-Gm-Gg: AeBDiethqkkN986MASSNGmdwlOW0TW2tJblpk9F8Cw69OEBVgWzhHBs/tGsGnT2n0/x tuTs1d/Q0ule/95Ng9EcgegCmArPljOefPYbvJfxE/GYIg+GeuaRIaiEv6kBv6aBg7NtBB35NuD 54+lFrvM8cSCQv/1w3ndIv5ElbJL6+o6r+GU0webOCkPXRP/hfjPPaTHSzwEGyIcVHJr04TiDxX DeWx3YAPDtSP9v7hi+KS7NeEDrZI2G4NeQVc2L7hz5SHNWXUlD+LoYxnPIT/FV3vu3aCgY0yNig WP1smX1wGes6/wk2kJ/RclxK8XFTFyHAZO+Aw9SZvWYQC7jDEgJHberQdDwqPAjO7dtG4tA4wBd bh/yDO2tIXpsAgYtgUOv/BahpVQ/Lz8xd+NCNaPhUeSnvpSo= X-Received: by 2002:a05:622a:1826:b0:50f:bcfe:e8e0 with SMTP id d75a77b69052e-5130699349bmr35646541cf.13.1777976995468; Tue, 05 May 2026 03:29:55 -0700 (PDT) X-Received: by 2002:a05:622a:1826:b0:50f:bcfe:e8e0 with SMTP id d75a77b69052e-5130699349bmr35646121cf.13.1777976994822; Tue, 05 May 2026 03:29:54 -0700 (PDT) Received: from quoll ([178.197.219.94]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48d17710bfbsm17814935e9.7.2026.05.05.03.29.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2026 03:29:53 -0700 (PDT) From: Krzysztof Kozlowski To: George Cherian , Herbert Xu , "David S. Miller" , Srujana Challa , Bharat Bhushan , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] crypto: Move MODULE_DEVICE_TABLE next to the table itself Date: Tue, 5 May 2026 12:29:49 +0200 Message-ID: <20260505102948.191683-2-krzysztof.kozlowski@oss.qualcomm.com> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=5593; i=krzysztof.kozlowski@oss.qualcomm.com; h=from:subject; bh=VDkI/YIhe/XVJqRBZwnhVwQZX3km79hsSqkFGwSIFV4=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBp+cacBHRmk278L97Ewwnf1Fxza1c3jh8IRWtCM n4O2C/LAi+JAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCafnGnAAKCRDBN2bmhouD 107cD/4rpyhglndnyBhx30UOnhEGuuWcO2Pgbt9kQfMy02dt1slf1HP1yrDniCE+UbCgiBQZvMO ZwOLrlroNWqvoOL1oJV418IndsjaByw8kE6EhVeyKWgGtZ7Pe7cj8zaAkh/JbyvieNjd8bFmLDY m7n4dRLCkNeAGnxxIKqtJNq2l16dHPDmKavdEuIa1ffrJTMHps8ZAbg6JSc8TktHs6sTMT8zVsA wBEihQ2LNOiaTW0cq0/qnGrqM9dBtyU8DRKshxGfNs9p9kCccRqbG2vkWWAOjMn7onVfeVMgjc1 QOtp5Ur3SLpkhCKvxRz/stFGk8XKQZB0cA3dZjExKho3f4fxYoX9pEMMR1wwVytnn+Sbb2dp5U6 +qdDY/ec9gJFXj7EK2+2JPCoYaBmcBVpFdayoRCC5CGer7O8qWwbAByOfj5gmY6sLHnFi6b9pwC fpyIbYVHRm2TSUEFKWCMGdYfiTQAR3mnsL8VSJBDm1NoRp6aHECX0yxOkQhXMMCCqMRjFcecfTU PtXvIe+sBiOle+A14BK4pwPY1Y5C4qy9N4Bhb79J89MjgIsB91cDDjuYidBOwmpDUNIU6qPm8GY +Ilc/JoE3y3NHxmfL5/93AZYsDcV/Z7SSH/JonZfvU+qTPbs8tCG+wQ/+mwp8URr7jF1Iq0vbyW 3yLDrpL6RfylRHg== X-Developer-Key: i=krzysztof.kozlowski@oss.qualcomm.com; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNTA1MDA5NyBTYWx0ZWRfXwO+Kw6ibuBjy JOcQ8wOvCWYGRZ9PStpGNMubhXt9mIPQ+cR504pSm1xQLQ9QoSF/P2LIWN7tgVcWIAGldfIIT9d FCeVsXJoSLPDtFdsgE/qEc53/gBxXxkctspQ/4Hlaevsgzb+YTmJVdMCiVZxLGFmYjjP7Dj1xSg 3DUnXddFfmsrxEJ4Po5p3rHpEDxuyfhk6CSFU1vVdoQHYrSzHZfCOndGuOmby3BBTDNOpKr233L qbHoyfx6kgqwKceA6oRNdkXVRiZMdUxOu9DltRqxA/eYCRbQCeEQWgAKhhWvySf36QwA5du0fPM +j1+tj3xa31so4eSM8Q1lf6yJltpAK80C+lb6ign3Otf79LKWGX3RsyEH0V+nliB6WsrBC0H3Ca iYga4/P0nmgcWXUafF6MZONasIuD8pH30YF9SqRfbatbB/e6HLSEq69fDDoQowH1Htc3IFNciJx kUo3J31PIco7L1eJswA== X-Proofpoint-ORIG-GUID: WlPD_u_c-ERrHCjjq6PRa5QK3cTD_-l7 X-Proofpoint-GUID: WlPD_u_c-ERrHCjjq6PRa5QK3cTD_-l7 X-Authority-Analysis: v=2.4 cv=edoNubEH c=1 sm=1 tr=0 ts=69f9c6a5 cx=c_pps a=EVbN6Ke/fEF3bsl7X48z0g==:117 a=gOEeR9iKwsj33Yj5oN/cWg==:17 a=NGcC8JguVDcA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=zAyngx5bAAAA:8 a=K8icyTp2isn7or5TWTQA:9 a=a_PwQJl-kcHnX1M80qC6:22 a=4LA4qAFo6bo561LpWNDU:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-05-05_02,2026-04-30_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 bulkscore=0 clxscore=1015 spamscore=0 priorityscore=1501 malwarescore=0 adultscore=0 impostorscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604200000 definitions=main-2605050097 Content-Type: text/plain; charset="utf-8" By convention MODULE_DEVICE_TABLE() immediately follows the ID table it exports, because this is easier to read and verify. It also makes more sense since #ifdef for ACPI or OF could hide both of them. Most of the privers already have this correctly placed, so adjust the missing ones. No functional impact. Signed-off-by: Krzysztof Kozlowski --- drivers/crypto/cavium/cpt/cptpf_main.c | 2 +- drivers/crypto/cavium/cpt/cptvf_main.c | 2 +- drivers/crypto/marvell/octeontx/otx_cptpf_main.c | 2 +- drivers/crypto/marvell/octeontx/otx_cptvf_main.c | 2 +- drivers/crypto/marvell/octeontx2/otx2_cptpf_main.c | 2 +- drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/crypto/cavium/cpt/cptpf_main.c b/drivers/crypto/cavium= /cpt/cptpf_main.c index 54de869e5374..9358c1c041d4 100644 --- a/drivers/crypto/cavium/cpt/cptpf_main.c +++ b/drivers/crypto/cavium/cpt/cptpf_main.c @@ -651,6 +651,7 @@ static const struct pci_device_id cpt_id_table[] =3D { { PCI_DEVICE(PCI_VENDOR_ID_CAVIUM, CPT_81XX_PCI_PF_DEVICE_ID) }, { 0, } /* end of table */ }; +MODULE_DEVICE_TABLE(pci, cpt_id_table); =20 static struct pci_driver cpt_pci_driver =3D { .name =3D DRV_NAME, @@ -666,4 +667,3 @@ MODULE_AUTHOR("George Cherian "); MODULE_DESCRIPTION("Cavium Thunder CPT Physical Function Driver"); MODULE_LICENSE("GPL v2"); MODULE_VERSION(DRV_VERSION); -MODULE_DEVICE_TABLE(pci, cpt_id_table); diff --git a/drivers/crypto/cavium/cpt/cptvf_main.c b/drivers/crypto/cavium= /cpt/cptvf_main.c index 2c9a2af38876..2e2e61f76b80 100644 --- a/drivers/crypto/cavium/cpt/cptvf_main.c +++ b/drivers/crypto/cavium/cpt/cptvf_main.c @@ -838,6 +838,7 @@ static const struct pci_device_id cptvf_id_table[] =3D { {PCI_VDEVICE(CAVIUM, CPT_81XX_PCI_VF_DEVICE_ID), 0}, { 0, } /* end of table */ }; +MODULE_DEVICE_TABLE(pci, cptvf_id_table); =20 static struct pci_driver cptvf_pci_driver =3D { .name =3D DRV_NAME, @@ -853,4 +854,3 @@ MODULE_AUTHOR("George Cherian "); MODULE_DESCRIPTION("Cavium Thunder CPT Virtual Function Driver"); MODULE_LICENSE("GPL v2"); MODULE_VERSION(DRV_VERSION); -MODULE_DEVICE_TABLE(pci, cptvf_id_table); diff --git a/drivers/crypto/marvell/octeontx/otx_cptpf_main.c b/drivers/cry= pto/marvell/octeontx/otx_cptpf_main.c index 14a42559f81d..e4c828606a73 100644 --- a/drivers/crypto/marvell/octeontx/otx_cptpf_main.c +++ b/drivers/crypto/marvell/octeontx/otx_cptpf_main.c @@ -283,6 +283,7 @@ static const struct pci_device_id otx_cpt_id_table[] = =3D { { PCI_DEVICE(PCI_VENDOR_ID_CAVIUM, OTX_CPT_PCI_PF_DEVICE_ID) }, { 0, } /* end of table */ }; +MODULE_DEVICE_TABLE(pci, otx_cpt_id_table); =20 static struct pci_driver otx_cpt_pci_driver =3D { .name =3D DRV_NAME, @@ -298,4 +299,3 @@ MODULE_AUTHOR("Marvell International Ltd."); MODULE_DESCRIPTION("Marvell OcteonTX CPT Physical Function Driver"); MODULE_LICENSE("GPL v2"); MODULE_VERSION(DRV_VERSION); -MODULE_DEVICE_TABLE(pci, otx_cpt_id_table); diff --git a/drivers/crypto/marvell/octeontx/otx_cptvf_main.c b/drivers/cry= pto/marvell/octeontx/otx_cptvf_main.c index 587609db6c69..0d4583702543 100644 --- a/drivers/crypto/marvell/octeontx/otx_cptvf_main.c +++ b/drivers/crypto/marvell/octeontx/otx_cptvf_main.c @@ -960,6 +960,7 @@ 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 */ }; +MODULE_DEVICE_TABLE(pci, otx_cptvf_id_table); =20 static struct pci_driver otx_cptvf_pci_driver =3D { .name =3D DRV_NAME, @@ -974,4 +975,3 @@ MODULE_AUTHOR("Marvell International Ltd."); MODULE_DESCRIPTION("Marvell OcteonTX CPT Virtual Function Driver"); MODULE_LICENSE("GPL v2"); MODULE_VERSION(DRV_VERSION); -MODULE_DEVICE_TABLE(pci, otx_cptvf_id_table); diff --git a/drivers/crypto/marvell/octeontx2/otx2_cptpf_main.c b/drivers/c= rypto/marvell/octeontx2/otx2_cptpf_main.c index 346d1345f11c..f6f47f4e5d83 100644 --- a/drivers/crypto/marvell/octeontx2/otx2_cptpf_main.c +++ b/drivers/crypto/marvell/octeontx2/otx2_cptpf_main.c @@ -867,6 +867,7 @@ static const struct pci_device_id otx2_cpt_id_table[] = =3D { { PCI_DEVICE(PCI_VENDOR_ID_CAVIUM, CN10K_CPT_PCI_PF_DEVICE_ID) }, { 0, } /* end of table */ }; +MODULE_DEVICE_TABLE(pci, otx2_cpt_id_table); =20 static struct pci_driver otx2_cpt_pci_driver =3D { .name =3D OTX2_CPT_DRV_NAME, @@ -883,4 +884,3 @@ MODULE_IMPORT_NS("CRYPTO_DEV_OCTEONTX2_CPT"); MODULE_AUTHOR("Marvell"); MODULE_DESCRIPTION(OTX2_CPT_DRV_STRING); MODULE_LICENSE("GPL v2"); -MODULE_DEVICE_TABLE(pci, otx2_cpt_id_table); diff --git a/drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c b/drivers/c= rypto/marvell/octeontx2/otx2_cptvf_main.c index 858f851c9c8a..328ff4ba9742 100644 --- a/drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c +++ b/drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c @@ -464,6 +464,7 @@ static const struct pci_device_id otx2_cptvf_id_table[]= =3D { {PCI_VDEVICE(CAVIUM, CN10K_CPT_PCI_VF_DEVICE_ID), 0}, { 0, } /* end of table */ }; +MODULE_DEVICE_TABLE(pci, otx2_cptvf_id_table); =20 static struct pci_driver otx2_cptvf_pci_driver =3D { .name =3D OTX2_CPTVF_DRV_NAME, @@ -479,4 +480,3 @@ MODULE_IMPORT_NS("CRYPTO_DEV_OCTEONTX2_CPT"); MODULE_AUTHOR("Marvell"); MODULE_DESCRIPTION("Marvell RVU CPT Virtual Function Driver"); MODULE_LICENSE("GPL v2"); -MODULE_DEVICE_TABLE(pci, otx2_cptvf_id_table); --=20 2.51.0