mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Meelis Roos <mroos@linux.ee>
To: LEROY Christophe <christophe.leroy@c-s.fr>
Cc: linuxppc-dev@lists.ozlabs.org,
	Linux Kernel list <linux-kernel@vger.kernel.org>,
	Michael Ellerman <mpe@ellerman.id.au>
Subject: Re: STRICT_KERNEL_RWX on PPC32 is broken on PowerMac G4
Date: Sat, 18 Nov 2017 09:54:33 +0200 (EET)	[thread overview]
Message-ID: <alpine.LRH.2.21.1711171727120.29817@math.ut.ee> (raw)
In-Reply-To: <20171117161249.Horde.si1lm_DoTH5_kKAdDjlB8Q5@messagerie.c-s.fr>

> > > How early does it hang ? Any oops or trace ?
> > 
> > Very early - instead oif kernel emssages, I see some repeated gibberish
> > of some characteers, and the background turns white.
> > I am booting from yaboot, background is normally black.
> 
> Ok, could you try by replacing #ifdef CONFIG_STRICT_KERNEL_RWX by #if 0
> in arch/powerpc/lib/code-patching.c

With this change and CONFIG_STRICT_KERNEL_RWX=y, it still boots.

BTW, I get these warnings (sorry for the word wrap from screen paste) - 
may they be related or rather not?

  WRAP    arch/powerpc/boot/zImage.pmac
  WRAP    arch/powerpc/boot/zImage.coff
  WRAP    arch/powerpc/boot/zImage.miboot
INFO: Uncompressed kernel (size 0x5d4c3c) overlaps the address of the wrapper(0x400000)
INFO: Fixing the link_address of wrapper to (0x600000)


And before that:

  HOSTCC  arch/powerpc/boot/addnote
arch/powerpc/boot/addnote.c: In function ‘main’:
arch/powerpc/boot/addnote.c:75:47: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                                               ^
arch/powerpc/boot/addnote.c:72:39: note: in definition of macro 
‘PUT_16BE’
 #define PUT_16BE(off, v)(buf[off] = ((v) >> 8) & 0xff, \
                                       ^
arch/powerpc/boot/addnote.c:75:27: note: in expansion of macro 
‘PUT_32BE’
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                           ^~~~~~~~
arch/powerpc/boot/addnote.c:94:50: note: in expansion of macro 
‘PUT_64BE’
 #define PUT_64(off, v)  (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
                                                  ^~~~~~~~
arch/powerpc/boot/addnote.c:183:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_OFFSET, ns);
   ^~~~~~
arch/powerpc/boot/addnote.c:75:47: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                                               ^
arch/powerpc/boot/addnote.c:73:23: note: in definition of macro 
‘PUT_16BE’
     buf[(off) + 1] = (v) & 0xff)
                       ^
arch/powerpc/boot/addnote.c:75:27: note: in expansion of macro 
‘PUT_32BE’
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                           ^~~~~~~~
arch/powerpc/boot/addnote.c:94:50: note: in expansion of macro 
‘PUT_64BE’
 #define PUT_64(off, v)  (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
                                                  ^~~~~~~~
arch/powerpc/boot/addnote.c:183:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_OFFSET, ns);
   ^~~~~~
arch/powerpc/boot/addnote.c:75:47: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                                               ^
arch/powerpc/boot/addnote.c:72:39: note: in definition of macro 
‘PUT_16BE’
 #define PUT_16BE(off, v)(buf[off] = ((v) >> 8) & 0xff, \
                                       ^
arch/powerpc/boot/addnote.c:75:27: note: in expansion of macro 
‘PUT_32BE’
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                           ^~~~~~~~
arch/powerpc/boot/addnote.c:94:50: note: in expansion of macro 
‘PUT_64BE’
 #define PUT_64(off, v)  (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
                                                  ^~~~~~~~
arch/powerpc/boot/addnote.c:183:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_OFFSET, ns);
   ^~~~~~
arch/powerpc/boot/addnote.c:75:47: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                                               ^
arch/powerpc/boot/addnote.c:73:23: note: in definition of macro 
‘PUT_16BE’
     buf[(off) + 1] = (v) & 0xff)
                       ^
arch/powerpc/boot/addnote.c:75:27: note: in expansion of macro 
‘PUT_32BE’
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                           ^~~~~~~~
arch/powerpc/boot/addnote.c:94:50: note: in expansion of macro 
‘PUT_64BE’
 #define PUT_64(off, v)  (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
                                                  ^~~~~~~~
arch/powerpc/boot/addnote.c:183:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_OFFSET, ns);
   ^~~~~~
arch/powerpc/boot/addnote.c:85:73: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                                         
^
arch/powerpc/boot/addnote.c:82:39: note: in definition of macro 
‘PUT_16LE’
 #define PUT_16LE(off, v) (buf[off] = (v) & 0xff, \
                                       ^
arch/powerpc/boot/addnote.c:85:49: note: in expansion of macro 
‘PUT_32LE’
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                 ^~~~~~~~
arch/powerpc/boot/addnote.c:95:5: note: in expansion of macro ‘PUT_64LE’
     PUT_64LE(off, v))
     ^~~~~~~~
arch/powerpc/boot/addnote.c:183:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_OFFSET, ns);
   ^~~~~~
arch/powerpc/boot/addnote.c:85:73: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                                         
^
arch/powerpc/boot/addnote.c:83:25: note: in definition of macro 
‘PUT_16LE’
      buf[(off) + 1] = ((v) >> 8) & 0xff)
                         ^
arch/powerpc/boot/addnote.c:85:49: note: in expansion of macro 
‘PUT_32LE’
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                 ^~~~~~~~
arch/powerpc/boot/addnote.c:95:5: note: in expansion of macro ‘PUT_64LE’
     PUT_64LE(off, v))
     ^~~~~~~~
arch/powerpc/boot/addnote.c:183:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_OFFSET, ns);
   ^~~~~~
arch/powerpc/boot/addnote.c:85:73: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                                         
^
arch/powerpc/boot/addnote.c:82:39: note: in definition of macro 
‘PUT_16LE’
 #define PUT_16LE(off, v) (buf[off] = (v) & 0xff, \
                                       ^
arch/powerpc/boot/addnote.c:85:49: note: in expansion of macro 
‘PUT_32LE’
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                 ^~~~~~~~
arch/powerpc/boot/addnote.c:95:5: note: in expansion of macro ‘PUT_64LE’
     PUT_64LE(off, v))
     ^~~~~~~~
arch/powerpc/boot/addnote.c:183:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_OFFSET, ns);
   ^~~~~~
arch/powerpc/boot/addnote.c:85:73: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                                         
^
arch/powerpc/boot/addnote.c:83:25: note: in definition of macro 
‘PUT_16LE’
      buf[(off) + 1] = ((v) >> 8) & 0xff)
                         ^
arch/powerpc/boot/addnote.c:85:49: note: in expansion of macro 
‘PUT_32LE’
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                 ^~~~~~~~
arch/powerpc/boot/addnote.c:95:5: note: in expansion of macro ‘PUT_64LE’
     PUT_64LE(off, v))
     ^~~~~~~~
arch/powerpc/boot/addnote.c:183:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_OFFSET, ns);
   ^~~~~~
arch/powerpc/boot/addnote.c:75:47: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                                               ^
arch/powerpc/boot/addnote.c:72:39: note: in definition of macro 
‘PUT_16BE’
 #define PUT_16BE(off, v)(buf[off] = ((v) >> 8) & 0xff, \
                                       ^
arch/powerpc/boot/addnote.c:75:27: note: in expansion of macro 
‘PUT_32BE’
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                           ^~~~~~~~
arch/powerpc/boot/addnote.c:94:50: note: in expansion of macro 
‘PUT_64BE’
 #define PUT_64(off, v)  (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
                                                  ^~~~~~~~
arch/powerpc/boot/addnote.c:188:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_FILESZ, nnote);
   ^~~~~~
arch/powerpc/boot/addnote.c:75:47: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                                               ^
arch/powerpc/boot/addnote.c:73:23: note: in definition of macro 
‘PUT_16BE’
     buf[(off) + 1] = (v) & 0xff)
                       ^
arch/powerpc/boot/addnote.c:75:27: note: in expansion of macro 
‘PUT_32BE’
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                           ^~~~~~~~
arch/powerpc/boot/addnote.c:94:50: note: in expansion of macro 
‘PUT_64BE’
 #define PUT_64(off, v)  (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
                                                  ^~~~~~~~
arch/powerpc/boot/addnote.c:188:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_FILESZ, nnote);
   ^~~~~~
arch/powerpc/boot/addnote.c:75:47: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                                               ^
arch/powerpc/boot/addnote.c:72:39: note: in definition of macro 
‘PUT_16BE’
 #define PUT_16BE(off, v)(buf[off] = ((v) >> 8) & 0xff, \
                                       ^
arch/powerpc/boot/addnote.c:75:27: note: in expansion of macro 
‘PUT_32BE’
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                           ^~~~~~~~
arch/powerpc/boot/addnote.c:94:50: note: in expansion of macro 
‘PUT_64BE’
 #define PUT_64(off, v)  (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
                                                  ^~~~~~~~
arch/powerpc/boot/addnote.c:188:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_FILESZ, nnote);
   ^~~~~~
arch/powerpc/boot/addnote.c:75:47: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                                               ^
arch/powerpc/boot/addnote.c:73:23: note: in definition of macro 
‘PUT_16BE’
     buf[(off) + 1] = (v) & 0xff)
                       ^
arch/powerpc/boot/addnote.c:75:27: note: in expansion of macro 
‘PUT_32BE’
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                           ^~~~~~~~
arch/powerpc/boot/addnote.c:94:50: note: in expansion of macro 
‘PUT_64BE’
 #define PUT_64(off, v)  (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
                                                  ^~~~~~~~
arch/powerpc/boot/addnote.c:188:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_FILESZ, nnote);
   ^~~~~~
arch/powerpc/boot/addnote.c:85:73: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                                         
^
arch/powerpc/boot/addnote.c:82:39: note: in definition of macro 
‘PUT_16LE’
 #define PUT_16LE(off, v) (buf[off] = (v) & 0xff, \
                                       ^
arch/powerpc/boot/addnote.c:85:49: note: in expansion of macro 
‘PUT_32LE’
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                 ^~~~~~~~
arch/powerpc/boot/addnote.c:95:5: note: in expansion of macro ‘PUT_64LE’
     PUT_64LE(off, v))
     ^~~~~~~~
arch/powerpc/boot/addnote.c:188:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_FILESZ, nnote);
   ^~~~~~
arch/powerpc/boot/addnote.c:85:73: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                                         
^
arch/powerpc/boot/addnote.c:83:25: note: in definition of macro 
‘PUT_16LE’
      buf[(off) + 1] = ((v) >> 8) & 0xff)
                         ^
arch/powerpc/boot/addnote.c:85:49: note: in expansion of macro 
‘PUT_32LE’
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                 ^~~~~~~~
arch/powerpc/boot/addnote.c:95:5: note: in expansion of macro ‘PUT_64LE’
     PUT_64LE(off, v))
     ^~~~~~~~
arch/powerpc/boot/addnote.c:188:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_FILESZ, nnote);
   ^~~~~~
arch/powerpc/boot/addnote.c:85:73: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                                         
^
arch/powerpc/boot/addnote.c:82:39: note: in definition of macro 
‘PUT_16LE’
 #define PUT_16LE(off, v) (buf[off] = (v) & 0xff, \
                                       ^
arch/powerpc/boot/addnote.c:85:49: note: in expansion of macro 
‘PUT_32LE’
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                 ^~~~~~~~
arch/powerpc/boot/addnote.c:95:5: note: in expansion of macro ‘PUT_64LE’
     PUT_64LE(off, v))
     ^~~~~~~~
arch/powerpc/boot/addnote.c:188:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_FILESZ, nnote);
   ^~~~~~
arch/powerpc/boot/addnote.c:85:73: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                                         
^
arch/powerpc/boot/addnote.c:83:25: note: in definition of macro 
‘PUT_16LE’
      buf[(off) + 1] = ((v) >> 8) & 0xff)
                         ^
arch/powerpc/boot/addnote.c:85:49: note: in expansion of macro 
‘PUT_32LE’
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                 ^~~~~~~~
arch/powerpc/boot/addnote.c:95:5: note: in expansion of macro ‘PUT_64LE’
     PUT_64LE(off, v))
     ^~~~~~~~
arch/powerpc/boot/addnote.c:188:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_FILESZ, nnote);
   ^~~~~~
arch/powerpc/boot/addnote.c:75:47: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                                               ^
arch/powerpc/boot/addnote.c:72:39: note: in definition of macro 
‘PUT_16BE’
 #define PUT_16BE(off, v)(buf[off] = ((v) >> 8) & 0xff, \
                                       ^
arch/powerpc/boot/addnote.c:75:27: note: in expansion of macro 
‘PUT_32BE’
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                           ^~~~~~~~
arch/powerpc/boot/addnote.c:94:50: note: in expansion of macro 
‘PUT_64BE’
 #define PUT_64(off, v)  (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
                                                  ^~~~~~~~
arch/powerpc/boot/addnote.c:206:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_OFFSET, ns);
   ^~~~~~
arch/powerpc/boot/addnote.c:75:47: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                                               ^
arch/powerpc/boot/addnote.c:73:23: note: in definition of macro 
‘PUT_16BE’
     buf[(off) + 1] = (v) & 0xff)
                       ^
arch/powerpc/boot/addnote.c:75:27: note: in expansion of macro 
‘PUT_32BE’
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                           ^~~~~~~~
arch/powerpc/boot/addnote.c:94:50: note: in expansion of macro 
‘PUT_64BE’
 #define PUT_64(off, v)  (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
                                                  ^~~~~~~~
arch/powerpc/boot/addnote.c:206:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_OFFSET, ns);
   ^~~~~~
arch/powerpc/boot/addnote.c:75:47: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                                               ^
arch/powerpc/boot/addnote.c:72:39: note: in definition of macro 
‘PUT_16BE’
 #define PUT_16BE(off, v)(buf[off] = ((v) >> 8) & 0xff, \
                                       ^
arch/powerpc/boot/addnote.c:75:27: note: in expansion of macro 
‘PUT_32BE’
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                           ^~~~~~~~
arch/powerpc/boot/addnote.c:94:50: note: in expansion of macro 
‘PUT_64BE’
 #define PUT_64(off, v)  (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
                                                  ^~~~~~~~
arch/powerpc/boot/addnote.c:206:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_OFFSET, ns);
   ^~~~~~
arch/powerpc/boot/addnote.c:75:47: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                                               ^
arch/powerpc/boot/addnote.c:73:23: note: in definition of macro 
‘PUT_16BE’
     buf[(off) + 1] = (v) & 0xff)
                       ^
arch/powerpc/boot/addnote.c:75:27: note: in expansion of macro 
‘PUT_32BE’
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                           ^~~~~~~~
arch/powerpc/boot/addnote.c:94:50: note: in expansion of macro 
‘PUT_64BE’
 #define PUT_64(off, v)  (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
                                                  ^~~~~~~~
arch/powerpc/boot/addnote.c:206:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_OFFSET, ns);
   ^~~~~~
arch/powerpc/boot/addnote.c:85:73: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                                         
^
arch/powerpc/boot/addnote.c:82:39: note: in definition of macro 
‘PUT_16LE’
 #define PUT_16LE(off, v) (buf[off] = (v) & 0xff, \
                                       ^
arch/powerpc/boot/addnote.c:85:49: note: in expansion of macro 
‘PUT_32LE’
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                 ^~~~~~~~
arch/powerpc/boot/addnote.c:95:5: note: in expansion of macro ‘PUT_64LE’
     PUT_64LE(off, v))
     ^~~~~~~~
arch/powerpc/boot/addnote.c:206:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_OFFSET, ns);
   ^~~~~~
arch/powerpc/boot/addnote.c:85:73: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                                         
^
arch/powerpc/boot/addnote.c:83:25: note: in definition of macro 
‘PUT_16LE’
      buf[(off) + 1] = ((v) >> 8) & 0xff)
                         ^
arch/powerpc/boot/addnote.c:85:49: note: in expansion of macro 
‘PUT_32LE’
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                 ^~~~~~~~
arch/powerpc/boot/addnote.c:95:5: note: in expansion of macro ‘PUT_64LE’
     PUT_64LE(off, v))
     ^~~~~~~~
arch/powerpc/boot/addnote.c:206:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_OFFSET, ns);
   ^~~~~~
arch/powerpc/boot/addnote.c:85:73: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                                         
^
arch/powerpc/boot/addnote.c:82:39: note: in definition of macro 
‘PUT_16LE’
 #define PUT_16LE(off, v) (buf[off] = (v) & 0xff, \
                                       ^
arch/powerpc/boot/addnote.c:85:49: note: in expansion of macro 
‘PUT_32LE’
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                 ^~~~~~~~
arch/powerpc/boot/addnote.c:95:5: note: in expansion of macro ‘PUT_64LE’
     PUT_64LE(off, v))
     ^~~~~~~~
arch/powerpc/boot/addnote.c:206:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_OFFSET, ns);
   ^~~~~~
arch/powerpc/boot/addnote.c:85:73: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                                         
^
arch/powerpc/boot/addnote.c:83:25: note: in definition of macro 
‘PUT_16LE’
      buf[(off) + 1] = ((v) >> 8) & 0xff)
                         ^
arch/powerpc/boot/addnote.c:85:49: note: in expansion of macro 
‘PUT_32LE’
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                 ^~~~~~~~
arch/powerpc/boot/addnote.c:95:5: note: in expansion of macro ‘PUT_64LE’
     PUT_64LE(off, v))
     ^~~~~~~~
arch/powerpc/boot/addnote.c:206:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_OFFSET, ns);
   ^~~~~~
arch/powerpc/boot/addnote.c:75:47: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                                               ^
arch/powerpc/boot/addnote.c:72:39: note: in definition of macro 
‘PUT_16BE’
 #define PUT_16BE(off, v)(buf[off] = ((v) >> 8) & 0xff, \
                                       ^
arch/powerpc/boot/addnote.c:75:27: note: in expansion of macro 
‘PUT_32BE’
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                           ^~~~~~~~
arch/powerpc/boot/addnote.c:94:50: note: in expansion of macro 
‘PUT_64BE’
 #define PUT_64(off, v)  (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
                                                  ^~~~~~~~
arch/powerpc/boot/addnote.c:211:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_FILESZ, nnote2);
   ^~~~~~
arch/powerpc/boot/addnote.c:75:47: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                                               ^
arch/powerpc/boot/addnote.c:73:23: note: in definition of macro 
‘PUT_16BE’
     buf[(off) + 1] = (v) & 0xff)
                       ^
arch/powerpc/boot/addnote.c:75:27: note: in expansion of macro 
‘PUT_32BE’
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                           ^~~~~~~~
arch/powerpc/boot/addnote.c:94:50: note: in expansion of macro 
‘PUT_64BE’
 #define PUT_64(off, v)  (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
                                                  ^~~~~~~~
arch/powerpc/boot/addnote.c:211:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_FILESZ, nnote2);
   ^~~~~~
arch/powerpc/boot/addnote.c:75:47: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                                               ^
arch/powerpc/boot/addnote.c:72:39: note: in definition of macro 
‘PUT_16BE’
 #define PUT_16BE(off, v)(buf[off] = ((v) >> 8) & 0xff, \
                                       ^
arch/powerpc/boot/addnote.c:75:27: note: in expansion of macro 
‘PUT_32BE’
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                           ^~~~~~~~
arch/powerpc/boot/addnote.c:94:50: note: in expansion of macro 
‘PUT_64BE’
 #define PUT_64(off, v)  (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
                                                  ^~~~~~~~
arch/powerpc/boot/addnote.c:211:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_FILESZ, nnote2);
   ^~~~~~
arch/powerpc/boot/addnote.c:75:47: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                                               ^
arch/powerpc/boot/addnote.c:73:23: note: in definition of macro 
‘PUT_16BE’
     buf[(off) + 1] = (v) & 0xff)
                       ^
arch/powerpc/boot/addnote.c:75:27: note: in expansion of macro 
‘PUT_32BE’
 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \
                           ^~~~~~~~
arch/powerpc/boot/addnote.c:94:50: note: in expansion of macro 
‘PUT_64BE’
 #define PUT_64(off, v)  (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \
                                                  ^~~~~~~~
arch/powerpc/boot/addnote.c:211:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_FILESZ, nnote2);
   ^~~~~~
arch/powerpc/boot/addnote.c:85:73: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                                         
^
arch/powerpc/boot/addnote.c:82:39: note: in definition of macro 
‘PUT_16LE’
 #define PUT_16LE(off, v) (buf[off] = (v) & 0xff, \
                                       ^
arch/powerpc/boot/addnote.c:85:49: note: in expansion of macro 
‘PUT_32LE’
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                 ^~~~~~~~
arch/powerpc/boot/addnote.c:95:5: note: in expansion of macro ‘PUT_64LE’
     PUT_64LE(off, v))
     ^~~~~~~~
arch/powerpc/boot/addnote.c:211:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_FILESZ, nnote2);
   ^~~~~~
arch/powerpc/boot/addnote.c:85:73: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                                         
^
arch/powerpc/boot/addnote.c:83:25: note: in definition of macro 
‘PUT_16LE’
      buf[(off) + 1] = ((v) >> 8) & 0xff)
                         ^
arch/powerpc/boot/addnote.c:85:49: note: in expansion of macro 
‘PUT_32LE’
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                 ^~~~~~~~
arch/powerpc/boot/addnote.c:95:5: note: in expansion of macro ‘PUT_64LE’
     PUT_64LE(off, v))
     ^~~~~~~~
arch/powerpc/boot/addnote.c:211:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_FILESZ, nnote2);
   ^~~~~~
arch/powerpc/boot/addnote.c:85:73: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                                         
^
arch/powerpc/boot/addnote.c:82:39: note: in definition of macro 
‘PUT_16LE’
 #define PUT_16LE(off, v) (buf[off] = (v) & 0xff, \
                                       ^
arch/powerpc/boot/addnote.c:85:49: note: in expansion of macro 
‘PUT_32LE’
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                 ^~~~~~~~
arch/powerpc/boot/addnote.c:95:5: note: in expansion of macro ‘PUT_64LE’
     PUT_64LE(off, v))
     ^~~~~~~~
arch/powerpc/boot/addnote.c:211:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_FILESZ, nnote2);
   ^~~~~~
arch/powerpc/boot/addnote.c:85:73: warning: right shift count >= width 
of type [-Wshift-count-overflow]
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                                         
^
arch/powerpc/boot/addnote.c:83:25: note: in definition of macro 
‘PUT_16LE’
      buf[(off) + 1] = ((v) >> 8) & 0xff)
                         ^
arch/powerpc/boot/addnote.c:85:49: note: in expansion of macro 
‘PUT_32LE’
 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) 
>> 32L))
                                                 ^~~~~~~~
arch/powerpc/boot/addnote.c:95:5: note: in expansion of macro ‘PUT_64LE’
     PUT_64LE(off, v))
     ^~~~~~~~
arch/powerpc/boot/addnote.c:211:3: note: in expansion of macro ‘PUT_64’
   PUT_64(ph + PH_FILESZ, nnote2);
   ^~~~~~


-- 
Meelis Roos (mroos@linux.ee)

  reply	other threads:[~2017-11-18  7:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-16  9:44 Meelis Roos
2017-11-16 19:28 ` LEROY Christophe
2017-11-16 19:46   ` Meelis Roos
2017-11-17  8:06     ` LEROY Christophe
2017-11-17 14:08       ` Meelis Roos
2017-11-17 15:12         ` LEROY Christophe
2017-11-18  7:54           ` Meelis Roos [this message]
2017-11-18 14:36             ` LEROY Christophe
2017-11-21  2:28               ` Balbir Singh
2017-11-21  9:58                 ` Christophe LEROY

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LRH.2.21.1711171727120.29817@math.ut.ee \
    --to=mroos@linux.ee \
    --cc=christophe.leroy@c-s.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=mpe@ellerman.id.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®