From patchwork Wed Oct 5 12:33:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 9362833 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 411D36075E for ; Wed, 5 Oct 2016 12:34:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 316312893E for ; Wed, 5 Oct 2016 12:34:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2484928942; Wed, 5 Oct 2016 12:34:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DA3842893E for ; Wed, 5 Oct 2016 12:34:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E1C3C6E835; Wed, 5 Oct 2016 12:34:04 +0000 (UTC) X-Original-To: Intel-gfx@lists.freedesktop.org Delivered-To: Intel-gfx@lists.freedesktop.org Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id C1F446E24C for ; Wed, 5 Oct 2016 12:34:02 +0000 (UTC) Received: by mail-wm0-x244.google.com with SMTP id b201so19204182wmb.1 for ; Wed, 05 Oct 2016 05:34:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ursulin-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kmZ/f3Zry8jOFFSBGo0E3xTYN458LL6Lz7ReCDuImCE=; b=qMR6sYlv3utkGkojT8bchwCeWYUM5MPoih5pJQi6dsAseNmeZ12vhNk36wF16/oPc6 Tt0AuhxBbukUq6F1Typ7jW3E3qichuQBj/HWRahDLgdHq37xrWM7EeIs2yrqfJ0vyv+v E+y3cIF9LxnNwreIVIB9WtDCZrXldmeHoBR0b0Wz7zdFTTskInR+LPB5gc6uz8NrPv3k zyItn2N0uKtcYAe6o8ozfh14MCpi6h9sYOqgGkoWIa62g+lOz1Zzdxg9bn7fyT6QgF/R l6MXllCesssAz6WRbuXmSa8IhW0IaH2B+GKUfGrOFvU3KxuSHDcaCk34jlEoCG8IqKPG 3XYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kmZ/f3Zry8jOFFSBGo0E3xTYN458LL6Lz7ReCDuImCE=; b=C4xyAC+GCrNNkSXA5Nn4zn1K9kgpZxkaGClrPEO9nEe4C8THCGRTSKdmRyHhhjf6iY 8Wil2G9RSrrq+09HBllo6vz0Px32xgEZ3DdAMlTwp1lgNxlz5PkPk8qmpOj7cxW+hF7R 9Osxsr3H9IJVGvEoAmKp7P3Kov1yWhgvTd9rGrO7lg3udTu6PcxBTvY/DYd7fMwozTXw 2xRWPHrpiTT8MpWtFQ76JlUYGqxZv9JeUgLGhlvOlSkQfDunF3PCvDZHhQUI+mTq0EZX KAkTPP898YqNenLXQQZspPhtcGUvBkrZwWGNmP5XVSynKhsjD3ckZmxO/ApIMRgiSH51 rt/Q== X-Gm-Message-State: AA6/9RnCM5bH/HFMlD+TthEtC9qA7hM+b1w1r+gYh8pPaB8wO/ZUlyBEzV9PnYZF5D/4Iw== X-Received: by 10.28.133.70 with SMTP id h67mr8919595wmd.61.1475670841157; Wed, 05 Oct 2016 05:34:01 -0700 (PDT) Received: from e31.Home ([2a02:c7d:9b6d:e300:916a:6cab:ac67:71c2]) by smtp.gmail.com with ESMTPSA id t138sm29428317wmt.5.2016.10.05.05.34.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Oct 2016 05:34:00 -0700 (PDT) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: Intel-gfx@lists.freedesktop.org Date: Wed, 5 Oct 2016 13:33:29 +0100 Message-Id: <1475670829-14025-3-git-send-email-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1475670829-14025-1-git-send-email-tvrtko.ursulin@linux.intel.com> References: <1475670829-14025-1-git-send-email-tvrtko.ursulin@linux.intel.com> Subject: [Intel-gfx] [PATCH 02/22] drm/i915: Shrink sdvo_cmd_names X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP From: Tvrtko Ursulin Pack the struct _sdvo_cmd_name to save 736 bytes of .rodata. This is fine since the name pointers are used only for debug. Signed-off-by: Tvrtko Ursulin Reviewed-by: Daniel Vetter --- drivers/gpu/drm/i915/intel_sdvo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c index a061b0029797..9f352aac9526 100644 --- a/drivers/gpu/drm/i915/intel_sdvo.c +++ b/drivers/gpu/drm/i915/intel_sdvo.c @@ -307,7 +307,7 @@ static bool intel_sdvo_read_byte(struct intel_sdvo *intel_sdvo, u8 addr, u8 *ch) static const struct _sdvo_cmd_name { u8 cmd; const char *name; -} sdvo_cmd_names[] = { +} __attribute__ ((packed)) sdvo_cmd_names[] = { SDVO_CMD_NAME_ENTRY(SDVO_CMD_RESET), SDVO_CMD_NAME_ENTRY(SDVO_CMD_GET_DEVICE_CAPS), SDVO_CMD_NAME_ENTRY(SDVO_CMD_GET_FIRMWARE_REV),