All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philip Li <philip.li@intel.com>
To: Nathan Chancellor <nathan@kernel.org>
Cc: kernel test robot <lkp@intel.com>,
	llvm@lists.linux.dev, Lucas De Marchi <lucas.demarchi@intel.com>,
	oe-kbuild-all@lists.linux.dev,
	Rodrigo Vivi <rodrigo.vivi@intel.com>,
	intel-xe@lists.freedesktop.org
Subject: Re: [drm-xe:drm-xe-next 989/1016] drivers/gpu/drm/xe/xe_wait_user_fence.c:46:2: warning: variable 'passed' is used uninitialized whenever switch default is taken
Date: Tue, 19 Dec 2023 09:03:57 +0800	[thread overview]
Message-ID: <ZYDr/dN2E/EP24a4@rli9-mobl> (raw)
In-Reply-To: <20231218185722.GA2863043@dev-arch.thelio-3990X>

On Mon, Dec 18, 2023 at 11:57:22AM -0700, Nathan Chancellor wrote:
> On Sun, Dec 17, 2023 at 03:28:47AM +0800, kernel test robot wrote:
> > tree:   https://gitlab.freedesktop.org/drm/xe/kernel.git drm-xe-next
> > head:   c54005fdd0347a17088e7ff78070a55bf9103bc4
> > commit: ad7d86415578e1a5deedb0ceed5c281f7367d66d [989/1016] drm/xe: Enable W=1 warnings by default
> > config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20231217/202312170357.KPSinwPs-lkp@intel.com/config)
> > compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
> > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231217/202312170357.KPSinwPs-lkp@intel.com/reproduce)
> > 
> > If you fix the issue in a separate patch/commit (i.e. not just a new version of
> > the same patch/commit), kindly add following tags
> > | Reported-by: kernel test robot <lkp@intel.com>
> > | Closes: https://lore.kernel.org/oe-kbuild-all/202312170357.KPSinwPs-lkp@intel.com/
> > 
> > All warnings (new ones prefixed by >>):
> > 
> >    warning: unknown warning option '-Wrestrict' [-Wunknown-warning-option]
> >    warning: unknown warning option '-Wpacked-not-aligned'; did you mean '-Wpacked-non-pod'? [-Wunknown-warning-option]
> >    warning: unknown warning option '-Wformat-overflow'; did you mean '-Wshift-overflow'? [-Wunknown-warning-option]
> >    warning: unknown warning option '-Wformat-truncation' [-Wunknown-warning-option]
> >    warning: unknown warning option '-Wstringop-overflow'; did you mean '-Wshift-overflow'? [-Wunknown-warning-option]
> >    warning: unknown warning option '-Wstringop-truncation'; did you mean '-Wstring-concatenation'? [-Wunknown-warning-option]
> 
> I am not sure why these warnings are even showing up in the first place,
> they are wrapped with cc-option, which should be catching that they are
> not supported... Is 0day doing something funky with KCFLAGS?

Thanks Nathan for pointing this out, we will fix this issue to avoid showing these warnings.

And the bot does add some flags [1] to make the build more consistent and align with latest
mainline ones.

[1] https://github.com/intel/lkp-tests/blob/master/kbuild/etc/kbuild-kcflags

WARNING: multiple messages have this Message-ID (diff)
From: Philip Li <philip.li@intel.com>
To: Nathan Chancellor <nathan@kernel.org>
Cc: kernel test robot <lkp@intel.com>,
	Lucas De Marchi <lucas.demarchi@intel.com>,
	<llvm@lists.linux.dev>, <oe-kbuild-all@lists.linux.dev>,
	<intel-xe@lists.freedesktop.org>,
	"Rodrigo Vivi" <rodrigo.vivi@intel.com>
Subject: Re: [drm-xe:drm-xe-next 989/1016] drivers/gpu/drm/xe/xe_wait_user_fence.c:46:2: warning: variable 'passed' is used uninitialized whenever switch default is taken
Date: Tue, 19 Dec 2023 09:03:57 +0800	[thread overview]
Message-ID: <ZYDr/dN2E/EP24a4@rli9-mobl> (raw)
In-Reply-To: <20231218185722.GA2863043@dev-arch.thelio-3990X>

On Mon, Dec 18, 2023 at 11:57:22AM -0700, Nathan Chancellor wrote:
> On Sun, Dec 17, 2023 at 03:28:47AM +0800, kernel test robot wrote:
> > tree:   https://gitlab.freedesktop.org/drm/xe/kernel.git drm-xe-next
> > head:   c54005fdd0347a17088e7ff78070a55bf9103bc4
> > commit: ad7d86415578e1a5deedb0ceed5c281f7367d66d [989/1016] drm/xe: Enable W=1 warnings by default
> > config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20231217/202312170357.KPSinwPs-lkp@intel.com/config)
> > compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
> > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231217/202312170357.KPSinwPs-lkp@intel.com/reproduce)
> > 
> > If you fix the issue in a separate patch/commit (i.e. not just a new version of
> > the same patch/commit), kindly add following tags
> > | Reported-by: kernel test robot <lkp@intel.com>
> > | Closes: https://lore.kernel.org/oe-kbuild-all/202312170357.KPSinwPs-lkp@intel.com/
> > 
> > All warnings (new ones prefixed by >>):
> > 
> >    warning: unknown warning option '-Wrestrict' [-Wunknown-warning-option]
> >    warning: unknown warning option '-Wpacked-not-aligned'; did you mean '-Wpacked-non-pod'? [-Wunknown-warning-option]
> >    warning: unknown warning option '-Wformat-overflow'; did you mean '-Wshift-overflow'? [-Wunknown-warning-option]
> >    warning: unknown warning option '-Wformat-truncation' [-Wunknown-warning-option]
> >    warning: unknown warning option '-Wstringop-overflow'; did you mean '-Wshift-overflow'? [-Wunknown-warning-option]
> >    warning: unknown warning option '-Wstringop-truncation'; did you mean '-Wstring-concatenation'? [-Wunknown-warning-option]
> 
> I am not sure why these warnings are even showing up in the first place,
> they are wrapped with cc-option, which should be catching that they are
> not supported... Is 0day doing something funky with KCFLAGS?

Thanks Nathan for pointing this out, we will fix this issue to avoid showing these warnings.

And the bot does add some flags [1] to make the build more consistent and align with latest
mainline ones.

[1] https://github.com/intel/lkp-tests/blob/master/kbuild/etc/kbuild-kcflags

  parent reply	other threads:[~2023-12-19  1:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-16 19:28 [drm-xe:drm-xe-next 989/1016] drivers/gpu/drm/xe/xe_wait_user_fence.c:46:2: warning: variable 'passed' is used uninitialized whenever switch default is taken kernel test robot
2023-12-16 19:28 ` kernel test robot
2023-12-18 18:57 ` Nathan Chancellor
2023-12-18 18:57   ` Nathan Chancellor
2023-12-18 20:28   ` Lucas De Marchi
2023-12-18 20:28     ` Lucas De Marchi
2023-12-19  1:03   ` Philip Li [this message]
2023-12-19  1:03     ` Philip Li

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=ZYDr/dN2E/EP24a4@rli9-mobl \
    --to=philip.li@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=lucas.demarchi@intel.com \
    --cc=nathan@kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=rodrigo.vivi@intel.com \
    /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 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.