Skip to contentSkip to conversation

linux/types.h: Always use unsigned long for pgoff_t

PATCH New Geert Uytterhoeven 1 participant 1 message Jan 12, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux/types.h: Always use unsigned long for pgoff_t

Everybody uses unsigned long for pgoff_t, and no ever overrode the definition of pgoff_t. Keep it that way, and remove the option of overriding it.

---
 include/linux/types.h | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
include/linux/types.h +1 -4
index a0bb7048687f565e..c26aa84be9d36131 100644
@@ -135,12 +135,9 @@ typedef unsigned long blkcnt_t;
 #endif
 
 /*
- * The type of an index into the pagecache.  Use a #define so asm/types.h
- * can override it.
+ * The type of an index into the pagecache.
  */
-#ifndef pgoff_t
 #define pgoff_t unsigned long
-#endif
 
 /* A dma_addr_t can hold any valid DMA or bus address for the platform */
 #ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT
Signature · 1 line
1.9.1