diff options
author | Pujin Shi <[email protected]> | 2020-10-02 14:35:38 +0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2020-10-02 19:11:55 -0400 |
commit | 6500251e590657066a227dce897a0392f302af24 (patch) | |
tree | 170b6e95f46487e3cf9cac7d826f6b7b0af90e14 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 72e813d9a1b7a0a6dc6b27b563c389fbdb50cee2 (diff) |
scsi: ufs: Fix missing brace warning for old compilers
For older versions of gcc, the array = {0}; will cause warnings:
drivers/scsi/ufs/ufshcd-crypto.c: In function 'ufshcd_crypto_keyslot_program':
drivers/scsi/ufs/ufshcd-crypto.c:62:8: warning: missing braces around initializer [-Wmissing-braces]
union ufs_crypto_cfg_entry cfg = { 0 };
^
drivers/scsi/ufs/ufshcd-crypto.c:62:8: warning: (near initialization for 'cfg.reg_val') [-Wmissing-braces]
drivers/scsi/ufs/ufshcd-crypto.c: In function 'ufshcd_clear_keyslot':
drivers/scsi/ufs/ufshcd-crypto.c:103:8: warning: missing braces around initializer [-Wmissing-braces]
union ufs_crypto_cfg_entry cfg = { 0 };
^
2 warnings generated
Link: https://lore.kernel.org/r/[email protected]
Fixes: 70297a8ac7a7 ("scsi: ufs: UFS crypto API")
Reviewed-by: Eric Biggers <[email protected]>
Signed-off-by: Pujin Shi <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions