[PATCH] powerpc/pseries: fix possible memory leak in ibmebus_bus_init()

2022-11-09 Thread ruanjinjie
can be freed in kobject_cleanup(). Signed-off-by: ruanjinjie --- arch/powerpc/platforms/pseries/ibmebus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/platforms/pseries/ibmebus.c b/arch/powerpc/platforms/pseries/ibmebus.c index a870cada7acd..ed5fc70b7353 100644 --- a/arch

[PATCH -next] tty: hvc: make hvc_rtas_dev static

2022-10-18 Thread ruanjinjie
The symbol is not used outside of the file, so mark it static. Fixes the following warning: drivers/tty/hvc/hvc_rtas.c:29:19: warning: symbol 'hvc_rtas_dev' was not declared. Should it be static? Signed-off-by: ruanjinjie --- drivers/tty/hvc/hvc_rtas.c | 2 +- 1 file changed, 1

[PATCH -next v2] powerpc/mpic_msgr: fix cast removes address space of expression warnings

2022-10-18 Thread ruanjinjie
msgr->mer and msgr->base are 'u32 __iomem *', but converted to 'u32 *' and 'u8 *' directly and cause above warnings, now instead of using a type cast, change the size of the pointer offset to fix these warnings. Signed-off-by: ruanjinjie --- v2: - change the ma

[PATCH -next] soc: fsl: dpio: Add __init/__exit annotations to module init/exit func

2022-09-26 Thread ruanjinjie
Add missing __init/__exit annotations to module init/exit funcs Signed-off-by: ruanjinjie --- drivers/soc/fsl/dpio/dpio-driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/fsl/dpio/dpio-driver.c b/drivers/soc/fsl/dpio/dpio-driver.c index 5a2edc48dd79

[PATCH -next] soc: fsl: dpio: Add __init/__exit annotations to module init/exit func

2022-09-26 Thread ruanjinjie
Add missing __init/__exit annotations to module init/exit funcs Signed-off-by: ruanjinjie --- drivers/soc/fsl/dpio/dpio-driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/fsl/dpio/dpio-driver.c b/drivers/soc/fsl/dpio/dpio-driver.c index 5a2edc48dd79