drm/i915: Shrink sdvo_cmd_names
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 13 Oct 2016 10:09:24 +0000 (11:09 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 13 Oct 2016 12:06:40 +0000 (13:06 +0100)
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 <tvrtko.ursulin@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/intel_sdvo.c

index a061b00297971c39d5996cea1cf4ba274259b2b3..9f352aac952689f8f304490ce6180351f343f197 100644 (file)
@@ -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),