Messages in this thread | | | Date | Thu, 28 Nov 2019 18:03:44 +0800 | From | kbuild test robot <> | Subject | drivers/bus/fsl-mc/fsl-mc-bus.c:718:9: warning: missing braces around initializer |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 95f1fa9e3418d50ce099e67280b5497b9c93843b commit: 1ac210d128ef6e92698dd3aa4e2e03e831bc9906 bus: fsl-mc: add the fsl_mc_get_endpoint function date: 4 weeks ago config: i386-randconfig-a001-20191126 (attached as .config) compiler: gcc-4.9 (Debian 4.9.2-10+deb8u1) 4.9.2 reproduce: git checkout 1ac210d128ef6e92698dd3aa4e2e03e831bc9906 # save the attached .config to linux build tree make ARCH=i386
If you fix the issue, kindly add following tag Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/bus/fsl-mc/fsl-mc-bus.c: In function 'fsl_mc_get_endpoint': >> drivers/bus/fsl-mc/fsl-mc-bus.c:718:9: warning: missing braces around initializer [-Wmissing-braces] struct fsl_mc_obj_desc endpoint_desc = { 0 }; ^ drivers/bus/fsl-mc/fsl-mc-bus.c:718:9: warning: (near initialization for 'endpoint_desc.type') [-Wmissing-braces] drivers/bus/fsl-mc/fsl-mc-bus.c:719:9: warning: missing braces around initializer [-Wmissing-braces] struct dprc_endpoint endpoint1 = { 0 }; ^ drivers/bus/fsl-mc/fsl-mc-bus.c:719:9: warning: (near initialization for 'endpoint1.type') [-Wmissing-braces] drivers/bus/fsl-mc/fsl-mc-bus.c:720:9: warning: missing braces around initializer [-Wmissing-braces] struct dprc_endpoint endpoint2 = { 0 }; ^ drivers/bus/fsl-mc/fsl-mc-bus.c:720:9: warning: (near initialization for 'endpoint2.type') [-Wmissing-braces]
vim +718 drivers/bus/fsl-mc/fsl-mc-bus.c
714 715 struct fsl_mc_device *fsl_mc_get_endpoint(struct fsl_mc_device *mc_dev) 716 { 717 struct fsl_mc_device *mc_bus_dev, *endpoint; > 718 struct fsl_mc_obj_desc endpoint_desc = { 0 }; 719 struct dprc_endpoint endpoint1 = { 0 }; 720 struct dprc_endpoint endpoint2 = { 0 }; 721 int state, err; 722 723 mc_bus_dev = to_fsl_mc_device(mc_dev->dev.parent); 724 strcpy(endpoint1.type, mc_dev->obj_desc.type); 725 endpoint1.id = mc_dev->obj_desc.id; 726 727 err = dprc_get_connection(mc_bus_dev->mc_io, 0, 728 mc_bus_dev->mc_handle, 729 &endpoint1, &endpoint2, 730 &state); 731 732 if (err == -ENOTCONN || state == -1) 733 return ERR_PTR(-ENOTCONN); 734 735 if (err < 0) { 736 dev_err(&mc_bus_dev->dev, "dprc_get_connection() = %d\n", err); 737 return ERR_PTR(err); 738 } 739 740 strcpy(endpoint_desc.type, endpoint2.type); 741 endpoint_desc.id = endpoint2.id; 742 endpoint = fsl_mc_device_lookup(&endpoint_desc, mc_bus_dev); 743 744 return endpoint; 745 } 746 EXPORT_SYMBOL_GPL(fsl_mc_get_endpoint); 747
--- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation [unhandled content-type:application/gzip] | |