Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753496AbdG2HZK (ORCPT ); Sat, 29 Jul 2017 03:25:10 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:34115 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753408AbdG2HZH (ORCPT ); Sat, 29 Jul 2017 03:25:07 -0400 From: SZ Lin To: ashleydlai@gmail.com Cc: benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, peterhuewe@gmx.de, tpmdd@selhorst.ne, jarkko.sakkinen@linux.intel.com, jgunthorpe@obsidianresearch.com, tpmdd-devel@lists.sourceforge.net, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, SZ Lin Subject: [PATCH 1/5] Fix packed and aligned attribute warnings. Date: Sat, 29 Jul 2017 15:24:29 +0800 Message-Id: <20170729072433.13194-2-sz.lin@moxa.com> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20170729072433.13194-1-sz.lin@moxa.com> References: <20170729072433.13194-1-sz.lin@moxa.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 764 Lines: 26 WARNING: __packed is preferred over __attribute__((packed)) +} __attribute__((packed, aligned(8))); WARNING: __aligned(size) is preferred over __attribute__((aligned(size))) +} __attribute__((packed, aligned(8))); Signed-off-by: SZ Lin --- drivers/char/tpm/tpm_ibmvtpm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/tpm/tpm_ibmvtpm.h b/drivers/char/tpm/tpm_ibmvtpm.h index 91dfe766d080..9f708ca3dc84 100644 --- a/drivers/char/tpm/tpm_ibmvtpm.h +++ b/drivers/char/tpm/tpm_ibmvtpm.h @@ -25,7 +25,7 @@ struct ibmvtpm_crq { __be16 len; __be32 data; __be64 reserved; -} __attribute__((packed, aligned(8))); +} __packed __aligned(8); struct ibmvtpm_crq_queue { struct ibmvtpm_crq *crq_addr; -- 2.13.3