mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: peng.fan@nxp.com
Cc: kbuild-all@lists.01.org, shawnguo@kernel.org,
	s.hauer@pengutronix.de, jassisinghbrar@gmail.com,
	o.rempel@pengutronix.de, kernel@pengutronix.de,
	festevam@gmail.com, linux-imx@nxp.com, Anson.Huang@nxp.com,
	leonard.crestez@nxp.com, aisheng.dong@nxp.com,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, Peng Fan <peng.fan@nxp.com>
Subject: Re: [PATCH V5 3/4] mailbox: imx: add SCU MU support
Date: Tue, 3 Mar 2020 23:14:45 +0800	[thread overview]
Message-ID: <202003032311.pS3HErK4%lkp@intel.com> (raw)
In-Reply-To: <1583221359-9285-4-git-send-email-peng.fan@nxp.com>

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

Hi,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on 770fbb32d34e5d6298cc2be590c9d2fd6069aa17]

url:    https://github.com/0day-ci/linux/commits/peng-fan-nxp-com/mailbox-firmware-imx-support-SCU-channel-type/20200303-201748
base:    770fbb32d34e5d6298cc2be590c9d2fd6069aa17
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 7.5.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.0 make.cross ARCH=m68k 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from include/linux/device.h:15:0,
                    from include/linux/firmware/imx/ipc.h:11,
                    from drivers//mailbox/imx-mailbox.c:7:
   drivers//mailbox/imx-mailbox.c: In function 'imx_mu_scu_tx':
>> drivers//mailbox/imx-mailbox.c:160:23: warning: format '%li' expects argument of type 'long int', but argument 3 has type 'unsigned int' [-Wformat=]
       dev_err(priv->dev, "Exceed max msg size (%li) on TX, got: %i\n", sizeof(*msg), msg->hdr.size);
                          ^
   include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
    #define dev_fmt(fmt) fmt
                         ^~~
>> drivers//mailbox/imx-mailbox.c:160:4: note: in expansion of macro 'dev_err'
       dev_err(priv->dev, "Exceed max msg size (%li) on TX, got: %i\n", sizeof(*msg), msg->hdr.size);
       ^~~~~~~
   drivers//mailbox/imx-mailbox.c: In function 'imx_mu_scu_rx':
   drivers//mailbox/imx-mailbox.c:188:22: warning: format '%li' expects argument of type 'long int', but argument 3 has type 'unsigned int' [-Wformat=]
      dev_err(priv->dev, "Exceed max msg size (%li) on RX, got: %i\n",
                         ^
   include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
    #define dev_fmt(fmt) fmt
                         ^~~
   drivers//mailbox/imx-mailbox.c:188:3: note: in expansion of macro 'dev_err'
      dev_err(priv->dev, "Exceed max msg size (%li) on RX, got: %i\n",
      ^~~~~~~

vim +/dev_err +160 drivers//mailbox/imx-mailbox.c

   144	
   145	static int imx_mu_scu_tx(struct imx_mu_priv *priv,
   146				 struct imx_mu_con_priv *cp,
   147				 void *data)
   148	{
   149		struct imx_sc_rpc_msg_max *msg = data;
   150		u32 *arg = data;
   151		int i;
   152	
   153		switch (cp->type) {
   154		case IMX_MU_TYPE_TX:
   155			if (msg->hdr.size > sizeof(*msg)) {
   156				/*
   157				 * The real message size can be different to
   158				 * struct imx_sc_rpc_msg_max size
   159				 */
 > 160				dev_err(priv->dev, "Exceed max msg size (%li) on TX, got: %i\n", sizeof(*msg), msg->hdr.size);
   161				return -EINVAL;
   162			}
   163	
   164			for (i = 0; i < msg->hdr.size; i++)
   165				imx_mu_write(priv, *arg++, priv->dcfg->xTR[i % 4]);
   166	
   167			imx_mu_xcr_rmw(priv, IMX_MU_xCR_TIEn(cp->idx), 0);
   168			break;
   169		default:
   170			dev_warn_ratelimited(priv->dev, "Send data on wrong channel type: %d\n", cp->type);
   171			return -EINVAL;
   172		}
   173	
   174		return 0;
   175	}
   176	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

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

  parent reply	other threads:[~2020-03-03 15:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-03  7:42 [PATCH V5 0/4] mailbox/firmware: imx: support SCU channel type peng.fan
2020-03-03  7:42 ` [PATCH V5 1/4] dt-bindings: mailbox: imx-mu: add SCU MU support peng.fan
2020-03-03  7:54   ` Oleksij Rempel
2020-03-03  7:42 ` [PATCH V5 2/4] mailbox: imx: restructure code to make easy for new MU peng.fan
2020-03-03  7:55   ` Oleksij Rempel
2020-03-03  7:42 ` [PATCH V5 3/4] mailbox: imx: add SCU MU support peng.fan
2020-03-03  7:57   ` Oleksij Rempel
2020-03-03 15:14   ` kbuild test robot [this message]
2020-03-03  7:42 ` [PATCH V5 4/4] firmware: imx-scu: Support one TX and one RX peng.fan
2020-03-03  7:59   ` Oleksij Rempel

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=202003032311.pS3HErK4%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Anson.Huang@nxp.com \
    --cc=aisheng.dong@nxp.com \
    --cc=festevam@gmail.com \
    --cc=jassisinghbrar@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=kernel@pengutronix.de \
    --cc=leonard.crestez@nxp.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=o.rempel@pengutronix.de \
    --cc=peng.fan@nxp.com \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@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

all inboxes | Powered by JetHome®