]> git.baikalelectronics.ru Git - kernel.git/commit
x86, vdso: Remove one final use of htole16()
authorH. Peter Anvin <hpa@zytor.com>
Tue, 10 Jun 2014 21:25:26 +0000 (14:25 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 10 Jun 2014 22:55:05 +0000 (15:55 -0700)
commitd7d6d6a0d7efa4f97183fc1cbd038a12226ddcaa
tree7793245f6c44767ce5e71364667e439dc2cc89e7
parent49a36d6729a6553236ec14a2139f434e029e3e50
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
arch/x86/vdso/vdso2c.h