From: Oliver Schinagl <oli...@schinagl.nl> This is a resond of the previous patch I offered as an RFC. There was some talk on the list but nothing related to the code in question.
This patchset is split in two, one that modifies get_ram_size() and a second one that updates all invocations of get_ram_size(). Maintainers probably should double check if their board was handled properly or even improve it to handle it better. Oliver Oliver Schinagl (2): get_ram_size incorrectly returns long, should be unsigned long Update all references to get_ram_size to unsigned long arch/arm/cpu/arm926ejs/davinci/misc.c | 2 +- arch/arm/cpu/arm926ejs/kirkwood/dram.c | 2 +- arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c | 2 +- arch/arm/cpu/arm926ejs/orion5x/dram.c | 2 +- arch/arm/cpu/armv7/am33xx/emif4.c | 2 +- arch/arm/cpu/armv7/omap-common/emif-common.c | 4 ++-- arch/arm/cpu/armv7/socfpga/misc.c | 2 +- arch/powerpc/cpu/mpc512x/fixed_sdram.c | 2 +- arch/powerpc/cpu/ppc4xx/sdram.c | 8 ++++---- board/AndesTech/adp-ag101/adp-ag101.c | 2 +- board/AndesTech/adp-ag101p/adp-ag101p.c | 2 +- board/AndesTech/adp-ag102/adp-ag102.c | 2 +- board/BuS/eb_cpux9k2/cpux9k2.c | 2 +- board/BuS/vl_ma2sc/vl_ma2sc.c | 2 +- board/CarMediaLab/flea3/flea3.c | 2 +- board/LEOX/elpt860/elpt860.c | 2 +- board/RPXClassic/RPXClassic.c | 2 +- board/RPXlite/RPXlite.c | 2 +- board/RPXlite_dw/RPXlite_dw.c | 2 +- board/RRvision/RRvision.c | 2 +- board/a3000/a3000.c | 8 ++++---- board/a3m071/a3m071.c | 4 ++-- board/a4m072/a4m072.c | 4 ++-- board/adder/adder.c | 2 +- board/afeb9260/afeb9260.c | 2 +- board/armltd/integrator/integrator.c | 4 ++-- board/armltd/versatile/versatile.c | 2 +- board/armltd/vexpress/vexpress_common.c | 6 +++--- board/atc/atc.c | 2 +- board/atmel/at91rm9200ek/at91rm9200ek.c | 2 +- board/atmel/at91sam9260ek/at91sam9260ek.c | 2 +- board/atmel/at91sam9261ek/at91sam9261ek.c | 2 +- board/atmel/at91sam9263ek/at91sam9263ek.c | 2 +- board/atmel/at91sam9m10g45ek/at91sam9m10g45ek.c | 2 +- board/atmel/at91sam9n12ek/at91sam9n12ek.c | 2 +- board/atmel/at91sam9rlek/at91sam9rlek.c | 2 +- board/atmel/at91sam9x5ek/at91sam9x5ek.c | 2 +- board/atmel/atngw100/atngw100.c | 2 +- board/atmel/atngw100mkii/atngw100mkii.c | 2 +- board/atmel/atstk1000/atstk1000.c | 2 +- board/atmel/sama5d3xek/sama5d3xek.c | 2 +- board/bc3450/bc3450.c | 8 ++++---- board/bluewater/snapper9260/snapper9260.c | 2 +- board/calao/sbc35_a9g20/sbc35_a9g20.c | 2 +- board/calao/tny_a9260/tny_a9260.c | 2 +- board/canmb/canmb.c | 8 ++++---- board/cm5200/cm5200.c | 4 ++-- board/congatec/cgtqmx6eval/cgtqmx6eval.c | 2 +- board/cpu86/cpu86.c | 2 +- board/cpu87/cpu87.c | 2 +- board/cu824/cu824.c | 8 ++++---- board/davedenx/qong/qong.c | 2 +- board/denx/m53evk/m53evk.c | 6 +++--- board/earthlcd/favr-32-ezkit/favr-32-ezkit.c | 2 +- board/egnite/ethernut5/ethernut5.c | 2 +- board/emk/top9000/top9000.c | 2 +- board/ep88x/ep88x.c | 2 +- board/esd/cpci5200/cpci5200.c | 4 ++-- board/esd/mecp5123/mecp5123.c | 2 +- board/esd/meesc/meesc.c | 2 +- board/esd/otc570/otc570.c | 2 +- board/esd/pf5200/pf5200.c | 4 ++-- board/esd/vme8349/vme8349.c | 2 +- board/esg/ima3-mx53/ima3-mx53.c | 2 +- board/esteem192e/esteem192e.c | 4 ++-- board/eukrea/cpu9260/cpu9260.c | 2 +- board/eukrea/cpuat91/cpuat91.c | 2 +- board/fads/fads.c | 2 +- board/faraday/a320evb/a320evb.c | 2 +- board/freescale/mpc8308rdb/sdram.c | 2 +- board/freescale/mx25pdk/mx25pdk.c | 2 +- board/freescale/mx31ads/mx31ads.c | 2 +- board/freescale/mx31pdk/mx31pdk.c | 2 +- board/freescale/mx35pdk/mx35pdk.c | 6 +++--- board/freescale/mx51evk/mx51evk.c | 2 +- board/freescale/mx53ard/mx53ard.c | 6 +++--- board/freescale/mx53evk/mx53evk.c | 2 +- board/freescale/mx53loco/mx53loco.c | 6 +++--- board/freescale/mx53smd/mx53smd.c | 6 +++--- board/freescale/mx6qarm2/mx6qarm2.c | 2 +- board/freescale/mx6qsabreauto/mx6qsabreauto.c | 2 +- board/freescale/mx6sabresd/mx6sabresd.c | 2 +- board/freescale/mx6slevk/mx6slevk.c | 2 +- board/freescale/titanium/titanium.c | 2 +- board/freescale/vf610twr/vf610twr.c | 2 +- board/friendlyarm/mini2440/mini2440.c | 2 +- board/galaxy5200/galaxy5200.c | 4 ++-- board/genesi/mx51_efikamx/efikamx.c | 2 +- board/genietv/genietv.c | 6 +++--- board/hale/tt01/tt01.c | 2 +- board/hermes/hermes.c | 3 ++- board/hidden_dragon/hidden_dragon.c | 8 ++++---- board/icecube/icecube.c | 8 ++++---- board/icpdas/lp8x4x/lp8x4x.c | 2 +- board/icu862/icu862.c | 2 +- board/ids8247/ids8247.c | 4 ++-- board/ifm/o2dnt2/o2dnt2.c | 8 ++++---- board/imx31_phycore/imx31_phycore.c | 2 +- board/in-circuit/grasshopper/grasshopper.c | 2 +- board/incaip/incaip.c | 2 +- board/inka4x0/inka4x0.c | 6 +++--- board/intercontrol/digsy_mtc/digsy_mtc.c | 6 +++--- board/ip860/ip860.c | 3 ++- board/ipek01/ipek01.c | 4 ++-- board/iphase4539/iphase4539.c | 2 +- board/ispan/ispan.c | 2 +- board/ivm/ivm.c | 3 ++- board/jupiter/jupiter.c | 8 ++++---- board/karo/tx25/tx25.c | 6 +++--- board/keymile/km82xx/km82xx.c | 2 +- board/logicpd/imx27lite/imx27lite.c | 6 +++--- board/logicpd/imx31_litekit/imx31_litekit.c | 2 +- board/lwmon/lwmon.c | 2 +- board/manroland/hmi1001/hmi1001.c | 4 ++-- board/manroland/mucmc52/mucmc52.c | 8 ++++---- board/manroland/uc101/uc101.c | 4 ++-- board/matrix_vision/mvbc_p/mvbc_p.c | 4 ++-- board/matrix_vision/mvsmr/mvsmr.c | 4 ++-- board/mcc200/mcc200.c | 8 ++++---- board/micronas/vct/vct.c | 2 +- board/mimc/mimc200/mimc200.c | 2 +- board/miromico/hammerhead/hammerhead.c | 2 +- board/motionpro/motionpro.c | 4 ++-- board/muas3001/muas3001.c | 2 +- board/munices/munices.c | 4 ++-- board/musenki/musenki.c | 8 ++++---- board/mvblue/mvblue.c | 8 ++++---- board/mx1ads/mx1ads.c | 2 +- board/netphone/netphone.c | 2 +- board/netta/netta.c | 2 +- board/netta2/netta2.c | 2 +- board/nx823/nx823.c | 3 ++- board/phytec/pcm030/pcm030.c | 4 ++-- board/pm520/pm520.c | 8 ++++---- board/pm826/pm826.c | 2 +- board/pn62/pn62.c | 8 ++++---- board/r360mpi/r360mpi.c | 2 +- board/rbc823/rbc823.c | 3 ++- board/ronetix/pm9261/pm9261.c | 2 +- board/ronetix/pm9263/pm9263.c | 2 +- board/ronetix/pm9g45/pm9g45.c | 2 +- board/samsung/arndale/arndale.c | 4 ++-- board/samsung/origen/origen.c | 20 ++++++++++++-------- board/samsung/smdk5250/exynos5-dt.c | 8 ++++---- board/samsung/smdk5250/smdk5250.c | 8 ++++---- board/samsung/smdkc100/smdkc100.c | 2 +- board/samsung/smdkv310/smdkv310.c | 20 ++++++++++++-------- board/samsung/trats/trats.c | 12 ++++++++---- board/samsung/universal_c210/universal.c | 6 ++++-- board/sandpoint/sandpoint.c | 8 ++++---- board/scb9328/scb9328.c | 2 +- board/snmc/qs850/qs850.c | 2 +- board/snmc/qs860t/qs860t.c | 2 +- board/socrates/sdram.c | 2 +- board/spc1920/spc1920.c | 2 +- board/spd8xx/spd8xx.c | 2 +- board/stx/stxxtc/stxxtc.c | 4 ++-- board/syteco/jadecpu/jadecpu.c | 2 +- board/syteco/zmx25/zmx25.c | 2 +- board/taskit/stamp9g20/stamp9g20.c | 2 +- board/ti/omap5912osk/omap5912osk.c | 2 +- board/timll/devkit3250/devkit3250.c | 2 +- board/total5200/sdram.c | 8 ++++---- board/tqc/tqm5200/tqm5200.c | 8 ++++---- board/tqc/tqm8260/tqm8260.c | 4 ++-- board/tqc/tqm8272/tqm8272.c | 4 ++-- board/tqc/tqm834x/tqm834x.c | 2 +- board/tqc/tqm8xx/tqm8xx.c | 2 +- board/ttcontrol/vision2/vision2.c | 2 +- board/utx8245/utx8245.c | 10 +++++----- board/v38b/v38b.c | 8 ++++---- board/ve8313/ve8313.c | 2 +- board/woodburn/woodburn.c | 2 +- common/memsize.c | 24 ++++++++++++------------ include/common.h | 2 +- post/board/lwmon5/fpga.c | 2 +- post/board/lwmon5/gdc.c | 2 +- 177 files changed, 336 insertions(+), 317 deletions(-) -- 1.8.3.2 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot