Print this page
2976 remove useless offsetof() macros

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4u/io/rmclomv.c
          +++ new/usr/src/uts/sun4u/io/rmclomv.c
↓ open down ↓ 44 lines elided ↑ open up ↑
  45   45  #include <sys/disp.h>
  46   46  #include <sys/reboot.h>
  47   47  #include <sys/envmon.h>
  48   48  #include <sys/rmclomv_impl.h>
  49   49  #include <sys/cpu_sgnblk_defs.h>
  50   50  #include <sys/utsname.h>
  51   51  #include <sys/systeminfo.h>
  52   52  #include <sys/ddi.h>
  53   53  #include <sys/time.h>
  54   54  #include <sys/promif.h>
       55 +#include <sys/sysmacros.h>
  55   56  
  56      -#define offsetof(s, m)  (size_t)(&(((s *)0)->m))
  57   57  #define RMCRESBUFLEN    1024
  58   58  #define DATE_TIME_MSG_SIZE      78
  59   59  #define RMCLOMV_WATCHDOG_MODE   "rmclomv-watchdog-mode"
  60   60  #define DELAY_TIME      5000000  /* 5 seconds, in microseconds */
  61   61  #define CPU_SIGNATURE_DELAY_TIME        5000000  /* 5 secs, in microsecs */
  62   62  
  63   63  extern void     pmugpio_watchdog_pat();
  64   64  
  65   65  extern int      watchdog_activated;
  66   66  static int      last_watchdog_msg = 1;
↓ open down ↓ 3493 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX