From 98e2070cd2c48bdf93aeab104c071561ab31fd44 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 9 Nov 2005 09:09:44 +0100 Subject: [PATCH] [PATCH] fio: BITS_PER_LONG can just be __WORDSIZE --- arch-alpha.h | 2 -- arch-ia64.h | 2 -- arch-ppc.h | 2 -- arch-s390.h | 2 -- arch-x86.h | 2 -- arch-x86_64.h | 2 -- arch.h | 2 ++ 7 files changed, 2 insertions(+), 12 deletions(-) diff --git a/arch-alpha.h b/arch-alpha.h index 49c7b1b..be06047 100644 --- a/arch-alpha.h +++ b/arch-alpha.h @@ -3,8 +3,6 @@ static int arch = arch_alpha; -#define BITS_PER_LONG (64) - #ifndef __NR_ioprio_set #define __NR_ioprio_set 442 #define __NR_ioprio_get 443 diff --git a/arch-ia64.h b/arch-ia64.h index ea6d7dd..5b55e8a 100644 --- a/arch-ia64.h +++ b/arch-ia64.h @@ -3,8 +3,6 @@ static int arch = arch_ia64; -#define BITS_PER_LONG (64) - #ifndef __NR_ioprio_set #define __NR_ioprio_set 1274 #define __NR_ioprio_get 1275 diff --git a/arch-ppc.h b/arch-ppc.h index a5c6a59..8469657 100644 --- a/arch-ppc.h +++ b/arch-ppc.h @@ -3,8 +3,6 @@ static int arch = arch_ppc; -#define BITS_PER_LONG (32) - #ifndef __NR_ioprio_set #define __NR_ioprio_set 273 #define __NR_ioprio_get 274 diff --git a/arch-s390.h b/arch-s390.h index 54d9354..81f0377 100644 --- a/arch-s390.h +++ b/arch-s390.h @@ -3,8 +3,6 @@ static int arch = arch_s390; -#define BITS_PER_LONG (64) - #ifndef __NR_ioprio_set #define __NR_ioprio_set 282 #define __NR_ioprio_get 283 diff --git a/arch-x86.h b/arch-x86.h index 483e60c..502e9ce 100644 --- a/arch-x86.h +++ b/arch-x86.h @@ -3,8 +3,6 @@ static int arch = arch_i386; -#define BITS_PER_LONG (32) - #ifndef __NR_ioprio_set #define __NR_ioprio_set 289 #define __NR_ioprio_get 290 diff --git a/arch-x86_64.h b/arch-x86_64.h index 2ef5365..c8350ab 100644 --- a/arch-x86_64.h +++ b/arch-x86_64.h @@ -3,8 +3,6 @@ static int arch = arch_x86_64; -#define BITS_PER_LONG (64) - #ifndef __NR_ioprio_set #define __NR_ioprio_set 251 #define __NR_ioprio_get 252 diff --git a/arch.h b/arch.h index c6adf41..44d09e9 100644 --- a/arch.h +++ b/arch.h @@ -26,4 +26,6 @@ enum { #error "Unsupported arch" #endif +#define BITS_PER_LONG (__WORDSIZE) + #endif -- 2.25.1