[PATCH V2] net: ethernet: mscc: fix missing brace warning for old compilers

2020-11-02 Thread Pujin Shi
}; ^ drivers/net/ethernet/mscc/ocelot_vcap.c:755:11: warning: (near initialization for 'etype.value') [-Wmissing-braces] 1 warnings generated Fixes: 75944fda1dfe ("net: mscc: ocelot: offload ingress skbedit and vlan actions to VCAP IS1") Signed-off-by: Pujin Shi --- drivers/net/eth

[PATCH] net: ethernet: mscc: fix missing brace warning for old compilers

2020-11-02 Thread Pujin Shi
}; ^ drivers/net/ethernet/mscc/ocelot_vcap.c:755:11: warning: (near initialization for 'etype.value') [-Wmissing-braces] 1 warnings generated Fixes: 75944fda1dfe ("net: mscc: ocelot: offload ingress skbedit and vlan actions to VCAP IS1") Signed-off-by: Pujin Shi --- drivers/net/eth

[PATCH v2] fs: btrfs: Fix incorrect printf qualifier

2020-10-17 Thread Pujin Shi
kill BUG_ON() in __btrfs_free_extent()") Signed-off-by: Pujin Shi --- fs/btrfs/extent-tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 3b21fee13e77..5fd60b13f4f8 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/bt

[PATCH] fs: btrfs: Fix incorrect printf qualifier

2020-10-14 Thread Pujin Shi
kill BUG_ON() in __btrfs_free_extent()") Signed-off-by: Pujin Shi --- fs/btrfs/extent-tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 3b21fee13e77..5fd60b13f4f8 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/bt

[PATCH] net: intel: ice: Use uintptr_t for casting data

2020-10-09 Thread Pujin Shi
) ^ drivers/net/ethernet/intel/ice/ice_flow.c:946:13: note: in expansion of macro 'ICE_FLOW_ENTRY_HNDL' *entry_h = ICE_FLOW_ENTRY_HNDL(e); ^ 2 warnings generated Signed-off-by: Pujin Shi --- drivers/net/ethernet/intel/ice/ice_flow.h | 2 +- 1 file

[PATCH] Input: joystick/analog - mips has get_cycles()

2020-10-08 Thread Pujin Shi
Fixes: drivers/input/joystick/analog.c:160:2: warning: #warning Precise timer not defined for this architecture. [-Wcpp] Signed-off-by: Pujin Shi --- drivers/input/joystick/analog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/input/joystick/analog.c b/drivers

[PATCH 2/2] net: smc: fix missing brace warning for old compilers

2020-10-08 Thread Pujin Shi
: warning: (near initialization for 'del_llc.hd') [-Wmissing-braces] 2 warnings generated Fixes: 4dadd151b265 ("net/smc: enqueue local LLC messages") Signed-off-by: Pujin Shi --- net/smc/smc_llc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/smc/smc_llc.c

[PATCH 1/2] net: smc: fix missing brace warning for old compilers

2020-10-08 Thread Pujin Shi
: warning: (near initialization for 'delllc.hd') [-Wmissing-braces] 1 warnings generated Fixes: f3811fd7bc97 ("net/smc: send DELETE_LINK, ALL message and wait for send to complete") Signed-off-by: Pujin Shi --- net/smc/smc_llc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH] fs: tree-checker: fix missing brace warning for old compilers

2020-10-02 Thread Pujin Shi
: warning: (near initialization for 'ri.inode') [-Wmissing-braces] 1 warnings generated Fixes: 443b313c7ff8 ("btrfs: tree-checker: fix false alert caused by legacy btrfs root item") Signed-off-by: Pujin Shi --- fs/btrfs/tree-checker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH v2] scsi: ufs: fix missing brace warning for old compilers

2020-10-02 Thread Pujin Shi
ufs_crypto_cfg_entry cfg = { 0 }; ^ 2 warnings generated Fixes: 70297a8ac7a7 ("scsi: ufs: UFS crypto API") Signed-off-by: Pujin Shi --- drivers/scsi/ufs/ufshcd-crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd-crypto.c b/drivers/scsi/

[PATCH 2/2] scsi: ufs: Use memset to initialize variable in ufshcd_clear_keyslot

2020-10-01 Thread Pujin Shi
Clang warns: drivers/scsi/ufs/ufshcd-crypto.c:103:8: warning: missing braces around initializer [-Wmissing-braces] union ufs_crypto_cfg_entry cfg = { 0 }; ^ Signed-off-by: Pujin Shi --- drivers/scsi/ufs/ufshcd-crypto.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers

[PATCH 1/2] scsi: ufs: Use memset to initialize variable in ufshcd_crypto_keyslot_program

2020-10-01 Thread Pujin Shi
Clang warns: drivers/scsi/ufs/ufshcd-crypto.c:62:8: warning: missing braces around initializer [-Wmissing-braces] union ufs_crypto_cfg_entry cfg = { 0 }; ^ Signed-off-by: Pujin Shi --- drivers/scsi/ufs/ufshcd-crypto.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff

[PATCH] tty: serial: mvebu-uart: Remove unused variable 'ret'

2020-09-30 Thread Pujin Shi
'ret' variable is now defined but not used in mvebu_uart_probe(), causing this warning: drivers/tty/serial/mvebu-uart.c: In function ‘mvebu_uart_probe’: drivers/tty/serial/mvebu-uart.c:806:6: warning: unused variable ‘ret’ [-Wunused-variable] Signed-off-by: Pujin Shi --- drivers/tty

[PATCH 1/2] MIPS: process: Add prototype for function arch_dup_task_struct

2020-09-29 Thread Pujin Shi
This commit adds a prototype to fix warning at W=1: arch/mips/kernel/process.c:95:5: error: no previous prototype for 'arch_dup_task_struct' [-Werror=missing-prototypes] Signed-off-by: Pujin Shi --- arch/mips/include/asm/processor.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch

[PATCH 2/2] MIPS: process: include exec.h header in process.c

2020-09-29 Thread Pujin Shi
arch/mips/kernel/process.c:696:15: error: no previous prototype for 'arch_align_stack' [-Werror=missing-prototypes] Signed-off-by: Pujin Shi --- arch/mips/kernel/process.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c index

[PATCH v2] MIPS: irq: Add missing prototypes for init_IRQ()

2020-09-28 Thread Pujin Shi
init_IRQ() have no prototype, add one in linux/irq.h Fix the following warnings (treated as error in W=1): arch/mips/kernel/irq.c:52:13: error: no previous prototype for 'init_IRQ' [-Werror=missing-prototypes] Signed-off-by: Pujin Shi --- include/linux/irq.h | 2 ++ init/main.c | 1

[PATCH] MIPS: mm: Fix build error

2020-09-27 Thread Pujin Shi
:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ arch/mips/mm/init.c:458:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(IS_ENABLED(CONFIG_32BIT) && (_PFN_SHIFT > PAGE_SHIFT)); ^ Signed-off-by: Pujin S

[PATCH v3] MIPS: idle: Add prototype for function check_wait

2020-09-27 Thread Pujin Shi
This commit adds a prototype to fix warning at W=1: arch/mips/kernel/idle.c:126:13: error: no previous prototype for 'check_wait' [-Werror=missing-prototypes] Signed-off-by: Pujin Shi --- arch/mips/include/asm/idle.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/include

[PATCH v2] MIPS: idle: Add prototype for function check_wait

2020-09-27 Thread Pujin Shi
This commit adds a prototype to fix warning at W=1: arch/mips/kernel/idle.c:126:13: error: no previous prototype for 'check_wait' [-Werror=missing-prototypes] Signed-off-by: Pujin Shi --- arch/mips/include/asm/idle.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/include

[PATCH] fs/d_path.c: Supply missing internal.h include file

2020-09-24 Thread Pujin Shi
’ [-Wmissing-prototypes] Signed-off-by: Pujin Shi --- fs/d_path.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/d_path.c b/fs/d_path.c index 0f1fc1743302..745dc1f77787 100644 --- a/fs/d_path.c +++ b/fs/d_path.c @@ -7,6 +7,7 @@ #include #include #include "mount.h" +#include &

[PATCH] MIPS: irq: Add missing prototypes for init_IRQ()

2020-09-22 Thread Pujin Shi
init_IRQ() have no prototype, add one in irq.h Fix the following warnings (treated as error in W=1): arch/mips/kernel/irq.c:52:13: error: no previous prototype for 'init_IRQ' [-Werror=missing-prototypes] Signed-off-by: Pujin Shi --- arch/mips/include/asm/irq.h | 1 + arch/mips/kernel/irq.c

[PATCH] MIPS: idle: Add prototype for function check_wait

2020-09-22 Thread Pujin Shi
This commit adds a prototype to fix warning at W=1: arch/mips/kernel/idle.c:126:13: error: no previous prototype for 'check_wait' [-Werror=missing-prototypes] Signed-off-by: Pujin Shi --- arch/mips/include/asm/idle.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/include

[PATCH v4] powercap: include header to fix -Wmissing-prototypes

2020-09-21 Thread Pujin Shi
for ‘idle_inject_unregister’ [-Wmissing-prototypes] Signed-off-by: Pujin Shi --- drivers/powercap/idle_inject.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/powercap/idle_inject.c b/drivers/powercap/idle_inject.c index 4310901a074e..6e1a0043c411 100644 --- a/drivers/powercap/idle_inject.c

[PATCH v2] MIPS: kernel: include probes-common.h header in branch.c

2020-09-21 Thread Pujin Shi
arch/mips/kernel/branch.c:876:5: error: no previous prototype for '__insn_is_compact_branch' [-Werror=missing-prototypes] Signed-off-by: Pujin Shi Signed-off-by: Pujin Shi --- arch/mips/kernel/branch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/kernel/branch.c b/arch/mips

[PATCH v3] powercap: include header to fix -Wmissing-prototypes

2020-09-21 Thread Pujin Shi
for ‘idle_inject_unregister’ [-Wmissing-prototypes] Signed-off-by: Pujin Shi Signed-off-by: Pujin Shi --- drivers/powercap/idle_inject.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/powercap/idle_inject.c b/drivers/powercap/idle_inject.c index 4310901a074e..6e1a0043c411 100644