Message ID | 1497892130-875525-2-git-send-email-nagarathnam.muthusamy@oracle.com |
---|---|
State | Accepted |
Delegated to: | David Miller |
Headers | show |
On Mon, Jun 19, 2017 at 01:08:48PM -0400, Nagarathnam Muthusamy wrote: > This patch adds the prototypes of assembly defined functions to asm-prototypes.h. > Some prototypes are directly added as they are not present in any existing header > files. > +/* > + * Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved. > + */ Ahem, why are you submitting this like this, how is the kernel supposed to be distributed when a piece of it has no license right grant to anyone?
On Wed, Jun 21, 2017 at 06:07:34PM +0200, joy wrote: > On Mon, Jun 19, 2017 at 01:08:48PM -0400, Nagarathnam Muthusamy wrote: > > This patch adds the prototypes of assembly defined functions to asm-prototypes.h. > > Some prototypes are directly added as they are not present in any existing header > > files. > > > +/* > > + * Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved. > > + */ > > Ahem, why are you submitting this like this, how is the kernel supposed to > be distributed when a piece of it has no license right grant to anyone? A git grep throughout the tree seems to indicate everyone is ignoring these relicts. I still don't quite think it's appropriate in new code, but oh well.
diff --git a/arch/sparc/include/asm/asm-prototypes.h b/arch/sparc/include/asm/asm-prototypes.h new file mode 100644 index 0000000..d381e11 --- /dev/null +++ b/arch/sparc/include/asm/asm-prototypes.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved. + */ + +#include <asm/xor.h> +#include <asm/checksum.h> +#include <asm/trap_block.h> +#include <asm/uaccess.h> +#include <asm/atomic.h> +#include <asm/ftrace.h> +#include <asm/cacheflush.h> +#include <asm/oplib.h> +#include <linux/atomic.h> + +void *__memscan_zero(void *, size_t); +void *__memscan_generic(void *, int, size_t); +void *__bzero(void *, size_t); +void VISenter(void); /* Dummy prototype to supress warning */ +#undef memcpy +#undef memset +void *memcpy(void *dest, const void *src, size_t n); +void *memset(void *s, int c, size_t n); +typedef int TItype __attribute__((mode(TI))); +TItype __multi3(TItype a, TItype b);