From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750809AbWGRB7z (ORCPT ); Mon, 17 Jul 2006 21:59:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750830AbWGRB7z (ORCPT ); Mon, 17 Jul 2006 21:59:55 -0400 Received: from ms-smtp-04.nyroc.rr.com ([24.24.2.58]:3783 "EHLO ms-smtp-04.nyroc.rr.com") by vger.kernel.org with ESMTP id S1750809AbWGRB7y (ORCPT ); Mon, 17 Jul 2006 21:59:54 -0400 Subject: Re: [PATCH] fix bad macro param in timer.c From: Steven Rostedt To: Andrew Morton Cc: Linus Torvalds , linux-kernel@vger.kernel.org, keir@xensource.com, Tony Lindgren , zach@vmware.com, Ingo Molnar , Thomas Gleixner , Andreas Mohr In-Reply-To: <1153187268.9932.6.camel@localhost.localdomain> References: <20060717185330.GA32264@rhlx01.fht-esslingen.de> <1153187268.9932.6.camel@localhost.localdomain> Content-Type: text/plain Date: Mon, 17 Jul 2006 21:59:46 -0400 Message-Id: <1153187986.9932.10.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Joe Perches suggested another set of parans. And I believe he's right. Signed-off-by: Steven Rostedt Index: linux-2.6.18-rc2/kernel/timer.c =================================================================== --- linux-2.6.18-rc2.orig/kernel/timer.c 2006-07-17 21:42:01.000000000 -0400 +++ linux-2.6.18-rc2/kernel/timer.c 2006-07-17 21:56:49.000000000 -0400 @@ -408,7 +408,7 @@ static int cascade(tvec_base_t *base, tv * This function cascades all vectors and executes all expired timer * vectors. */ -#define INDEX(N) (base->timer_jiffies >> (TVR_BITS + N * TVN_BITS)) & TVN_MASK +#define INDEX(N) ((base->timer_jiffies >> (TVR_BITS + (N) * TVN_BITS)) & TVN_MASK) static inline void __run_timers(tvec_base_t *base) {