All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org
Cc: oe-kbuild-all@lists.linux.dev
Subject: [openeuler:openEuler-1.0-LTS 15515/21561] arch/x86/events/zhaoxin/core.c:505:1: warning: attribute declaration must precede definition
Date: Sat, 20 Jan 2024 18:48:17 +0800	[thread overview]
Message-ID: <202401201844.FPamnRdN-lkp@intel.com> (raw)

tree:   https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head:   0d29fbb6f9321a629cbf0ca30f15ce6f333ed7b9
commit: 0ce7c3b6e8a986ee9ef92a07ae18964835446c07 [15515/21561] x86/perf: Add hardware performance events support for Zhaoxin CPU.
config: x86_64-randconfig-014-20240120 (https://download.01.org/0day-ci/archive/20240120/202401201844.FPamnRdN-lkp@intel.com/config)
compiler: ClangBuiltLinux clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240120/202401201844.FPamnRdN-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/202401201844.FPamnRdN-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> arch/x86/events/zhaoxin/core.c:505:1: warning: attribute declaration must precede definition [-Wignored-attributes]
     505 | __init int zhaoxin_pmu_init(void)
         | ^
   include/linux/init.h:50:17: note: expanded from macro '__init'
      50 | #define __init          __section(.init.text) __cold  __latent_entropy __noinitretpoline
         |                         ^
   include/linux/compiler_types.h:222:38: note: expanded from macro '__section'
     222 | #define __section(S)            __attribute__((__section__(#S)))
         |                                                ^
   arch/x86/events/zhaoxin/../perf_event.h:1054:19: note: previous definition is here
    1054 | static inline int zhaoxin_pmu_init(void)
         |                   ^
>> arch/x86/events/zhaoxin/core.c:505:1: warning: attribute declaration must precede definition [-Wignored-attributes]
     505 | __init int zhaoxin_pmu_init(void)
         | ^
   include/linux/init.h:50:39: note: expanded from macro '__init'
      50 | #define __init          __section(.init.text) __cold  __latent_entropy __noinitretpoline
         |                                               ^
   include/linux/compiler_types.h:221:33: note: expanded from macro '__cold'
     221 | #define __cold                  __attribute__((cold))
         |                                                ^
   arch/x86/events/zhaoxin/../perf_event.h:1054:19: note: previous definition is here
    1054 | static inline int zhaoxin_pmu_init(void)
         |                   ^
   arch/x86/events/zhaoxin/core.c:505:12: error: redefinition of 'zhaoxin_pmu_init'
     505 | __init int zhaoxin_pmu_init(void)
         |            ^
   arch/x86/events/zhaoxin/../perf_event.h:1054:19: note: previous definition is here
    1054 | static inline int zhaoxin_pmu_init(void)
         |                   ^
   2 warnings and 1 error generated.


vim +505 arch/x86/events/zhaoxin/core.c

   504	
 > 505	__init int zhaoxin_pmu_init(void)

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2024-01-20 10:48 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=202401201844.FPamnRdN-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kernel@openeuler.org \
    --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.