openwrt/package/kernel/lantiq
Aleksander Jan Bajkowski fda7563c9a kernel: ltq-adsl-mei: fix compilation warning on 6.6
Fix compilation warning:
./include/linux/export.h:29:22: error: passing argument 1 of 'class_create' from incompatible pointer type [-Werror=incompatible-pointer-types]
   29 | #define THIS_MODULE (&__this_module)
      |                     ~^~~~~~~~~~~~~~~
      |                      |
      |                      struct module *
/home/aleksander/workspace/openwrt/build_dir/target-mips_24kc_musl/linux-lantiq_xway/ltq-adsl-mei-ar9/ltq-adsl-mei/drv_mei_cpe.c:2774:34: note: in expansion of macro 'THIS_MODULE'
 2774 |         dsl_class = class_create(THIS_MODULE, "ifx_mei");
      |                                  ^~~~~~~~~~~
In file included from ./include/linux/device.h:31,
                 from ./include/linux/dma-mapping.h:8,
                 from ./include/linux/skbuff.h:28,
                 from ./include/net/net_namespace.h:43,
                 from ./include/linux/netdevice.h:38,
                 from /home/aleksander/workspace/openwrt/build_dir/target-mips_24kc_musl/linux-lantiq_xway/ltq-adsl-mei-ar9/ltq-adsl-mei/drv_mei_cpe.c:39:
./include/linux/device/class.h:230:54: note: expected 'const char *' but argument is of type 'struct module *'
  230 | struct class * __must_check class_create(const char *name);
      |                                          ~~~~~~~~~~~~^~~~
/home/aleksander/workspace/openwrt/build_dir/target-mips_24kc_musl/linux-lantiq_xway/ltq-adsl-mei-ar9/ltq-adsl-mei/drv_mei_cpe.c:2774:21: error: too many arguments to function 'class_create'
 2774 |         dsl_class = class_create(THIS_MODULE, "ifx_mei");
      |                     ^~~~~~~~~~~~
./include/linux/device/class.h:230:29: note: declared here
  230 | struct class * __must_check class_create(const char *name);
      |                             ^~~~~~~~~~~~
cc1: all warnings being treated as errors

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
2024-06-14 14:32:28 +02:00
..
ltq-adsl lantiq: Fix compile of lantiq components with kernel 6.1 2024-05-15 08:54:58 +02:00
ltq-adsl-fw ltq-adsl(-fw): Makefile clean-up and fixes 2020-04-24 17:59:22 +02:00
ltq-adsl-mei kernel: ltq-adsl-mei: fix compilation warning on 6.6 2024-06-14 14:32:28 +02:00
ltq-atm lantiq: ltq-atm: use platform_get_irq to get irqs 2024-05-15 08:54:58 +02:00
ltq-deu kernel: ltq-deu: fix compilation with linux 6.6 2024-06-08 23:25:35 +02:00
ltq-ifxos ltq-ifxos: fix compilation error with kernel 6.1 2023-08-27 19:26:53 +02:00
ltq-ptm packages: refresh patches 2024-05-31 11:30:06 +02:00
ltq-tapi packages: refresh patches 2024-05-31 11:30:06 +02:00
ltq-vdsl-fw ltq-vdsl-fw: fix firmware installer 2022-08-26 22:32:47 +01:00
ltq-vdsl-vr9 kernel: ltq-vdsl-vr9: fix compilation with linux 6.6 2024-06-08 23:25:35 +02:00
ltq-vdsl-vr9-mei kernel: ltq-vdsl-vr9-mei: fix compilation with linux 6.6 2024-06-08 23:25:35 +02:00
ltq-vdsl-vr11 packages: refresh patches 2024-05-31 11:30:06 +02:00
ltq-vdsl-vr11-mei ltq-vdsl-vr11-mei: add patch fixing compilation with kernel 6.6 2024-04-02 23:45:22 +02:00
ltq-vectoring kernel: ltq-vectoring: Avoid flush_scheduled_work() usage 2024-06-08 23:25:35 +02:00
ltq-vmmc lantiq: ltq-vmmc: get irqs from kernel-in-tree vmmc driver 2024-05-15 08:54:58 +02:00
vrx518_ep vrx518_ep: fix compilation error with kernel 6.1 2023-08-27 19:26:53 +02:00
vrx518_tc vrx518_tc: fix compilation error with kernel 6.1 2023-08-27 19:26:53 +02:00