LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* arch/powerpc/platforms/microwatt/rng.c:17:5: error: no previous prototype for 'microwatt_get_random_darn'
@ 2021-09-09  9:14 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-09-09  9:14 UTC (permalink / raw)
  To: Paul Mackerras
  Cc: kbuild-all, linux-kernel, Michael Ellerman, Nicholas Piggin,
	Segher Boessenkool

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

Hi Paul,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   a3fa7a101dcff93791d1b1bdb3affcad1410c8c1
commit: c25769fddaec13509b6cdc7ad17458f239c4cee7 powerpc/microwatt: Add support for hardware random number generator
date:   3 months ago
config: powerpc-randconfig-c024-20210908 (attached as .config)
compiler: powerpc64le-linux-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c25769fddaec13509b6cdc7ad17458f239c4cee7
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout c25769fddaec13509b6cdc7ad17458f239c4cee7
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.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 errors (new ones prefixed by >>):

>> arch/powerpc/platforms/microwatt/rng.c:17:5: error: no previous prototype for 'microwatt_get_random_darn' [-Werror=missing-prototypes]
      17 | int microwatt_get_random_darn(unsigned long *v)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/microwatt_get_random_darn +17 arch/powerpc/platforms/microwatt/rng.c

    16	
  > 17	int microwatt_get_random_darn(unsigned long *v)
    18	{
    19		unsigned long val;
    20	
    21		/* Using DARN with L=1 - 64-bit conditioned random number */
    22		asm volatile(PPC_DARN(%0, 1) : "=r"(val));
    23	
    24		if (val == DARN_ERR)
    25			return 0;
    26	
    27		*v = val;
    28	
    29		return 1;
    30	}
    31	

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

^ permalink raw reply	[flat|nested] 3+ messages in thread
* arch/powerpc/platforms/microwatt/rng.c:17:5: error: no previous prototype for 'microwatt_get_random_darn'
@ 2021-11-11 21:35 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-11-11 21:35 UTC (permalink / raw)
  To: Paul Mackerras
  Cc: kbuild-all, linux-kernel, Michael Ellerman, Nicholas Piggin,
	Segher Boessenkool

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   debe436e77c72fcee804fb867f275e6d31aa999c
commit: c25769fddaec13509b6cdc7ad17458f239c4cee7 powerpc/microwatt: Add support for hardware random number generator
date:   5 months ago
config: powerpc64-buildonly-randconfig-r002-20210929 (attached as .config)
compiler: powerpc64le-linux-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c25769fddaec13509b6cdc7ad17458f239c4cee7
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout c25769fddaec13509b6cdc7ad17458f239c4cee7
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.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 errors (new ones prefixed by >>):

>> arch/powerpc/platforms/microwatt/rng.c:17:5: error: no previous prototype for 'microwatt_get_random_darn' [-Werror=missing-prototypes]
      17 | int microwatt_get_random_darn(unsigned long *v)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/microwatt_get_random_darn +17 arch/powerpc/platforms/microwatt/rng.c

    16	
  > 17	int microwatt_get_random_darn(unsigned long *v)
    18	{
    19		unsigned long val;
    20	
    21		/* Using DARN with L=1 - 64-bit conditioned random number */
    22		asm volatile(PPC_DARN(%0, 1) : "=r"(val));
    23	
    24		if (val == DARN_ERR)
    25			return 0;
    26	
    27		*v = val;
    28	
    29		return 1;
    30	}
    31	

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

^ permalink raw reply	[flat|nested] 3+ messages in thread
* arch/powerpc/platforms/microwatt/rng.c:17:5: error: no previous prototype for 'microwatt_get_random_darn'
@ 2021-08-18  5:52 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-08-18  5:52 UTC (permalink / raw)
  To: Paul Mackerras
  Cc: kbuild-all, linux-kernel, Michael Ellerman, Nicholas Piggin,
	Segher Boessenkool

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   614cb2751d3150850d459bee596c397f344a7936
commit: c25769fddaec13509b6cdc7ad17458f239c4cee7 powerpc/microwatt: Add support for hardware random number generator
date:   8 weeks ago
config: powerpc-randconfig-r003-20210818 (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c25769fddaec13509b6cdc7ad17458f239c4cee7
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout c25769fddaec13509b6cdc7ad17458f239c4cee7
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.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 errors (new ones prefixed by >>):

>> arch/powerpc/platforms/microwatt/rng.c:17:5: error: no previous prototype for 'microwatt_get_random_darn' [-Werror=missing-prototypes]
      17 | int microwatt_get_random_darn(unsigned long *v)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/microwatt_get_random_darn +17 arch/powerpc/platforms/microwatt/rng.c

    16	
  > 17	int microwatt_get_random_darn(unsigned long *v)
    18	{
    19		unsigned long val;
    20	
    21		/* Using DARN with L=1 - 64-bit conditioned random number */
    22		asm volatile(PPC_DARN(%0, 1) : "=r"(val));
    23	
    24		if (val == DARN_ERR)
    25			return 0;
    26	
    27		*v = val;
    28	
    29		return 1;
    30	}
    31	

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-11 21:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-09  9:14 arch/powerpc/platforms/microwatt/rng.c:17:5: error: no previous prototype for 'microwatt_get_random_darn' kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-11-11 21:35 kernel test robot
2021-08-18  5:52 kernel test robot

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).