public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org
Subject: Re: [RFC V2 1/8] perf: Consolidate branch sample filter helpers
Date: Wed, 13 Apr 2022 03:02:59 +0800	[thread overview]
Message-ID: <202204130219.KG5G7zyU-lkp@intel.com> (raw)
In-Reply-To: <20220412115455.293119-2-anshuman.khandual@arm.com>

Hi Anshuman,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on arm64/for-next/core]
[also build test WARNING on linus/master linux/master v5.18-rc2]
[cannot apply to tip/perf/core tip/master next-20220412]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/intel-lab-lkp/linux/commits/Anshuman-Khandual/arm64-perf-Enable-branch-stack-sampling/20220412-204141
base:   https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: i386-randconfig-a001-20220411 (https://download.01.org/0day-ci/archive/20220413/202204130219.KG5G7zyU-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project fe2478d44e4f7f191c43fef629ac7a23d0251e72)
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-lab-lkp/linux/commit/6d93333c8ddf355a33ed0f51718603406412afbb
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Anshuman-Khandual/arm64-perf-Enable-branch-stack-sampling/20220412-204141
        git checkout 6d93333c8ddf355a33ed0f51718603406412afbb
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

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

All warnings (new ones prefixed by >>):

   In file included from ipc/msg.c:35:
   In file included from include/linux/syscalls.h:88:
   In file included from include/trace/syscall.h:7:
   In file included from include/linux/trace_events.h:10:
   include/linux/perf_event.h:1685:42: error: use of undeclared identifier 'PERF_SAMPLE_BRANCH_PRIV_SAVE'; did you mean 'PERF_SAMPLE_BRANCH_TYPE_SAVE'?
           return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_PRIV_SAVE;
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                   PERF_SAMPLE_BRANCH_TYPE_SAVE
   include/uapi/linux/perf_event.h:231:2: note: 'PERF_SAMPLE_BRANCH_TYPE_SAVE' declared here
           PERF_SAMPLE_BRANCH_TYPE_SAVE    =
           ^
>> ipc/msg.c:496:20: warning: implicit conversion from 'int' to 'unsigned short' changes value from 32768000 to 0 [-Wconstant-conversion]
           msginfo->msgseg = MSGSEG;
                           ~ ^~~~~~
   include/uapi/linux/msg.h:87:38: note: expanded from macro 'MSGSEG'
   #define MSGSEG (__MSGSEG <= 0xffff ? __MSGSEG : 0xffff)
                                        ^~~~~~~~
   include/uapi/linux/msg.h:86:36: note: expanded from macro '__MSGSEG'
   #define __MSGSEG ((MSGPOOL * 1024) / MSGSSZ) /* max no. of segments */
                     ~~~~~~~~~~~~~~~~~^~~~~~~~
   1 warning and 1 error generated.


vim +496 ipc/msg.c

a0d092fc2df845 Pierre Peiffer  2008-04-29  475  
156d9ed1260ee5 Al Viro         2017-07-09  476  static int msgctl_info(struct ipc_namespace *ns, int msqid,
156d9ed1260ee5 Al Viro         2017-07-09  477  			 int cmd, struct msginfo *msginfo)
a0d092fc2df845 Pierre Peiffer  2008-04-29  478  {
2cafed30f150f7 Davidlohr Bueso 2013-07-08  479  	int err;
27c331a1746142 Manfred Spraul  2018-08-21  480  	int max_idx;
5a06a363ef4844 Ingo Molnar     2006-07-30  481  
5a06a363ef4844 Ingo Molnar     2006-07-30  482  	/*
5a06a363ef4844 Ingo Molnar     2006-07-30  483  	 * We must not return kernel stack data.
^1da177e4c3f41 Linus Torvalds  2005-04-16  484  	 * due to padding, it's not enough
^1da177e4c3f41 Linus Torvalds  2005-04-16  485  	 * to set all member fields.
^1da177e4c3f41 Linus Torvalds  2005-04-16  486  	 */
^1da177e4c3f41 Linus Torvalds  2005-04-16  487  	err = security_msg_queue_msgctl(NULL, cmd);
^1da177e4c3f41 Linus Torvalds  2005-04-16  488  	if (err)
^1da177e4c3f41 Linus Torvalds  2005-04-16  489  		return err;
^1da177e4c3f41 Linus Torvalds  2005-04-16  490  
156d9ed1260ee5 Al Viro         2017-07-09  491  	memset(msginfo, 0, sizeof(*msginfo));
156d9ed1260ee5 Al Viro         2017-07-09  492  	msginfo->msgmni = ns->msg_ctlmni;
156d9ed1260ee5 Al Viro         2017-07-09  493  	msginfo->msgmax = ns->msg_ctlmax;
156d9ed1260ee5 Al Viro         2017-07-09  494  	msginfo->msgmnb = ns->msg_ctlmnb;
156d9ed1260ee5 Al Viro         2017-07-09  495  	msginfo->msgssz = MSGSSZ;
156d9ed1260ee5 Al Viro         2017-07-09 @496  	msginfo->msgseg = MSGSEG;
d9a605e40b1376 Davidlohr Bueso 2013-09-11  497  	down_read(&msg_ids(ns).rwsem);
^1da177e4c3f41 Linus Torvalds  2005-04-16  498  	if (cmd == MSG_INFO) {
156d9ed1260ee5 Al Viro         2017-07-09  499  		msginfo->msgpool = msg_ids(ns).in_use;
156d9ed1260ee5 Al Viro         2017-07-09  500  		msginfo->msgmap = atomic_read(&ns->msg_hdrs);
156d9ed1260ee5 Al Viro         2017-07-09  501  		msginfo->msgtql = atomic_read(&ns->msg_bytes);
^1da177e4c3f41 Linus Torvalds  2005-04-16  502  	} else {
156d9ed1260ee5 Al Viro         2017-07-09  503  		msginfo->msgmap = MSGMAP;
156d9ed1260ee5 Al Viro         2017-07-09  504  		msginfo->msgpool = MSGPOOL;
156d9ed1260ee5 Al Viro         2017-07-09  505  		msginfo->msgtql = MSGTQL;
^1da177e4c3f41 Linus Torvalds  2005-04-16  506  	}
27c331a1746142 Manfred Spraul  2018-08-21  507  	max_idx = ipc_get_maxidx(&msg_ids(ns));
d9a605e40b1376 Davidlohr Bueso 2013-09-11  508  	up_read(&msg_ids(ns).rwsem);
27c331a1746142 Manfred Spraul  2018-08-21  509  	return (max_idx < 0) ? 0 : max_idx;
^1da177e4c3f41 Linus Torvalds  2005-04-16  510  }
2cafed30f150f7 Davidlohr Bueso 2013-07-08  511  

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

      parent reply	other threads:[~2022-04-12 19:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20220412115455.293119-2-anshuman.khandual@arm.com>
2022-04-12 18:00 ` [RFC V2 1/8] perf: Consolidate branch sample filter helpers kernel test robot
2022-04-12 18:00 ` kernel test robot
2022-04-12 19:02 ` kernel test robot [this message]

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=202204130219.KG5G7zyU-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=anshuman.khandual@arm.com \
    --cc=kbuild-all@lists.01.org \
    --cc=llvm@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox