linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Haneen Mohammed <hamohammed.sa@gmail.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	"Daniel Vetter" <daniel.vetter@ffwll.ch>,
	"Sean Paul" <seanpaul@chromium.org>,
	"Stéphane Marchesin" <marcheu@chromium.org>,
	"Kristian H. Kristensen" <hoegsberg@chromium.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
Date: Tue, 10 May 2022 18:27:39 +0800	[thread overview]
Message-ID: <202205101800.K4r0yQWF-lkp@intel.com> (raw)

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@intel.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

                 reply	other threads:[~2022-05-10 10:28 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=202205101800.K4r0yQWF-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=daniel.vetter@ffwll.ch \
    --cc=hamohammed.sa@gmail.com \
    --cc=hoegsberg@chromium.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcheu@chromium.org \
    --cc=seanpaul@chromium.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;
as well as URLs for NNTP newsgroup(s).