linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>, mpe@ellerman.id.au
Cc: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>,
	kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	paulus@samba.org, linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH] powerpc: Fix duplicate included _clear.h
Date: Tue, 8 Jun 2021 04:01:08 +0800	[thread overview]
Message-ID: <202106080357.460bdhVR-lkp@intel.com> (raw)
In-Reply-To: <1623061512-31651-1-git-send-email-jiapeng.chong@linux.alibaba.com>

[-- Attachment #1: Type: text/plain, Size: 3861 bytes --]

Hi Jiapeng,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on powerpc/next]
[also build test WARNING on v5.13-rc5 next-20210607]
[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/0day-ci/linux/commits/Jiapeng-Chong/powerpc-Fix-duplicate-included-_clear-h/20210607-182626
base:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc-allmodconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0
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/0day-ci/linux/commit/9ee542baa91ad7cfa1e498c539ffb42b8d7f07b0
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Jiapeng-Chong/powerpc-Fix-duplicate-included-_clear-h/20210607-182626
        git checkout 9ee542baa91ad7cfa1e498c539ffb42b8d7f07b0
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc 

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 arch/powerpc/perf/hv-gpci.h:29,
                    from arch/powerpc/perf/hv-gpci.c:18:
>> arch/powerpc/perf/req-gen/perf.h:57: warning: "REQUEST_" redefined
      57 | #define REQUEST_(r_name, r_value, r_idx_1, r_fields) \
         | 
   In file included from arch/powerpc/perf/hv-gpci.h:29,
                    from arch/powerpc/perf/hv-gpci.c:18:
   arch/powerpc/perf/req-gen/perf.h:42: note: this is the location of the previous definition
      42 | #define REQUEST_(r_name, r_value, r_idx_1, r_fields) \
         | 


vim +/REQUEST_ +57 arch/powerpc/perf/req-gen/perf.h

9e9f60108423f1 Cody P Schafer 2015-01-30  47  
9e9f60108423f1 Cody P Schafer 2015-01-30  48  /*
9e9f60108423f1 Cody P Schafer 2015-01-30  49   * For each request:
9e9f60108423f1 Cody P Schafer 2015-01-30  50   * struct <NAME_LOWER>_<request name> {
9e9f60108423f1 Cody P Schafer 2015-01-30  51   *	r_fields
9e9f60108423f1 Cody P Schafer 2015-01-30  52   * };
9e9f60108423f1 Cody P Schafer 2015-01-30  53   */
9e9f60108423f1 Cody P Schafer 2015-01-30  54  #define STRUCT_NAME__(name_lower, r_name) name_lower ## _ ## r_name
9e9f60108423f1 Cody P Schafer 2015-01-30  55  #define STRUCT_NAME_(name_lower, r_name) STRUCT_NAME__(name_lower, r_name)
9e9f60108423f1 Cody P Schafer 2015-01-30  56  #define STRUCT_NAME(r_name) STRUCT_NAME_(NAME_LOWER, r_name)
9e9f60108423f1 Cody P Schafer 2015-01-30 @57  #define REQUEST_(r_name, r_value, r_idx_1, r_fields)	\
9e9f60108423f1 Cody P Schafer 2015-01-30  58  struct STRUCT_NAME(r_name) {				\
9e9f60108423f1 Cody P Schafer 2015-01-30  59  	r_fields					\
9e9f60108423f1 Cody P Schafer 2015-01-30  60  };
9e9f60108423f1 Cody P Schafer 2015-01-30  61  #define __field_(r_name, r_value, r_idx_1, f_offset, f_bytes, f_name) \
9e9f60108423f1 Cody P Schafer 2015-01-30  62  	BYTES_TO_BE_TYPE(f_bytes) f_name;
9e9f60108423f1 Cody P Schafer 2015-01-30  63  #define __count_(r_name, r_value, r_idx_1, f_offset, f_bytes, f_name) \
9e9f60108423f1 Cody P Schafer 2015-01-30  64  	__field_(r_name, r_value, r_idx_1, f_offset, f_bytes, f_name)
9e9f60108423f1 Cody P Schafer 2015-01-30  65  #define __array_(r_name, r_value, r_idx_1, a_offset, a_bytes, a_name) \
9e9f60108423f1 Cody P Schafer 2015-01-30  66  	__u8 a_name[a_bytes];
9e9f60108423f1 Cody P Schafer 2015-01-30  67  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 73346 bytes --]

  reply	other threads:[~2021-06-07 20:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-07 10:25 [PATCH] powerpc: Fix duplicate included _clear.h Jiapeng Chong
2021-06-07 20:01 ` kernel test robot [this message]
2021-06-08  2:26 ` Michael Ellerman

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=202106080357.460bdhVR-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jiapeng.chong@linux.alibaba.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=mpe@ellerman.id.au \
    --cc=paulus@samba.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;
as well as URLs for NNTP newsgroup(s).