All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 9589/14131] kernel//debug/debug_core.c:420:5: warning: no previous prototype for function 'kgdb_has_hit_break'
@ 2020-05-29 20:28 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-29 20:28 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   e7b08814b16b80a0bf76eeca16317f8c2ed23b8c
commit: f83b04d36e52cc3d941120ec859374fcda36eb31 [9589/14131] kgdb: Add kgdb_has_hit_break function
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 2d068e534f1671459e1b135852c1b3c10502e929)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        git checkout f83b04d36e52cc3d941120ec859374fcda36eb31
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All warnings (new ones prefixed by >>, old ones prefixed by <<):

>> kernel//debug/debug_core.c:420:5: warning: no previous prototype for function 'kgdb_has_hit_break' [-Wmissing-prototypes]
int kgdb_has_hit_break(unsigned long addr)
^
kernel//debug/debug_core.c:420:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int kgdb_has_hit_break(unsigned long addr)
^
static
1 warning generated.

vim +/kgdb_has_hit_break +420 kernel//debug/debug_core.c

   419	
 > 420	int kgdb_has_hit_break(unsigned long addr)
   421	{
   422		int i;
   423	
   424		for (i = 0; i < KGDB_MAX_BREAKPOINTS; i++) {
   425			if (kgdb_break[i].state == BP_ACTIVE &&
   426			    kgdb_break[i].bpt_addr == addr)
   427				return 1;
   428		}
   429		return 0;
   430	}
   431	

---
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: 73449 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-05-29 20:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-29 20:28 [linux-next:master 9589/14131] kernel//debug/debug_core.c:420:5: warning: no previous prototype for function 'kgdb_has_hit_break' kbuild test robot

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.