diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2023-05-07 01:24:04 +0200 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2023-05-12 03:15:37 +0200 |
commit | 3e9c471525328ba152ecbc8aced417e4a7c7a9c1 (patch) | |
tree | deeb4c57d8132d920d7353e2c9c7bb7b81ed1a0c /package/kernel | |
parent | cbf299c86c11af950f4dbeec1b869cc51c6ea035 (diff) | |
download | upstream-3e9c471525328ba152ecbc8aced417e4a7c7a9c1.tar.gz upstream-3e9c471525328ba152ecbc8aced417e4a7c7a9c1.tar.bz2 upstream-3e9c471525328ba152ecbc8aced417e4a7c7a9c1.zip |
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>
Diffstat (limited to 'package/kernel')
0 files changed, 0 insertions, 0 deletions