summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2016-04-18 09:52:05 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2016-04-21 09:51:17 +0200
commit99d00a2bd3c4f24ef90960a563f6f190e81e4ed3 (patch)
tree80155f5d2b4d346c5ae5ac28e47c9fc20968b544
parents390/fpu: allocate 'struct fpu' with the task_struct (diff)
downloadlinux-99d00a2bd3c4f24ef90960a563f6f190e81e4ed3.tar.xz
linux-99d00a2bd3c4f24ef90960a563f6f190e81e4ed3.zip
s390/sclp: avoid compile warning in sclp_pci_report
Fix the initialization of a local variable to remove this warning: All warnings (new ones prefixed by >>): drivers/s390/char/sclp_pci.c: In function 'sclp_pci_report': >> drivers/s390/char/sclp_pci.c:127:9: warning: missing braces around initializer [-Wmissing-braces] struct sclp_req req = {0}; ^ drivers/s390/char/sclp_pci.c:127:9: warning: (near initialization for 'req.list') [-Wmissing-braces] Fixes: 12283a4035691697 "s390/sclp: add error notification command" Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r--drivers/s390/char/sclp_pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/s390/char/sclp_pci.c b/drivers/s390/char/sclp_pci.c
index 0c8973c45b48..4dbb3dfd4bc7 100644
--- a/drivers/s390/char/sclp_pci.c
+++ b/drivers/s390/char/sclp_pci.c
@@ -124,7 +124,7 @@ int sclp_pci_report(struct zpci_report_error_header *report, u32 fh, u32 fid)
{
DECLARE_COMPLETION_ONSTACK(completion);
struct err_notify_sccb *sccb;
- struct sclp_req req = {0};
+ struct sclp_req req;
int ret;
ret = sclp_pci_check_report(report);
@@ -147,6 +147,7 @@ int sclp_pci_report(struct zpci_report_error_header *report, u32 fh, u32 fid)
goto out_unregister;
}
+ memset(&req, 0, sizeof(req));
req.callback_data = &completion;
req.callback = sclp_pci_callback;
req.command = SCLP_CMDW_WRITE_EVENT_DATA;