Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752971Ab0KFSwv (ORCPT ); Sat, 6 Nov 2010 14:52:51 -0400 Received: from mail-in-01.arcor-online.net ([151.189.21.41]:51785 "EHLO mail-in-01.arcor-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751659Ab0KFSws (ORCPT ); Sat, 6 Nov 2010 14:52:48 -0400 X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-09.arcor-online.net D88D619785B Subject: [PATCH 2/3] HID: roccat: declaring meaning of pack pragma usage in koneplus driver From: Stefan Achatz Reply-To: erazor_de@users.sourceforge.net To: Jiri Kosina Cc: Randy Dunlap , Bruno =?ISO-8859-1?Q?Pr=E9mont?= , Stephane Chatty , Don Prince , Dmitry Torokhov , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org In-Reply-To: References: <1287943025.2623.16.camel@neuromancer> <1288978962.2585.15.camel@neuromancer> Content-Type: text/plain; charset="UTF-8" Date: Sat, 06 Nov 2010 19:52:46 +0100 Message-ID: <1289069566.5166.3.camel@neuromancer> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 (2.30.3-1.fc13) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 941 Lines: 32 Using pack pragma to prevent padding bytes in binary data structures used for hardware communication. Explanation of these pragmas was requested. Signed-off-by: Stefan Achatz --- drivers/hid/hid-roccat-koneplus.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/hid/hid-roccat-koneplus.h b/drivers/hid/hid-roccat-koneplus.h index bf750fa..c25a799 100644 --- a/drivers/hid/hid-roccat-koneplus.h +++ b/drivers/hid/hid-roccat-koneplus.h @@ -14,6 +14,9 @@ #include +/* + * Binary data structures for communication with hardware must have no padding. + */ #pragma pack(push) #pragma pack(1) -- 1.7.2.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/