linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* checkpatch nits ...
@ 2008-08-23  0:21 Kevin Diggs
  2008-08-23  0:40 ` Sean MacLennan
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Kevin Diggs @ 2008-08-23  0:21 UTC (permalink / raw)
  To: linuxppc-dev

Hi,

Can I ignore these checkpatch errors:

ERROR: do not initialise statics to 0 or NULL
#829: FILE: powerpc/kernel/cpu/pll_if.c:61:
+static unsigned int override_bus_clock = 0;

ERROR: do not initialise externals to 0 or NULL
#1281: FILE: powerpc/kernel/cpu/pll_if.c:513:
+int rval = 0;

Someone (Arnd?) told me this was due to an older compiler putting these
in a strange section?

WARNING: externs should be avoided in .c files
#1137: FILE: powerpc/kernel/cpu/pll_if.c:369:
+       __asm__ __volatile__ (

??? I don't know what this is?

The entire block is:

	__asm__ __volatile__ (
		"addi %0,%3,-1\n"
		"andc %1,%3,%0\n"
		"cntlzw %1,%1\n"
		"subfic %1,%1,31\n"
		"cntlzw %0,%2\n":
		"=r"(cntlz), "=r"(cnttz):
		"r"(tmp), "b"(cnttz)
	);

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-08-28  9:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-23  0:21 checkpatch nits Kevin Diggs
2008-08-23  0:40 ` Sean MacLennan
2008-08-23  8:57 ` Arnd Bergmann
2008-08-27  7:49   ` Wolfram Sang
2008-08-28  7:51     ` Andy Whitcroft
2008-08-24 12:23 ` David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).