Re: TPM driver changes to support multiple locality

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Randy Dunlap
Date: Thursday, October 11, 2007 - 2:39 pm

On Thu, 11 Oct 2007 14:08:17 -0700 Agarwal, Lomesh wrote:


whatever that means.  I guess anyone who is familiar with TPM
knows what it means,  and others can do research to find out.
Or the patch description could add another 2 lines for it (?).



Thanks for that.


Indent above uses spaces, not tab.


Use tab above, not spaces.


	if (


and use tab(s) for indent, not spaces.


Don't init statics to 0 or NULL (it's done for you).
(same comment as first time)



	if (

and use tab(s) to indent, not spaces.


printk() usually should have a facility level, like
KERN_WARNING:

		printk(KERN_WARNING "tpm_tis: failed request_locality %d\n",
			locality);


No braces on single-statement "blocks."


Please split up the assignment to pdev and then if/return:

		pdev = platform_device_register_simple(devname, -1,
				NULL, 0);
		if (IS_ERR(pdev))



What kernel tree are you using?  Oh.  2.6.18.  :(
Does the patch apply to 2.6.23?  It must do that to be useful.
(Well, it does after fixing the malformed patch problems.)

Take the latest version of checkpatch.pl from
http://www.kernel.org/pub/linux/kernel/people/apw/checkpatch/ .

patch complains about malformed patch:
The patch also has about 10 instances of lines being broken
(split) where they shouldn't be split, cause 'patch' not to be
able to apply it.
This is most likely your email client (MUA) doing this, although
it could be some server along the way, I suppose.

What mail client are you using to send patches?



All static globals are guaranteed to be init to 0.
It increases the object file size to init them again.
Kernel style is not to init these to 0 or NULL.

---
~Randy
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
TPM driver changes to support multiple locality, Agarwal, Lomesh, (Tue Oct 9, 3:51 pm)
Re: TPM driver changes to support multiple locality, Valdis.Kletnieks, (Wed Oct 10, 12:46 pm)
RE: TPM driver changes to support multiple locality, Agarwal, Lomesh, (Wed Oct 10, 2:09 pm)
RE: TPM driver changes to support multiple locality, Agarwal, Lomesh, (Thu Oct 11, 11:33 am)
Re: TPM driver changes to support multiple locality, Randy Dunlap, (Thu Oct 11, 11:54 am)
Re: TPM driver changes to support multiple locality, Jan Engelhardt, (Thu Oct 11, 12:12 pm)
RE: TPM driver changes to support multiple locality, Agarwal, Lomesh, (Thu Oct 11, 2:08 pm)
Re: TPM driver changes to support multiple locality, Randy Dunlap, (Thu Oct 11, 2:39 pm)
Re: TPM driver changes to support multiple locality, Arjan van de Ven, (Thu Oct 11, 2:41 pm)
RE: TPM driver changes to support multiple locality, Agarwal, Lomesh, (Thu Oct 11, 2:55 pm)
RE: TPM driver changes to support multiple locality, Agarwal, Lomesh, (Thu Oct 11, 3:46 pm)
Re: TPM driver changes to support multiple locality, Randy Dunlap, (Thu Oct 11, 4:02 pm)
RE: TPM driver changes to support multiple locality, Agarwal, Lomesh, (Thu Oct 11, 4:33 pm)