[PATCH] staging: rtl8192u avoid flex array of flex array

2021-02-27 Thread Darryl T. Agostinelli
Undo the flex array in struct ieee80211_info_element. It is used as the flex array type in other structs (creating a flex array of flex arrays) making sparse unhappy. This change maintains the intent of the code and satisfies sparse. Signed-off-by: Darryl T. Agostinelli --- drivers/staging

Re: [PATCH] slab.h: Avoid using & for logical and of booleans

2018-11-09 Thread Darryl T. Agostinelli
e without a branch or cmov by itself. > >> > >> The result should be more readable, without a sparse warning and probably > >> also > >> faster for the common case. > >> > >> Reported-by: Bart Van Assche > >> Reported-by: D

Re: [PATCH] slab.h: Avoid using & for logical and of booleans

2018-11-09 Thread Darryl T. Agostinelli
e without a branch or cmov by itself. > >> > >> The result should be more readable, without a sparse warning and probably > >> also > >> faster for the common case. > >> > >> Reported-by: Bart Van Assche > >> Reported-by: D

[PATCH] Suppress the sparse warning ./include/linux/slab.h:332:43: warning: dubious: x & !y

2018-11-08 Thread Darryl T. Agostinelli
Signed-off-by: Darryl T. Agostinelli --- include/linux/slab.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/linux/slab.h b/include/linux/slab.h index 918f374e7156..883b7f56bf35 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h @@ -317,6 +317,7

[PATCH] Suppress the sparse warning ./include/linux/slab.h:332:43: warning: dubious: x & !y

2018-11-08 Thread Darryl T. Agostinelli
Signed-off-by: Darryl T. Agostinelli --- include/linux/slab.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/linux/slab.h b/include/linux/slab.h index 918f374e7156..883b7f56bf35 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h @@ -317,6 +317,7