of_compat_cmp on various platforms

Stephen Rothwell sfr at canb.auug.org.au
Wed Nov 28 22:45:18 EST 2007

On Tue, 27 Nov 2007 22:46:16 -0500 "Jon Smirl" <jonsmirl at gmail.com> wrote:
> Is this right or should it be the same everywhere?
> asm-powerpc/prom.h:#define of_compat_cmp(s1, s2, l)     strcasecmp((s1), (s2))
> asm-sparc/prom.h:#define of_compat_cmp(s1, s2, l)       strncmp((s1), (s2), (l))
> asm-sparc64/prom.h:#define of_compat_cmp(s1, s2, l)     strncmp((s1), (s2), (l))

The only reason these exist is because the sparc and powerpc versions
needed to be different when I was consolidating the of routines.  One of
the things we have to work on is finding the platforms/drivers where this
matters and fix them.

So, for now, these need to be there.

Stephen Rothwell                    sfr at canb.auug.org.au
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20071128/daedfa47/attachment.pgp>

More information about the Linuxppc-dev mailing list