On Sat, Oct 07, 2017 at 08:15:50PM -0700, Vagrant Cascadian wrote:
>...
> Though this obviously doesn't seem like a good long-term solution, I've
> been able to work around the issue by patching u-boot to use gcc-6 only
> on armel, see patch below.
A proper fix is attached.
> live well,
> vagrant
>...
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
Description: jffs2/mini_inflate.c: use "static inline" instead of "inline"
This makes gcc no longer expect an out-of-line version of the
functions being present elsewhere.
Author: Adrian Bunk <[email protected]>
Bug-Debian: https://bugs.debian.org/877963
--- u-boot-2017.09+dfsg1.orig/fs/jffs2/mini_inflate.c
+++ u-boot-2017.09+dfsg1/fs/jffs2/mini_inflate.c
@@ -16,7 +16,7 @@
static unsigned char huffman_order[] = {16, 17, 18, 0, 8, 7, 9, 6, 10, 5,
11, 4, 12, 3, 13, 2, 14, 1, 15};
-inline void cramfs_memset(int *s, const int c, size n)
+static inline void cramfs_memset(int *s, const int c, size n)
{
n--;
for (;n > 0; n--) s[n] = c;
@@ -65,8 +65,8 @@ static void init_stream(struct bitstream
/* pull 'bits' bits out of the stream. The last bit pulled it returned as the
* msb. (section 3.1.1)
*/
-inline unsigned long pull_bits(struct bitstream *stream,
- const unsigned int bits)
+static inline unsigned long pull_bits(struct bitstream *stream,
+ const unsigned int bits)
{
unsigned long ret;
int i;
@@ -85,7 +85,7 @@ inline unsigned long pull_bits(struct bi
return ret;
}
-inline int pull_bit(struct bitstream *stream)
+static inline int pull_bit(struct bitstream *stream)
{
int ret = ((*(stream->data) >> stream->bit) & 1);
if (stream->bit++ == 7) {