[PATCH v9 07/27] net: wan: Add support for QMC HDLC
Christophe Leroy
christophe.leroy at csgroup.eu
Thu Mar 14 08:31:15 PDT 2024
Le 14/03/2024 à 16:21, Guenter Roeck a écrit :
> On Wed, Nov 15, 2023 at 03:39:43PM +0100, Herve Codina wrote:
>> The QMC HDLC driver provides support for HDLC using the QMC (QUICC
>> Multichannel Controller) to transfer the HDLC data.
>>
>> Signed-off-by: Herve Codina <herve.codina at bootlin.com>
>> Reviewed-by: Christophe Leroy <christophe.leroy at csgroup.eu>
>> Acked-by: Jakub Kicinski <kuba at kernel.org>
>> ---
> [ ... ]
>
>> +
>> +static const struct of_device_id qmc_hdlc_id_table[] = {
>> + { .compatible = "fsl,qmc-hdlc" },
>> + {} /* sentinel */
>> +};
>> +MODULE_DEVICE_TABLE(of, qmc_hdlc_driver);
>
> I am a bit puzzled. How does this even compile ?
Because
#else /* !MODULE */
#define MODULE_DEVICE_TABLE(type, name)
#endif
We should probably try to catch those errors when CONFIG_MODULE is not set.
By the way, a fix is available at
https://patchwork.ozlabs.org/project/linuxppc-dev/patch/20240314123346.461350-1-herve.codina@bootlin.com/
Christophe
More information about the linux-arm-kernel
mailing list