From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752991AbYKLSSj (ORCPT ); Wed, 12 Nov 2008 13:18:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751763AbYKLSSb (ORCPT ); Wed, 12 Nov 2008 13:18:31 -0500 Received: from pfepb.post.tele.dk ([195.41.46.236]:34239 "EHLO pfepb.post.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751859AbYKLSSa (ORCPT ); Wed, 12 Nov 2008 13:18:30 -0500 Date: Wed, 12 Nov 2008 19:19:40 +0100 From: Sam Ravnborg To: Takashi Iwai Cc: Isaku Yamahata , Jeremy Fitzhardinge , Tony Luck , linux-kernel@vger.kernel.org Subject: Re: [PATCH] Fix section type conflict in arch/ia64/xen/xen_pv_ops.c Message-ID: <20081112181940.GA15614@uranus.ravnborg.org> References: <49133E11.8050607@goop.org> <20081106214848.GA3579@uranus.ravnborg.org> <20081111081552.GA10955%yamahata@valinux.co.jp> <20081111085617.GD10955%yamahata@valinux.co.jp> <4919C43F.3030009@goop.org> <4919D33C.3030101@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 11, 2008 at 08:04:30PM +0100, Takashi Iwai wrote: > At Tue, 11 Nov 2008 10:47:24 -0800, > Jeremy Fitzhardinge wrote: > > > > Takashi Iwai wrote: > > > At Tue, 11 Nov 2008 09:43:27 -0800, > > > Jeremy Fitzhardinge wrote: > > > > > >> Isaku Yamahata wrote: > > >> > > >>> Here is. > > >>> > > >>> __initdata and const cannot be always a happy pair and > > >>> x86 xen has the potential issue. > > >>> This patch simply removes const from data with __initdata > > >>> under arch/x86/xen/. > > >>> > > >>> > > >> No, I think the proper fix is to use __initconst. > > >> > > > > > > The problem is that it depends on gcc version which section it goes. > > > Thus __initconst could break some gcc versions as well. > > > > > > > Why? __initconst explicitly puts it in .init.rodata. > > Hrm, right, that's what __initconst does. Just confused. > Then I'm wondering in which case __initconst can be broken... > Sam? Do you have any particular reports? I have only got reports that __initconst causes gcc build failure on powerpc 64 bit. So for x86 it should be safe to use __initconst. Sam