From: kernel test robot <lkp@intel.com>
Cc: oe-kbuild-all@lists.linux.dev, Junxiao Chang <junxiao.chang@intel.com>
Subject: [intel-lts:5.10/yocto 12185/29177] drivers/video/fbdev/core/fbmem.c:736:21: warning: attribute declaration must precede definition
Date: Mon, 6 Feb 2023 20:06:02 +0800 [thread overview]
Message-ID: <202302062012.Qv2zmLnI-lkp@intel.com> (raw)
Hi Guenter,
FYI, the error/warning still remains.
tree: https://github.com/intel/linux-intel-lts.git 5.10/yocto
head: a28867696061a1be54960089016434aee399da9d
commit: 3aeb5198342e78c3f2ed6bc9431e492a4550cd2a [12185/29177] fbmem: Mark proc_fb_seq_ops as __maybe_unused
config: i386-randconfig-a004-20230206 (https://download.01.org/0day-ci/archive/20230206/202302062012.Qv2zmLnI-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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
# https://github.com/intel/linux-intel-lts/commit/3aeb5198342e78c3f2ed6bc9431e492a4550cd2a
git remote add intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-lts 5.10/yocto
git checkout 3aeb5198342e78c3f2ed6bc9431e492a4550cd2a
# 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=i386 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/video/fbdev/core/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/video/fbdev/core/fbmem.c:736:21: warning: attribute declaration must precede definition [-Wignored-attributes]
static const struct __maybe_unused seq_operations proc_fb_seq_ops = {
^
include/linux/compiler_attributes.h:267:56: note: expanded from macro '__maybe_unused'
#define __maybe_unused __attribute__((__unused__))
^
include/linux/seq_file.h:31:8: note: previous definition is here
struct seq_operations {
^
1 warning generated.
vim +736 drivers/video/fbdev/core/fbmem.c
735
> 736 static const struct __maybe_unused seq_operations proc_fb_seq_ops = {
737 .start = fb_seq_start,
738 .next = fb_seq_next,
739 .stop = fb_seq_stop,
740 .show = fb_seq_show,
741 };
742
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
reply other threads:[~2023-02-06 12:07 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=202302062012.Qv2zmLnI-lkp@intel.com \
--to=lkp@intel.com \
--cc=junxiao.chang@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
/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.