[PATCH 1/2] groups: Use flexible-array member in struct group_info

2021-01-26 Thread Hubert Jasudowicz
Replace zero-size array with flexible array member, as recommended by the docs. Signed-off-by: Hubert Jasudowicz --- Hi, get_maintainers doesn't return anything except for the mailing list. Sending to Andrew Morton as last resort. Sorry for accidental spam. diff --git a/include/linux/cred.h b

[PATCH 2/2] groups: Simplify struct group_info allocation

2021-01-26 Thread Hubert Jasudowicz
Combine kmalloc and vmalloc into a single call. Use struct_size macro instead of direct size calculation. Signed-off-by: Hubert Jasudowicz --- kernel/groups.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/kernel/groups.c b/kernel/groups.c index fe7e6385530e

[PATCH] powercap: Fix typo in Kconfig "Plance" -> "Plane"

2020-10-18 Thread Hubert Jasudowicz
Signed-off-by: Hubert Jasudowicz --- drivers/powercap/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/powercap/Kconfig b/drivers/powercap/Kconfig index ebc4d4578339..bc228725346b 100644 --- a/drivers/powercap/Kconfig +++ b/drivers/powercap/Kconfig @@ -30,7