From ea676f9ae6757018110532f424fa15df6704be0e Mon Sep 17 00:00:00 2001 From: Etienne Le Grand Date: Sat, 5 Apr 2014 04:46:55 +0000 Subject: Revert "Remove offset checks for reserved fields in sensor_t and sensors_event_t." This reverts commit 4db220ec857c9166843a8d6fae9b52666c177168. Change-Id: I61feb99c2024889e29e2b300ad4a4f5af1fdc282 --- tests/hardware/struct-offset.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/hardware/struct-offset.cpp b/tests/hardware/struct-offset.cpp index bdb1fad..0a1338a 100644 --- a/tests/hardware/struct-offset.cpp +++ b/tests/hardware/struct-offset.cpp @@ -88,6 +88,7 @@ void CheckOffsets(void) { CHECK_MEMBER_AT(sensors_event_t, u64, 24, 24); CHECK_MEMBER_AT(sensors_event_t, u64.data, 24, 24); CHECK_MEMBER_AT(sensors_event_t, u64.step_counter, 24, 24); + CHECK_MEMBER_AT(sensors_event_t, reserved1, 88, 88); CHECK_MEMBER_AT(struct sensor_t, name, 0, 0); CHECK_MEMBER_AT(struct sensor_t, vendor, 4, 8); @@ -100,6 +101,7 @@ void CheckOffsets(void) { CHECK_MEMBER_AT(struct sensor_t, minDelay, 32, 40); CHECK_MEMBER_AT(struct sensor_t, fifoReservedEventCount, 36, 44); CHECK_MEMBER_AT(struct sensor_t, fifoMaxEventCount, 40, 48); + CHECK_MEMBER_AT(struct sensor_t, reserved, 44, 56); CHECK_MEMBER_AT(sensors_poll_device_1_t, v0, 0, 0); CHECK_MEMBER_AT(sensors_poll_device_1_t, common, 0, 0); -- cgit v1.1