Skip to contentSkip to conversation

x86-vdso-remove-one-final-use-of-htole16.patch removed from -mm tree

alternative-merged [email protected] 1 participant 1 message Jun 16, 2014 x86

lore
Share & tools
lore
#0 lore raw

Subject: [alternative-merged] x86-vdso-remove-one-final-use-of-htole16.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 16 Jun 2014 12:04:51 -0700

The patch titled
Subject: x86, vdso: Remove one final use of htole16()
has been removed from the -mm tree. Its filename was

     x86-vdso-remove-one-final-use-of-htole16.patch

This patch was dropped because an alternative patch was merged

------------------------------------------------------
From: "H. Peter Anvin" <[email protected]>
Subject: 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.

---

 arch/x86/vdso/vdso2c.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/vdso/vdso2c.h renamed from arch/x86/vdso/vdso2c.h~x86-vdso-remove-one-final-use-of-htole16 +1 -1
diff -puN arch/x86/vdso/vdso2c.h~x86-vdso-remove-one-final-use-of-htole16 arch/x86/vdso/vdso2c.h
@@ -116,7 +116,7 @@ static void GOFUNC(void *addr, size_t le
 	hdr->e_shoff = 0;
 	hdr->e_shentsize = 0;
 	hdr->e_shnum = 0;
-	hdr->e_shstrndx = htole16(SHN_UNDEF);
+	hdr->e_shstrndx = SHN_UNDEF; /* SHN_UNDEF == 0 */
 
 	if (!name) {
 		fwrite(addr, load_size, 1, outfile);

_

Patches currently in -mm which might be from [email protected] are

lib-scatterlist-make-arch_has_sg_chain-an-actual-kconfig.patch lib-scatterlist-clean-up-useless-architecture-versions-of-scatterlisth.patch linux-next.patch