public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [peterz-queue:core/guards 57/58] kernel/events/core.c:7980:2: error: expected expression
Date: Sat, 10 Jun 2023 08:55:40 +0800	[thread overview]
Message-ID: <202306100841.VgslriZP-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git core/guards
head:   dd132e83d180b932488bcf612576529e6163a1ea
commit: a814a98b2c087f7cdb2b6c08d227b25eacecb08c [57/58] perf: Simplify perf_pmu_output_stop()
config: arm64-buildonly-randconfig-r004-20230610 (https://download.01.org/0day-ci/archive/20230610/202306100841.VgslriZP-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce (this is a W=1 build):
        mkdir -p ~/bin
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=a814a98b2c087f7cdb2b6c08d227b25eacecb08c
        git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
        git fetch --no-tags peterz-queue core/guards
        git checkout a814a98b2c087f7cdb2b6c08d227b25eacecb08c
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash kernel/events/

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/202306100841.VgslriZP-lkp@intel.com/

All errors (new ones prefixed by >>):

>> kernel/events/core.c:7980:2: error: expected expression
    7980 |         guard(rcu)();
         |         ^
   include/linux/cleanup.h:105:2: note: expanded from macro 'guard'
     105 |         CLASS(name, __UNIQUE_ID(guard))
         |         ^
   include/linux/cleanup.h:82:2: note: expanded from macro 'CLASS'
      82 |         class_##name##_t var __cleanup(class_##name##_destructor) =     \
         |         ^
   <scratch space>:36:1: note: expanded from here
      36 | class_rcu_t
         | ^
   kernel/events/core.c:11321:6: warning: no previous prototype for function '__perf_pmu_unregister' [-Wmissing-prototypes]
    11321 | void __perf_pmu_unregister(struct pmu *pmu)
          |      ^
   kernel/events/core.c:11321:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    11321 | void __perf_pmu_unregister(struct pmu *pmu)
          | ^
          | static 
   1 warning and 1 error generated.


vim +7980 kernel/events/core.c

  7973	
  7974	static void perf_pmu_output_stop(struct perf_event *event)
  7975	{
  7976		struct perf_event *iter;
  7977		int err, cpu;
  7978	
  7979	restart:
> 7980		guard(rcu)();
  7981		list_for_each_entry_rcu(iter, &event->rb->event_list, rb_entry) {
  7982			/*
  7983			 * For per-CPU events, we need to make sure that neither they
  7984			 * nor their children are running; for cpu==-1 events it's
  7985			 * sufficient to stop the event itself if it's active, since
  7986			 * it can't have children.
  7987			 */
  7988			cpu = iter->cpu;
  7989			if (cpu == -1)
  7990				cpu = READ_ONCE(iter->oncpu);
  7991	
  7992			if (cpu == -1)
  7993				continue;
  7994	
  7995			err = cpu_function_call(cpu, __perf_pmu_output_stop, event);
  7996			if (err == -EAGAIN)
  7997				goto restart;
  7998		}
  7999	}
  8000	

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

             reply	other threads:[~2023-06-10  0:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-10  0:55 kernel test robot [this message]
2023-06-10  8:00 ` [peterz-queue:core/guards 57/58] kernel/events/core.c:7980:2: error: expected expression Peter Zijlstra

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=202306100841.VgslriZP-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=peterz@infradead.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