make sure we include what we mean to
#ifndef __AFSLOCK_INCLUDE__
#define __AFSLOCK_INCLUDE__ 1
+#if !defined(KERNEL) && !defined(KDUMP_KERNEL)
+#error Do not include afs/lock.h except for kernel code.
+#endif
+
/*
* (C) COPYRIGHT IBM CORPORATION 1987
* LICENSED MATERIALS - PROPERTY OF IBM
#ifndef LOCK_H
#define LOCK_H
+#ifdef KERNEL
+#error Do not include lwp/lock.h for kernel code. Use afs/lock.h instead.
+#endif
+
+
/* The following macros allow multi statement macros to be defined safely, i.e.
- the multi statement macro can be the object of an if statement;
- the call to the multi statement macro may be legally followed by a semi-colon.
* directory or online at http://www.openafs.org/dl/license10.html
*/
+#error I thought venus/lock.h was never included, what's going on?
+
+#if 0
+/* I believe this file is never actually used */
+
#ifndef __AFSLOCK_INCLUDE__
#define __AFSLOCK_INCLUDE__ 1
+#warning UMR-INCLUDE venus/lock.h
+
/*******************************************************************\
* *
* Information Technology Center *
*/
#endif /* __AFSLOCK_INCLUDE__ */
+
+
+#endif