Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964967AbVHYNJr (ORCPT ); Thu, 25 Aug 2005 09:09:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964970AbVHYNJq (ORCPT ); Thu, 25 Aug 2005 09:09:46 -0400 Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:22939 "EHLO parcelfarce.linux.theplanet.co.uk") by vger.kernel.org with ESMTP id S964967AbVHYNJq (ORCPT ); Thu, 25 Aug 2005 09:09:46 -0400 Date: Thu, 25 Aug 2005 14:12:52 +0100 From: Al Viro To: Geert Uytterhoeven Cc: Al Viro , Linus Torvalds , Linux Kernel Development , linux-m68k@vger.kernel.org Subject: Re: [PATCH] (18/22) task_thread_info - part 2/4 Message-ID: <20050825131251.GR9322@parcelfarce.linux.theplanet.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 25, 2005 at 10:41:27AM +0200, Geert Uytterhoeven wrote: > > > > +static inline void setup_thread_info(struct task_struct *p, struct thread_info *ti) > ^^^^^^^^^^^^^^^^^^^^^ > const struct task_struct *p? Umm... Wouldn't be a problem, but what does it buy? The only caller has p very much _not_ const pointer and since it's inlined, you won't gain any optimizations in the caller out of it. > > +{ > > + *ti = *p->thread_info; > > +} > > + > > +static inline unsigned long *end_of_stack(struct task_struct *p) > ^^^^^^^^^^^^^^^^^^^^^ > const struct task_struct *p? That one is OK, but then you really want const pointer out of it.