Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762421AbXJZJov (ORCPT ); Fri, 26 Oct 2007 05:44:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757777AbXJZJnm (ORCPT ); Fri, 26 Oct 2007 05:43:42 -0400 Received: from smtp-out.google.com ([216.239.45.13]:40438 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762323AbXJZJnk (ORCPT ); Fri, 26 Oct 2007 05:43:40 -0400 DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=received:date:from:x-x-sender:to:cc:subject:in-reply-to: message-id:references:mime-version:content-type; b=tUy7MFS5FZZggbHfbDcVs3zPXe+LlzDPZcrB+xTZvxmEHXMFELx37c1eNQMG+vN3Y tWOkPhpIbsX3muZj3fm3w== Date: Fri, 26 Oct 2007 02:42:30 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Alexey Dobriyan cc: torvalds@osdl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] De-constify sched.h In-Reply-To: <20071026081721.GA6244@localhost.sw.ru> Message-ID: References: <20071026081721.GA6244@localhost.sw.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 599 Lines: 14 On Fri, 26 Oct 2007, Alexey Dobriyan wrote: > 2) There is no such thing as const task_struct. Anyone who think otherwise > deserves compiler warning. > A 'const struct task_struct *' can be used as an annotation to mean that no member of the struct is modified through that pointer, so it's perfectly acceptable to qualify formals in that manner. - 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/