[PATCH 3/3] sandbox: work around missing of_add_memory_bank()
Lucas Stach
l.stach at pengutronix.de
Tue Jul 22 01:50:42 PDT 2014
Am Dienstag, den 22.07.2014, 10:39 +0200 schrieb Holger Schurig:
> There are no memory banks in the sandbox, so adding a working
> of_add_memory_bank? How should that work? Or do you mean adding a
> dummy of_add_memory_bank() to arch/sandbox/os/board.c?
>
Can you please elaborate why of_add_memory() doesn't work if no memory
banks are there? Why do you need this ifdef in the first place? Your
commit message fails to explain this.
> > his adds ifdeffery (which everyone hates) just for the sake of a static checker
>
> You probably never have run "scan-build make" after "apt-get install
> clang-3.5" ?!?! For me, this two lines are minimal, and the amount
> of warnings that scan-build finds in barebox is staggering.
This argument doesn't work. The more interesting point here would be to
know how much of those are real problems. Different static checkers
expose vastly different signal-to-noise ratios.
I have run barebox through different static checkers, but as a fact I
default to only use those which don't require a build to be run and have
a high signal-to-noise ratio. Which doesn't mean clangs scan-build
couldn't be a welcome addition, so please convince me.
Regards,
Lucas
--
Pengutronix e.K. | Lucas Stach |
Industrial Linux Solutions | http://www.pengutronix.de/ |
More information about the barebox
mailing list