Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/scsi/impl/scsi_reset_notify.h
          +++ new/usr/src/uts/common/sys/scsi/impl/scsi_reset_notify.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   *
  14   14   * When distributing Covered Code, include this CDDL HEADER in each
  15   15   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16   16   * If applicable, add the following below this CDDL HEADER, with the
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
       23 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       24 + *
  23   25   * Copyright (c) 1998 by Sun Microsystems, Inc.
  24   26   * All rights reserved.
  25   27   */
  26   28  
  27   29  #ifndef _SYS_SCSI_RESET_NOTIFY_H
  28   30  #define _SYS_SCSI_RESET_NOTIFY_H
  29   31  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31      -
  32   32  #include <sys/note.h>
  33   33  #include <sys/scsi/scsi_types.h>
  34   34  
  35   35  #ifdef  __cplusplus
  36   36  extern "C" {
  37   37  #endif
  38   38  
  39   39  /*
  40   40   * SCSI Control Information for Reset Notification.
  41   41   */
↓ open down ↓ 11 lines elided ↑ open up ↑
  53   53  
  54   54  #ifdef __lock_lint
  55   55  _NOTE(SCHEME_PROTECTS_DATA("protected by lock passed as arg",
  56   56          scsi_reset_notify_entry::ap
  57   57          scsi_reset_notify_entry::callback
  58   58          scsi_reset_notify_entry::arg
  59   59          scsi_reset_notify_entry::next))
  60   60  #endif
  61   61  
  62   62  #ifdef  _KERNEL
  63      -#ifdef  __STDC__
  64   63  extern int scsi_hba_reset_notify_setup(struct scsi_address *, int,
  65   64          void (*)(caddr_t), caddr_t, kmutex_t *,
  66   65          struct scsi_reset_notify_entry **);
  67   66  extern void scsi_hba_reset_notify_tear_down(
  68   67          struct scsi_reset_notify_entry *listp);
  69   68  extern void scsi_hba_reset_notify_callback(kmutex_t *mutex,
  70   69          struct scsi_reset_notify_entry **listp);
  71      -#else   /* __STDC__ */
  72      -extern int scsi_hba_reset_notify_setup();
  73      -extern void scsi_hba_reset_notify_tear_down();
  74      -extern void scsi_hba_reset_notify_callback();
  75      -#endif  /* __STDC__ */
  76   70  
  77   71  #endif  /* _KERNEL */
  78   72  
  79   73  #ifdef  __cplusplus
  80   74  }
  81   75  #endif
  82   76  
  83   77  #endif  /* _SYS_SCSI_RESET_NOTIFY_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX