[lfs-patches] r3739 - trunk/linux

dj at higgs.linuxfromscratch.org dj at higgs.linuxfromscratch.org
Thu May 3 16:52:52 PDT 2018


Author: dj
Date: Thu May  3 16:52:52 2018
New Revision: 3739

Log:
Add linux-4.16.6-gcc-8-1.patch.

Added:
   trunk/linux/linux-4.16.6-gcc-8-1.patch

Added: trunk/linux/linux-4.16.6-gcc-8-1.patch
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ trunk/linux/linux-4.16.6-gcc-8-1.patch	Thu May  3 16:52:52 2018	(r3739)
@@ -0,0 +1,18 @@
+Submitted by:            DJ Lucas (dj_AT_linuxfromscratch_DOT_org)
+Date:                    2018-05-04
+Initial Package Version: 4.16.6
+Upstream Status:         Comitted
+Origin:                  https://marc.info/?l=linux-kernel&m=152116992412107&w=2
+Description:             Fixes build issue with gcc-8.1.
+
+diff -Naurp linux-4.16.6-orig/tools/lib/str_error_r.c linux-4.16.6/tools/lib/str_error_r.c
+--- linux-4.16.6-orig/tools/lib/str_error_r.c	2018-05-03 17:38:39.855482052 -0500
++++ linux-4.16.6/tools/lib/str_error_r.c	2018-05-03 17:42:25.051427141 -0500
+@@ -22,6 +22,6 @@ char *str_error_r(int errnum, char *buf,
+ {
+ 	int err = strerror_r(errnum, buf, buflen);
+ 	if (err)
+-		snprintf(buf, buflen, "INTERNAL ERROR: strerror_r(%d, %p, %zd)=%d", errnum, buf, buflen, err);
++		snprintf(buf, buflen, "INTERNAL ERROR: strerror_r(%d, [buf], %zd)=%d", errnum, buflen, err);
+ 	return buf;
+ }


More information about the patches mailing list