[1/3] Adding asm-prototypes.h for genksyms to generate crc

Submitted by Nagarathnam Muthusamy on June 19, 2017, 5:08 p.m.

Details

Message ID 1497892130-875525-2-git-send-email-nagarathnam.muthusamy@oracle.com
State Accepted
Delegated to: David Miller
Headers show

Commit Message

Nagarathnam Muthusamy June 19, 2017, 5:08 p.m.
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.

Signed-off-by: Nagarathnam Muthusamy <nagarathnam.muthusamy@oracle.com>
Reviewed-by: Babu Moger <babu.moger@oracle.com>

---
 arch/sparc/include/asm/asm-prototypes.h |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)
 create mode 100644 arch/sparc/include/asm/asm-prototypes.h

Comments

Josip Rodin June 21, 2017, 4:07 p.m.
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?
Josip Rodin June 21, 2017, 4:15 p.m.
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.

Patch hide | download patch | download mbox

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