From patchwork Thu Oct 4 20:32:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Kliegman X-Patchwork-Id: 1548091 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id C363E3FC1A for ; Thu, 4 Oct 2012 20:32:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751840Ab2JDUcb (ORCPT ); Thu, 4 Oct 2012 16:32:31 -0400 Received: from mail-ie0-f174.google.com ([209.85.223.174]:57824 "EHLO mail-ie0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751640Ab2JDUca (ORCPT ); Thu, 4 Oct 2012 16:32:30 -0400 Received: by mail-ie0-f174.google.com with SMTP id k13so1965797iea.19 for ; Thu, 04 Oct 2012 13:32:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:x-mailer; bh=piC/lQz/Ph4lbiyGjafvrlpr7esyvMD+XQ/+sIIWnVQ=; b=AHTKGiJadLjzudM+gD+V2TkJjLJLkHdRxsE7kD+DVuzA6Em+heBftYNMFyod89OFfg /mvHFE1+SMBhTrPMu6/OhkZF6Ofi+zW7KUO86CpDVDCfP3nAVJ1vG4u7qBpoRxdQSs5Q +HhJIJ4sk65vNH7Gg7dnppSv0CkmIP8+0rSxM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=piC/lQz/Ph4lbiyGjafvrlpr7esyvMD+XQ/+sIIWnVQ=; b=J6Zo4iEMnvrCFSHdshQrnhylZ8uOLWfOw/DG8Z8qUL0e7dxZDbLOC7umjv55rmcH7i H5PalRI815wVJxitcnC477/Eo6HeXW3Wfd2GEmsNOO2w+ymr7gbnIvwyuvxbDHFDb1R+ /9G0fFArrmxcAv22cjycp3vhAKKKELdcD4PxqcqA26CyghH9Lz7REE5Wn8HNy9jvVz3H UhgLyXKcW648XJrThNjqjq44/fsaCT9GdFhBFvuQaHrIVwPvd2njlJ51NFJxRu/TqQc/ QYiGeRGKpsWncQVPAMCrYddn/wDSeN47CtV0k1pjMs3SqNnHI7UCvSagLfjkFZDmbPub pjkg== Received: by 10.50.208.101 with SMTP id md5mr10067346igc.37.1349382750270; Thu, 04 Oct 2012 13:32:30 -0700 (PDT) Received: from kliegs-chrome.wat.corp.google.com (kliegs-chrome.wat.corp.google.com [172.23.176.30]) by mx.google.com with ESMTPS id ng5sm14235046igc.0.2012.10.04.13.32.28 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 04 Oct 2012 13:32:28 -0700 (PDT) From: Jonathan Kliegman To: linux-kbuild@vger.kernel.org Cc: Jonathan Kliegman Subject: [PATCH] modpost: Permit .GCC.command.line sections Date: Thu, 4 Oct 2012 16:32:19 -0400 Message-Id: <1349382739-24838-1-git-send-email-kliegs@chromium.org> X-Mailer: git-send-email 1.7.7.3 X-Gm-Message-State: ALoCoQnom+WU/Mq6KaeIUHYpaYYzljehIEwkf+aklsjqknifgtIgvxSuAS3yNQmKgYyIhhxu7jDD Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Allow .GCC.command.line sections in modules to prevent modpost warnings: WARNING: sound/usb/snd-usbmidi-lib.o (.GCC.command.line): unexpected non-allocatable section. Did you forget to use "ax"/"aw" in a .S file? Note that for example contains section definitions for use in .S files. Signed-off-by: Jonathan Kliegman --- scripts/mod/modpost.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index a509ff8..9f579d5 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -815,6 +815,7 @@ static const char *section_white_list[] = ".debug*", ".zdebug*", /* Compressed debug sections. */ ".GCC-command-line", /* mn10300 */ + ".GCC.command.line", /* record-gcc-switches, non mn10300 */ ".mdebug*", /* alpha, score, mips etc. */ ".pdr", /* alpha, score, mips etc. */ ".stab*",