lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210260520.8kxwoM8d-lkp@intel.com>
Date:   Wed, 26 Oct 2022 05:34:27 +0800
From:   kernel test robot <lkp@...el.com>
To:     Neil Armstrong <neil.armstrong@...aro.org>
Cc:     llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
        linux-kernel@...r.kernel.org
Subject: [superna9999:odroid-go-ultra-dsi 16/17]
 drivers/gpu/drm/meson/meson_dw_mipi_dsi.c:149:44: warning: format specifies
 type 'int' but the argument has type 'unsigned long'

tree:   https://github.com/superna9999/linux odroid-go-ultra-dsi
head:   5ed5cd56bd5cf734df083c37df4ee94d14f1ff18
commit: c94e993c092226c0dfff291ca1b8f03f00ff43a8 [16/17] WiP
config: arm64-randconfig-r003-20221024 (attached as .config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://github.com/superna9999/linux/commit/c94e993c092226c0dfff291ca1b8f03f00ff43a8
        git remote add superna9999 https://github.com/superna9999/linux
        git fetch --no-tags superna9999 odroid-go-ultra-dsi
        git checkout c94e993c092226c0dfff291ca1b8f03f00ff43a8
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/gpu/drm/meson/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/meson/meson_dw_mipi_dsi.c:149:44: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
           pr_info("%s: hs_clk_rate %d\n", __func__, mipi_dsi->phy_opts.mipi_dphy.hs_clk_rate);
                                    ~~               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                    %lu
   include/linux/printk.h:530:34: note: expanded from macro 'pr_info'
           printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
                                   ~~~     ^~~~~~~~~~~
   include/linux/printk.h:457:60: note: expanded from macro 'printk'
   #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
                                                       ~~~    ^~~~~~~~~~~
   include/linux/printk.h:429:19: note: expanded from macro 'printk_index_wrap'
                   _p_func(_fmt, ##__VA_ARGS__);                           \
                           ~~~~    ^~~~~~~~~~~
   1 warning generated.


vim +149 drivers/gpu/drm/meson/meson_dw_mipi_dsi.c

   131	
   132	static int
   133	dw_mipi_dsi_get_lane_mbps(void *priv_data, const struct drm_display_mode *mode,
   134				  unsigned long mode_flags, u32 lanes, u32 format,
   135				  unsigned int *lane_mbps)
   136	{
   137		struct meson_dw_mipi_dsi *mipi_dsi = priv_data;
   138		int bpp;
   139	
   140		mipi_dsi->mode = mode;
   141	
   142		bpp = mipi_dsi_pixel_format_to_bpp(mipi_dsi->dsi_device->format);
   143	
   144		phy_mipi_dphy_get_default_config(mode->clock * 1000,
   145						 bpp, mipi_dsi->dsi_device->lanes,
   146						 &mipi_dsi->phy_opts.mipi_dphy);
   147	
   148		pr_info("%s: mode clock %d\n", __func__, mode->clock * 1000);
 > 149		pr_info("%s: hs_clk_rate %d\n", __func__, mipi_dsi->phy_opts.mipi_dphy.hs_clk_rate);
   150	
   151		*lane_mbps = mipi_dsi->phy_opts.mipi_dphy.hs_clk_rate / 1000000;
   152	
   153		return 0;
   154	}
   155	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Download attachment ".config.gz" of type "application/gzip" (44255 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ