From: Pavel Pisa <pisa@fel.cvut.cz>
To: Pengpeng Hou <pengpeng@iscas.ac.cn>
Cc: Ondrej Ille <ondrej.ille@gmail.com>,
"Marc Kleine-Budde" <mkl@pengutronix.de>,
Vincent Mailhol <mailhol@kernel.org>,
linux-can@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] can: ctucanfd: add missing MODULE_DEVICE_TABLE()
Date: Mon, 6 Jul 2026 12:47:09 +0200 [thread overview]
Message-ID: <202607061247.09528.pisa@fel.cvut.cz> (raw)
In-Reply-To: <20260704151957.48194-1-pengpeng@iscas.ac.cn>
Dear Pengpeng Hou,
thanks for catching out omission.
On Saturday 04 of July 2026 17:19:57 Pengpeng Hou wrote:
> The driver has a match table for the pci bus wired into its driver
> structure, but the table is not exported with MODULE_DEVICE_TABLE().
>
> Add the missing MODULE_DEVICE_TABLE() entry so module alias information
> is generated for automatic module loading.
>
> This is a source-level fix. It does not claim dynamic hardware
> reproduction; the evidence is the driver-owned match table, its use by
> the driver registration structure, and the missing module alias
> publication.
>
> Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Acked-by: Pavel Pisa <pisa@fel.cvut.cz>
> ---
> drivers/net/can/ctucanfd/ctucanfd_pci.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/net/can/ctucanfd/ctucanfd_pci.c
> b/drivers/net/can/ctucanfd/ctucanfd_pci.c index 7b847b667973..c2b9bce7c2c6
> 100644
> --- a/drivers/net/can/ctucanfd/ctucanfd_pci.c
> +++ b/drivers/net/can/ctucanfd/ctucanfd_pci.c
> @@ -274,6 +274,7 @@ static const struct pci_device_id ctucan_pci_tbl[] = {
> CTUCAN_WITH_CTUCAN_ID)},
> {},
> };
> +MODULE_DEVICE_TABLE(pci, ctucan_pci_tbl);
>
> static struct pci_driver ctucan_pci_driver = {
> .name = KBUILD_MODNAME,
Pavel Pisa
phone: +420 603531357
e-mail: pisa@cmp.felk.cvut.cz
Department of Control Engineering FEE CVUT
Karlovo namesti 13, 121 35, Prague 2
university: http://control.fel.cvut.cz/
personal: http://cmp.felk.cvut.cz/~pisa
social: https://social.kernel.org/ppisa
projects: https://www.openhub.net/accounts/ppisa
CAN related:http://canbus.pages.fel.cvut.cz/
RISC-V education: https://comparch.edu.cvut.cz/
Open Technologies Research Education and Exchange Services
https://gitlab.fel.cvut.cz/otrees/org/-/wikis/home
prev parent reply other threads:[~2026-07-06 10:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-04 15:19 [PATCH] can: ctucanfd: add missing MODULE_DEVICE_TABLE() Pengpeng Hou
2026-07-06 10:47 ` Pavel Pisa [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202607061247.09528.pisa@fel.cvut.cz \
--to=pisa@fel.cvut.cz \
--cc=linux-can@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mailhol@kernel.org \
--cc=mkl@pengutronix.de \
--cc=ondrej.ille@gmail.com \
--cc=pengpeng@iscas.ac.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).