diff options
author | H. Peter Anvin <hpa@zytor.com> | 2014-06-10 17:25:26 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2014-06-10 18:55:05 -0400 |
commit | 4d048b0255e3dd4fb001c5f1f609fb67463d04d6 (patch) | |
tree | 7793245f6c44767ce5e71364667e439dc2cc89e7 /arch | |
parent | 5b174fd6472b1d6b6402b30210a212f3fd770d96 (diff) |
x86, vdso: Remove one final use of htole16()
One final use of the macros from <endian.h> which are not available on
older system. In this case we had one sole case of *writing* a
littleendian number, but the number is SHN_UNDEF which is the constant
zero, so rather than dealing with the general case of littleendian
puts here, just document that the constant is zero and be done with
it.
Reported-and-Tested-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Andy Lutomirski <luto@amacapital.net>
Link: http://lkml.kernel.org/r/20140610135051.c3c34165f73d67d218b62bd9@linux-foundation.org
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/vdso/vdso2c.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/vdso/vdso2c.h b/arch/x86/vdso/vdso2c.h index 8a074637a576..d9f6f61aef1c 100644 --- a/arch/x86/vdso/vdso2c.h +++ b/arch/x86/vdso/vdso2c.h | |||
@@ -116,7 +116,7 @@ static void GOFUNC(void *addr, size_t len, FILE *outfile, const char *name) | |||
116 | hdr->e_shoff = 0; | 116 | hdr->e_shoff = 0; |
117 | hdr->e_shentsize = 0; | 117 | hdr->e_shentsize = 0; |
118 | hdr->e_shnum = 0; | 118 | hdr->e_shnum = 0; |
119 | hdr->e_shstrndx = htole16(SHN_UNDEF); | 119 | hdr->e_shstrndx = SHN_UNDEF; /* SHN_UNDEF == 0 */ |
120 | 120 | ||
121 | if (!name) { | 121 | if (!name) { |
122 | fwrite(addr, load_size, 1, outfile); | 122 | fwrite(addr, load_size, 1, outfile); |