From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756047AbcGHQ3o (ORCPT ); Fri, 8 Jul 2016 12:29:44 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:11386 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755580AbcGHQ3b (ORCPT ); Fri, 8 Jul 2016 12:29:31 -0400 From: Eric Engestrom To: CC: Eric Engestrom , Eric Engestrom , Dan Williams , Subject: [PATCH 1/2] libnvdimm: add missing macros Date: Fri, 8 Jul 2016 17:29:10 +0100 Message-ID: <20160708162911.18756-1-eric.engestrom@imgtec.com> X-Mailer: git-send-email 2.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.60.4.28] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Eric Engestrom --- This can't compile without these macros… Is this header really used by anyone? Should it be removed, to avoid bit-rot? --- include/uapi/linux/ndctl.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/uapi/linux/ndctl.h b/include/uapi/linux/ndctl.h index 309915f..50ae5e7 100644 --- a/include/uapi/linux/ndctl.h +++ b/include/uapi/linux/ndctl.h @@ -15,6 +15,14 @@ #include +#ifdef __GNUC__ +#define __packed __attribute__((packed)) +#else +#define __packed +#endif + +#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr)[0]) + struct nd_cmd_smart { __u32 status; __u8 data[128]; -- 2.9.0