Skip to contentSkip to conversation

Staging: lustre: Remove typedefs

PATCH In review Melike Yurtoglu 2 participants 2 messages Feb 22, 2015 – Feb 23, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: lustre: Remove typedefs

WARNING:do not add new typedefs.Remove typedefs,the names of the renamed types changed.
That was found by running checkpatch.

---
 drivers/staging/lustre/include/linux/libcfs/linux/libcfs.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/lustre/include/linux/libcfs/linux/libcfs.h +2 -2
index 4fe50841..83cddaa 100644
@@ -136,8 +136,8 @@ do {								    \
 #include <linux/capability.h>
 
 /* long integer with size equal to pointer */
-typedef unsigned long ulong_ptr_t;
-typedef long long_ptr_t;
+unsigned long ulong_ptr_t;
+long long_ptr_t;
 
 #ifndef WITH_WATCHDOG
 #define WITH_WATCHDOG
Signature · 1 line
1.8.3.2
#1 lore raw

drivers/staging/lustre/include/linux/libcfs/linux/libcfs.h do { \ · line 140

Quoted 8 lines · On Sunday 22 February 2015 13:07:56 Melike Yurtoglu wrote:

/* long integer with size equal to pointer */

drivers/staging/lustre/include/linux/libcfs/linux/libcfs.h +2 -2
-typedef unsigned long ulong_ptr_t;
-typedef long long_ptr_t;
+unsigned long ulong_ptr_t;
+long long_ptr_t;

Sorry, but this makes no sense. You have replaced the typedefs with unused global variables, and you have not noticed that the types are still actually being used.

Arnd