]> git.proxmox.com Git - mirror_smartmontools-debian.git/blobdiff - debian/patches/52_remove-pragma.diff
Refreshed patches, removed install.diff applied upstream
[mirror_smartmontools-debian.git] / debian / patches / 52_remove-pragma.diff
index 343fc27f8e1b68487bf3e0466ae4c1b2a5c27994..8bf003cd17db686bfef5a65b0678bdad156ca5cb 100644 (file)
@@ -1,8 +1,6 @@
-Index: smartmontools/atacmds.h
-===================================================================
---- smartmontools.orig/atacmds.h       2007-03-31 15:56:12.000000000 +0200
-+++ smartmontools/atacmds.h    2007-11-01 13:16:28.000000000 +0100
-@@ -105,7 +105,6 @@
+--- a/atacmds.h
++++ b/atacmds.h
+@@ -119,7 +119,6 @@ enum {
  
  // Needed parts of the ATA DRIVE IDENTIFY Structure. Those labeled
  // word* are NOT used.
@@ -10,7 +8,7 @@ Index: smartmontools/atacmds.h
  struct ata_identify_device {
    unsigned short words000_009[10];
    unsigned char  serial_no[20];
-@@ -127,7 +126,6 @@
+@@ -141,7 +140,6 @@ struct ata_identify_device {
  ASSERT_SIZEOF_STRUCT(ata_identify_device, 512);
  
  /* ata_smart_attribute is the vendor specific in SFF-8035 spec */ 
@@ -18,7 +16,7 @@ Index: smartmontools/atacmds.h
  struct ata_smart_attribute {
    unsigned char id;
    // meaning of flag bits: see MACROS just below
-@@ -187,7 +185,6 @@
+@@ -202,7 +200,6 @@ ASSERT_SIZEOF_STRUCT(ata_smart_attribute
  
  /* ata_smart_values is format of the read drive Attribute command */
  /* see Table 34 of T13/1321D Rev 1 spec (Device SMART data structure) for *some* info */
@@ -26,7 +24,7 @@ Index: smartmontools/atacmds.h
  struct ata_smart_values {
    unsigned short int revnumber;
    struct ata_smart_attribute vendor_attributes [NUMBER_ATA_SMART_ATTRIBUTES];
-@@ -219,7 +216,6 @@
+@@ -234,7 +231,6 @@ ASSERT_SIZEOF_STRUCT(ata_smart_values, 5
  */
  
  /* Vendor attribute of SMART Threshold (compare to ata_smart_attribute above) */
@@ -34,7 +32,7 @@ Index: smartmontools/atacmds.h
  struct ata_smart_threshold_entry {
    unsigned char id;
    unsigned char threshold;
-@@ -230,7 +226,6 @@
+@@ -245,7 +241,6 @@ ASSERT_SIZEOF_STRUCT(ata_smart_threshold
  
  /* Format of Read SMART THreshold Command */
  /* Compare to ata_smart_values above */
@@ -42,7 +40,7 @@ Index: smartmontools/atacmds.h
  struct ata_smart_thresholds_pvt {
    unsigned short int revnumber;
    struct ata_smart_threshold_entry thres_entries[NUMBER_ATA_SMART_ATTRIBUTES];
-@@ -242,7 +237,6 @@
+@@ -257,7 +252,6 @@ ASSERT_SIZEOF_STRUCT(ata_smart_threshold
  
  
  // Table 42 of T13/1321D Rev 1 spec (Error Data Structure)
@@ -50,7 +48,7 @@ Index: smartmontools/atacmds.h
  struct ata_smart_errorlog_error_struct {
    unsigned char reserved;
    unsigned char error_register;
-@@ -261,7 +255,6 @@
+@@ -276,7 +270,6 @@ ASSERT_SIZEOF_STRUCT(ata_smart_errorlog_
  
  
  // Table 41 of T13/1321D Rev 1 spec (Command Data Structure)
@@ -58,7 +56,7 @@ Index: smartmontools/atacmds.h
  struct ata_smart_errorlog_command_struct {
    unsigned char devicecontrolreg;
    unsigned char featuresreg;
-@@ -277,7 +270,6 @@
+@@ -292,7 +285,6 @@ struct ata_smart_errorlog_command_struct
  ASSERT_SIZEOF_STRUCT(ata_smart_errorlog_command_struct, 12);
  
  // Table 40 of T13/1321D Rev 1 spec (Error log data structure)
@@ -66,7 +64,7 @@ Index: smartmontools/atacmds.h
  struct ata_smart_errorlog_struct {
    struct ata_smart_errorlog_command_struct commands[5];
    struct ata_smart_errorlog_error_struct error_struct;
-@@ -286,7 +278,6 @@
+@@ -301,7 +293,6 @@ struct ata_smart_errorlog_struct {
  ASSERT_SIZEOF_STRUCT(ata_smart_errorlog_struct, 90);
  
  // Table 39 of T13/1321D Rev 1 spec (SMART error log sector)
@@ -74,15 +72,15 @@ Index: smartmontools/atacmds.h
  struct ata_smart_errorlog {
    unsigned char revnumber;
    unsigned char error_log_pointer;
-@@ -299,7 +290,6 @@
- ASSERT_SIZEOF_STRUCT(ata_smart_errorlog, 512);
+@@ -398,7 +389,6 @@ ASSERT_SIZEOF_STRUCT(ata_smart_exterrlog
  
  // Table 45 of T13/1321D Rev 1 spec (Self-test log descriptor entry)
 -#pragma pack(1)
  struct ata_smart_selftestlog_struct {
    unsigned char selftestnumber; // Sector number register
    unsigned char selfteststatus;
-@@ -312,7 +302,6 @@
+@@ -411,7 +401,6 @@ struct ata_smart_selftestlog_struct {
  ASSERT_SIZEOF_STRUCT(ata_smart_selftestlog_struct, 24);
  
  // Table 44 of T13/1321D Rev 1 spec (Self-test log data structure)
@@ -90,15 +88,15 @@ Index: smartmontools/atacmds.h
  struct ata_smart_selftestlog {
    unsigned short int revnumber;
    struct ata_smart_selftestlog_struct selftest_struct[21];
-@@ -325,7 +314,6 @@
- ASSERT_SIZEOF_STRUCT(ata_smart_selftestlog, 512);
+@@ -460,7 +449,6 @@ struct ata_smart_extselftestlog
+ ASSERT_SIZEOF_STRUCT(ata_smart_extselftestlog, 512);
  
  // SMART LOG DIRECTORY Table 52 of T13/1532D Vol 1 Rev 1a
 -#pragma pack(1)
  struct ata_smart_log_entry {
    unsigned char numsectors;
    unsigned char reserved;
-@@ -333,7 +321,6 @@
+@@ -468,7 +456,6 @@ struct ata_smart_log_entry {
  #pragma pack()
  ASSERT_SIZEOF_STRUCT(ata_smart_log_entry, 2);
  
@@ -106,7 +104,7 @@ Index: smartmontools/atacmds.h
  struct ata_smart_log_directory {
    unsigned short int logversion;
    struct ata_smart_log_entry entry[255];
-@@ -343,7 +330,6 @@
+@@ -478,7 +465,6 @@ ASSERT_SIZEOF_STRUCT(ata_smart_log_direc
  
  // SMART SELECTIVE SELF-TEST LOG Table 61 of T13/1532D Volume 1
  // Revision 3
@@ -114,7 +112,7 @@ Index: smartmontools/atacmds.h
  struct test_span {
    uint64_t start;
    uint64_t end;
-@@ -351,7 +337,6 @@
+@@ -486,7 +472,6 @@ struct test_span {
  #pragma pack()
  ASSERT_SIZEOF_STRUCT(test_span, 16);