u-boot-brain/arch/powerpc/include/asm
Kim Phillips eef1cf2d5c include/linux/byteorder: import latest endian definitions from linux
u-boot's byteorder headers did not contain endianness attributions
for use with sparse, causing a lot of false positives.  Import the
kernel's latest definitions, and enable them by including compiler.h
and types.h.  They come with 'const' added for some swab functions, so
fix those up, too:

include/linux/byteorder/big_endian.h:46:2: warning: passing argument 1 of '__swab64p' discards 'const' qualifier from pointer target type [enabled by default]

Also, note: u-boot's historic __BYTE_ORDER definition has been
preserved (for the time being at least).

We also remove ad-hoc barrier() definitions, since we're including
compiler.h in files that hadn't in the past:

macb.c:54:0: warning: "barrier" redefined [enabled by default]

In addition, including compiler.h in byteorder changes the 'noinline'
definition to expand to __attribute__((noinline)).  This fixes
arch/powerpc/lib/bootm.c:

bootm.c:329:16: error: attribute '__attribute__': unknown attribute
bootm.c:329:16: error: expected ')' before '__attribute__'
bootm.c:329:25: error: expected identifier or '(' before ')' token

powerpc sparse builds yield:

include/common.h:356:22: error: marked inline, but without a definition

the unknown-reason inlining without a definition is considered obsolete
given it was part of the 2002 initial commit, and no arm version was
'fixed.'

also fixed:
ydirectenv.h:60:0: warning: "inline" redefined [enabled by default]

and:

Configuring for devconcenter - Board: intip, Options: DEVCONCENTER
make[1]: *** [4xx_ibm_ddr2_autocalib.o] Error 1
make: *** [arch/powerpc/cpu/ppc4xx/libppc4xx.o] Error 2
powerpc-fsl-linux-size: './u-boot': No such file
4xx_ibm_ddr2_autocalib.c: In function 'DQS_autocalibration':
include/asm/ppc4xx-sdram.h:1407:13: sorry, unimplemented: inlining failed in call to 'ppc4xx_ibm_ddr2_register_dump': function body not available
4xx_ibm_ddr2_autocalib.c:1243:32: sorry, unimplemented: called from here

and:

In file included from crc32.c:50:0:
crc32table.h:4:1: warning: implicit declaration of function '___constant_swab32' [-Wimplicit-function-declaration]
crc32table.h:4:1: error: initializer element is not constant
crc32table.h:4:1: error: (near initialization for 'crc32table_le[0]')

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
[trini: Remove '#endif' in include/common.h around setenv portion]
Signed-off-by: Tom Rini <trini@ti.com>
2012-11-04 11:00:34 -07:00
..
arch-mpc83xx mpc83xx: Add a GPIO driver for the MPC83XX family 2012-01-09 20:10:33 -06:00
4xx_pci.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
4xx_pcie.h consolidate mdelay by providing a common function for all users 2011-10-22 01:16:08 +02:00
5xx_immap.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
8xx_immap.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
apm821xx.h APM821xx: Add CPU support 2010-10-04 11:15:02 +02:00
atomic.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
bitops.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
byteorder.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
cache.h ppc4xx: Remove IOP480 support 2012-10-15 11:53:59 -07:00
config_mpc85xx.h powerpc/boot: Change the compile macro for SRIO & PCIE boot master module 2012-10-22 15:52:46 -05:00
config_mpc86xx.h Minor Coding Style Cleanup. 2011-02-02 22:36:10 +01:00
config.h powerpc/mpc8xxx: Move HWCONFIG_BUFFER_SIZE into config.h 2012-08-23 12:16:56 -05:00
cpm_85xx.h cleanup: Fix typos and misspellings in various files. 2011-07-28 21:27:36 +02:00
cpm_8260.h cleanup: Fix typos and misspellings in various files. 2011-07-28 21:27:36 +02:00
e300.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
errno.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
fsl_ddr_dimm_params.h powerpc/mpc8xxx: Add fine timing support for DDR3 2012-08-23 12:16:55 -05:00
fsl_ddr_sdram.h powerpc/mpc8xxx: Fix DDR initialization waiting for D_INIT 2012-10-22 14:31:27 -05:00
fsl_dma.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
fsl_dtsec.h powerpc/85xx: Add support for FMan ethernet in Independent mode 2011-09-29 19:01:05 -05:00
fsl_enet.h fsl: Change fsl_phy_enet_if to phy_interface_t 2011-04-20 15:09:35 -05:00
fsl_fman.h fm/mEMAC: add mEMAC frame work 2012-10-22 14:31:25 -05:00
fsl_i2c.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
fsl_ifc.h Added new ext fields to IFC 2012-08-23 12:16:55 -05:00
fsl_law.h powerpc/mpc8xxx: Enable 3-way and 4-way DDR interleaving 2012-08-23 12:16:55 -05:00
fsl_lbc.h powerpc/85xx: improve definition of BR_PHYS_ADDR macro 2012-08-08 18:32:15 -05:00
fsl_liodn.h powerpc/mpc85xx: Add T4 device definitions 2012-10-22 14:31:22 -05:00
fsl_memac.h fm/mEMAC: add mEMAC frame work 2012-10-22 14:31:25 -05:00
fsl_mpc83xx_serdes.h ppc: Split MPC83xx SERDES code from MPC85xx/MPC86xx/QorIQ 2010-04-26 22:37:57 -05:00
fsl_pci.h powerpc/fsl_pci: Fix device tree fixups for newer platforms 2011-05-20 00:48:41 -05:00
fsl_portals.h powerpc/mpc85xx: Add T4 device definitions 2012-10-22 14:31:22 -05:00
fsl_secure_boot.h powerpc/p4080: Add support for secure boot flow 2011-10-03 08:52:14 -05:00
fsl_serdes.h powerpc/corenet2: Add SerDes for corenet2 2012-10-22 14:31:19 -05:00
fsl_srio.h powerpc/corenet_ds: Get rid of the SRIOBOOT_MASTER build target 2012-08-23 10:24:14 -05:00
fsl_tgec.h powerpc/85xx: Add support for FMan ethernet in Independent mode 2011-09-29 19:01:05 -05:00
global_data.h mpc83xx: add support for mpc8309 2012-10-23 15:23:26 -05:00
gpio.h mpc83xx: Add a GPIO driver for the MPC83XX family 2012-01-09 20:10:33 -06:00
immap_83xx.h mpc83xx: add support for mpc8309 2012-10-23 15:23:26 -05:00
immap_85xx.h powerpc/mpc85xx: Add B4860 and variant SoCs 2012-10-22 14:31:24 -05:00
immap_86xx.h powerpc/86xx: Enable common SRIO init code 2011-01-14 01:32:21 -06:00
immap_512x.h MPC5121: Add USB EHCI support 2010-10-18 22:33:32 +02:00
immap_8220.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
immap_8260.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
immap_qe.h mpc83xx: add support for mpc8309 2012-10-23 15:23:26 -05:00
interrupt.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
io.h Revert "powerpc: Fix declaration type for I/O functions" 2012-08-23 12:16:57 -05:00
iopin_8xx.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
iopin_85xx.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
iopin_8260.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
m8260_pci.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
mc146818rtc.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
mmu.h powerpc/85xx: clear out TLB on boot 2012-08-23 12:16:57 -05:00
mp.h powerpc/mpc85xx: software workaround for DDR erratum A-004468 2012-10-22 14:31:28 -05:00
mpc8xxx_spi.h mpc8308: support for Freescale MPC8308 cpu 2010-07-09 15:00:54 -05:00
mpc85xx_gpio.h mpc85xx: make gpio_direction_output respect value 2012-10-22 03:03:16 -05:00
mpc512x.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
mpc8349_pci.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
pci_io.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
pnp.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
posix_types.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
ppc4xx_config.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
ppc4xx-ebc.h APM821xx: Add CPU support 2010-10-04 11:15:02 +02:00
ppc4xx-emac.h net: drop !NET_MULTI code 2011-10-05 22:22:16 +02:00
ppc4xx-gpio.h ppc4xx: Move gpio.h to ppc4xx-gpio.h since its ppc4xx specific 2010-09-23 09:02:05 +02:00
ppc4xx-i2c.h ppc4xx: Move ppc4xx headers to powerpc include directory 2010-09-23 09:02:05 +02:00
ppc4xx-isram.h APM821xx: Add CPU support 2010-10-04 11:15:02 +02:00
ppc4xx-mal.h ppc4xx: Big header cleanup, mostly PPC440 related 2010-09-23 09:02:05 +02:00
ppc4xx-sdram.h include/linux/byteorder: import latest endian definitions from linux 2012-11-04 11:00:34 -07:00
ppc4xx-uic.h APM821xx: Add CPU support 2010-10-04 11:15:02 +02:00
ppc4xx.h ppc4xx: Remove AP1000 board support 2012-10-15 11:53:59 -07:00
ppc405.h ppc4xx: Remove IOP480 support 2012-10-15 11:53:59 -07:00
ppc405cr.h ppc4xx: Use common NS16550 driver for PPC4xx UART 2010-09-23 09:02:05 +02:00
ppc405ep.h ppc4xx: Use common NS16550 driver for PPC4xx UART 2010-09-23 09:02:05 +02:00
ppc405ex.h PPC405EX CHIP_21 erratum 2011-05-12 16:10:51 +02:00
ppc405ez.h ppc4xx: Use common NS16550 driver for PPC4xx UART 2010-09-23 09:02:05 +02:00
ppc405gp.h ppc4xx: Use common NS16550 driver for PPC4xx UART 2010-09-23 09:02:05 +02:00
ppc440.h ppc4xx: Big header cleanup part 2, mostly PPC405 related 2010-09-23 09:02:05 +02:00
ppc440ep_gr.h cleanup: Fix typos and misspellings in various files. 2011-07-28 21:27:36 +02:00
ppc440epx_grx.h cleanup: Fix typos and misspellings in various files. 2011-07-28 21:27:36 +02:00
ppc440gp.h ppc4xx: Use common NS16550 driver for PPC4xx UART 2010-09-23 09:02:05 +02:00
ppc440gx.h cleanup: Fix typos and misspellings in various files. 2011-07-28 21:27:36 +02:00
ppc440sp.h cleanup: Fix typos and misspellings in various files. 2011-07-28 21:27:36 +02:00
ppc440spe.h cleanup: Fix typos and misspellings in various files. 2011-07-28 21:27:36 +02:00
ppc460ex_gt.h ppc4xx: Use common NS16550 driver for PPC4xx UART 2010-09-23 09:02:05 +02:00
ppc460sx.h ppc4xx: Use common NS16550 driver for PPC4xx UART 2010-09-23 09:02:05 +02:00
processor.h powerpc/mpc85xx: Add B4860 and variant SoCs 2012-10-22 14:31:24 -05:00
ptrace.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
residual.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
sigcontext.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
signal.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
status_led.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
string.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
types.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
u-boot.h powerpc: Change bi_baudrate and global data baudrate to int 2012-10-19 15:25:45 -07:00
unaligned.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
xilinx_irq.h Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00