All of lore.kernel.org
 help / color / mirror / Atom feed
* [brauner:do_fork_removal_sparc 2/3] arch/sparc/kernel/process.c:18:17: error: no previous prototype for 'sparc_fork'
@ 2020-05-29  1:28 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-29  1:28 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux.git do_fork_removal_sparc
head:   78b8c38a6bb4f0566eb78af62e25038a8caf6c09
commit: 9dd034ba128f6cf9f73a186265a62eb414719b66 [2/3] sparc: share process creation helpers between sparc and sparc64
config: sparc64-randconfig-r014-20200528 (attached as .config)
compiler: sparc64-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
        git checkout 9dd034ba128f6cf9f73a186265a62eb414719b66
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc64 

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

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

>> arch/sparc/kernel/process.c:18:17: error: no previous prototype for 'sparc_fork' [-Werror=missing-prototypes]
18 | asmlinkage long sparc_fork(struct pt_regs *regs)
|                 ^~~~~~~~~~
arch/sparc/kernel/process.c:41:17: error: no previous prototype for 'sparc_vfork' [-Werror=missing-prototypes]
41 | asmlinkage long sparc_vfork(struct pt_regs *regs)
|                 ^~~~~~~~~~~
arch/sparc/kernel/process.c:66:17: error: no previous prototype for 'sparc_clone' [-Werror=missing-prototypes]
66 | asmlinkage long sparc_clone(struct pt_regs *regs)
|                 ^~~~~~~~~~~
cc1: all warnings being treated as errors

vim +/sparc_fork +18 arch/sparc/kernel/process.c

    17	
  > 18	asmlinkage long sparc_fork(struct pt_regs *regs)
    19	{
    20		unsigned long orig_i1 = regs->u_regs[UREG_I1];
    21		long ret;
    22		struct kernel_clone_args args = {
    23			.exit_signal	= SIGCHLD,
    24			/* Reuse the parent's stack for the child. */
    25			.stack		= regs->u_regs[UREG_FP],
    26		};
    27	
    28		ret = _do_fork(&args);
    29	
    30		/* If we get an error and potentially restart the system
    31		 * call, we're screwed because copy_thread_tls() clobbered
    32		 * the parent's %o1.  So detect that case and restore it
    33		 * here.
    34		 */
    35		if ((unsigned long)ret >= -ERESTART_RESTARTBLOCK)
    36			regs->u_regs[UREG_I1] = orig_i1;
    37	
    38		return ret;
    39	}
    40	

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

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

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

only message in thread, other threads:[~2020-05-29  1: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  1:28 [brauner:do_fork_removal_sparc 2/3] arch/sparc/kernel/process.c:18:17: error: no previous prototype for 'sparc_fork' 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.