From patchwork Fri Oct 7 13:34:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 9366101 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 B420760487 for ; Fri, 7 Oct 2016 13:34:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A669B295AA for ; Fri, 7 Oct 2016 13:34:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9B41E295F6; Fri, 7 Oct 2016 13:34:32 +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 3B7C8295AA for ; Fri, 7 Oct 2016 13:34:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F2D426E3DC; Fri, 7 Oct 2016 13:34:28 +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 244176EB98 for ; Fri, 7 Oct 2016 13:34:25 +0000 (UTC) Received: by mail-wm0-x244.google.com with SMTP id i130so3028585wmg.0 for ; Fri, 07 Oct 2016 06:34:25 -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=Tgx4y+chvih9yBYppy4vLL2bEYAip0TKyFk7WjYD0LHd42/LaDoqAfeo5Te4IeW/9O KpU66miAwiFGh7TPpNUdT2UcVyACWeTBOP108KNPp8udKkGzPbZDJcTitZETcDBV5Yel boVd1jLpw/9Xxc8gYc6PJoJndRXlLS/RZjrib361tQWVEp93L5ATfXwcPF9ZHKKqVok7 ItRPqKIywMYlV43BIMzLK+7yWTtrzXrdLV7rpyHLu4rkYP5OI+IIxD0VCCbafVY71+Ri i8CgL/LElt0IAZg+g1WqdnFvOSSGvFvSG+3wSD8fsblBkK5tVWboJuJz+JwfA941w2pd haJQ== 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=LuNWw+IJ2mDbmIiLd0LXa9rHzXDgu69xddbC8rauPAqs1uCcQNO7MXHyIImiS3sSlZ g/qoCkSTeELFR8Wyi2bOorWav+ISec+OvCdVBk5yfalKcdlKk5uDLOcwW2j4nHE8WIp6 7W1Nlmr2yw0rlkD8PODM+H8yJdHBfoxrbiqNSt0KF4XaXqNGqx/w50u9Vibp0oK2fMMg suH95oWGdtHMsBd7Wp7JJkpEccq1CYLIAHYyj9TRl1EDGBFwWYZXj9KC1nlPhfKBX7WK w7uMnZLOfk003zPV97nFFy1G2q9PL3C1Z59Wubh7oVqPleTdbTDE4MVIGb/GrWg7OeIA lSfQ== X-Gm-Message-State: AA6/9Rnpv0qxjHWn7nDUlur5W+uWbVQeL8jwnwfTcGGDeUGcJ3Y66MaL538cKAupKhQFdg== X-Received: by 10.194.200.39 with SMTP id jp7mr21435527wjc.64.1475847263714; Fri, 07 Oct 2016 06:34:23 -0700 (PDT) Received: from localhost.localdomain ([2a02:c7d:9b6d:e300:916a:6cab:ac67:71c2]) by smtp.gmail.com with ESMTPSA id pj2sm19795081wjb.8.2016.10.07.06.34.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Oct 2016 06:34:23 -0700 (PDT) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: Intel-gfx@lists.freedesktop.org Date: Fri, 7 Oct 2016 14:34:05 +0100 Message-Id: <1475847252-31580-3-git-send-email-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1475847252-31580-1-git-send-email-tvrtko.ursulin@linux.intel.com> References: <1475847252-31580-1-git-send-email-tvrtko.ursulin@linux.intel.com> Subject: [Intel-gfx] [PATCH 2/9] 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),