From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759075AbZABWST (ORCPT ); Fri, 2 Jan 2009 17:18:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757853AbZABWSG (ORCPT ); Fri, 2 Jan 2009 17:18:06 -0500 Received: from vms173007pub.verizon.net ([206.46.173.7]:37615 "EHLO vms173007pub.verizon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751573AbZABWSD (ORCPT ); Fri, 2 Jan 2009 17:18:03 -0500 Date: Fri, 02 Jan 2009 17:17:52 -0500 (EST) From: Len Brown Subject: Re: [incremental-PATCH-for-Sam's-Review] ACPI: use ccflags-y instead of EXTRA_CFLAGS In-reply-to: <20090102215208.GA8494@uranus.ravnborg.org> X-X-Sender: lenb@localhost.localdomain To: Sam Ravnborg Cc: Andi Kleen , linux-acpi@vger.kernel.org, Linux Kernel Mailing List Message-id: MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII References: <1230720725-9376-1-git-send-email-lenb@kernel.org> <526647e1bb69fd3248558fce365bb1fbfb226ccd.1230719795.git.len.brown@intel.com> <20081231133901.GB2388@uranus.ravnborg.org> <87bpusv31n.fsf@basil.nowhere.org> <20081231153441.GA3475@uranus.ravnborg.org> <20090102215208.GA8494@uranus.ravnborg.org> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > --- a/drivers/acpi/Makefile ... > > +ccflags-y := -Os > The conversion from ACPI_CFLAGS to ccflags-y is fine. > And if acpi really require -Os then this part is also OK - > I just did not get *why* acpi needs -Os ACPI does not "need" -Os. However, ACPI in Linux has been built with -Os since 2.4 on the assumption that since ACPI should never be performance critical, that it was best to simply have it consume as little space as possible. It appears that the entire kernel is now built with -Os by default, so it looks like this is now redundant in the default case and will have an effect only when somebody disables CONFIG_CC_OPTIMIZE_FOR_SIZE to build with -O2. So I'm willing to delete -Os from the ACPI Makefile in the interest of simplicity. thanks, Len Brown, Intel Open Source Technology Center