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: <202205101800.K4r0yQWF-lkp@intel.com>
Date:   Tue, 10 May 2022 18:27:39 +0800
From:   kernel test robot <lkp@...el.com>
To:     Haneen Mohammed <hamohammed.sa@...il.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Daniel Vetter <daniel.vetter@...ll.ch>,
        Sean Paul <seanpaul@...omium.org>,
        Stéphane Marchesin <marcheu@...omium.org>,
        "Kristian H. Kristensen" <hoegsberg@...omium.org>
Subject: [jsarha:topic/cros-sof-v4.19 1170/6555]
 drivers/gpu/drm/vkms/vkms_drv.h:23:18: warning: 'vkms_cursor_formats'
 defined but not used

tree:   https://github.com/jsarha/linux topic/cros-sof-v4.19
head:   d7a3e91d8d16d1ef8653deec5a1fffc4de034a0c
commit: ad949a53c5680265ac89dff6003c02178891e079 [1170/6555] UPSTREAM: drm/vkms: Add cursor plane support
config: i386-randconfig-a001-20220509 (https://download.01.org/0day-ci/archive/20220510/202205101800.K4r0yQWF-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.2.0-20) 11.2.0
reproduce (this is a W=1 build):
        # https://github.com/jsarha/linux/commit/ad949a53c5680265ac89dff6003c02178891e079
        git remote add jsarha https://github.com/jsarha/linux
        git fetch --no-tags jsarha topic/cros-sof-v4.19
        git checkout ad949a53c5680265ac89dff6003c02178891e079
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/

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

All warnings (new ones prefixed by >>):

   In file included from drivers/gpu/drm/vkms/vkms_drv.c:8:
   include/linux/module.h:134:13: warning: 'init_module' specifies less restrictive attribute than its target 'vkms_init': 'cold' [-Wmissing-attributes]
     134 |         int init_module(void) __attribute__((alias(#initfn)));
         |             ^~~~~~~~~~~
   drivers/gpu/drm/vkms/vkms_drv.c:151:1: note: in expansion of macro 'module_init'
     151 | module_init(vkms_init);
         | ^~~~~~~~~~~
   drivers/gpu/drm/vkms/vkms_drv.c:90:19: note: 'init_module' target declared here
      90 | static int __init vkms_init(void)
         |                   ^~~~~~~~~
   In file included from drivers/gpu/drm/vkms/vkms_drv.c:8:
   include/linux/module.h:140:14: warning: 'cleanup_module' specifies less restrictive attribute than its target 'vkms_exit': 'cold' [-Wmissing-attributes]
     140 |         void cleanup_module(void) __attribute__((alias(#exitfn)));
         |              ^~~~~~~~~~~~~~
   drivers/gpu/drm/vkms/vkms_drv.c:152:1: note: in expansion of macro 'module_exit'
     152 | module_exit(vkms_exit);
         | ^~~~~~~~~~~
   drivers/gpu/drm/vkms/vkms_drv.c:138:20: note: 'cleanup_module' target declared here
     138 | static void __exit vkms_exit(void)
         |                    ^~~~~~~~~
   In file included from drivers/gpu/drm/vkms/vkms_drv.c:14:
>> drivers/gpu/drm/vkms/vkms_drv.h:23:18: warning: 'vkms_cursor_formats' defined but not used [-Wunused-const-variable=]
      23 | static const u32 vkms_cursor_formats[] = {
         |                  ^~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/vkms/vkms_drv.h:19:18: warning: 'vkms_formats' defined but not used [-Wunused-const-variable=]
      19 | static const u32 vkms_formats[] = {
         |                  ^~~~~~~~~~~~
--
   In file included from drivers/gpu/drm/vkms/vkms_output.c:9:
>> drivers/gpu/drm/vkms/vkms_drv.h:23:18: warning: 'vkms_cursor_formats' defined but not used [-Wunused-const-variable=]
      23 | static const u32 vkms_cursor_formats[] = {
         |                  ^~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/vkms/vkms_drv.h:19:18: warning: 'vkms_formats' defined but not used [-Wunused-const-variable=]
      19 | static const u32 vkms_formats[] = {
         |                  ^~~~~~~~~~~~
--
   drivers/gpu/drm/vkms/vkms_crtc.c: In function 'vkms_vblank_simulate':
   drivers/gpu/drm/vkms/vkms_crtc.c:47:13: warning: variable 'ret_overrun' set but not used [-Wunused-but-set-variable]
      47 |         int ret_overrun;
         |             ^~~~~~~~~~~
   In file included from drivers/gpu/drm/vkms/vkms_crtc.c:9:
   At top level:
>> drivers/gpu/drm/vkms/vkms_drv.h:23:18: warning: 'vkms_cursor_formats' defined but not used [-Wunused-const-variable=]
      23 | static const u32 vkms_cursor_formats[] = {
         |                  ^~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/vkms/vkms_drv.h:19:18: warning: 'vkms_formats' defined but not used [-Wunused-const-variable=]
      19 | static const u32 vkms_formats[] = {
         |                  ^~~~~~~~~~~~


vim +/vkms_cursor_formats +23 drivers/gpu/drm/vkms/vkms_drv.h

    22	
  > 23	static const u32 vkms_cursor_formats[] = {
    24		DRM_FORMAT_ARGB8888,
    25	};
    26	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ