Thread (3 messages) 3 messages, 3 authors, 2009-08-27

Re: PPC driver - generic bus width

From: Stephen Rothwell <hidden>
Date: 2009-08-27 00:04:59
Also in: lkml

On Thu, 27 Aug 2009 00:22:45 +1000 Michael Ellerman [off-list ref] wrote:
quoted
struct device_info_t {
	void (*read)();
	void (*write)();
These are not prototypes because there is no parameter list (use "void" for empty).
quoted
};

static int __devinit device_probe()
This isn't a prototype either.
quoted
cc1: warnings being treated as errors
drivers/dev_test.c:37: warning: function declaration isn't a prototype
drivers/dev_test.c:38: warning: function declaration isn't a prototype
drivers/dev_test.c: In function 'device_probe':
drivers/dev_test.c:113: warning: assignment from incompatible pointer
type
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

Attachments

  • (unnamed) [application/pgp-signature] 197 bytes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help