* Shift overflow warnings in arch/powerpc/boot/addnote.c on 32-bit builds
@ 2019-03-19 7:10 Mark Cave-Ayland
2019-03-19 8:45 ` Christophe Leroy
2019-03-20 12:45 ` Michael Ellerman
0 siblings, 2 replies; 4+ messages in thread
From: Mark Cave-Ayland @ 2019-03-19 7:10 UTC (permalink / raw)
To: linuxppc-dev; +Cc: paulus
Hi all,
Whilst building the latest git master on my G4 I noticed the following shift overflow
warnings in the build log for arch/powerpc/boot/addnote.c:
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);
^~~~~~
CURRENT HEAD 2019-03-19:
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);
^~~~~~
HOSTCC arch/powerpc/boot/hack-coff
ATB,
Mark.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Shift overflow warnings in arch/powerpc/boot/addnote.c on 32-bit builds
2019-03-19 7:10 Shift overflow warnings in arch/powerpc/boot/addnote.c on 32-bit builds Mark Cave-Ayland
@ 2019-03-19 8:45 ` Christophe Leroy
2019-03-19 10:21 ` Cédric Le Goater
2019-03-20 12:45 ` Michael Ellerman
1 sibling, 1 reply; 4+ messages in thread
From: Christophe Leroy @ 2019-03-19 8:45 UTC (permalink / raw)
To: Mark Cave-Ayland, linuxppc-dev, Cédric Le Goater; +Cc: paulus
Hi,
Le 19/03/2019 à 08:10, Mark Cave-Ayland a écrit :
> Hi all,
>
> Whilst building the latest git master on my G4 I noticed the following shift overflow
> warnings in the build log for arch/powerpc/boot/addnote.c:
I guess the problem must have been there for some time. I get the exact
same on 4.14.106
When reverting 284b52c4c6e3 ("powerpc/boot: Add 64bit and little endian
support to addnote"), the warnings disappear.
Christophe
>
>
> 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);
> ^~~~~~
>
>
>
> CURRENT HEAD 2019-03-19:
>
> 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);
> ^~~~~~
> HOSTCC arch/powerpc/boot/hack-coff
>
>
>
> ATB,
>
> Mark.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Shift overflow warnings in arch/powerpc/boot/addnote.c on 32-bit builds
2019-03-19 8:45 ` Christophe Leroy
@ 2019-03-19 10:21 ` Cédric Le Goater
0 siblings, 0 replies; 4+ messages in thread
From: Cédric Le Goater @ 2019-03-19 10:21 UTC (permalink / raw)
To: Christophe Leroy, Mark Cave-Ayland, linuxppc-dev; +Cc: paulus
On 3/19/19 9:45 AM, Christophe Leroy wrote:
> Hi,
>
> Le 19/03/2019 à 08:10, Mark Cave-Ayland a écrit :
>> Hi all,
>>
>> Whilst building the latest git master on my G4 I noticed the following shift overflow
>> warnings in the build log for arch/powerpc/boot/addnote.c:
>
> I guess the problem must have been there for some time. I get the exact same on 4.14.106
>
> When reverting 284b52c4c6e3 ("powerpc/boot: Add 64bit and little endian support to addnote"), the warnings disappear.
Ouh. This is from the little-endian days. I suppose we are missing a u64
cast somewhere ? The L suffix seems wrong also.
C.
> Christophe
>
>
>>
>>
>> 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);
>> ^~~~~~
>>
>>
>>
>> CURRENT HEAD 2019-03-19:
>>
>> 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);
>> ^~~~~~
>> HOSTCC arch/powerpc/boot/hack-coff
>>
>>
>>
>> ATB,
>>
>> Mark.
>>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Shift overflow warnings in arch/powerpc/boot/addnote.c on 32-bit builds
2019-03-19 7:10 Shift overflow warnings in arch/powerpc/boot/addnote.c on 32-bit builds Mark Cave-Ayland
2019-03-19 8:45 ` Christophe Leroy
@ 2019-03-20 12:45 ` Michael Ellerman
1 sibling, 0 replies; 4+ messages in thread
From: Michael Ellerman @ 2019-03-20 12:45 UTC (permalink / raw)
To: Mark Cave-Ayland, linuxppc-dev; +Cc: paulus
Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> writes:
> Hi all,
>
> Whilst building the latest git master on my G4 I noticed the following shift overflow
> warnings in the build log for arch/powerpc/boot/addnote.c:
>
>
> 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);
> ^~~~~~
I don't think there's any situation in which a 32-bit addnote will be
run against a 64-bit ELF is there?
So I don't think there's an actual bug, but it would be good if we could
make the warning go away.
cheers
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-03-20 12:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-19 7:10 Shift overflow warnings in arch/powerpc/boot/addnote.c on 32-bit builds Mark Cave-Ayland
2019-03-19 8:45 ` Christophe Leroy
2019-03-19 10:21 ` Cédric Le Goater
2019-03-20 12:45 ` Michael Ellerman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.