From patchwork Thu Oct 13 10:09:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 9374709 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 BED9B60487 for ; Thu, 13 Oct 2016 10:09:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B0F0B29EB7 for ; Thu, 13 Oct 2016 10:09:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A595729F71; Thu, 13 Oct 2016 10:09:42 +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 6920529EB7 for ; Thu, 13 Oct 2016 10:09:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3EC946EA21; Thu, 13 Oct 2016 10:09:41 +0000 (UTC) X-Original-To: Intel-gfx@lists.freedesktop.org Delivered-To: Intel-gfx@lists.freedesktop.org Received: from mail-qk0-x243.google.com (mail-qk0-x243.google.com [IPv6:2607:f8b0:400d:c09::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4B98B6EA21 for ; Thu, 13 Oct 2016 10:09:35 +0000 (UTC) Received: by mail-qk0-x243.google.com with SMTP id z190so5494125qkc.3 for ; Thu, 13 Oct 2016 03:09:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ursulin-net.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=dpHV6Qfj0u50nwy4hxl2t3WJS1dT9ADEDkD2iGnqEak=; b=UakP9u7b4KZCX/clFP6jA1ucE31R+PS5uKbbWXv9hDa1FhbtwZYFdskTtfhBP54Jc0 jmdWm6bCQmeCm8EKiWg1nMqp1BoQZs3505X41V/L6gSvCvFceCnWUTs3Ls5DJu0A+I25 d2F5FJpUxWHzONUz7FwSA3IAXTr+ajEeswQllBPlfv3Cq2O+8I9lrFyKPVwivCkXT3cZ WmrFLEp0+8IyKo0AgL+fVSv0NkVFdzqZW0Jj7ytms5luq5HKES/W7tK05VjUmhueg41G 90pl3CLyj28IMlG8Dtgz//EuguKaflrS5A1cLpcL0z7/vvLCcfIaWskCbBjt6OZ/nGV4 VWYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=dpHV6Qfj0u50nwy4hxl2t3WJS1dT9ADEDkD2iGnqEak=; b=Gqh7PkVKJ//np+MKo3P5McknHWyzB+XDrRuLDKZzqGmpxtsSLytw8xi6pfUOmsApUm 3UUXuNpQcHw64XL4/gWr8a/VcJD39EPFSL44zq8Ehu78pxtH5e4kIFDt4rSTE6MdunyE dFom/NJBSKYeSW4edYQc0uiB+2ahawQmhpq6YXgiygbN1wLCt5i/Ma8QyRBs3SeKhboD mf2bvCb+ot8IxPGYrumAbDxgLCu1XrIcUdzLai9YJa3hRzQ1Lwy6XDZniUvXo7O35v5f mcjrbUxXR67F18cnaEJj7RHL6wA+/PHO3IFrGTYcxNPNRV/WVdyk3Qws9lZQ8qvVMOuP EWww== X-Gm-Message-State: AA6/9RnELv5KKDzZ5JpdA/BV6KG+LWMu5Mt85vKR7CIhsSJVKGH+GIIhIT0HZTEM6xPLbA== X-Received: by 10.194.154.227 with SMTP id vr3mr6742930wjb.127.1476353374178; Thu, 13 Oct 2016 03:09:34 -0700 (PDT) Received: from localhost.localdomain ([2a02:c7d:9b6d:e300:916a:6cab:ac67:71c2]) by smtp.gmail.com with ESMTPSA id g6sm21291075wjy.3.2016.10.13.03.09.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Oct 2016 03:09:33 -0700 (PDT) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: Intel-gfx@lists.freedesktop.org Date: Thu, 13 Oct 2016 11:09:24 +0100 Message-Id: <1476353366-13931-2-git-send-email-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1476353366-13931-1-git-send-email-tvrtko.ursulin@linux.intel.com> References: <1476353366-13931-1-git-send-email-tvrtko.ursulin@linux.intel.com> Subject: [Intel-gfx] [CI 2/4] 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: Joonas Lahtinen --- 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),