From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752957AbYJYIUs (ORCPT ); Sat, 25 Oct 2008 04:20:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751659AbYJYIUc (ORCPT ); Sat, 25 Oct 2008 04:20:32 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:40975 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751131AbYJYIUb (ORCPT ); Sat, 25 Oct 2008 04:20:31 -0400 Subject: Re: Bloatwatch 2.6.28-rc1: i8042 DMI lookup tables From: David Woodhouse To: Matt Mackall Cc: Dmitry Torokhov , Jiri Kosina , Linux Kernel Mailing List , Ingo Molnar In-Reply-To: <1224905479.3248.126.camel@calx> References: <1224879959.3248.32.camel@calx> <1224890002.3248.71.camel@calx> <200810242046.02743.dmitry.torokhov@gmail.com> <1224905479.3248.126.camel@calx> Content-Type: text/plain Date: Sat, 25 Oct 2008 09:20:25 +0100 Message-Id: <1224922825.18031.16.camel@macbook.infradead.org> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2008-10-24 at 22:31 -0500, Matt Mackall wrote: > Ideally, we'd find a way to (a) store variable-length string constants > in init sections and (b) teach modpost about following pointers. Doing (b) shouldn't be _so_ hard. Modpost already trawls through the relocations, looking for naughty ones. Making it actually _do_ them when it needs to shouldn't be impossible. > Something like this would work inside code but sadly not inside > declarations: > > #define ISTR(s) ({static char c[] __attribute__ ((section("__initdata__"))) = s;c;}) Yeah, I played with that for a while, but gave up. -- David Woodhouse Open Source Technology Centre David.Woodhouse@intel.com Intel Corporation