Re: [PATCH] x86: apuv2: Fix softdep statement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jun 29, 2019 at 12:41 PM Jean Delvare <jdelvare@xxxxxxx> wrote:
>
> Only one MODULE_SOFTDEP statement is allowed per module. Multiple
> dependencies must be expressed in a single statement.

Some module init utils even do not support softdep.

Nevertheless, the message is somewhat misleading. It's not "only one
allowed" — this is not true, it's "only first will be served".
This is how I read kmod sources.

And perhaps better to fix them?
At least I would rather support somelike
MODULE_SOFTDEP("pre: ...");
MODULE_SOFTDEP("post: ...");

> Signed-off-by: Jean Delvare <jdelvare@xxxxxxx>
> Cc: "Enrico Weigelt, metux IT consult" <info@xxxxxxxxx>
> Cc: Darren Hart <dvhart@xxxxxxxxxxxxx>
> Cc: Andy Shevchenko <andy@xxxxxxxxxxxxx>
> ---
>  drivers/platform/x86/pcengines-apuv2.c |    4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
>
> --- linux-5.1.orig/drivers/platform/x86/pcengines-apuv2.c       2019-05-06 02:42:58.000000000 +0200
> +++ linux-5.1/drivers/platform/x86/pcengines-apuv2.c    2019-06-29 11:37:48.062005738 +0200
> @@ -255,6 +255,4 @@ MODULE_DESCRIPTION("PC Engines APUv2/APU
>  MODULE_LICENSE("GPL");
>  MODULE_DEVICE_TABLE(dmi, apu_gpio_dmi_table);
>  MODULE_ALIAS("platform:pcengines-apuv2");
> -MODULE_SOFTDEP("pre: platform:" AMD_FCH_GPIO_DRIVER_NAME);
> -MODULE_SOFTDEP("pre: platform:leds-gpio");
> -MODULE_SOFTDEP("pre: platform:gpio_keys_polled");
> +MODULE_SOFTDEP("pre: platform:" AMD_FCH_GPIO_DRIVER_NAME " platform:leds-gpio platform:gpio_keys_polled");
>
>
> --
> Jean Delvare
> SUSE L3 Support



--
With Best Regards,
Andy Shevchenko




[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux