]> git.proxmox.com Git - mirror_smartmontools-debian.git/blob - debian/patches/52_remove-pragma.diff
Refresh original patches with new upstream release
[mirror_smartmontools-debian.git] / debian / patches / 52_remove-pragma.diff
1 From: Giuseppe Iuculano <iuculano@debian.org>
2 Date: Thu, 27 Sep 2018 19:03:07 +0800
3 Subject: _remove-pragma
4
5 ---
6 atacmds.h | 15 ---------------
7 1 file changed, 15 deletions(-)
8
9 diff --git a/atacmds.h b/atacmds.h
10 index cbb20b6..15e54d4 100644
11 --- a/atacmds.h
12 +++ b/atacmds.h
13 @@ -130,7 +130,6 @@ typedef enum {
14
15 // Needed parts of the ATA DRIVE IDENTIFY Structure. Those labeled
16 // word* are NOT used.
17 -#pragma pack(1)
18 struct ata_identify_device {
19 unsigned short words000_009[10];
20 unsigned char serial_no[20];
21 @@ -152,7 +151,6 @@ struct ata_identify_device {
22 ASSERT_SIZEOF_STRUCT(ata_identify_device, 512);
23
24 /* ata_smart_attribute is the vendor specific in SFF-8035 spec */
25 -#pragma pack(1)
26 struct ata_smart_attribute {
27 unsigned char id;
28 // meaning of flag bits: see MACROS just below
29 @@ -213,7 +211,6 @@ ASSERT_SIZEOF_STRUCT(ata_smart_attribute, 12);
30
31 // Format of data returned by SMART READ DATA
32 // Table 62 of T13/1699-D (ATA8-ACS) Revision 6a, September 2008
33 -#pragma pack(1)
34 struct ata_smart_values {
35 unsigned short int revnumber;
36 struct ata_smart_attribute vendor_attributes [NUMBER_ATA_SMART_ATTRIBUTES];
37 @@ -246,7 +243,6 @@ ASSERT_SIZEOF_STRUCT(ata_smart_values, 512);
38 */
39
40 /* Vendor attribute of SMART Threshold (compare to ata_smart_attribute above) */
41 -#pragma pack(1)
42 struct ata_smart_threshold_entry {
43 unsigned char id;
44 unsigned char threshold;
45 @@ -257,7 +253,6 @@ ASSERT_SIZEOF_STRUCT(ata_smart_threshold_entry, 12);
46
47 /* Format of Read SMART THreshold Command */
48 /* Compare to ata_smart_values above */
49 -#pragma pack(1)
50 struct ata_smart_thresholds_pvt {
51 unsigned short int revnumber;
52 struct ata_smart_threshold_entry thres_entries[NUMBER_ATA_SMART_ATTRIBUTES];
53 @@ -269,7 +264,6 @@ ASSERT_SIZEOF_STRUCT(ata_smart_thresholds_pvt, 512);
54
55
56 // Table 42 of T13/1321D Rev 1 spec (Error Data Structure)
57 -#pragma pack(1)
58 struct ata_smart_errorlog_error_struct {
59 unsigned char reserved;
60 unsigned char error_register;
61 @@ -288,7 +282,6 @@ ASSERT_SIZEOF_STRUCT(ata_smart_errorlog_error_struct, 30);
62
63
64 // Table 41 of T13/1321D Rev 1 spec (Command Data Structure)
65 -#pragma pack(1)
66 struct ata_smart_errorlog_command_struct {
67 unsigned char devicecontrolreg;
68 unsigned char featuresreg;
69 @@ -304,7 +297,6 @@ struct ata_smart_errorlog_command_struct {
70 ASSERT_SIZEOF_STRUCT(ata_smart_errorlog_command_struct, 12);
71
72 // Table 40 of T13/1321D Rev 1 spec (Error log data structure)
73 -#pragma pack(1)
74 struct ata_smart_errorlog_struct {
75 struct ata_smart_errorlog_command_struct commands[5];
76 struct ata_smart_errorlog_error_struct error_struct;
77 @@ -313,7 +305,6 @@ struct ata_smart_errorlog_struct {
78 ASSERT_SIZEOF_STRUCT(ata_smart_errorlog_struct, 90);
79
80 // Table 39 of T13/1321D Rev 1 spec (SMART error log sector)
81 -#pragma pack(1)
82 struct ata_smart_errorlog {
83 unsigned char revnumber;
84 unsigned char error_log_pointer;
85 @@ -410,7 +401,6 @@ ASSERT_SIZEOF_STRUCT(ata_smart_exterrlog, 512);
86
87
88 // Table 45 of T13/1321D Rev 1 spec (Self-test log descriptor entry)
89 -#pragma pack(1)
90 struct ata_smart_selftestlog_struct {
91 unsigned char selftestnumber; // Sector number register
92 unsigned char selfteststatus;
93 @@ -423,7 +413,6 @@ struct ata_smart_selftestlog_struct {
94 ASSERT_SIZEOF_STRUCT(ata_smart_selftestlog_struct, 24);
95
96 // Table 44 of T13/1321D Rev 1 spec (Self-test log data structure)
97 -#pragma pack(1)
98 struct ata_smart_selftestlog {
99 unsigned short int revnumber;
100 struct ata_smart_selftestlog_struct selftest_struct[21];
101 @@ -472,7 +461,6 @@ struct ata_smart_extselftestlog
102 ASSERT_SIZEOF_STRUCT(ata_smart_extselftestlog, 512);
103
104 // SMART LOG DIRECTORY Table 52 of T13/1532D Vol 1 Rev 1a
105 -#pragma pack(1)
106 struct ata_smart_log_entry {
107 unsigned char numsectors;
108 unsigned char reserved;
109 @@ -480,7 +468,6 @@ struct ata_smart_log_entry {
110 #pragma pack()
111 ASSERT_SIZEOF_STRUCT(ata_smart_log_entry, 2);
112
113 -#pragma pack(1)
114 struct ata_smart_log_directory {
115 unsigned short int logversion;
116 struct ata_smart_log_entry entry[255];
117 @@ -490,7 +477,6 @@ ASSERT_SIZEOF_STRUCT(ata_smart_log_directory, 512);
118
119 // SMART SELECTIVE SELF-TEST LOG Table 61 of T13/1532D Volume 1
120 // Revision 3
121 -#pragma pack(1)
122 struct test_span {
123 uint64_t start;
124 uint64_t end;
125 @@ -498,7 +484,6 @@ struct test_span {
126 #pragma pack()
127 ASSERT_SIZEOF_STRUCT(test_span, 16);
128
129 -#pragma pack(1)
130 struct ata_selective_self_test_log {
131 unsigned short logversion;
132 struct test_span span[5];