All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Otavio Salvador <otavio@ossystems.com.br>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [freescale-fslc:5.15-2.2.x-imx 6099/24604] drivers/gpu/drm/imx/imx-drm-core.c:264:6: warning: format specifies type 'long' but the argument has type 'unsigned int'
Date: Thu, 31 Aug 2023 16:40:25 +0800	[thread overview]
Message-ID: <202308311653.LQ4WzmAC-lkp@intel.com> (raw)

Hi Dong,

FYI, the error/warning still remains.

tree:   https://github.com/Freescale/linux-fslc 5.15-2.2.x-imx
head:   7c13adcd3af7dcd541144655102e1cdb941ad538
commit: 82b6c17d1b10377f16ba6127e5aaf94fa151fbc6 [6099/24604] Merge remote-tracking branch 'origin/display/lcdif' into display/next
config: hexagon-randconfig-r013-20230831 (https://download.01.org/0day-ci/archive/20230831/202308311653.LQ4WzmAC-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230831/202308311653.LQ4WzmAC-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308311653.LQ4WzmAC-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/imx/imx-drm-core.c:264:6: warning: format specifies type 'long' but the argument has type 'unsigned int' [-Wformat]
                                           ARRAY_SIZE(dpu));
                                           ^~~~~~~~~~~~~~~
   include/linux/dev_printk.h:144:65: note: expanded from macro 'dev_err'
           dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
                                                                  ~~~     ^~~~~~~~~~~
   include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
                   _p_func(dev, fmt, ##__VA_ARGS__);                       \
                                ~~~    ^~~~~~~~~~~
   include/linux/kernel.h:44:25: note: expanded from macro 'ARRAY_SIZE'
   #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 warning generated.


vim +264 drivers/gpu/drm/imx/imx-drm-core.c

c8079f00f58de8 Xianzhong 2021-06-09  229  
c8079f00f58de8 Xianzhong 2021-06-09  230  static void add_dpu_bliteng_components(struct device *dev,
c8079f00f58de8 Xianzhong 2021-06-09  231  				       struct component_match **matchptr)
c8079f00f58de8 Xianzhong 2021-06-09  232  {
c8079f00f58de8 Xianzhong 2021-06-09  233  	/*
c8079f00f58de8 Xianzhong 2021-06-09  234  	 * As there may be two dpu bliteng device,
c8079f00f58de8 Xianzhong 2021-06-09  235  	 * so need add something in compare data to distinguish.
c8079f00f58de8 Xianzhong 2021-06-09  236  	 * Use its parent dpu's of_node as the data here.
c8079f00f58de8 Xianzhong 2021-06-09  237  	 */
c8079f00f58de8 Xianzhong 2021-06-09  238  	struct device_node *port, *parent;
c8079f00f58de8 Xianzhong 2021-06-09  239  	/* assume max dpu number is 8 */
c8079f00f58de8 Xianzhong 2021-06-09  240  	struct device_node *dpu[8];
c8079f00f58de8 Xianzhong 2021-06-09  241  	int num_dpu = 0;
c8079f00f58de8 Xianzhong 2021-06-09  242  	int i, j;
c8079f00f58de8 Xianzhong 2021-06-09  243  	bool found = false;
c8079f00f58de8 Xianzhong 2021-06-09  244  
c8079f00f58de8 Xianzhong 2021-06-09  245  	for (i = 0; ; i++) {
c8079f00f58de8 Xianzhong 2021-06-09  246  		port = of_parse_phandle(dev->of_node, "ports", i);
c8079f00f58de8 Xianzhong 2021-06-09  247  		if (!port)
c8079f00f58de8 Xianzhong 2021-06-09  248  			break;
c8079f00f58de8 Xianzhong 2021-06-09  249  
c8079f00f58de8 Xianzhong 2021-06-09  250  		parent = of_get_parent(port);
c8079f00f58de8 Xianzhong 2021-06-09  251  
c8079f00f58de8 Xianzhong 2021-06-09  252  		for (j = 0; j < num_dpu; j++) {
c8079f00f58de8 Xianzhong 2021-06-09  253  			if (dpu[j] == parent) {
c8079f00f58de8 Xianzhong 2021-06-09  254  				found = true;
c8079f00f58de8 Xianzhong 2021-06-09  255  				break;
c8079f00f58de8 Xianzhong 2021-06-09  256  			}
c8079f00f58de8 Xianzhong 2021-06-09  257  		}
c8079f00f58de8 Xianzhong 2021-06-09  258  
c8079f00f58de8 Xianzhong 2021-06-09  259  		if (found) {
c8079f00f58de8 Xianzhong 2021-06-09  260  			found = false;
c8079f00f58de8 Xianzhong 2021-06-09  261  		} else {
c8079f00f58de8 Xianzhong 2021-06-09  262  			if (num_dpu >= ARRAY_SIZE(dpu)) {
c8079f00f58de8 Xianzhong 2021-06-09  263  				dev_err(dev, "The number of found dpu is greater than max [%ld].\n",
c8079f00f58de8 Xianzhong 2021-06-09 @264  					ARRAY_SIZE(dpu));
c8079f00f58de8 Xianzhong 2021-06-09  265  				of_node_put(parent);
c8079f00f58de8 Xianzhong 2021-06-09  266  				of_node_put(port);
c8079f00f58de8 Xianzhong 2021-06-09  267  				break;
c8079f00f58de8 Xianzhong 2021-06-09  268  			}
c8079f00f58de8 Xianzhong 2021-06-09  269  
c8079f00f58de8 Xianzhong 2021-06-09  270  			dpu[num_dpu] = parent;
c8079f00f58de8 Xianzhong 2021-06-09  271  			num_dpu++;
c8079f00f58de8 Xianzhong 2021-06-09  272  
c8079f00f58de8 Xianzhong 2021-06-09  273  			component_match_add(dev, matchptr, compare_of, parent);
c8079f00f58de8 Xianzhong 2021-06-09  274  		}
c8079f00f58de8 Xianzhong 2021-06-09  275  
c8079f00f58de8 Xianzhong 2021-06-09  276  		of_node_put(parent);
c8079f00f58de8 Xianzhong 2021-06-09  277  		of_node_put(port);
c8079f00f58de8 Xianzhong 2021-06-09  278  	}
c8079f00f58de8 Xianzhong 2021-06-09  279  }
c8079f00f58de8 Xianzhong 2021-06-09  280  

:::::: The code at line 264 was first introduced by commit
:::::: c8079f00f58de86abf3ab885ed6337601923e32d MLK-15321-4 drm/imx: core: Add bliteng as component of imx-drm

:::::: TO: Xianzhong <xianzhong.li@nxp.com>
:::::: CC: Dong Aisheng <aisheng.dong@nxp.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2023-08-31  8:41 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=202308311653.LQ4WzmAC-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=otavio@ossystems.com.br \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.