mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Will Deacon <will.deacon@arm.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
	"Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Subject: [rcu:rcu/alpha 1/19] arch/sparc/include/asm/ptrace.h:102:6: error: implicit declaration of function 'unlikely'
Date: Fri, 20 Oct 2017 05:17:54 +0800	[thread overview]
Message-ID: <201710200544.b2SdiflF%fengguang.wu@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/alpha
head:   3b0c617a7b93610d4ab0894f3a6406e2c14a2d55
commit: c9fa4f5af10c9ae96f30764c4c9d0f9ca429a566 [1/19] linux/compiler.h: Split into compiler.h and compiler-types.h
config: sparc64-allyesconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout c9fa4f5af10c9ae96f30764c4c9d0f9ca429a566
        # save the attached .config to linux build tree
        make.cross ARCH=sparc64 

All errors (new ones prefixed by >>):

   In file included from arch/sparc/include/asm/processor_64.h:18:0,
                    from arch/sparc/include/asm/processor.h:4,
                    from include/linux/prefetch.h:14,
                    from drivers/net/ethernet/emulex/benet/be_main.c:18:
   arch/sparc/include/asm/ptrace.h: In function 'regs_get_register':
>> arch/sparc/include/asm/ptrace.h:102:6: error: implicit declaration of function 'unlikely' [-Werror=implicit-function-declaration]
     if (unlikely(offset >= MAX_REG_OFFSET))
         ^~~~~~~~
   cc1: some warnings being treated as errors

vim +/unlikely +102 arch/sparc/include/asm/ptrace.h

e8f4aa60 Allen Pais 2016-10-13   88  
e8f4aa60 Allen Pais 2016-10-13   89  /**
e8f4aa60 Allen Pais 2016-10-13   90   * regs_get_register() - get register value from its offset
e8f4aa60 Allen Pais 2016-10-13   91   * @regs:	pt_regs from which register value is gotten
e8f4aa60 Allen Pais 2016-10-13   92   * @offset:	offset number of the register.
e8f4aa60 Allen Pais 2016-10-13   93   *
e8f4aa60 Allen Pais 2016-10-13   94   * regs_get_register returns the value of a register whose
e8f4aa60 Allen Pais 2016-10-13   95   * offset from @regs. The @offset is the offset of the register
e8f4aa60 Allen Pais 2016-10-13   96   * in struct pt_regs. If @offset is bigger than MAX_REG_OFFSET,
e8f4aa60 Allen Pais 2016-10-13   97   * this returns 0.
e8f4aa60 Allen Pais 2016-10-13   98   */
e8f4aa60 Allen Pais 2016-10-13   99  static inline unsigned long regs_get_register(struct pt_regs *regs,
e8f4aa60 Allen Pais 2016-10-13  100  					     unsigned long offset)
e8f4aa60 Allen Pais 2016-10-13  101  {
e8f4aa60 Allen Pais 2016-10-13 @102  	if (unlikely(offset >= MAX_REG_OFFSET))
e8f4aa60 Allen Pais 2016-10-13  103  		return 0;
e8f4aa60 Allen Pais 2016-10-13  104  	if (offset == PT_V9_Y)
e8f4aa60 Allen Pais 2016-10-13  105  		return *(unsigned int *)((unsigned long)regs + offset);
e8f4aa60 Allen Pais 2016-10-13  106  	return *(unsigned long *)((unsigned long)regs + offset);
e8f4aa60 Allen Pais 2016-10-13  107  }
e8f4aa60 Allen Pais 2016-10-13  108  

:::::: The code at line 102 was first introduced by commit
:::::: e8f4aa6087fa80732382881ef7c0c96733bb1984 sparc64:Support User Probes for sparc

:::::: TO: Allen Pais <allen.pais@oracle.com>
:::::: CC: David S. Miller <davem@davemloft.net>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

             reply	other threads:[~2017-10-19 21:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-19 21:17 kbuild test robot [this message]
2017-10-20  9:36 ` Will Deacon
2017-10-20 16:39   ` Paul E. McKenney
2017-10-20 16:43     ` Will Deacon
2017-10-20 16:51       ` Paul E. McKenney

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=201710200544.b2SdiflF%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paulmck@linux.vnet.ibm.com \
    --cc=will.deacon@arm.com \
    /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

Powered by JetHome