From: Dan Carpenter Date: Thu, 3 Jun 2010 10:19:28 +0000 (+1000) Subject: padata: add parenthesis in MAX_SEQ_NR macro X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=749d811f10a410b64cf4c674c498ec04316ec373;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git padata: add parenthesis in MAX_SEQ_NR macro MAX_SEQ_NR is used in padata_alloc_pd() like this: pd->max_seq_nr = (MAX_SEQ_NR / num_cpus) * num_cpus - 1; It needs parenthesis or the divide by num_cpus takes precedence over the subtraction. Signed-off-by: Dan Carpenter Acked-by: Steffen Klassert Signed-off-by: Herbert Xu --- diff --git a/kernel/padata.c b/kernel/padata.c index b1c9857f8402..ff8de1b71e4e 100644 --- a/kernel/padata.c +++ b/kernel/padata.c @@ -28,7 +28,7 @@ #include #include -#define MAX_SEQ_NR INT_MAX - NR_CPUS +#define MAX_SEQ_NR (INT_MAX - NR_CPUS) #define MAX_OBJ_NUM 1000 static int padata_index_to_cpu(struct parallel_data *pd, int cpu_index)