Skip to contentSkip to conversation

Make struct alt_instr acceptable to userland

PATCH In review Bryan O'Sullivan 2 participants 2 messages Apr 28, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Make struct alt_instr acceptable to userland

Andi's new struct alt_instr is visible to klibc. The attached patch changes the types it uses, so that klibc becomes happy.

	<b

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas:
# ChangeSet 1.1142 -> 1.1143
# include/asm-i386/system.h 1.27 -> 1.28
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/04/28 [email protected] 1.1143

# struct alt_instr is visible to userland, so change the types it uses
# --------------------------------------------
#
diff -Nru a/include/asm-i386/system.h b/include/asm-i386/system.h
--- a/include/asm-i386/system.h	Mon Apr 28 15:43:42 2003
+++ b/include/asm-i386/system.h	Mon Apr 28 15:43:42 2003
@@ -278,11 +278,11 @@
 #endif

struct alt_instr {
- u8 *instr; /* original instruction */

-	u8  cpuid;		/* cpuid bit set for replacement */
-	u8  instrlen;		/* length of original instruction */
-	u8  replacementlen; 	/* length of new instruction, <= instrlen */ 
-	u8  replacement[0];   	/* new instruction */
+	__u8 *instr; 		/* original instruction */
+	__u8  cpuid;		/* cpuid bit set for replacement */
+	__u8  instrlen;		/* length of original instruction */
+	__u8  replacementlen; 	/* length of new instruction, <= instrlen */ 
+	__u8  replacement[0];	/* new instruction */

};

/*

#1 lore raw
Quoted 3 lines · Bryan O'Sullivan

Andi's new struct alt_instr is visible to klibc. The attached patch changes the types it uses, so that klibc becomes happy.

Should it be inside #ifdef __KERNEL__?