Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ata Put an #ifdef _KERNEL around inline functions us...



details:   https://anonhg.NetBSD.org/src/rev/feb1213e74fc
branches:  trunk
changeset: 569524:feb1213e74fc
user:      he <he%NetBSD.org@localhost>
date:      Mon Aug 23 10:08:48 2004 +0000

description:
Put an #ifdef _KERNEL around inline functions using panic().
Fixes compile problem for the atactl program for the vax target.

diffstat:

 sys/dev/ata/atareg.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (39 lines):

diff -r 27c96557ba05 -r feb1213e74fc sys/dev/ata/atareg.h
--- a/sys/dev/ata/atareg.h      Mon Aug 23 09:45:53 2004 +0000
+++ b/sys/dev/ata/atareg.h      Mon Aug 23 10:08:48 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atareg.h,v 1.20 2004/08/21 02:17:07 thorpej Exp $      */
+/*     $NetBSD: atareg.h,v 1.21 2004/08/23 10:08:48 he Exp $   */
 
 /*
  * Copyright (c) 1998, 2001 Manuel Bouyer.
@@ -141,6 +141,7 @@
 #define        WDCC_READDMA_EXT        0x25    /* read 48-bit addressing with DMA */
 #define        WDCC_WRITEDMA_EXT       0x35    /* write 48-bit addressing with DMA */
 
+#ifdef _KERNEL
 /* Convert a 32-bit command to a 48-bit command. */
 static __inline int __unused
 atacmd_to48(int cmd32)
@@ -163,11 +164,13 @@
                /* NOTREACHED */
        }
 }
+#endif /* _KERNEL */
 
 /* Native SATA command queueing */
 #define        WDCC_READ_FPDMA_QUEUED  0x60    /* SATA native queued read (48bit) */
 #define        WDCC_WRITE_FPDMA_QUEUED 0x61    /* SATA native queued write (48bit) */
 
+#ifdef _KERNEL
 /* Convert a 32-bit command to a Native SATA Queued command. */
 static __inline int __unused
 atacmd_tostatq(int cmd32)
@@ -182,6 +185,7 @@
                /* NOTREACHED */
        }
 }
+#endif /* _KERNEL */
 
 /* Subcommands for SET_FEATURES (features register) */
 #define        WDSF_WRITE_CACHE_EN     0x02



Home | Main Index | Thread Index | Old Index