diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-06-28 16:10:28 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-06-28 17:40:39 -0700 |
commit | 2e0ae579909fe49bffd7db29992b5526b99f3a1e (patch) | |
tree | 21c97436cdb723fd2b067d0aa00f6f846c2b330f /include/common.h | |
parent | 3db49e8acfc61700f67926257cf895bf015f5b1b (diff) | |
download | chrome-ec-2e0ae579909fe49bffd7db29992b5526b99f3a1e.tar.gz |
Use __packed instead of __attribute__((packed))
The presubmit script for linux kernel style prefers the former.
BUG=none
TEST=none
Change-Id: I0a0a1eb039f45975ada075c1302d868071a7cfb1
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/26361
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h index 2eb2157247..f7663f3024 100644 --- a/include/common.h +++ b/include/common.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved. +/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -10,6 +10,14 @@ #include <stdint.h> +/* + * Define __packed if someone hasn't beat us to it. Linux kernel style + * checking prefers __packed over __attribute__((packed)). + */ +#ifndef __packed +#define __packed __attribute__((packed)) +#endif + /* List of common error codes that can be returned */ enum ec_error_list { /* Success - no error */ |