Received: by 10.213.65.68 with SMTP id h4csp666993imn; Tue, 13 Mar 2018 17:20:57 -0700 (PDT) X-Google-Smtp-Source: AG47ELsaTls4rVqeAgKHaT0vMSHSUfCyUejl03N0o9P8XLgjikNfRiCdTYS0SbOtYTUmyPKbu6kT X-Received: by 10.98.21.200 with SMTP id 191mr2357237pfv.166.1520986857437; Tue, 13 Mar 2018 17:20:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520986857; cv=none; d=google.com; s=arc-20160816; b=rYO0jIje6oFycNlsw1I9vBqcncBISykChhGdeN+JEmaRi9qvk7LZllxgYFLyGNNWRS d9LSpk0+GEoP1C3nOyXUpJgExyEDPeaKMu5b43Xc5l1icdXMlCX/T2vxcGAlmyHHOlu/ AMnKMXNInF5fNns8/dOl0c3ElgGqvYL+aFFuvURfj46m9q7cAEiRcpdnoTZGguKKhSH5 ln20gEDY5I73hpZZkUZnrwQnLtFV2YurUYXvVg1geoqSnxGzXP+EsnW93l7zByuGfOIO l1nV2jfRv4cxTJIXclpymZwZtsVN2D4oCR5EsNZBBAAByt6Cs1bQjXZI7sfM2LNoWnRn S+vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:message-id:date:subject:cc:from :dkim-signature:arc-authentication-results; bh=4BEQ9AbPEgIIuktp1AjMgev7AKzGHfZO5h1e9RUc/A0=; b=bJecK3/Q0yr1xKgcTPYcWlepFgtU/f8oxiZ3rZpa323PXf29gbb1ipg7ZisTbXz8G1 7OuzjQ3vDDA+FAfOzJVof84Qo3B6fjn97VicEDzWK+AOufPoTqi3M0MfWJB22LVJ9S5F ImwbuW9g+GjHxHAJoZqYUVZo6ZK29mPp3lMCqUANkIK6pmV2hY7p70f8G4cZkKu1gfXL fE5s8PBuJgI29UOv1vCG2qKVWXAtGnCK4KesLvwXeokIzYM2bF0Zd8THH4sz4irQ99pb pAPNfiUD8lX7+0LmXLBC4/QDl+GcXdDXnpbcp2lzaaX29Z0x/bHAgc7BpBWOyDKTf7O6 mlrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@chromium.org header.s=google header.b=I9klFRhI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b187si891092pgc.205.2018.03.13.17.20.43; Tue, 13 Mar 2018 17:20:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@chromium.org header.s=google header.b=I9klFRhI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932971AbeCNATj (ORCPT + 99 others); Tue, 13 Mar 2018 20:19:39 -0400 Received: from mail-ot0-f196.google.com ([74.125.82.196]:39208 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932634AbeCNATh (ORCPT ); Tue, 13 Mar 2018 20:19:37 -0400 Received: by mail-ot0-f196.google.com with SMTP id h8-v6so1531081oti.6 for ; Tue, 13 Mar 2018 17:19:37 -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; bh=4BEQ9AbPEgIIuktp1AjMgev7AKzGHfZO5h1e9RUc/A0=; b=I9klFRhI+e020rPUuJpAtMuw9/0UbSFelwDkrSjdRAG6Nj3yAg/4TcVnO27fgeMA5m OxpCSTmY2/mLEToeFl8642TMWlT5agq499MJy5fi28pfgZA2KatAOoICmmBGTczqg3as ZgDg5grbL7En713MzBrchE3VgyakhCiF8JIwI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=4BEQ9AbPEgIIuktp1AjMgev7AKzGHfZO5h1e9RUc/A0=; b=cPmt0/9bT0+FU/zSWT73dfeyHkTT5byNgAUJ0z4mJ7VG4CYOkNawz7BYWEkwY7fSkl +wKl4rf6/vyHhwR7mXzo4A1xKlh1WRXTN1PkhiEAoTjUNnXRXEvGbIzH4ULJTW2nWe97 o3DbrTsSSigzx9QaJEOTTBvBzSxz8IAsMKPluiFx9VPZ/kx6A+z9F2fR6B24Vb8Km7XL jua5NdB+3iMAqkOZ+zMCKwDnrZ9sP8i5IqnOVcS6zQ+RUZvwWnoKPRCN0+5ETnB3HaVC 0SLN9ndnRtgLNitTOeWqROo4DABDb7/yOYVyGtsAQirn1NfU83hhTUrSWfgGEGADx41t hlCA== X-Gm-Message-State: AElRT7E+slWEpbWlhCZNdNhi8lzu2Ps1w6dlP8N9dDZU+ZshBnwCRn7A EbgAPEjIOFtZfOgHUlieK1JXhw== X-Received: by 10.157.69.152 with SMTP id x24mr1681313ote.126.1520986777451; Tue, 13 Mar 2018 17:19:37 -0700 (PDT) Received: from djkurtz2.bld.corp.google.com ([2620:15c:183:0:1cfd:61a5:7215:5f9c]) by smtp.gmail.com with ESMTPSA id r58sm850202otb.58.2018.03.13.17.19.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Mar 2018 17:19:36 -0700 (PDT) From: Daniel Kurtz Cc: adurbin@chromium.org, Daniel Kurtz , Arnd Bergmann , Greg Kroah-Hartman , Jiri Slaby , linux-arch@vger.kernel.org (open list:GENERIC INCLUDE/ASM HEADER FILES), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] earlycon: Fix __earlycon_table stride... again Date: Tue, 13 Mar 2018 18:19:33 -0600 Message-Id: <20180314001933.5302-1-djkurtz@chromium.org> X-Mailer: git-send-email 2.16.2.804.g6dcf76e118-goog To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 470ca0de69fe ("serial: earlycon: Enable earlycon without command line param") added EARLYCON_TABLE(). Commit 99492c39f39f ("earlycon: Fix __earlycon_table stride") fixed EARLYCON_TABLE() alignment to 32-bytes. Commit 2eaa790989e0 ("earlycon: Use common framework for earlycon declarations") added the compatible field, which bumped EARLYCON_TABLE() alignment to 128 bytes (LCM of size of all fields of struct earlycon_id. Correct the struct definition and linker alignment to match. Signed-off-by: Daniel Kurtz --- include/asm-generic/vmlinux.lds.h | 2 +- include/linux/serial_core.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 1ab0e520d6fc..2f7de2e36005 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -179,7 +179,7 @@ #endif #ifdef CONFIG_SERIAL_EARLYCON -#define EARLYCON_TABLE() STRUCT_ALIGN(); \ +#define EARLYCON_TABLE() . = ALIGN(128); \ VMLINUX_SYMBOL(__earlycon_table) = .; \ KEEP(*(__earlycon_table)) \ VMLINUX_SYMBOL(__earlycon_table_end) = .; diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index b32df49a3bd5..c9170b9ccb1b 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h @@ -351,7 +351,7 @@ struct earlycon_id { char name[16]; char compatible[128]; int (*setup)(struct earlycon_device *, const char *options); -} __aligned(32); +} __aligned(128); extern const struct earlycon_id __earlycon_table[]; extern const struct earlycon_id __earlycon_table_end[]; -- 2.16.2.804.g6dcf76e118-goog