Clean up trailing whitespace in the kernel headers.

And fix the scripts so they stop letting trailing whitespace through.

Change-Id: Ie109fbe1f63321e565ba0fa60fee8e9cf3a61cfc
diff --git a/libc/kernel/arch-mips/asm/sn/sn0/hubni.h b/libc/kernel/arch-mips/asm/sn/sn0/hubni.h
index cb3658d..8d330f1 100644
--- a/libc/kernel/arch-mips/asm/sn/sn0/hubni.h
+++ b/libc/kernel/arch-mips/asm/sn/sn0/hubni.h
@@ -24,47 +24,47 @@
 #endif
 #define NI_BASE 0x600000
 #define NI_BASE_TABLES 0x630000
-#define NI_STATUS_REV_ID 0x600000  
+#define NI_STATUS_REV_ID 0x600000
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-#define NI_PORT_RESET 0x600008  
-#define NI_PROTECTION 0x600010  
-#define NI_GLOBAL_PARMS 0x600018  
-#define NI_SCRATCH_REG0 0x600100  
+#define NI_PORT_RESET 0x600008
+#define NI_PROTECTION 0x600010
+#define NI_GLOBAL_PARMS 0x600018
+#define NI_SCRATCH_REG0 0x600100
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-#define NI_SCRATCH_REG1 0x600108  
-#define NI_DIAG_PARMS 0x600110  
-#define NI_VECTOR_PARMS 0x600200  
-#define NI_VECTOR 0x600208  
+#define NI_SCRATCH_REG1 0x600108
+#define NI_DIAG_PARMS 0x600110
+#define NI_VECTOR_PARMS 0x600200
+#define NI_VECTOR 0x600208
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-#define NI_VECTOR_DATA 0x600210  
-#define NI_VECTOR_STATUS 0x600300  
-#define NI_RETURN_VECTOR 0x600308  
-#define NI_VECTOR_READ_DATA 0x600310  
+#define NI_VECTOR_DATA 0x600210
+#define NI_VECTOR_STATUS 0x600300
+#define NI_RETURN_VECTOR 0x600308
+#define NI_VECTOR_READ_DATA 0x600310
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-#define NI_VECTOR_CLEAR 0x600380  
-#define NI_IO_PROTECT 0x600400  
-#define NI_IO_PROT_OVRRD 0x600408  
-#define NI_AGE_CPU0_MEMORY 0x600500  
+#define NI_VECTOR_CLEAR 0x600380
+#define NI_IO_PROTECT 0x600400
+#define NI_IO_PROT_OVRRD 0x600408
+#define NI_AGE_CPU0_MEMORY 0x600500
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-#define NI_AGE_CPU0_PIO 0x600508  
-#define NI_AGE_CPU1_MEMORY 0x600510  
-#define NI_AGE_CPU1_PIO 0x600518  
-#define NI_AGE_GBR_MEMORY 0x600520  
+#define NI_AGE_CPU0_PIO 0x600508
+#define NI_AGE_CPU1_MEMORY 0x600510
+#define NI_AGE_CPU1_PIO 0x600518
+#define NI_AGE_GBR_MEMORY 0x600520
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-#define NI_AGE_GBR_PIO 0x600528  
-#define NI_AGE_IO_MEMORY 0x600530  
-#define NI_AGE_IO_PIO 0x600538  
+#define NI_AGE_GBR_PIO 0x600528
+#define NI_AGE_IO_MEMORY 0x600530
+#define NI_AGE_IO_PIO 0x600538
 #define NI_AGE_REG_MIN NI_AGE_CPU0_MEMORY
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 #define NI_AGE_REG_MAX NI_AGE_IO_PIO
-#define NI_PORT_PARMS 0x608000  
-#define NI_PORT_ERROR 0x608008  
-#define NI_PORT_ERROR_CLEAR 0x608088  
+#define NI_PORT_PARMS 0x608000
+#define NI_PORT_ERROR 0x608008
+#define NI_PORT_ERROR_CLEAR 0x608088
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-#define NI_META_TABLE0 0x638000  
+#define NI_META_TABLE0 0x638000
 #define NI_META_TABLE(_x) (NI_META_TABLE0 + (8 * (_x)))
 #define NI_META_ENTRIES 32
-#define NI_LOCAL_TABLE0 0x638100  
+#define NI_LOCAL_TABLE0 0x638100
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 #define NI_LOCAL_TABLE(_x) (NI_LOCAL_TABLE0 + (8 * (_x)))
 #define NI_LOCAL_ENTRIES 16
@@ -73,55 +73,55 @@
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 #define NSRI_LINKUP_SHFT 29
 #define NSRI_LINKUP_MASK (UINT64_CAST 0x1 << 29)
-#define NSRI_DOWNREASON_SHFT 28  
-#define NSRI_DOWNREASON_MASK (UINT64_CAST 0x1 << 28)  
+#define NSRI_DOWNREASON_SHFT 28
+#define NSRI_DOWNREASON_MASK (UINT64_CAST 0x1 << 28)
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 #define NSRI_MORENODES_SHFT 18
-#define NSRI_MORENODES_MASK (UINT64_CAST 1 << 18)  
+#define NSRI_MORENODES_MASK (UINT64_CAST 1 << 18)
 #define MORE_MEMORY 0
 #define MORE_NODES 1
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 #define NSRI_REGIONSIZE_SHFT 17
-#define NSRI_REGIONSIZE_MASK (UINT64_CAST 1 << 17)  
+#define NSRI_REGIONSIZE_MASK (UINT64_CAST 1 << 17)
 #define REGIONSIZE_FINE 1
 #define REGIONSIZE_COARSE 0
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 #define NSRI_NODEID_SHFT 8
-#define NSRI_NODEID_MASK (UINT64_CAST 0x1ff << 8) 
+#define NSRI_NODEID_MASK (UINT64_CAST 0x1ff << 8)
 #define NSRI_REV_SHFT 4
-#define NSRI_REV_MASK (UINT64_CAST 0xf << 4)  
+#define NSRI_REV_MASK (UINT64_CAST 0xf << 4)
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 #define NSRI_CHIPID_SHFT 0
-#define NSRI_CHIPID_MASK (UINT64_CAST 0xf)  
+#define NSRI_CHIPID_MASK (UINT64_CAST 0xf)
 #define NASID_TO_FINEREG_SHFT 0
 #define NASID_TO_COARSEREG_SHFT 3
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-#define NPR_PORTRESET (UINT64_CAST 1 << 7)  
-#define NPR_LINKRESET (UINT64_CAST 1 << 1)  
-#define NPR_LOCALRESET (UINT64_CAST 1)  
+#define NPR_PORTRESET (UINT64_CAST 1 << 7)
+#define NPR_LINKRESET (UINT64_CAST 1 << 1)
+#define NPR_LOCALRESET (UINT64_CAST 1)
 #define NPROT_RESETOK (UINT64_CAST 1)
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-#define NGP_MAXRETRY_SHFT 48  
+#define NGP_MAXRETRY_SHFT 48
 #define NGP_MAXRETRY_MASK (UINT64_CAST 0x3ff << 48)
-#define NGP_TAILTOWRAP_SHFT 32  
+#define NGP_TAILTOWRAP_SHFT 32
 #define NGP_TAILTOWRAP_MASK (UINT64_CAST 0xffff << 32)
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-#define NGP_CREDITTOVAL_SHFT 16  
+#define NGP_CREDITTOVAL_SHFT 16
 #define NGP_CREDITTOVAL_MASK (UINT64_CAST 0xf << 16)
-#define NGP_TAILTOVAL_SHFT 4  
+#define NGP_TAILTOVAL_SHFT 4
 #define NGP_TAILTOVAL_MASK (UINT64_CAST 0xf << 4)
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-#define NDP_PORTTORESET (UINT64_CAST 1 << 18)  
-#define NDP_LLP8BITMODE (UINT64_CAST 1 << 12)  
-#define NDP_PORTDISABLE (UINT64_CAST 1 << 6)  
-#define NDP_SENDERROR (UINT64_CAST 1)  
+#define NDP_PORTTORESET (UINT64_CAST 1 << 18)
+#define NDP_LLP8BITMODE (UINT64_CAST 1 << 12)
+#define NDP_PORTDISABLE (UINT64_CAST 1 << 6)
+#define NDP_SENDERROR (UINT64_CAST 1)
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 #define NVP_PIOID_SHFT 40
 #define NVP_PIOID_MASK (UINT64_CAST 0x3ff << 40)
 #define NVP_WRITEID_SHFT 32
 #define NVP_WRITEID_MASK (UINT64_CAST 0xff << 32)
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-#define NVP_ADDRESS_MASK (UINT64_CAST 0xffff8)  
+#define NVP_ADDRESS_MASK (UINT64_CAST 0xffff8)
 #define NVP_TYPE_SHFT 0
 #define NVP_TYPE_MASK (UINT64_CAST 0x3)
 #define NVS_VALID (UINT64_CAST 1 << 63)
@@ -134,21 +134,21 @@
 #define NVS_PIOID_MASK (UINT64_CAST 0x3ff << 40)
 #define NVS_WRITEID_SHFT 32
 #define NVS_WRITEID_MASK (UINT64_CAST 0xff << 32)
-#define NVS_ADDRESS_MASK (UINT64_CAST 0xfffffff8)  
+#define NVS_ADDRESS_MASK (UINT64_CAST 0xfffffff8)
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 #define NVS_TYPE_SHFT 0
 #define NVS_TYPE_MASK (UINT64_CAST 0x7)
-#define NVS_ERROR_MASK (UINT64_CAST 0x4)  
-#define PIOTYPE_READ 0  
+#define NVS_ERROR_MASK (UINT64_CAST 0x4)
+#define PIOTYPE_READ 0
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-#define PIOTYPE_WRITE 1  
-#define PIOTYPE_UNDEFINED 2  
-#define PIOTYPE_EXCHANGE 3  
-#define PIOTYPE_ADDR_ERR 4  
+#define PIOTYPE_WRITE 1
+#define PIOTYPE_UNDEFINED 2
+#define PIOTYPE_EXCHANGE 3
+#define PIOTYPE_ADDR_ERR 4
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-#define PIOTYPE_CMD_ERR 5  
-#define PIOTYPE_PROT_ERR 6  
-#define PIOTYPE_UNKNOWN 7  
+#define PIOTYPE_CMD_ERR 5
+#define PIOTYPE_PROT_ERR 6
+#define PIOTYPE_UNKNOWN 7
 #define NAGE_VCH_SHFT 10
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 #define NAGE_VCH_MASK (UINT64_CAST 3 << 10)