Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754119Ab1FLVfz (ORCPT ); Sun, 12 Jun 2011 17:35:55 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:57541 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751636Ab1FLVfy (ORCPT ); Sun, 12 Jun 2011 17:35:54 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=mhtuWV0JWANJE8g3qjNacZBL2ES14RjFIKswT7cM7XprxqRDt6Kii3ImAvMs/44Ne/ SmnM7hJ8fIvyd0ba+QtvK+1tyqHB0XboXOdJ6PP5H3n3Puthny16agAKImyy7NeSztJx tDn3EeVgAgie8UWL/XjYaef3iCYpM/94UF/3A= Date: Mon, 13 Jun 2011 00:35:49 +0300 From: Alexey Dobriyan To: Jean Sacren Cc: Linux Kernel Mailing List Subject: Re: [PATCH 1/1] kernel/sched.c: Fix array initialization typo Message-ID: <20110612213549.GA21620@p183.telecom.by> References: <20110612213107.GA12816@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110612213107.GA12816@mail.gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1327 Lines: 29 On Sun, Jun 12, 2011 at 03:31:07PM -0600, Jean Sacren wrote: > The fix makes certain so that the size of the initialized arrays doesn't > go beyond the boundary set by the array size of 40. Why would it possibly do that? And it's not a typo. > @@ -1383,7 +1383,7 @@ static const int prio_to_weight[40] = { > /* 0 */ 1024, 820, 655, 526, 423, > /* 5 */ 335, 272, 215, 172, 137, > /* 10 */ 110, 87, 70, 56, 45, > - /* 15 */ 36, 29, 23, 18, 15, > + /* 15 */ 36, 29, 23, 18, 15 > }; > > /* > @@ -1401,7 +1401,7 @@ static const u32 prio_to_wmult[40] = { > /* 0 */ 4194304, 5237765, 6557202, 8165337, 10153587, > /* 5 */ 12820798, 15790321, 19976592, 24970740, 31350126, > /* 10 */ 39045157, 49367440, 61356676, 76695844, 95443717, > - /* 15 */ 119304647, 148102320, 186737708, 238609294, 286331153, > + /* 15 */ 119304647, 148102320, 186737708, 238609294, 286331153 > }; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/