[PATCH] dtc: Basic integer expressions

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Tue Apr 10 12:29:22 EST 2012


On 08:43 Mon 09 Apr     , Jon Loeliger wrote:
> > Written by David Gibson <david at gibson.dropbear.id.au>. Additions by me:
> > * Ported to ToT dtc.
> > * Renamed cell to integer throughout.
> > * Implemented value range checks.
> > * Allow U/L/UL/LL/ULL suffix on literals.
> > * Enabled the commented test.
> > 
> > Signed-off-by: Stephen Warren <swarren at wwwdotorg.org>
> > ---
> > v3:
> > * Fix printf warning by s/%ld/%zd/
> > * Support plain "U" as an integer literal suffix
> > * Fix misplaced semi-colons in grammar
> > * Support integer expressions for /memreserve/ and /incbin/ too
> > * Modify eval_literal to check U/L suffixes after strtoull call,
> >   using strspn/strlen
> > * Remove mention of libfdt from comment in tests/integer-expressions.c
> > * Add comment to explain integer_prim range check
> > v2:
> > * s/cell/integer/ throughout.
> > * Allow signed-extended values to pass the overall cell range check.
> > * Allow L/UL/LL/ULL suffix on literals. This is purely for compatibility
> >   with C, and has no effect on dtc's processing.
> > * Enabled the 3 disabled tests.
> 
> 
> Applied.
can we update the kernel with it in next I'm goint to use it for at91 too

Best Regards,
J.
> 
> jdl
> _______________________________________________
> devicetree-discuss mailing list
> devicetree-discuss at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/devicetree-discuss


More information about the devicetree-discuss mailing list