mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Ioana Ciornei <ioana.ciornei@nxp.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: drivers/bus/fsl-mc/fsl-mc-bus.c:718:9: warning: missing braces around initializer
Date: Thu, 28 Nov 2019 18:03:44 +0800	[thread overview]
Message-ID: <201911281843.yoKFjBxF%lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2912 bytes --]

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 36366 bytes --]

                 reply	other threads:[~2019-11-28 10:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201911281843.yoKFjBxF%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ioana.ciornei@nxp.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome