All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [superna9999:amlogic/v5.7/vim3-mipi-dsi 3/9] drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:319:2: note: in expansion of macro 'pr_info'
@ 2020-04-06 18:49 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-04-06 18:49 UTC (permalink / raw
  To: kbuild-all

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

tree:   https://github.com/superna9999/linux amlogic/v5.7/vim3-mipi-dsi
head:   ed2735fd14f6e177f57671d174743e2d4473ed63
commit: 02b31492df22ab25241f6d0fcd895d2dedab84c6 [3/9] drm: bridge: dw-mipi-dsi: debug & tweaks
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 02b31492df22ab25241f6d0fcd895d2dedab84c6
        # save the attached .config to linux build tree
        GCC_VERSION=9.3.0 make.cross ARCH=arm 

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

All warnings (new ones prefixed by >>):

   In file included from include/linux/printk.h:7,
                    from include/linux/kernel.h:15,
                    from include/linux/clk.h:13,
                    from drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:12:
   drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c: In function 'dw_mipi_dsi_host_attach':
>> include/linux/kern_levels.h:5:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct drm_panel *' [-Wformat=]
       5 | #define KERN_SOH "\001"  /* ASCII Start Of Header */
         |                  ^~~~~~
   include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH'
      14 | #define KERN_INFO KERN_SOH "6" /* informational */
         |                   ^~~~~~~~
   include/linux/printk.h:310:9: note: in expansion of macro 'KERN_INFO'
     310 |  printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~~~~
>> drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:319:2: note: in expansion of macro 'pr_info'
     319 |  pr_info("panel: %08x\n", panel);
         |  ^~~~~~~
   drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:319:21: note: format string is defined here
     319 |  pr_info("panel: %08x\n", panel);
         |                  ~~~^
         |                     |
         |                     unsigned int
   In file included from include/linux/printk.h:7,
                    from include/linux/kernel.h:15,
                    from include/linux/clk.h:13,
                    from drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:12:
   include/linux/kern_levels.h:5:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct drm_bridge *' [-Wformat=]
       5 | #define KERN_SOH "\001"  /* ASCII Start Of Header */
         |                  ^~~~~~
   include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH'
      14 | #define KERN_INFO KERN_SOH "6" /* informational */
         |                   ^~~~~~~~
   include/linux/printk.h:310:9: note: in expansion of macro 'KERN_INFO'
     310 |  printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~~~~
   drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:320:2: note: in expansion of macro 'pr_info'
     320 |  pr_info("bridge: %08x\n", bridge);
         |  ^~~~~~~
   drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:320:22: note: format string is defined here
     320 |  pr_info("bridge: %08x\n", bridge);
         |                   ~~~^
         |                      |
         |                      unsigned int
   In file included from include/linux/printk.h:7,
                    from include/linux/kernel.h:15,
                    from include/linux/clk.h:13,
                    from drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:12:
   include/linux/kern_levels.h:5:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct drm_bridge *' [-Wformat=]
       5 | #define KERN_SOH "\001"  /* ASCII Start Of Header */
         |                  ^~~~~~
   include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH'
      14 | #define KERN_INFO KERN_SOH "6" /* informational */
         |                   ^~~~~~~~
   include/linux/printk.h:310:9: note: in expansion of macro 'KERN_INFO'
     310 |  printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~~~~
   drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:331:2: note: in expansion of macro 'pr_info'
     331 |  pr_info("panel_bridge: %08x\n", dsi->panel_bridge);
         |  ^~~~~~~
   drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:331:28: note: format string is defined here
     331 |  pr_info("panel_bridge: %08x\n", dsi->panel_bridge);
         |                         ~~~^
         |                            |
         |                            unsigned int
   In file included from include/linux/device.h:15,
                    from include/linux/node.h:18,
                    from include/linux/cpu.h:17,
                    from include/linux/of_device.h:5,
                    from drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:17:
   drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c: In function '__dw_mipi_dsi_probe':
>> drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:1064:23: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=]
    1064 |  dev_info(&pdev->dev, "Detected DW-MIPI version %06x\n",
         |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
      19 | #define dev_fmt(fmt) fmt
         |                      ^~~
>> drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:1064:2: note: in expansion of macro 'dev_info'
    1064 |  dev_info(&pdev->dev, "Detected DW-MIPI version %06x\n",
         |  ^~~~~~~~
   drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:1064:52: note: format string is defined here
    1064 |  dev_info(&pdev->dev, "Detected DW-MIPI version %06x\n",
         |                                                 ~~~^
         |                                                    |
         |                                                    unsigned int
         |                                                 %06lx

vim +/pr_info +319 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c

   293	
   294	static int dw_mipi_dsi_host_attach(struct mipi_dsi_host *host,
   295					   struct mipi_dsi_device *device)
   296	{
   297		struct dw_mipi_dsi *dsi = host_to_dsi(host);
   298		const struct dw_mipi_dsi_plat_data *pdata = dsi->plat_data;
   299		struct drm_bridge *bridge;
   300		struct drm_panel *panel;
   301		int ret;
   302	
   303		if (device->lanes > dsi->plat_data->max_data_lanes) {
   304			dev_err(dsi->dev, "the number of data lanes(%u) is too many\n",
   305				device->lanes);
   306			return -EINVAL;
   307		}
   308	
   309		dsi->lanes = device->lanes;
   310		dsi->channel = device->channel;
   311		dsi->format = device->format;
   312		dsi->mode_flags = device->mode_flags;
   313	
   314		ret = drm_of_find_panel_or_bridge(host->dev->of_node, 1, 0,
   315						  &panel, &bridge);
   316		if (ret)
   317			return ret;
   318	
 > 319		pr_info("panel: %08x\n", panel);
   320		pr_info("bridge: %08x\n", bridge);
   321	
   322		if (panel) {
   323			bridge = drm_panel_bridge_add_typed(panel,
   324							    DRM_MODE_CONNECTOR_DSI);
   325			if (IS_ERR(bridge))
   326				return PTR_ERR(bridge);
   327			pr_info("bridge: %p\n", bridge);
   328		}
   329	
   330		dsi->panel_bridge = bridge;
   331		pr_info("panel_bridge: %08x\n", dsi->panel_bridge);
   332	
   333		drm_bridge_add(&dsi->bridge);
   334	
   335		if (pdata->host_ops && pdata->host_ops->attach) {
   336			ret = pdata->host_ops->attach(pdata->priv_data, device);
   337			if (ret < 0)
   338				return ret;
   339		}
   340	
   341		return 0;
   342	}
   343	

---
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: 49935 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-06 18:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-06 18:49 [superna9999:amlogic/v5.7/vim3-mipi-dsi 3/9] drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c:319:2: note: in expansion of macro 'pr_info' kbuild test robot

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.