aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/sortextable.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2012-10-09 18:35:22 -0400
committerJ. Bruce Fields <bfields@redhat.com>2012-10-09 18:35:22 -0400
commitf474af7051212b4efc8267583fad9c4ebf33ccff (patch)
tree1aa46ebc8065a341f247c2a2d9af2f624ad1d4f8 /scripts/sortextable.c
parent0d22f68f02c10d5d10ec5712917e5828b001a822 (diff)
parente3dd9a52cb5552c46c2a4ca7ccdfb4dab5c72457 (diff)
nfs: disintegrate UAPI for nfs
This is to complete part of the Userspace API (UAPI) disintegration for which the preparatory patches were pulled recently. After these patches, userspace headers will be segregated into: include/uapi/linux/.../foo.h for the userspace interface stuff, and: include/linux/.../foo.h for the strictly kernel internal stuff. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'scripts/sortextable.c')
-rw-r--r--scripts/sortextable.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/sortextable.c b/scripts/sortextable.c
index 6acf83449105..f19ddc47304c 100644
--- a/scripts/sortextable.c
+++ b/scripts/sortextable.c
@@ -161,7 +161,7 @@ typedef void (*table_sort_t)(char *, int);
161#define SORTEXTABLE_64 161#define SORTEXTABLE_64
162#include "sortextable.h" 162#include "sortextable.h"
163 163
164static int compare_x86_table(const void *a, const void *b) 164static int compare_relative_table(const void *a, const void *b)
165{ 165{
166 int32_t av = (int32_t)r(a); 166 int32_t av = (int32_t)r(a);
167 int32_t bv = (int32_t)r(b); 167 int32_t bv = (int32_t)r(b);
@@ -173,7 +173,7 @@ static int compare_x86_table(const void *a, const void *b)
173 return 0; 173 return 0;
174} 174}
175 175
176static void sort_x86_table(char *extab_image, int image_size) 176static void sort_relative_table(char *extab_image, int image_size)
177{ 177{
178 int i; 178 int i;
179 179
@@ -188,7 +188,7 @@ static void sort_x86_table(char *extab_image, int image_size)
188 i += 4; 188 i += 4;
189 } 189 }
190 190
191 qsort(extab_image, image_size / 8, 8, compare_x86_table); 191 qsort(extab_image, image_size / 8, 8, compare_relative_table);
192 192
193 /* Now denormalize. */ 193 /* Now denormalize. */
194 i = 0; 194 i = 0;
@@ -245,9 +245,9 @@ do_file(char const *const fname)
245 break; 245 break;
246 case EM_386: 246 case EM_386:
247 case EM_X86_64: 247 case EM_X86_64:
248 custom_sort = sort_x86_table;
249 break;
250 case EM_S390: 248 case EM_S390:
249 custom_sort = sort_relative_table;
250 break;
251 case EM_MIPS: 251 case EM_MIPS:
252 break; 252 break;
253 } /* end switch */ 253 } /* end switch */