bcm47xx: 5.15: fix compilation warning for yenta socket patchi
authorChristian Marangi <ansuelsmth@gmail.com>
Sat, 6 May 2023 23:24:04 +0000 (01:24 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 12 May 2023 01:15:37 +0000 (03:15 +0200)
commit3e9c471525328ba152ecbc8aced417e4a7c7a9c1
treedeeb4c57d8132d920d7353e2c9c7bb7b81ed1a0c
parentcbf299c86c11af950f4dbeec1b869cc51c6ea035
bcm47xx: 5.15: fix compilation warning for yenta socket patchi

Rework the patch to completely disable yenta_probe_irq function.
The generated mask is zero by lack due to the fact that probe_irq_mask
use a val never initialized. Correctly rework the ifdef to make the
function always return 0.

Fix compilation warning:
drivers/pcmcia/yenta_socket.c:926:13: error: unused variable 'i' [-Werror=unused-variable]
  926 |         int i;
      |             ^
drivers/pcmcia/yenta_socket.c:954:16: error: 'val' is used uninitialized [-Werror=uninitialized]
  954 |         mask = probe_irq_mask(val) & 0xffff;
      |                ^~~~~~~~~~~~~~~~~~~
drivers/pcmcia/yenta_socket.c:927:23: note: 'val' was declared here
  927 |         unsigned long val;
      |                       ^~~
cc1: all warnings being treated as errors

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/linux/bcm47xx/patches-5.15/940-bcm47xx-yenta.patch