Browse Source

cpuid: ccanlint fixes.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell 12 years ago
parent
commit
a87884aabb
5 changed files with 7 additions and 6 deletions
  1. 0 1
      ccan/cpuid/BSD-MIT
  2. 1 0
      ccan/cpuid/LICENSE
  3. 3 2
      ccan/cpuid/_info
  4. 1 1
      ccan/cpuid/cpuid.h
  5. 2 2
      ccan/cpuid/test/run.c

+ 0 - 1
ccan/cpuid/BSD-MIT

@@ -1 +0,0 @@
-../../licenses/BSD-MIT

+ 1 - 0
ccan/cpuid/LICENSE

@@ -0,0 +1 @@
+../../licenses/BSD-MIT

+ 3 - 2
ccan/cpuid/_info

@@ -8,10 +8,11 @@
  *
  *
  * Example:
  * Example:
  * #include <ccan/cpuid/cpuid.h>
  * #include <ccan/cpuid/cpuid.h>
+ * #include <stdio.h>
  *
  *
- * int main()
+ * int main(void)
  * {
  * {
- * 	int highest;
+ * 	uint32_t highest;
  * 	cpuid(CPU_HIGHEST_EXTENDED_FUNCTION_SUPPORTED, &highest);
  * 	cpuid(CPU_HIGHEST_EXTENDED_FUNCTION_SUPPORTED, &highest);
  * 	printf ("Highest extended function supported: %d\n", highest);
  * 	printf ("Highest extended function supported: %d\n", highest);
  *
  *

+ 1 - 1
ccan/cpuid/cpuid.h

@@ -69,7 +69,7 @@ typedef enum cpuid {
 
 
 	CPU_HIGHEST_EXTENDED_FUNCTION_SUPPORTED 	= 0x80000000,
 	CPU_HIGHEST_EXTENDED_FUNCTION_SUPPORTED 	= 0x80000000,
 	CPU_EXTENDED_PROC_INFO_FEATURE_BITS 		= 0x80000001,
 	CPU_EXTENDED_PROC_INFO_FEATURE_BITS 		= 0x80000001,
-	CPU_PROC_BRAND_STRING 				= 0x80000002, 
+	CPU_PROC_BRAND_STRING 				= 0x80000002,
 	CPU_L1_CACHE_AND_TLB_IDS 			= 0x80000005,
 	CPU_L1_CACHE_AND_TLB_IDS 			= 0x80000005,
 	CPU_EXTENDED_L2_CACHE_FEATURES 			= 0x80000006,
 	CPU_EXTENDED_L2_CACHE_FEATURES 			= 0x80000006,
 	CPU_ADV_POWER_MGT_INFO 				= 0x80000007,
 	CPU_ADV_POWER_MGT_INFO 				= 0x80000007,

+ 2 - 2
ccan/cpuid/test/run.c

@@ -1,9 +1,9 @@
-#include "cpuid.h"
+#include "../cpuid.c"
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <stdint.h>
 #include <stdint.h>
 
 
-int main()
+int main(void)
 {
 {
 	if (!cpuid_is_supported()) {
 	if (!cpuid_is_supported()) {
 		printf ("CPUID instruction is not supported by this CPU\n");
 		printf ("CPUID instruction is not supported by this CPU\n");