mirror of https://lore.kernel.org/lkml/
 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,
	"Sean Paul" <seanpaul@chromium.org>,
	"Dominik Behr" <dbehr@chromium.org>,
	"Stéphane Marchesin" <marcheu@chromium.org>
Subject: [jsarha:backport/cros-v4.14-intel-audio 5196/9999] include/drm/drm_print.h:217:2: error: this statement may fall through
Date: Fri, 15 Apr 2022 13:30:17 +0800	[thread overview]
Message-ID: <202204151349.1jkLAiYB-lkp@intel.com> (raw)

Hi Haneen,

FYI, the error/warning still remains.

tree:   https://github.com/jsarha/linux backport/cros-v4.14-intel-audio
head:   ed5b3159902598be61b23ef22a235d9b1eaa9ad8
commit: 27e31e8e0e7a44982813ec603246138eee221bd4 [5196/9999] BACKPORT: drm: Move debug macros out of drmP.h
config: i386-randconfig-a011-20220411 (https://download.01.org/0day-ci/archive/20220415/202204151349.1jkLAiYB-lkp@intel.com/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build):
        # https://github.com/jsarha/linux/commit/27e31e8e0e7a44982813ec603246138eee221bd4
        git remote add jsarha https://github.com/jsarha/linux
        git fetch --no-tags jsarha backport/cros-v4.14-intel-audio
        git checkout 27e31e8e0e7a44982813ec603246138eee221bd4
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/i915/

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

All errors (new ones prefixed by >>):

   In file included from include/drm/drm_mm.h:49:0,
                    from include/drm/drmP.h:73,
                    from drivers/gpu/drm/i915/i915_drv.h:47,
                    from drivers/gpu/drm/i915/intel_drv.h:33,
                    from drivers/gpu/drm/i915/intel_cdclk.c:24:
   drivers/gpu/drm/i915/intel_cdclk.c: In function 'pnv_get_cdclk':
>> include/drm/drm_print.h:217:2: error: this statement may fall through [-Werror=implicit-fallthrough=]
     drm_printk(KERN_ERR, DRM_UT_NONE, fmt, ##__VA_ARGS__)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/intel_cdclk.c:318:3: note: in expansion of macro 'DRM_ERROR'
      DRM_ERROR("Unknown pnv display core clock 0x%04x\n", gcfgc);
      ^~~~~~~~~
   drivers/gpu/drm/i915/intel_cdclk.c:319:2: note: here
     case GC_DISPLAY_CLOCK_133_MHZ_PNV:
     ^~~~
   cc1: all warnings being treated as errors


vim +217 include/drm/drm_print.h

   186	
   187	#define _DRM_PRINTK(once, level, fmt, ...)				\
   188		do {								\
   189			printk##once(KERN_##level "[" DRM_NAME "] " fmt,	\
   190				     ##__VA_ARGS__);				\
   191		} while (0)
   192	
   193	#define DRM_INFO(fmt, ...)						\
   194		_DRM_PRINTK(, INFO, fmt, ##__VA_ARGS__)
   195	#define DRM_NOTE(fmt, ...)						\
   196		_DRM_PRINTK(, NOTICE, fmt, ##__VA_ARGS__)
   197	#define DRM_WARN(fmt, ...)						\
   198		_DRM_PRINTK(, WARNING, fmt, ##__VA_ARGS__)
   199	
   200	#define DRM_INFO_ONCE(fmt, ...)						\
   201		_DRM_PRINTK(_once, INFO, fmt, ##__VA_ARGS__)
   202	#define DRM_NOTE_ONCE(fmt, ...)						\
   203		_DRM_PRINTK(_once, NOTICE, fmt, ##__VA_ARGS__)
   204	#define DRM_WARN_ONCE(fmt, ...)						\
   205		_DRM_PRINTK(_once, WARNING, fmt, ##__VA_ARGS__)
   206	
   207	/**
   208	 * Error output.
   209	 *
   210	 * \param fmt printf() like format string.
   211	 * \param arg arguments
   212	 */
   213	#define DRM_DEV_ERROR(dev, fmt, ...)					\
   214		drm_dev_printk(dev, KERN_ERR, DRM_UT_NONE, __func__, " *ERROR*",\
   215			       fmt, ##__VA_ARGS__)
   216	#define DRM_ERROR(fmt, ...)						\
 > 217		drm_printk(KERN_ERR, DRM_UT_NONE, fmt,	##__VA_ARGS__)
   218	

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

                 reply	other threads:[~2022-04-15  5:30 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=202204151349.1jkLAiYB-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dbehr@chromium.org \
    --cc=hamohammed.sa@gmail.com \
    --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

all inboxes | Powered by JetHome®