aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/linux
diff options
context:
space:
mode:
authorVladimir Kondratyev <wulf@FreeBSD.org>2021-12-19 10:42:42 +0000
committerVladimir Kondratyev <wulf@FreeBSD.org>2022-01-10 19:49:38 +0000
commit307f78f3ed90a4145eeb2c8cc79bc95b2666f57a (patch)
tree5e166811f5df5a5efbb7a51d848ed0a82e29683d /sys/compat/linuxkpi/common/include/linux
parent98b129783c478616f59b3b9c9576a303f7ed67de (diff)
downloadsrc-307f78f3ed90a4145eeb2c8cc79bc95b2666f57a.tar.gz
src-307f78f3ed90a4145eeb2c8cc79bc95b2666f57a.zip
LinuxKPI: Constantly use _LINUXKPI_ prefix in include guards
MFC after: 1 week Reviewed by: bz, emaste, hselasky, manu Differential Revision: https://reviews.freebsd.org/D33562
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/acpi.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/anon_inodes.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/atomic.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/average.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/backlight.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/bitfield.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/bitmap.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/bitops.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/bottom_half.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/bsearch.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/cache.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/capability.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/cdev.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/clocksource.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/compat.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/compiler.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/completion.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/cpu.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/crc32.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/dcache.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/debugfs.h4
-rw-r--r--sys/compat/linuxkpi/common/include/linux/delay.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/devcoredump.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/device.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/dma-attrs.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/dma-mapping.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/dmapool.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/dmi.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/efi.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/err.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/errno.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/etherdevice.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/export.h4
-rw-r--r--sys/compat/linuxkpi/common/include/linux/file.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/fs.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/gcd.h4
-rw-r--r--sys/compat/linuxkpi/common/include/linux/gfp.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/hardirq.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/highmem.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/hrtimer.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/idr.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/if_arp.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/if_ether.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/if_vlan.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/in.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/in6.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/inetdevice.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/interrupt.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/interval_tree.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/io-mapping.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/io.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/ioctl.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/iopoll.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/ip.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/irq_work.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/irqreturn.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/jhash.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/jiffies.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/jump_label.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/kdev_t.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/kernel.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/kmod.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/kobject.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/kref.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/kthread.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/ktime.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/list.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/llist.h4
-rw-r--r--sys/compat/linuxkpi/common/include/linux/lockdep.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/log2.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/math64.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/miscdevice.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/mm.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/mm_types.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/mod_devicetable.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/module.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/moduleparam.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/mutex.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/net.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/net_dim.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/netdev_features.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/notifier.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/numa.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/overflow.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/page.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/pagemap.h4
-rw-r--r--sys/compat/linuxkpi/common/include/linux/pci.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/pfn.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/pfn_t.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/pid.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/poison.h4
-rw-r--r--sys/compat/linuxkpi/common/include/linux/poll.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/power_supply.h4
-rw-r--r--sys/compat/linuxkpi/common/include/linux/preempt.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/prefetch.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/printk.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/radix-tree.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/random.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/ratelimit.h4
-rw-r--r--sys/compat/linuxkpi/common/include/linux/rbtree.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/rculist.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/rcupdate.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/refcount.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/rwlock.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/rwsem.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/scatterlist.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/sched.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/semaphore.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/seq_file.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/seqlock.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/shmem_fs.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/shrinker.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/sizes.h4
-rw-r--r--sys/compat/linuxkpi/common/include/linux/slab.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/smp.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/socket.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/spinlock.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/srcu.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/string.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/stringify.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/swap.h4
-rw-r--r--sys/compat/linuxkpi/common/include/linux/sysfs.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/tcp.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/time.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/timer.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/types.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/uaccess.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/udp.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/uuid.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/vmalloc.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/wait.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/wait_bit.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/workqueue.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/ww_mutex.h6
-rw-r--r--sys/compat/linuxkpi/common/include/linux/xarray.h6
135 files changed, 395 insertions, 395 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/acpi.h b/sys/compat/linuxkpi/common/include/linux/acpi.h
index b1e65b9afad9..1a9d25e7a7ff 100644
--- a/sys/compat/linuxkpi/common/include/linux/acpi.h
+++ b/sys/compat/linuxkpi/common/include/linux/acpi.h
@@ -28,8 +28,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_ACPI_H_
-#define _LINUX_ACPI_H_
+#ifndef _LINUXKPI_LINUX_ACPI_H_
+#define _LINUXKPI_LINUX_ACPI_H_
#include <linux/device.h>
#include <linux/uuid.h>
@@ -44,4 +44,4 @@
#endif
-#endif /* _LINUX_ACPI_H_ */
+#endif /* _LINUXKPI_LINUX_ACPI_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/anon_inodes.h b/sys/compat/linuxkpi/common/include/linux/anon_inodes.h
index 8fa61cd4b45f..cab5cbd4d67e 100644
--- a/sys/compat/linuxkpi/common/include/linux/anon_inodes.h
+++ b/sys/compat/linuxkpi/common/include/linux/anon_inodes.h
@@ -26,8 +26,8 @@
* SUCH DAMAGE.
*/
-#ifndef _LINUX_ANON_INODES_H_
-#define _LINUX_ANON_INODES_H_
+#ifndef _LINUXKPI_LINUX_ANON_INODES_H_
+#define _LINUXKPI_LINUX_ANON_INODES_H_
#include <linux/fs.h>
#include <linux/file.h>
@@ -45,4 +45,4 @@ anon_inode_getfile(const char *name __unused,
return (file);
}
-#endif /* _LINUX_ANON_INODES_H_ */
+#endif /* _LINUXKPI_LINUX_ANON_INODES_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/atomic.h b/sys/compat/linuxkpi/common/include/linux/atomic.h
index 969af384e3ba..e491283ae6e5 100644
--- a/sys/compat/linuxkpi/common/include/linux/atomic.h
+++ b/sys/compat/linuxkpi/common/include/linux/atomic.h
@@ -26,12 +26,12 @@
* $FreeBSD$
*/
-#ifndef _LINUX_ATOMIC_H_
-#define _LINUX_ATOMIC_H_
+#ifndef _LINUXKPI_LINUX_ATOMIC_H_
+#define _LINUXKPI_LINUX_ATOMIC_H_
#include <asm/atomic.h>
#include <asm/atomic64.h>
#include <asm/atomic-long.h>
#include <asm/barrier.h>
-#endif /* _LINUX_ATOMIC_H_ */
+#endif /* _LINUXKPI_LINUX_ATOMIC_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/average.h b/sys/compat/linuxkpi/common/include/linux/average.h
index 4291bf2d85be..61b2010d6509 100644
--- a/sys/compat/linuxkpi/common/include/linux/average.h
+++ b/sys/compat/linuxkpi/common/include/linux/average.h
@@ -30,8 +30,8 @@
* $FreeBSD$
*/
-#ifndef __LKPI_LINUX_AVERAGE_H
-#define __LKPI_LINUX_AVERAGE_H
+#ifndef _LINUXKPI_LINUX_AVERAGE_H
+#define _LINUXKPI_LINUX_AVERAGE_H
#include <sys/param.h>
#include <sys/systm.h>
@@ -89,4 +89,4 @@
return (ewma->zt >> (_p)); \
} \
-#endif /* __LKPI_LINUX_AVERAGE_H */
+#endif /* _LINUXKPI_LINUX_AVERAGE_H */
diff --git a/sys/compat/linuxkpi/common/include/linux/backlight.h b/sys/compat/linuxkpi/common/include/linux/backlight.h
index b3a07c4cdcaa..38b3786e738d 100644
--- a/sys/compat/linuxkpi/common/include/linux/backlight.h
+++ b/sys/compat/linuxkpi/common/include/linux/backlight.h
@@ -28,8 +28,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_BACKLIGHT_H_
-#define _LINUX_BACKLIGHT_H_
+#ifndef _LINUXKPI_LINUX_BACKLIGHT_H_
+#define _LINUXKPI_LINUX_BACKLIGHT_H_
#include <linux/notifier.h>
@@ -109,4 +109,4 @@ backlight_disable(struct backlight_device *bd)
return (backlight_update_status(bd));
}
-#endif /* _LINUX_BACKLIGHT_H_ */
+#endif /* _LINUXKPI_LINUX_BACKLIGHT_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/bitfield.h b/sys/compat/linuxkpi/common/include/linux/bitfield.h
index 14278a557809..c22757d54290 100644
--- a/sys/compat/linuxkpi/common/include/linux/bitfield.h
+++ b/sys/compat/linuxkpi/common/include/linux/bitfield.h
@@ -30,8 +30,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_BITFIELD_H
-#define _LINUX_BITFIELD_H
+#ifndef _LINUXKPI_LINUX_BITFIELD_H
+#define _LINUXKPI_LINUX_BITFIELD_H
#include <linux/types.h>
#include <asm/byteorder.h>
@@ -133,4 +133,4 @@ _uX_replace_bits(8)
#define FIELD_GET(_mask, _value) \
((typeof(_mask))(((_value) & (_mask)) >> __bf_shf(_mask)))
-#endif /* _LINUX_BITFIELD_H */
+#endif /* _LINUXKPI_LINUX_BITFIELD_H */
diff --git a/sys/compat/linuxkpi/common/include/linux/bitmap.h b/sys/compat/linuxkpi/common/include/linux/bitmap.h
index 4de94333c99f..1ae6078966a4 100644
--- a/sys/compat/linuxkpi/common/include/linux/bitmap.h
+++ b/sys/compat/linuxkpi/common/include/linux/bitmap.h
@@ -26,8 +26,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_BITMAP_H_
-#define _LINUX_BITMAP_H_
+#ifndef _LINUXKPI_LINUX_BITMAP_H_
+#define _LINUXKPI_LINUX_BITMAP_H_
#include <linux/bitops.h>
#include <linux/slab.h>
@@ -351,4 +351,4 @@ bitmap_free(const unsigned long *bitmap)
kfree(bitmap);
}
-#endif /* _LINUX_BITMAP_H_ */
+#endif /* _LINUXKPI_LINUX_BITMAP_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/bitops.h b/sys/compat/linuxkpi/common/include/linux/bitops.h
index 0d7ab376e02d..262e6b9b110f 100644
--- a/sys/compat/linuxkpi/common/include/linux/bitops.h
+++ b/sys/compat/linuxkpi/common/include/linux/bitops.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_BITOPS_H_
-#define _LINUX_BITOPS_H_
+#ifndef _LINUXKPI_LINUX_BITOPS_H_
+#define _LINUXKPI_LINUX_BITOPS_H_
#include <sys/param.h>
#include <sys/types.h>
@@ -420,4 +420,4 @@ sign_extend32(uint32_t value, int index)
return ((int32_t)(value << shift) >> shift);
}
-#endif /* _LINUX_BITOPS_H_ */
+#endif /* _LINUXKPI_LINUX_BITOPS_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/bottom_half.h b/sys/compat/linuxkpi/common/include/linux/bottom_half.h
index 9f8dc02f2798..1b139c481283 100644
--- a/sys/compat/linuxkpi/common/include/linux/bottom_half.h
+++ b/sys/compat/linuxkpi/common/include/linux/bottom_half.h
@@ -25,10 +25,10 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_BOTTOM_HALF_H_
-#define _LINUX_BOTTOM_HALF_H_
+#ifndef _LINUXKPI_LINUX_BOTTOM_HALF_H_
+#define _LINUXKPI_LINUX_BOTTOM_HALF_H_
extern void local_bh_enable(void);
extern void local_bh_disable(void);
-#endif /* _LINUX_BOTTOM_HALF_H_ */
+#endif /* _LINUXKPI_LINUX_BOTTOM_HALF_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/bsearch.h b/sys/compat/linuxkpi/common/include/linux/bsearch.h
index b8cf7b19b467..8cc329aa855c 100644
--- a/sys/compat/linuxkpi/common/include/linux/bsearch.h
+++ b/sys/compat/linuxkpi/common/include/linux/bsearch.h
@@ -30,9 +30,9 @@
* $FreeBSD$
*/
-#ifndef __LKPI_LINUX_BSEARCH_H
-#define __LKPI_LINUX_BSEARCH_H
+#ifndef _LINUXKPI_LINUX_BSEARCH_H
+#define _LINUXKPI_LINUX_BSEARCH_H
#include <sys/libkern.h>
-#endif /* __LKPI_LINUX_BSEARCH_H */
+#endif /* _LINUXKPI_LINUX_BSEARCH_H */
diff --git a/sys/compat/linuxkpi/common/include/linux/cache.h b/sys/compat/linuxkpi/common/include/linux/cache.h
index 4d1d400152ff..6479d5d04d3a 100644
--- a/sys/compat/linuxkpi/common/include/linux/cache.h
+++ b/sys/compat/linuxkpi/common/include/linux/cache.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_CACHE_H_
-#define _LINUX_CACHE_H_
+#ifndef _LINUXKPI_LINUX_CACHE_H_
+#define _LINUXKPI_LINUX_CACHE_H_
#include <sys/param.h>
@@ -38,4 +38,4 @@
#define SMP_CACHE_BYTES L1_CACHE_BYTES
-#endif /* _LINUX_CACHE_H_ */
+#endif /* _LINUXKPI_LINUX_CACHE_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/capability.h b/sys/compat/linuxkpi/common/include/linux/capability.h
index ce656255549b..547ee586ad8e 100644
--- a/sys/compat/linuxkpi/common/include/linux/capability.h
+++ b/sys/compat/linuxkpi/common/include/linux/capability.h
@@ -32,8 +32,8 @@
* Simple capable() priv_check helper
*/
-#ifndef _LINUX_CAPABILITY_H
-#define _LINUX_CAPABILITY_H
+#ifndef _LINUXKPI_LINUX_CAPABILITY_H
+#define _LINUXKPI_LINUX_CAPABILITY_H
#include <sys/types.h>
#include <sys/proc.h>
@@ -48,4 +48,4 @@ capable(const int tryme)
return (priv_check(curthread, tryme) == 0);
}
-#endif /* _LINUX_CAPABILITY_H */
+#endif /* _LINUXKPI_LINUX_CAPABILITY_H */
diff --git a/sys/compat/linuxkpi/common/include/linux/cdev.h b/sys/compat/linuxkpi/common/include/linux/cdev.h
index 39a65472e921..fb7a3cf0b447 100644
--- a/sys/compat/linuxkpi/common/include/linux/cdev.h
+++ b/sys/compat/linuxkpi/common/include/linux/cdev.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_CDEV_H_
-#define _LINUX_CDEV_H_
+#ifndef _LINUXKPI_LINUX_CDEV_H_
+#define _LINUXKPI_LINUX_CDEV_H_
#include <linux/kobject.h>
#include <linux/sysfs.h>
@@ -154,4 +154,4 @@ void linux_cdev_device_del(struct linux_cdev *, struct device *);
#define cdev linux_cdev
-#endif /* _LINUX_CDEV_H_ */
+#endif /* _LINUXKPI_LINUX_CDEV_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/clocksource.h b/sys/compat/linuxkpi/common/include/linux/clocksource.h
index f775aa6bb329..8027ed76ec0f 100644
--- a/sys/compat/linuxkpi/common/include/linux/clocksource.h
+++ b/sys/compat/linuxkpi/common/include/linux/clocksource.h
@@ -28,11 +28,11 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_CLOCKSOURCE_H
-#define _LINUX_CLOCKSOURCE_H
+#ifndef _LINUXKPI_LINUX_CLOCKSOURCE_H
+#define _LINUXKPI_LINUX_CLOCKSOURCE_H
#include <asm/types.h>
#define CLOCKSOURCE_MASK(x) ((u64)(-1ULL >> ((-(x)) & 63)))
-#endif /* _LINUX_CLOCKSOURCE_H */
+#endif /* _LINUXKPI_LINUX_CLOCKSOURCE_H */
diff --git a/sys/compat/linuxkpi/common/include/linux/compat.h b/sys/compat/linuxkpi/common/include/linux/compat.h
index 84b7b47a36dc..5e4dd1daf67d 100644
--- a/sys/compat/linuxkpi/common/include/linux/compat.h
+++ b/sys/compat/linuxkpi/common/include/linux/compat.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_COMPAT_H_
-#define _LINUX_COMPAT_H_
+#ifndef _LINUXKPI_LINUX_COMPAT_H_
+#define _LINUXKPI_LINUX_COMPAT_H_
#include <sys/param.h>
#include <sys/proc.h>
@@ -58,4 +58,4 @@ linux_set_current_flags(struct thread *td, int flags)
return (0);
}
-#endif /* _LINUX_COMPAT_H_ */
+#endif /* _LINUXKPI_LINUX_COMPAT_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/compiler.h b/sys/compat/linuxkpi/common/include/linux/compiler.h
index c4c189c2505f..1f2edecbaee7 100644
--- a/sys/compat/linuxkpi/common/include/linux/compiler.h
+++ b/sys/compat/linuxkpi/common/include/linux/compiler.h
@@ -29,8 +29,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_COMPILER_H_
-#define _LINUX_COMPILER_H_
+#ifndef _LINUXKPI_LINUX_COMPILER_H_
+#define _LINUXKPI_LINUX_COMPILER_H_
#include <sys/cdefs.h>
@@ -111,4 +111,4 @@
#define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
#define __must_be_array(a) __same_type(a, &(a)[0])
-#endif /* _LINUX_COMPILER_H_ */
+#endif /* _LINUXKPI_LINUX_COMPILER_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/completion.h b/sys/compat/linuxkpi/common/include/linux/completion.h
index 09d499309e5a..2f58bd5c03e6 100644
--- a/sys/compat/linuxkpi/common/include/linux/completion.h
+++ b/sys/compat/linuxkpi/common/include/linux/completion.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_COMPLETION_H_
-#define _LINUX_COMPLETION_H_
+#ifndef _LINUXKPI_LINUX_COMPLETION_H_
+#define _LINUXKPI_LINUX_COMPLETION_H_
#include <linux/errno.h>
@@ -66,4 +66,4 @@ extern int linux_wait_for_timeout_common(struct completion *, int, int);
extern int linux_try_wait_for_completion(struct completion *);
extern int linux_completion_done(struct completion *);
-#endif /* _LINUX_COMPLETION_H_ */
+#endif /* _LINUXKPI_LINUX_COMPLETION_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/cpu.h b/sys/compat/linuxkpi/common/include/linux/cpu.h
index 5be8f3d5a0d5..53fa9db424c2 100644
--- a/sys/compat/linuxkpi/common/include/linux/cpu.h
+++ b/sys/compat/linuxkpi/common/include/linux/cpu.h
@@ -30,8 +30,8 @@
* $FreeBSD$
*/
-#ifndef __LKPI_LINUX_CPU_H
-#define __LKPI_LINUX_CPU_H
+#ifndef _LINUXKPI_LINUX_CPU_H
+#define _LINUXKPI_LINUX_CPU_H
#include <sys/types.h>
#include <sys/systm.h>
@@ -73,4 +73,4 @@ cpumask_set_cpu(int cpu, cpumask_t *mask)
CPU_SET(cpu, mask);
}
-#endif /* __LKPI_LINUX_CPU_H */
+#endif /* _LINUXKPI_LINUX_CPU_H */
diff --git a/sys/compat/linuxkpi/common/include/linux/crc32.h b/sys/compat/linuxkpi/common/include/linux/crc32.h
index 6d43eb7b1859..a93be642fb1a 100644
--- a/sys/compat/linuxkpi/common/include/linux/crc32.h
+++ b/sys/compat/linuxkpi/common/include/linux/crc32.h
@@ -30,8 +30,8 @@
* $FreeBSD$
*/
-#ifndef __LKPI_LINUX_CRC32_H
-#define __LKPI_LINUX_CRC32_H
+#ifndef _LINUXKPI_LINUX_CRC32_H
+#define _LINUXKPI_LINUX_CRC32_H
#include <sys/gsb_crc32.h>
@@ -42,4 +42,4 @@ crc32_le(uint32_t crc, const void *data, size_t len)
return (crc32_raw(data, len, crc));
}
-#endif /* __LKPI_LINUX_CRC32_H */
+#endif /* _LINUXKPI_LINUX_CRC32_H */
diff --git a/sys/compat/linuxkpi/common/include/linux/dcache.h b/sys/compat/linuxkpi/common/include/linux/dcache.h
index 1bafa3dbd1fe..9f9943a18dc6 100644
--- a/sys/compat/linuxkpi/common/include/linux/dcache.h
+++ b/sys/compat/linuxkpi/common/include/linux/dcache.h
@@ -26,8 +26,8 @@
* $FreeBSD$
*/
-#ifndef __LINUX_DCACHE_H
-#define __LINUX_DCACHE_H
+#ifndef _LINUXKPI_LINUX_DCACHE_H
+#define _LINUXKPI_LINUX_DCACHE_H
struct vnode;
struct pfs_node;
@@ -43,4 +43,4 @@ d_inode(const struct dentry *dentry)
return (dentry->d_inode);
}
-#endif /* __LINUX_DCACHE_H */
+#endif /* _LINUXKPI_LINUX_DCACHE_H */
diff --git a/sys/compat/linuxkpi/common/include/linux/debugfs.h b/sys/compat/linuxkpi/common/include/linux/debugfs.h
index 406016d7e2c8..6a3273cbbf3c 100644
--- a/sys/compat/linuxkpi/common/include/linux/debugfs.h
+++ b/sys/compat/linuxkpi/common/include/linux/debugfs.h
@@ -27,8 +27,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_DEBUGFS_H_
-#define _LINUX_DEBUGFS_H_
+#ifndef _LINUXKPI_LINUX_DEBUGFS_H_
+#define _LINUXKPI_LINUX_DEBUGFS_H_
#include <linux/fs.h>
#include <linux/seq_file.h>
diff --git a/sys/compat/linuxkpi/common/include/linux/delay.h b/sys/compat/linuxkpi/common/include/linux/delay.h
index c13a1797adf9..ea0a8253b09f 100644
--- a/sys/compat/linuxkpi/common/include/linux/delay.h
+++ b/sys/compat/linuxkpi/common/include/linux/delay.h
@@ -29,8 +29,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_DELAY_H_
-#define _LINUX_DELAY_H_
+#ifndef _LINUXKPI_LINUX_DELAY_H_
+#define _LINUXKPI_LINUX_DELAY_H_
#include <linux/jiffies.h>
#include <sys/systm.h>
@@ -86,4 +86,4 @@ fsleep(unsigned long us)
usleep_range(us, us);
}
-#endif /* _LINUX_DELAY_H_ */
+#endif /* _LINUXKPI_LINUX_DELAY_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/devcoredump.h b/sys/compat/linuxkpi/common/include/linux/devcoredump.h
index 4616fbb5a2ea..eecf5380bfc3 100644
--- a/sys/compat/linuxkpi/common/include/linux/devcoredump.h
+++ b/sys/compat/linuxkpi/common/include/linux/devcoredump.h
@@ -30,8 +30,8 @@
* $FreeBSD$
*/
-#ifndef __LKPI_LINUX_DEVCOREDUMP_H
-#define __LKPI_LINUX_DEVCOREDUMP_H
+#ifndef _LINUXKPI_LINUX_DEVCOREDUMP_H
+#define _LINUXKPI_LINUX_DEVCOREDUMP_H
#include <linux/slab.h>
#include <linux/scatterlist.h>
@@ -73,4 +73,4 @@ dev_coredumpsg(struct device *dev __unused, struct scatterlist *table,
_lkpi_dev_coredumpsg_free(table);
}
-#endif /* __LKPI_LINUX_DEVCOREDUMP_H */
+#endif /* _LINUXKPI_LINUX_DEVCOREDUMP_H */
diff --git a/sys/compat/linuxkpi/common/include/linux/device.h b/sys/compat/linuxkpi/common/include/linux/device.h
index 233bbd230726..db81303a22e4 100644
--- a/sys/compat/linuxkpi/common/include/linux/device.h
+++ b/sys/compat/linuxkpi/common/include/linux/device.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_DEVICE_H_
-#define _LINUX_DEVICE_H_
+#ifndef _LINUXKPI_LINUX_DEVICE_H_
+#define _LINUXKPI_LINUX_DEVICE_H_
#include <linux/err.h>
#include <linux/types.h>
@@ -653,4 +653,4 @@ devm_kmalloc(struct device *dev, size_t size, gfp_t gfp)
#define devm_kcalloc(_dev, _sizen, _size, _gfp) \
devm_kmalloc((_dev), ((_sizen) * (_size)), (_gfp) | __GFP_ZERO)
-#endif /* _LINUX_DEVICE_H_ */
+#endif /* _LINUXKPI_LINUX_DEVICE_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/dma-attrs.h b/sys/compat/linuxkpi/common/include/linux/dma-attrs.h
index d424d16164a6..741e1aa15d67 100644
--- a/sys/compat/linuxkpi/common/include/linux/dma-attrs.h
+++ b/sys/compat/linuxkpi/common/include/linux/dma-attrs.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_DMA_ATTR_H_
-#define _LINUX_DMA_ATTR_H_
+#ifndef _LINUXKPI_LINUX_DMA_ATTR_H_
+#define _LINUXKPI_LINUX_DMA_ATTR_H_
#define DMA_ATTR_WRITE_BARRIER (1 << 0)
#define DMA_ATTR_WEAK_ORDERING (1 << 1)
@@ -53,4 +53,4 @@ init_dma_attrs(struct dma_attrs *attrs)
attrs->flags = 0;
}
-#endif /* _LINUX_DMA_ATTR_H_ */
+#endif /* _LINUXKPI_LINUX_DMA_ATTR_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/dma-mapping.h b/sys/compat/linuxkpi/common/include/linux/dma-mapping.h
index c86a24d1270a..f80258892574 100644
--- a/sys/compat/linuxkpi/common/include/linux/dma-mapping.h
+++ b/sys/compat/linuxkpi/common/include/linux/dma-mapping.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_DMA_MAPPING_H_
-#define _LINUX_DMA_MAPPING_H_
+#ifndef _LINUXKPI_LINUX_DMA_MAPPING_H_
+#define _LINUXKPI_LINUX_DMA_MAPPING_H_
#include <linux/types.h>
#include <linux/device.h>
@@ -275,4 +275,4 @@ static inline unsigned int dma_set_max_seg_size(struct device *dev,
extern int uma_align_cache;
#define dma_get_cache_alignment() uma_align_cache
-#endif /* _LINUX_DMA_MAPPING_H_ */
+#endif /* _LINUXKPI_LINUX_DMA_MAPPING_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/dmapool.h b/sys/compat/linuxkpi/common/include/linux/dmapool.h
index 60353ede6a82..e45472dabc60 100644
--- a/sys/compat/linuxkpi/common/include/linux/dmapool.h
+++ b/sys/compat/linuxkpi/common/include/linux/dmapool.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_DMAPOOL_H_
-#define _LINUX_DMAPOOL_H_
+#ifndef _LINUXKPI_LINUX_DMAPOOL_H_
+#define _LINUXKPI_LINUX_DMAPOOL_H_
#include <linux/types.h>
#include <linux/io.h>
@@ -102,4 +102,4 @@ dma_pool_free(struct dma_pool *pool, void *vaddr, dma_addr_t dma_addr)
linux_dma_pool_free(pool, vaddr, dma_addr);
}
-#endif /* _LINUX_DMAPOOL_H_ */
+#endif /* _LINUXKPI_LINUX_DMAPOOL_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/dmi.h b/sys/compat/linuxkpi/common/include/linux/dmi.h
index 6e450e156b73..339f622f89b2 100644
--- a/sys/compat/linuxkpi/common/include/linux/dmi.h
+++ b/sys/compat/linuxkpi/common/include/linux/dmi.h
@@ -28,8 +28,8 @@
* $FreeBSD$
*/
-#ifndef __LINUX_DMI_H__
-#define __LINUX_DMI_H__
+#ifndef __LINUXKPI_LINUX_DMI_H__
+#define __LINUXKPI_LINUX_DMI_H__
#include <sys/types.h>
#include <linux/mod_devicetable.h>
@@ -44,4 +44,4 @@ const char *linux_dmi_get_system_info(int);
#define dmi_first_match(sysid) linux_dmi_first_match(sysid)
#define dmi_get_system_info(sysid) linux_dmi_get_system_info(sysid)
-#endif /* __LINUX_DMI_H__ */
+#endif /* __LINUXKPI_LINUX_DMI_H__ */
diff --git a/sys/compat/linuxkpi/common/include/linux/efi.h b/sys/compat/linuxkpi/common/include/linux/efi.h
index b7b0e681b6f2..03702bba557a 100644
--- a/sys/compat/linuxkpi/common/include/linux/efi.h
+++ b/sys/compat/linuxkpi/common/include/linux/efi.h
@@ -25,8 +25,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef _LINUX_EFI_H_
-#define _LINUX_EFI_H_
+#ifndef _LINUXKPI_LINUX_EFI_H_
+#define _LINUXKPI_LINUX_EFI_H_
#include <sys/param.h>
#include <sys/linker.h>
@@ -70,4 +70,4 @@ __efi_enabled(int feature)
__efi_enabled(x); \
})
-#endif /* _LINUX_EFI_H_ */
+#endif /* _LINUXKPI_LINUX_EFI_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/err.h b/sys/compat/linuxkpi/common/include/linux/err.h
index 40a8ba82dfda..693f7962df65 100644
--- a/sys/compat/linuxkpi/common/include/linux/err.h
+++ b/sys/compat/linuxkpi/common/include/linux/err.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_ERR_H_
-#define _LINUX_ERR_H_
+#ifndef _LINUXKPI_LINUX_ERR_H_
+#define _LINUXKPI_LINUX_ERR_H_
#include <sys/types.h>
@@ -80,4 +80,4 @@ PTR_ERR_OR_ZERO(const void *ptr)
#define PTR_RET(p) PTR_ERR_OR_ZERO(p)
-#endif /* _LINUX_ERR_H_ */
+#endif /* _LINUXKPI_LINUX_ERR_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/errno.h b/sys/compat/linuxkpi/common/include/linux/errno.h
index efdde9a7a72a..18019e9bed8d 100644
--- a/sys/compat/linuxkpi/common/include/linux/errno.h
+++ b/sys/compat/linuxkpi/common/include/linux/errno.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_ERRNO_H_
-#define _LINUX_ERRNO_H_
+#ifndef _LINUXKPI_LINUX_ERRNO_H_
+#define _LINUXKPI_LINUX_ERRNO_H_
#include <sys/errno.h>
@@ -65,4 +65,4 @@
#define ERFKILL 530
#define EBADE 531
-#endif /* _LINUX_ERRNO_H_ */
+#endif /* _LINUXKPI_LINUX_ERRNO_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/etherdevice.h b/sys/compat/linuxkpi/common/include/linux/etherdevice.h
index 9062cd562347..5d8671c00020 100644
--- a/sys/compat/linuxkpi/common/include/linux/etherdevice.h
+++ b/sys/compat/linuxkpi/common/include/linux/etherdevice.h
@@ -24,8 +24,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_ETHERDEVICE
-#define _LINUX_ETHERDEVICE
+#ifndef _LINUXKPI_LINUX_ETHERDEVICE_H_
+#define _LINUXKPI_LINUX_ETHERDEVICE_H_
#include <linux/types.h>
@@ -115,4 +115,4 @@ random_ether_addr(u8 * dst)
dst[0] |= 0x02;
}
-#endif /* _LINUX_ETHERDEVICE */
+#endif /* _LINUXKPI_LINUX_ETHERDEVICE_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/export.h b/sys/compat/linuxkpi/common/include/linux/export.h
index 00d51114f774..e9ac669a535f 100644
--- a/sys/compat/linuxkpi/common/include/linux/export.h
+++ b/sys/compat/linuxkpi/common/include/linux/export.h
@@ -24,8 +24,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_EXPORT_H
-#define _LINUX_EXPORT_H
+#ifndef _LINUXKPI_LINUX_EXPORT_H
+#define _LINUXKPI_LINUX_EXPORT_H
#define EXPORT_SYMBOL(name)
#define EXPORT_SYMBOL_GPL(name)
diff --git a/sys/compat/linuxkpi/common/include/linux/file.h b/sys/compat/linuxkpi/common/include/linux/file.h
index 21b254211cfd..43027979061e 100644
--- a/sys/compat/linuxkpi/common/include/linux/file.h
+++ b/sys/compat/linuxkpi/common/include/linux/file.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_FILE_H_
-#define _LINUX_FILE_H_
+#ifndef _LINUXKPI_LINUX_FILE_H_
+#define _LINUXKPI_LINUX_FILE_H_
#include <sys/param.h>
#include <sys/file.h>
@@ -187,4 +187,4 @@ static inline struct fd fdget(unsigned int fd)
#define file linux_file
#define fget(...) linux_fget(__VA_ARGS__)
-#endif /* _LINUX_FILE_H_ */
+#endif /* _LINUXKPI_LINUX_FILE_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/fs.h b/sys/compat/linuxkpi/common/include/linux/fs.h
index c1097748cbf4..a21c140d5a9b 100644
--- a/sys/compat/linuxkpi/common/include/linux/fs.h
+++ b/sys/compat/linuxkpi/common/include/linux/fs.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_FS_H_
-#define _LINUX_FS_H_
+#ifndef _LINUXKPI_LINUX_FS_H_
+#define _LINUXKPI_LINUX_FS_H_
#include <sys/cdefs.h>
#include <sys/param.h>
@@ -318,4 +318,4 @@ call_mmap(struct linux_file *file, struct vm_area_struct *vma)
return (file->f_op->mmap(file, vma));
}
-#endif /* _LINUX_FS_H_ */
+#endif /* _LINUXKPI_LINUX_FS_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/gcd.h b/sys/compat/linuxkpi/common/include/linux/gcd.h
index bff28340cfae..40523bd6cba6 100644
--- a/sys/compat/linuxkpi/common/include/linux/gcd.h
+++ b/sys/compat/linuxkpi/common/include/linux/gcd.h
@@ -29,8 +29,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_GCD_H_
-#define _LINUX_GCD_H_
+#ifndef _LINUXKPI_LINUX_GCD_H_
+#define _LINUXKPI_LINUX_GCD_H_
static inline unsigned long
gcd(unsigned long a, unsigned long b)
diff --git a/sys/compat/linuxkpi/common/include/linux/gfp.h b/sys/compat/linuxkpi/common/include/linux/gfp.h
index 1366e75ad26a..6273fa969db8 100644
--- a/sys/compat/linuxkpi/common/include/linux/gfp.h
+++ b/sys/compat/linuxkpi/common/include/linux/gfp.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_GFP_H_
-#define _LINUX_GFP_H_
+#ifndef _LINUXKPI_LINUX_GFP_H_
+#define _LINUXKPI_LINUX_GFP_H_
#include <sys/cdefs.h>
#include <sys/types.h>
@@ -184,4 +184,4 @@ gfpflags_allow_blocking(const gfp_t gfp_flags)
#define SetPageReserved(page) do { } while (0) /* NOP */
#define ClearPageReserved(page) do { } while (0) /* NOP */
-#endif /* _LINUX_GFP_H_ */
+#endif /* _LINUXKPI_LINUX_GFP_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/hardirq.h b/sys/compat/linuxkpi/common/include/linux/hardirq.h
index d338e11c5a6f..07f00f076860 100644
--- a/sys/compat/linuxkpi/common/include/linux/hardirq.h
+++ b/sys/compat/linuxkpi/common/include/linux/hardirq.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_HARDIRQ_H_
-#define _LINUX_HARDIRQ_H_
+#ifndef _LINUXKPI_LINUX_HARDIRQ_H_
+#define _LINUXKPI_LINUX_HARDIRQ_H_
#include <linux/types.h>
#include <linux/lockdep.h>
@@ -40,4 +40,4 @@
#define synchronize_irq(irq) _intr_drain((irq))
-#endif /* _LINUX_HARDIRQ_H_ */
+#endif /* _LINUXKPI_LINUX_HARDIRQ_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/highmem.h b/sys/compat/linuxkpi/common/include/linux/highmem.h
index 9378746ea480..53efbec06385 100644
--- a/sys/compat/linuxkpi/common/include/linux/highmem.h
+++ b/sys/compat/linuxkpi/common/include/linux/highmem.h
@@ -29,8 +29,8 @@
* SUCH DAMAGE.
*/
-#ifndef _LINUX_HIGHMEM_H_
-#define _LINUX_HIGHMEM_H_
+#ifndef _LINUXKPI_LINUX_HIGHMEM_H_
+#define _LINUXKPI_LINUX_HIGHMEM_H_
#include <sys/types.h>
#include <sys/lock.h>
@@ -115,4 +115,4 @@ kunmap_atomic(void *vaddr)
kunmap(virt_to_page(vaddr));
}
-#endif /* _LINUX_HIGHMEM_H_ */
+#endif /* _LINUXKPI_LINUX_HIGHMEM_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/hrtimer.h b/sys/compat/linuxkpi/common/include/linux/hrtimer.h
index a5ff7480a271..23e707d906b4 100644
--- a/sys/compat/linuxkpi/common/include/linux/hrtimer.h
+++ b/sys/compat/linuxkpi/common/include/linux/hrtimer.h
@@ -25,8 +25,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_HRTIMER_H_
-#define _LINUX_HRTIMER_H_
+#ifndef _LINUXKPI_LINUX_HRTIMER_H_
+#define _LINUXKPI_LINUX_HRTIMER_H_
#include <sys/_callout.h>
#include <sys/_mutex.h>
@@ -86,4 +86,4 @@ void linux_hrtimer_start(struct hrtimer *, ktime_t);
void linux_hrtimer_start_range_ns(struct hrtimer *, ktime_t, int64_t);
void linux_hrtimer_forward_now(struct hrtimer *, ktime_t);
-#endif /* _LINUX_HRTIMER_H_ */
+#endif /* _LINUXKPI_LINUX_HRTIMER_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/idr.h b/sys/compat/linuxkpi/common/include/linux/idr.h
index cba3f96c88ae..5310fcf9950c 100644
--- a/sys/compat/linuxkpi/common/include/linux/idr.h
+++ b/sys/compat/linuxkpi/common/include/linux/idr.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_IDR_H_
-#define _LINUX_IDR_H_
+#ifndef _LINUXKPI_LINUX_IDR_H_
+#define _LINUXKPI_LINUX_IDR_H_
#include <sys/param.h>
#include <sys/lock.h>
@@ -152,4 +152,4 @@ ida_is_empty(struct ida *ida)
return (idr_is_empty(&ida->idr));
}
-#endif /* _LINUX_IDR_H_ */
+#endif /* _LINUXKPI_LINUX_IDR_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/if_arp.h b/sys/compat/linuxkpi/common/include/linux/if_arp.h
index 9235e2dff9cf..abd30eac49c9 100644
--- a/sys/compat/linuxkpi/common/include/linux/if_arp.h
+++ b/sys/compat/linuxkpi/common/include/linux/if_arp.h
@@ -28,10 +28,10 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_IF_ARP_H_
-#define _LINUX_IF_ARP_H_
+#ifndef _LINUXKPI_LINUX_IF_ARP_H_
+#define _LINUXKPI_LINUX_IF_ARP_H_
#include <sys/param.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if_arp.h>
-#endif /* _LINUX_IF_ARP_H_ */
+#endif /* _LINUXKPI_LINUX_IF_ARP_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/if_ether.h b/sys/compat/linuxkpi/common/include/linux/if_ether.h
index 187446c4c591..178b778ec736 100644
--- a/sys/compat/linuxkpi/common/include/linux/if_ether.h
+++ b/sys/compat/linuxkpi/common/include/linux/if_ether.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_IF_ETHER_H_
-#define _LINUX_IF_ETHER_H_
+#ifndef _LINUXKPI_LINUX_IF_ETHER_H_
+#define _LINUXKPI_LINUX_IF_ETHER_H_
#include <linux/types.h>
@@ -64,4 +64,4 @@ struct ethhdr {
uint16_t h_proto;
} __packed;
-#endif /* _LINUX_IF_ETHER_H_ */
+#endif /* _LINUXKPI_LINUX_IF_ETHER_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/if_vlan.h b/sys/compat/linuxkpi/common/include/linux/if_vlan.h
index 4d8b8926a032..7c5531f6ec11 100644
--- a/sys/compat/linuxkpi/common/include/linux/if_vlan.h
+++ b/sys/compat/linuxkpi/common/include/linux/if_vlan.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_IF_VLAN_H_
-#define _LINUX_IF_VLAN_H_
+#ifndef _LINUXKPI_LINUX_IF_VLAN_H_
+#define _LINUXKPI_LINUX_IF_VLAN_H_
#include <sys/types.h>
#include <sys/socket.h>
@@ -56,4 +56,4 @@ vlan_dev_vlan_id(struct ifnet *ifp)
return (0);
}
-#endif /* _LINUX_IF_VLAN_H_ */
+#endif /* _LINUXKPI_LINUX_IF_VLAN_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/in.h b/sys/compat/linuxkpi/common/include/linux/in.h
index 96d66fbae2f0..ae2be5be1799 100644
--- a/sys/compat/linuxkpi/common/include/linux/in.h
+++ b/sys/compat/linuxkpi/common/include/linux/in.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_IN_H_
-#define _LINUX_IN_H_
+#ifndef _LINUXKPI_LINUX_IN_H_
+#define _LINUXKPI_LINUX_IN_H_
#include "opt_inet.h"
@@ -44,4 +44,4 @@
#define ipv4_is_multicast(be) IN_MULTICAST(ntohl(be))
#define ipv4_is_lbcast(be) ((be) == INADDR_BROADCAST)
-#endif /* _LINUX_IN_H_ */
+#endif /* _LINUXKPI_LINUX_IN_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/in6.h b/sys/compat/linuxkpi/common/include/linux/in6.h
index c72bfb6f0b88..5f5f548de06d 100644
--- a/sys/compat/linuxkpi/common/include/linux/in6.h
+++ b/sys/compat/linuxkpi/common/include/linux/in6.h
@@ -28,9 +28,9 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_IN6_H_
-#define _LINUX_IN6_H_
+#ifndef _LINUXKPI_LINUX_IN6_H_
+#define _LINUXKPI_LINUX_IN6_H_
#include "opt_inet6.h"
-#endif /* _LINUX_IN6_H_ */
+#endif /* _LINUXKPI_LINUX_IN6_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/inetdevice.h b/sys/compat/linuxkpi/common/include/linux/inetdevice.h
index 41852e8fed81..ea256cd084a8 100644
--- a/sys/compat/linuxkpi/common/include/linux/inetdevice.h
+++ b/sys/compat/linuxkpi/common/include/linux/inetdevice.h
@@ -1,6 +1,6 @@
-#ifndef _LINUX_INETDEVICE_H_
-#define _LINUX_INETDEVICE_H_
+#ifndef _LINUXKPI_LINUX_INETDEVICE_H_
+#define _LINUXKPI_LINUX_INETDEVICE_H_
#include <linux/netdevice.h>
-#endif /* _LINUX_INETDEVICE_H_ */
+#endif /* _LINUXKPI_LINUX_INETDEVICE_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/interrupt.h b/sys/compat/linuxkpi/common/include/linux/interrupt.h
index 964b95edb43f..905a29a77f91 100644
--- a/sys/compat/linuxkpi/common/include/linux/interrupt.h
+++ b/sys/compat/linuxkpi/common/include/linux/interrupt.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_INTERRUPT_H_
-#define _LINUX_INTERRUPT_H_
+#ifndef _LINUXKPI_LINUX_INTERRUPT_H_
+#define _LINUXKPI_LINUX_INTERRUPT_H_
#include <linux/cpu.h>
#include <linux/device.h>
@@ -153,4 +153,4 @@ extern int tasklet_trylock(struct tasklet_struct *);
extern void tasklet_unlock(struct tasklet_struct *);
extern void tasklet_unlock_wait(struct tasklet_struct *ts);
-#endif /* _LINUX_INTERRUPT_H_ */
+#endif /* _LINUXKPI_LINUX_INTERRUPT_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/interval_tree.h b/sys/compat/linuxkpi/common/include/linux/interval_tree.h
index 7910f8131d2f..3f8e0cb743d9 100644
--- a/sys/compat/linuxkpi/common/include/linux/interval_tree.h
+++ b/sys/compat/linuxkpi/common/include/linux/interval_tree.h
@@ -25,8 +25,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef _LINUX_INTERVAL_TREE_H
-#define _LINUX_INTERVAL_TREE_H
+#ifndef _LINUXKPI_LINUX_INTERVAL_TREE_H
+#define _LINUXKPI_LINUX_INTERVAL_TREE_H
#include <linux/rbtree.h>
@@ -52,4 +52,4 @@ void lkpi_interval_tree_insert(struct interval_tree_node *,
void lkpi_interval_tree_remove(struct interval_tree_node *,
struct rb_root_cached *);
-#endif /* _LINUX_INTERVAL_TREE_H */
+#endif /* _LINUXKPI_LINUX_INTERVAL_TREE_H */
diff --git a/sys/compat/linuxkpi/common/include/linux/io-mapping.h b/sys/compat/linuxkpi/common/include/linux/io-mapping.h
index 12643be9c6e6..9c7ad5095bf3 100644
--- a/sys/compat/linuxkpi/common/include/linux/io-mapping.h
+++ b/sys/compat/linuxkpi/common/include/linux/io-mapping.h
@@ -29,8 +29,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_IO_MAPPING_H_
-#define _LINUX_IO_MAPPING_H_
+#ifndef _LINUXKPI_LINUX_IO_MAPPING_H_
+#define _LINUXKPI_LINUX_IO_MAPPING_H_
#include <sys/types.h>
#include <machine/vm.h>
@@ -114,4 +114,4 @@ io_mapping_unmap(void *vaddr)
{
}
-#endif /* _LINUX_IO_MAPPING_H_ */
+#endif /* _LINUXKPI_LINUX_IO_MAPPING_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/io.h b/sys/compat/linuxkpi/common/include/linux/io.h
index 08e1635b70ac..d2ebf7e328cf 100644
--- a/sys/compat/linuxkpi/common/include/linux/io.h
+++ b/sys/compat/linuxkpi/common/include/linux/io.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_IO_H_
-#define _LINUX_IO_H_
+#ifndef _LINUXKPI_LINUX_IO_H_
+#define _LINUXKPI_LINUX_IO_H_
#include <sys/endian.h>
#include <sys/types.h>
@@ -490,4 +490,4 @@ void lkpi_arch_phys_wc_del(int);
#define arch_phys_wc_index(x) \
(((x) < __MTRR_ID_BASE) ? -1 : ((x) - __MTRR_ID_BASE))
-#endif /* _LINUX_IO_H_ */
+#endif /* _LINUXKPI_LINUX_IO_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/ioctl.h b/sys/compat/linuxkpi/common/include/linux/ioctl.h
index fcdb5c547e73..b1b5443fa150 100644
--- a/sys/compat/linuxkpi/common/include/linux/ioctl.h
+++ b/sys/compat/linuxkpi/common/include/linux/ioctl.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_IOCTL_H_
-#define _LINUX_IOCTL_H_
+#ifndef _LINUXKPI_LINUX_IOCTL_H_
+#define _LINUXKPI_LINUX_IOCTL_H_
#include <sys/ioccom.h>
@@ -37,4 +37,4 @@
#define _IOC_TYPE(cmd) IOCGROUP(cmd)
#define _IOC_NR(cmd) ((cmd) & 0xff)
-#endif /* _LINUX_IOCTL_H_ */
+#endif /* _LINUXKPI_LINUX_IOCTL_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/iopoll.h b/sys/compat/linuxkpi/common/include/linux/iopoll.h
index e6a3dbc23a01..478d875c846c 100644
--- a/sys/compat/linuxkpi/common/include/linux/iopoll.h
+++ b/sys/compat/linuxkpi/common/include/linux/iopoll.h
@@ -27,8 +27,8 @@
* $FreeBSD$
*/
-#ifndef __LINUXKPI_LINUX_IOPOLL_H
-#define __LINUXKPI_LINUX_IOPOLL_H
+#ifndef _LINUXKPI_LINUX_IOPOLL_H
+#define _LINUXKPI_LINUX_IOPOLL_H
#include <sys/types.h>
#include <sys/time.h>
@@ -91,4 +91,4 @@
(_cond) ? 0 : (-ETIMEDOUT); \
})
-#endif /* __LINUXKPI_LINUX_IOPOLL_H */
+#endif /* _LINUXKPI_LINUX_IOPOLL_H */
diff --git a/sys/compat/linuxkpi/common/include/linux/ip.h b/sys/compat/linuxkpi/common/include/linux/ip.h
index 894e081b14ab..11f4aed180d1 100644
--- a/sys/compat/linuxkpi/common/include/linux/ip.h
+++ b/sys/compat/linuxkpi/common/include/linux/ip.h
@@ -30,8 +30,8 @@
* $FreeBSD$
*/
-#ifndef __LKPI_LINUX_IP_H
-#define __LKPI_LINUX_IP_H
+#ifndef _LINUXKPI_LINUX_IP_H
+#define _LINUXKPI_LINUX_IP_H
#include <sys/types.h>
@@ -72,4 +72,4 @@ ip_send_check(struct iphdr *iph)
iph->check = in_cksum_hdr((const void *)iph);
}
-#endif /* __LKPI_LINUX_IP_H */
+#endif /* _LINUXKPI_LINUX_IP_H */
diff --git a/sys/compat/linuxkpi/common/include/linux/irq_work.h b/sys/compat/linuxkpi/common/include/linux/irq_work.h
index 1b376b829818..0c35747d596c 100644
--- a/sys/compat/linuxkpi/common/include/linux/irq_work.h
+++ b/sys/compat/linuxkpi/common/include/linux/irq_work.h
@@ -28,8 +28,8 @@
* $FreeBSD$
*/
-#ifndef __LINUX_IRQ_WORK_H__
-#define __LINUX_IRQ_WORK_H__
+#ifndef _LINUXKPI_LINUX_IRQ_WORK_H_
+#define _LINUXKPI_LINUX_IRQ_WORK_H_
#include <sys/param.h>
#include <sys/taskqueue.h>
@@ -70,4 +70,4 @@ irq_work_sync(struct irq_work *irqw)
taskqueue_drain(linux_irq_work_tq, &irqw->irq_task);
}
-#endif /* __LINUX_IRQ_WORK_H__ */
+#endif /* _LINUXKPI_LINUX_IRQ_WORK_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/irqreturn.h b/sys/compat/linuxkpi/common/include/linux/irqreturn.h
index 780fccad017c..8fbb0217573d 100644
--- a/sys/compat/linuxkpi/common/include/linux/irqreturn.h
+++ b/sys/compat/linuxkpi/common/include/linux/irqreturn.h
@@ -26,8 +26,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_IRQRETURN_H
-#define _LINUX_IRQRETURN_H
+#ifndef _LINUXKPI_LINUX_IRQRETURN_H
+#define _LINUXKPI_LINUX_IRQRETURN_H
typedef enum irqreturn {
IRQ_NONE = 0,
@@ -37,4 +37,4 @@ typedef enum irqreturn {
#define IRQ_RETVAL(x) ((x) ? IRQ_HANDLED : IRQ_NONE)
-#endif /* _LINUX_IRQRETURN_H */
+#endif /* _LINUXKPI_LINUX_IRQRETURN_H */
diff --git a/sys/compat/linuxkpi/common/include/linux/jhash.h b/sys/compat/linuxkpi/common/include/linux/jhash.h
index 08300083212f..1bab37f22b5d 100644
--- a/sys/compat/linuxkpi/common/include/linux/jhash.h
+++ b/sys/compat/linuxkpi/common/include/linux/jhash.h
@@ -1,5 +1,5 @@
-#ifndef _LINUX_JHASH_H_
-#define _LINUX_JHASH_H_
+#ifndef _LINUXKPI_LINUX_JHASH_H_
+#define _LINUXKPI_LINUX_JHASH_H_
#include <asm/types.h>
@@ -143,4 +143,4 @@ static inline u32 jhash_1word(u32 a, u32 initval)
return jhash_3words(a, 0, 0, initval);
}
-#endif /* _LINUX_JHASH_H_ */
+#endif /* _LINUXKPI_LINUX_JHASH_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/jiffies.h b/sys/compat/linuxkpi/common/include/linux/jiffies.h
index 7d547e6d66cd..76c9c6a749c1 100644
--- a/sys/compat/linuxkpi/common/include/linux/jiffies.h
+++ b/sys/compat/linuxkpi/common/include/linux/jiffies.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_JIFFIES_H_
-#define _LINUX_JIFFIES_H_
+#ifndef _LINUXKPI_LINUX_JIFFIES_H_
+#define _LINUXKPI_LINUX_JIFFIES_H_
#include <linux/types.h>
#include <linux/time.h>
@@ -164,4 +164,4 @@ linux_timer_jiffies_until(int expires)
return (delta);
}
-#endif /* _LINUX_JIFFIES_H_ */
+#endif /* _LINUXKPI_LINUX_JIFFIES_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/jump_label.h b/sys/compat/linuxkpi/common/include/linux/jump_label.h
index 75bb1ccafde1..444754a0ff82 100644
--- a/sys/compat/linuxkpi/common/include/linux/jump_label.h
+++ b/sys/compat/linuxkpi/common/include/linux/jump_label.h
@@ -24,8 +24,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef _LINUX_JUMP_LABEL_H_
-#define _LINUX_JUMP_LABEL_H_
+#ifndef _LINUXKPI_LINUX_JUMP_LABEL_H_
+#define _LINUXKPI_LINUX_JUMP_LABEL_H_
#include <linux/types.h>
#include <linux/compiler.h>
@@ -45,4 +45,4 @@ static_branch_likely(bool *flag)
return *flag;
}
-#endif /* _LINUX_JUMP_LABEL_H_ */
+#endif /* _LINUXKPI_LINUX_JUMP_LABEL_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/kdev_t.h b/sys/compat/linuxkpi/common/include/linux/kdev_t.h
index 9477ba739e31..f2a5b53effec 100644
--- a/sys/compat/linuxkpi/common/include/linux/kdev_t.h
+++ b/sys/compat/linuxkpi/common/include/linux/kdev_t.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_KDEV_T_H_
-#define _LINUX_KDEV_T_H_
+#ifndef _LINUXKPI_LINUX_KDEV_T_H_
+#define _LINUXKPI_LINUX_KDEV_T_H_
#include <sys/types.h>
@@ -43,4 +43,4 @@ old_encode_dev(dev_t dev)
return ((MAJOR(dev) << 8) | MINOR(dev));
}
-#endif /* _LINUX_KDEV_T_H_ */
+#endif /* _LINUXKPI_LINUX_KDEV_T_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/kernel.h b/sys/compat/linuxkpi/common/include/linux/kernel.h
index 6f917941184f..419dae214396 100644
--- a/sys/compat/linuxkpi/common/include/linux/kernel.h
+++ b/sys/compat/linuxkpi/common/include/linux/kernel.h
@@ -29,8 +29,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_KERNEL_H_
-#define _LINUX_KERNEL_H_
+#ifndef _LINUXKPI_LINUX_KERNEL_H_
+#define _LINUXKPI_LINUX_KERNEL_H_
#include <sys/cdefs.h>
#include <sys/types.h>
@@ -728,4 +728,4 @@ hex2bin(uint8_t *bindst, const char *hexsrc, size_t binlen)
#define IS_REACHABLE(_x) (IS_BUILTIN(_x) || \
(IS_MODULE(_x) && IS_BUILTIN(MODULE)))
-#endif /* _LINUX_KERNEL_H_ */
+#endif /* _LINUXKPI_LINUX_KERNEL_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/kmod.h b/sys/compat/linuxkpi/common/include/linux/kmod.h
index b8a1a8b677ed..b8e8a483210f 100644
--- a/sys/compat/linuxkpi/common/include/linux/kmod.h
+++ b/sys/compat/linuxkpi/common/include/linux/kmod.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_KMOD_H_
-#define _LINUX_KMOD_H_
+#ifndef _LINUXKPI_LINUX_KMOD_H_
+#define _LINUXKPI_LINUX_KMOD_H_
#include <sys/types.h>
#include <sys/syscallsubr.h>
@@ -48,4 +48,4 @@
#define request_module_nowait request_module
-#endif /* _LINUX_KMOD_H_ */
+#endif /* _LINUXKPI_LINUX_KMOD_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/kobject.h b/sys/compat/linuxkpi/common/include/linux/kobject.h
index 8108375ed07e..e6f716254c93 100644
--- a/sys/compat/linuxkpi/common/include/linux/kobject.h
+++ b/sys/compat/linuxkpi/common/include/linux/kobject.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_KOBJECT_H_
-#define _LINUX_KOBJECT_H_
+#ifndef _LINUXKPI_LINUX_KOBJECT_H_
+#define _LINUXKPI_LINUX_KOBJECT_H_
#include <machine/stdarg.h>
@@ -167,4 +167,4 @@ kobject_uevent_env(struct kobject *kobj, int action, char *envp[])
*/
}
-#endif /* _LINUX_KOBJECT_H_ */
+#endif /* _LINUXKPI_LINUX_KOBJECT_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/kref.h b/sys/compat/linuxkpi/common/include/linux/kref.h
index d5b45ba59313..2c59794f4ddc 100644
--- a/sys/compat/linuxkpi/common/include/linux/kref.h
+++ b/sys/compat/linuxkpi/common/include/linux/kref.h
@@ -29,8 +29,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_KREF_H_
-#define _LINUX_KREF_H_
+#ifndef _LINUXKPI_LINUX_KREF_H_
+#define _LINUXKPI_LINUX_KREF_H_
#include <sys/types.h>
#include <sys/refcount.h>
@@ -128,4 +128,4 @@ static inline int kref_put_mutex(struct kref *kref,
return 0;
}
-#endif /* _LINUX_KREF_H_ */
+#endif /* _LINUXKPI_LINUX_KREF_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/kthread.h b/sys/compat/linuxkpi/common/include/linux/kthread.h
index 3afd21dc9356..f4791d5f0db3 100644
--- a/sys/compat/linuxkpi/common/include/linux/kthread.h
+++ b/sys/compat/linuxkpi/common/include/linux/kthread.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_KTHREAD_H_
-#define _LINUX_KTHREAD_H_
+#ifndef _LINUXKPI_LINUX_KTHREAD_H_
+#define _LINUXKPI_LINUX_KTHREAD_H_
#include <linux/sched.h>
@@ -70,4 +70,4 @@ int linux_in_atomic(void);
#define in_atomic() linux_in_atomic()
-#endif /* _LINUX_KTHREAD_H_ */
+#endif /* _LINUXKPI_LINUX_KTHREAD_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/ktime.h b/sys/compat/linuxkpi/common/include/linux/ktime.h
index 1475674a12e6..e0722aa2589b 100644
--- a/sys/compat/linuxkpi/common/include/linux/ktime.h
+++ b/sys/compat/linuxkpi/common/include/linux/ktime.h
@@ -28,8 +28,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_KTIME_H
-#define _LINUX_KTIME_H
+#ifndef _LINUXKPI_LINUX_KTIME_H
+#define _LINUXKPI_LINUX_KTIME_H
#include <linux/types.h>
#include <linux/time.h>
@@ -263,4 +263,4 @@ ktime_get_raw_ns(void)
return (ktime_to_ns(timespec_to_ktime(ts)));
}
-#endif /* _LINUX_KTIME_H */
+#endif /* _LINUXKPI_LINUX_KTIME_H */
diff --git a/sys/compat/linuxkpi/common/include/linux/list.h b/sys/compat/linuxkpi/common/include/linux/list.h
index 37b5b751d21b..eee1b56087e7 100644
--- a/sys/compat/linuxkpi/common/include/linux/list.h
+++ b/sys/compat/linuxkpi/common/include/linux/list.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_LIST_H_
-#define _LINUX_LIST_H_
+#ifndef _LINUXKPI_LINUX_LIST_H_
+#define _LINUXKPI_LINUX_LIST_H_
#ifndef _STANDALONE
/*
@@ -500,4 +500,4 @@ static inline int list_is_last(const struct list_head *list,
extern void list_sort(void *priv, struct list_head *head, int (*cmp)(void *priv,
struct list_head *a, struct list_head *b));
-#endif /* _LINUX_LIST_H_ */
+#endif /* _LINUXKPI_LINUX_LIST_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/llist.h b/sys/compat/linuxkpi/common/include/linux/llist.h
index b3c89516e710..fd842f05e9eb 100644
--- a/sys/compat/linuxkpi/common/include/linux/llist.h
+++ b/sys/compat/linuxkpi/common/include/linux/llist.h
@@ -1,7 +1,7 @@
/* Public domain. */
-#ifndef _LINUX_LLIST_H
-#define _LINUX_LLIST_H
+#ifndef _LINUXKPI_LINUX_LLIST_H
+#define _LINUXKPI_LINUX_LLIST_H
#include <sys/types.h>
#include <machine/atomic.h>
diff --git a/sys/compat/linuxkpi/common/include/linux/lockdep.h b/sys/compat/linuxkpi/common/include/linux/lockdep.h
index 1d800f46908f..142ca3e52b25 100644
--- a/sys/compat/linuxkpi/common/include/linux/lockdep.h
+++ b/sys/compat/linuxkpi/common/include/linux/lockdep.h
@@ -29,8 +29,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_LOCKDEP_H_
-#define _LINUX_LOCKDEP_H_
+#ifndef _LINUXKPI_LINUX_LOCKDEP_H_
+#define _LINUXKPI_LINUX_LOCKDEP_H_
#include <sys/types.h>
#include <sys/lock.h>
@@ -99,4 +99,4 @@ lockdep_is_held(void *__m)
#define lockdep_repin_lock(l,c) do { (void)(l); (void)(c); } while (0)
#define lockdep_unpin_lock(l,c) do { (void)(l); (void)(c); } while (0)
-#endif /* _LINUX_LOCKDEP_H_ */
+#endif /* _LINUXKPI_LINUX_LOCKDEP_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/log2.h b/sys/compat/linuxkpi/common/include/linux/log2.h
index d79eedf38176..4c356136ca98 100644
--- a/sys/compat/linuxkpi/common/include/linux/log2.h
+++ b/sys/compat/linuxkpi/common/include/linux/log2.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_LOG2_H_
-#define _LINUX_LOG2_H_
+#ifndef _LINUXKPI_LINUX_LOG2_H_
+#define _LINUXKPI_LINUX_LOG2_H_
#include <linux/types.h>
@@ -128,4 +128,4 @@ rounddown_pow_of_two(unsigned long x)
#define order_base_2(x) ilog2(roundup_pow_of_two(x))
-#endif /* _LINUX_LOG2_H_ */
+#endif /* _LINUXKPI_LINUX_LOG2_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/math64.h b/sys/compat/linuxkpi/common/include/linux/math64.h
index a3af81c92c9e..da8b19d37efe 100644
--- a/sys/compat/linuxkpi/common/include/linux/math64.h
+++ b/sys/compat/linuxkpi/common/include/linux/math64.h
@@ -27,8 +27,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_MATH64_H
-#define _LINUX_MATH64_H
+#ifndef _LINUXKPI_LINUX_MATH64_H
+#define _LINUXKPI_LINUX_MATH64_H
#include <sys/stdint.h>
@@ -100,4 +100,4 @@ div64_u64_round_up(uint64_t dividend, uint64_t divisor)
#define DIV64_U64_ROUND_UP(...) \
div64_u64_round_up(__VA_ARGS__)
-#endif /* _LINUX_MATH64_H */
+#endif /* _LINUXKPI_LINUX_MATH64_H */
diff --git a/sys/compat/linuxkpi/common/include/linux/miscdevice.h b/sys/compat/linuxkpi/common/include/linux/miscdevice.h
index 26a4a2c049c1..1aa37454ffed 100644
--- a/sys/compat/linuxkpi/common/include/linux/miscdevice.h
+++ b/sys/compat/linuxkpi/common/include/linux/miscdevice.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_MISCDEVICE_H_
-#define _LINUX_MISCDEVICE_H_
+#ifndef _LINUXKPI_LINUX_MISCDEVICE_H_
+#define _LINUXKPI_LINUX_MISCDEVICE_H_
#define MISC_DYNAMIC_MINOR -1
@@ -73,4 +73,4 @@ misc_deregister(struct miscdevice *misc)
return (0);
}
-#endif /* _LINUX_MISCDEVICE_H_ */
+#endif /* _LINUXKPI_LINUX_MISCDEVICE_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/mm.h b/sys/compat/linuxkpi/common/include/linux/mm.h
index 00583937318b..bb230b4fbbe9 100644
--- a/sys/compat/linuxkpi/common/include/linux/mm.h
+++ b/sys/compat/linuxkpi/common/include/linux/mm.h
@@ -30,8 +30,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_MM_H_
-#define _LINUX_MM_H_
+#ifndef _LINUXKPI_LINUX_MM_H_
+#define _LINUXKPI_LINUX_MM_H_
#include <linux/spinlock.h>
#include <linux/gfp.h>
@@ -296,4 +296,4 @@ void lkpi_unmap_mapping_range(void *obj, loff_t const holebegin __unused,
#define PAGE_ALIGNED(p) __is_aligned(p, PAGE_SIZE)
-#endif /* _LINUX_MM_H_ */
+#endif /* _LINUXKPI_LINUX_MM_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/mm_types.h b/sys/compat/linuxkpi/common/include/linux/mm_types.h
index 4c9eddf500d6..a59c1e535b45 100644
--- a/sys/compat/linuxkpi/common/include/linux/mm_types.h
+++ b/sys/compat/linuxkpi/common/include/linux/mm_types.h
@@ -26,8 +26,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_MM_TYPES_H_
-#define _LINUX_MM_TYPES_H_
+#ifndef _LINUXKPI_LINUX_MM_TYPES_H_
+#define _LINUXKPI_LINUX_MM_TYPES_H_
#include <linux/types.h>
#include <linux/page.h>
@@ -79,4 +79,4 @@ mmgrab(struct mm_struct *mm)
extern struct mm_struct *linux_get_task_mm(struct task_struct *);
#define get_task_mm(task) linux_get_task_mm(task)
-#endif /* _LINUX_MM_TYPES_H_ */
+#endif /* _LINUXKPI_LINUX_MM_TYPES_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/mod_devicetable.h b/sys/compat/linuxkpi/common/include/linux/mod_devicetable.h
index f2a913bc6346..5609c6f775e9 100644
--- a/sys/compat/linuxkpi/common/include/linux/mod_devicetable.h
+++ b/sys/compat/linuxkpi/common/include/linux/mod_devicetable.h
@@ -28,8 +28,8 @@
* $FreeBSD$
*/
-#ifndef __LINUX_MOD_DEVICETABLE_H__
-#define __LINUX_MOD_DEVICETABLE_H__
+#ifndef __LINUXKPI_LINUX_MOD_DEVICETABLE_H__
+#define __LINUXKPI_LINUX_MOD_DEVICETABLE_H__
enum dmi_field {
DMI_NONE,
@@ -69,4 +69,4 @@ struct dmi_system_id {
#define DMI_MATCH(a, b) { .slot = a, .substr = b }
#define DMI_EXACT_MATCH(a, b) { .slot = a, .substr = b, }
-#endif /* __LINUX_MOD_DEVICETABLE_H__ */
+#endif /* __LINUXKPI_LINUX_MOD_DEVICETABLE_H__ */
diff --git a/sys/compat/linuxkpi/common/include/linux/module.h b/sys/compat/linuxkpi/common/include/linux/module.h
index 25d775dd8df9..188e277fecf9 100644
--- a/sys/compat/linuxkpi/common/include/linux/module.h
+++ b/sys/compat/linuxkpi/common/include/linux/module.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_MODULE_H_
-#define _LINUX_MODULE_H_
+#ifndef _LINUXKPI_LINUX_MODULE_H_
+#define _LINUXKPI_LINUX_MODULE_H_
#include <sys/cdefs.h>
#include <sys/types.h>
@@ -105,4 +105,4 @@ _module_run(void *arg)
#define postcore_initcall(fn) module_init(fn)
-#endif /* _LINUX_MODULE_H_ */
+#endif /* _LINUXKPI_LINUX_MODULE_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/moduleparam.h b/sys/compat/linuxkpi/common/include/linux/moduleparam.h
index 2b48ec1809b7..d9485de88f56 100644
--- a/sys/compat/linuxkpi/common/include/linux/moduleparam.h
+++ b/sys/compat/linuxkpi/common/include/linux/moduleparam.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_MODULEPARAM_H_
-#define _LINUX_MODULEPARAM_H_
+#ifndef _LINUXKPI_LINUX_MODULEPARAM_H_
+#define _LINUXKPI_LINUX_MODULEPARAM_H_
#include <sys/types.h>
#include <sys/sysctl.h>
@@ -136,4 +136,4 @@
SYSCTL_DECL(_compat_linuxkpi);
-#endif /* _LINUX_MODULEPARAM_H_ */
+#endif /* _LINUXKPI_LINUX_MODULEPARAM_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/mutex.h b/sys/compat/linuxkpi/common/include/linux/mutex.h
index bdf0b4dbdb2d..7af95e9d2dc5 100644
--- a/sys/compat/linuxkpi/common/include/linux/mutex.h
+++ b/sys/compat/linuxkpi/common/include/linux/mutex.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_MUTEX_H_
-#define _LINUX_MUTEX_H_
+#ifndef _LINUXKPI_LINUX_MUTEX_H_
+#define _LINUXKPI_LINUX_MUTEX_H_
#include <sys/param.h>
#include <sys/proc.h>
@@ -173,4 +173,4 @@ linux_mutex_destroy(mutex_t *m)
extern int linux_mutex_lock_interruptible(mutex_t *m);
-#endif /* _LINUX_MUTEX_H_ */
+#endif /* _LINUXKPI_LINUX_MUTEX_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/net.h b/sys/compat/linuxkpi/common/include/linux/net.h
index 5365cd0e9552..5438fccb8512 100644
--- a/sys/compat/linuxkpi/common/include/linux/net.h
+++ b/sys/compat/linuxkpi/common/include/linux/net.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_NET_H_
-#define _LINUX_NET_H_
+#ifndef _LINUXKPI_LINUX_NET_H_
+#define _LINUXKPI_LINUX_NET_H_
#include <sys/types.h>
#include <sys/malloc.h>
@@ -86,4 +86,4 @@ net_ratelimit(void)
return (linuxkpi_net_ratelimit());
}
-#endif /* _LINUX_NET_H_ */
+#endif /* _LINUXKPI_LINUX_NET_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/net_dim.h b/sys/compat/linuxkpi/common/include/linux/net_dim.h
index f1b7e06b820e..08a8bb758c32 100644
--- a/sys/compat/linuxkpi/common/include/linux/net_dim.h
+++ b/sys/compat/linuxkpi/common/include/linux/net_dim.h
@@ -37,8 +37,8 @@
/* This file implements Dynamic Interrupt Moderation, DIM */
-#ifndef NET_DIM_H
-#define NET_DIM_H
+#ifndef _LINUXKPI_LINUX_NET_DIM_H
+#define _LINUXKPI_LINUX_NET_DIM_H
#include <asm/types.h>
@@ -407,4 +407,4 @@ net_dim(struct net_dim *dim,
}
}
-#endif /* NET_DIM_H */
+#endif /* _LINUXKPI_LINUX_NET_DIM_H */
diff --git a/sys/compat/linuxkpi/common/include/linux/netdev_features.h b/sys/compat/linuxkpi/common/include/linux/netdev_features.h
index a4901f4d48c3..f8442a7e1c0c 100644
--- a/sys/compat/linuxkpi/common/include/linux/netdev_features.h
+++ b/sys/compat/linuxkpi/common/include/linux/netdev_features.h
@@ -27,8 +27,8 @@
*
* $FreeBSD$
*/
-#ifndef __LKPI_LINUX_NETDEV_FEATURES_H_
-#define __LKPI_LINUX_NETDEV_FEATURES_H_
+#ifndef _LINUXKPI_LINUX_NETDEV_FEATURES_H_
+#define _LINUXKPI_LINUX_NETDEV_FEATURES_H_
#include <linux/types.h>
#include <linux/bitops.h>
@@ -45,4 +45,4 @@ typedef uint32_t netdev_features_t;
#define NETIF_F_CSUM_MASK (NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM)
-#endif /* __LKPI_LINUX_NETDEV_FEATURES_H_ */
+#endif /* _LINUXKPI_LINUX_NETDEV_FEATURES_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/notifier.h b/sys/compat/linuxkpi/common/include/linux/notifier.h
index ae292439bf54..cafbb64f3f3e 100644
--- a/sys/compat/linuxkpi/common/include/linux/notifier.h
+++ b/sys/compat/linuxkpi/common/include/linux/notifier.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_NOTIFIER_H_
-#define _LINUX_NOTIFIER_H_
+#ifndef _LINUXKPI_LINUX_NOTIFIER_H_
+#define _LINUXKPI_LINUX_NOTIFIER_H_
#include <sys/types.h>
#include <sys/eventhandler.h>
@@ -54,4 +54,4 @@ struct notifier_block {
eventhandler_tag tags[LINUX_NOTIFY_TAGS];
};
-#endif /* _LINUX_NOTIFIER_H_ */
+#endif /* _LINUXKPI_LINUX_NOTIFIER_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/numa.h b/sys/compat/linuxkpi/common/include/linux/numa.h
index 19455349a7a6..b51a92951f3f 100644
--- a/sys/compat/linuxkpi/common/include/linux/numa.h
+++ b/sys/compat/linuxkpi/common/include/linux/numa.h
@@ -28,9 +28,9 @@
* $FreeBSD$
*/
-#ifndef _LINUX_NUMA_H_
-#define _LINUX_NUMA_H_
+#ifndef _LINUXKPI_LINUX_NUMA_H_
+#define _LINUXKPI_LINUX_NUMA_H_
#define NUMA_NO_NODE -1
-#endif /* _LINUX_NUMA_H_ */
+#endif /* _LINUXKPI_LINUX_NUMA_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/overflow.h b/sys/compat/linuxkpi/common/include/linux/overflow.h
index 2d540796cd43..d2e15d8d2383 100644
--- a/sys/compat/linuxkpi/common/include/linux/overflow.h
+++ b/sys/compat/linuxkpi/common/include/linux/overflow.h
@@ -28,8 +28,8 @@
* $FreeBSD$
*/
-#ifndef __LINUX_OVERFLOW_H__
-#define __LINUX_OVERFLOW_H__
+#ifndef __LINUXKPI_LINUX_OVERFLOW_H__
+#define __LINUXKPI_LINUX_OVERFLOW_H__
#include <sys/stdint.h>
#include <sys/types.h>
@@ -50,4 +50,4 @@ array_size(size_t x, size_t y)
return (retval);
}
-#endif /* __LINUX_OVERFLOW_H__ */
+#endif /* __LINUXKPI_LINUX_OVERFLOW_H__ */
diff --git a/sys/compat/linuxkpi/common/include/linux/page.h b/sys/compat/linuxkpi/common/include/linux/page.h
index ed1b562dba43..b582966b49c3 100644
--- a/sys/compat/linuxkpi/common/include/linux/page.h
+++ b/sys/compat/linuxkpi/common/include/linux/page.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_PAGE_H_
-#define _LINUX_PAGE_H_
+#ifndef _LINUXKPI_LINUX_PAGE_H_
+#define _LINUXKPI_LINUX_PAGE_H_
#include <linux/types.h>
@@ -128,4 +128,4 @@ clflush_cache_range(void *addr, unsigned int size)
}
#endif
-#endif /* _LINUX_PAGE_H_ */
+#endif /* _LINUXKPI_LINUX_PAGE_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/pagemap.h b/sys/compat/linuxkpi/common/include/linux/pagemap.h
index 100bcfaeb433..e25fa743f9a7 100644
--- a/sys/compat/linuxkpi/common/include/linux/pagemap.h
+++ b/sys/compat/linuxkpi/common/include/linux/pagemap.h
@@ -28,8 +28,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_PAGEMAP_H_
-#define _LINUX_PAGEMAP_H_
+#ifndef _LINUXKPI_LINUX_PAGEMAP_H_
+#define _LINUXKPI_LINUX_PAGEMAP_H_
#include <linux/mm.h>
diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h
index 1b4f55c2a2e5..5dfdfa2e86ca 100644
--- a/sys/compat/linuxkpi/common/include/linux/pci.h
+++ b/sys/compat/linuxkpi/common/include/linux/pci.h
@@ -32,8 +32,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_PCI_H_
-#define _LINUX_PCI_H_
+#ifndef _LINUXKPI_LINUX_PCI_H_
+#define _LINUXKPI_LINUX_PCI_H_
#define CONFIG_PCI_MSI
@@ -1585,4 +1585,4 @@ linuxkpi_pcim_want_to_use_bus_functions(struct pci_dev *pdev)
pdev->want_iomap_res = true;
}
-#endif /* _LINUX_PCI_H_ */
+#endif /* _LINUXKPI_LINUX_PCI_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/pfn.h b/sys/compat/linuxkpi/common/include/linux/pfn.h
index 162ca102c951..675f5d21364a 100644
--- a/sys/compat/linuxkpi/common/include/linux/pfn.h
+++ b/sys/compat/linuxkpi/common/include/linux/pfn.h
@@ -26,8 +26,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_PFN_H_
-#define _LINUX_PFN_H_
+#ifndef _LINUXKPI_LINUX_PFN_H_
+#define _LINUXKPI_LINUX_PFN_H_
#include <linux/types.h>
@@ -41,4 +41,4 @@ typedef struct {
#define PFN_PHYS(x) ((phys_addr_t)(x) << PAGE_SHIFT)
#define PHYS_PFN(x) ((unsigned long)((x) >> PAGE_SHIFT))
-#endif /* _LINUX_PFN_H_ */
+#endif /* _LINUXKPI_LINUX_PFN_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/pfn_t.h b/sys/compat/linuxkpi/common/include/linux/pfn_t.h
index bfa80b14ae94..48fb4f59a3c6 100644
--- a/sys/compat/linuxkpi/common/include/linux/pfn_t.h
+++ b/sys/compat/linuxkpi/common/include/linux/pfn_t.h
@@ -26,8 +26,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_PFN_T_H_
-#define _LINUX_PFN_T_H_
+#ifndef _LINUXKPI_LINUX_PFN_T_H_
+#define _LINUXKPI_LINUX_PFN_T_H_
#include <linux/mm.h>
@@ -53,4 +53,4 @@ pfn_to_pfn_t(unsigned long pfn)
return (__pfn_to_pfn_t (pfn, 0));
}
-#endif /* _LINUX_PFN_T_H_ */
+#endif /* _LINUXKPI_LINUX_PFN_T_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/pid.h b/sys/compat/linuxkpi/common/include/linux/pid.h
index 73d8f1f6edfe..be7c9384d4cf 100644
--- a/sys/compat/linuxkpi/common/include/linux/pid.h
+++ b/sys/compat/linuxkpi/common/include/linux/pid.h
@@ -26,8 +26,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_PID_H_
-#define _LINUX_PID_H_
+#ifndef _LINUXKPI_LINUX_PID_H_
+#define _LINUXKPI_LINUX_PID_H_
#include <sys/param.h>
#include <sys/systm.h>
@@ -67,4 +67,4 @@ struct task_struct;
extern struct task_struct *linux_pid_task(pid_t);
extern struct task_struct *linux_get_pid_task(pid_t);
-#endif /* _LINUX_PID_H_ */
+#endif /* _LINUXKPI_LINUX_PID_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/poison.h b/sys/compat/linuxkpi/common/include/linux/poison.h
index 35ccb5b5499a..f1594c6dd1dc 100644
--- a/sys/compat/linuxkpi/common/include/linux/poison.h
+++ b/sys/compat/linuxkpi/common/include/linux/poison.h
@@ -1,7 +1,7 @@
/* Public domain. */
-#ifndef _LINUX_POISON_H
-#define _LINUX_POISON_H
+#ifndef _LINUXKPI_LINUX_POISON_H
+#define _LINUXKPI_LINUX_POISON_H
#define POISON_INUSE 0xdb
#define POISON_FREE 0xdf
diff --git a/sys/compat/linuxkpi/common/include/linux/poll.h b/sys/compat/linuxkpi/common/include/linux/poll.h
index 33501165df24..ff83fb1959f6 100644
--- a/sys/compat/linuxkpi/common/include/linux/poll.h
+++ b/sys/compat/linuxkpi/common/include/linux/poll.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_POLL_H_
-#define _LINUX_POLL_H_
+#ifndef _LINUXKPI_LINUX_POLL_H_
+#define _LINUXKPI_LINUX_POLL_H_
#include <sys/poll.h>
#include <sys/fcntl.h>
@@ -45,4 +45,4 @@ extern void linux_poll_wait(struct linux_file *, wait_queue_head_t *, poll_table
extern void linux_poll_wakeup(struct linux_file *);
-#endif /* _LINUX_POLL_H_ */
+#endif /* _LINUXKPI_LINUX_POLL_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/power_supply.h b/sys/compat/linuxkpi/common/include/linux/power_supply.h
index 6f6d8b28c5ee..cf8a937b04ad 100644
--- a/sys/compat/linuxkpi/common/include/linux/power_supply.h
+++ b/sys/compat/linuxkpi/common/include/linux/power_supply.h
@@ -28,8 +28,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_POWER_SUPPLY_H_
-#define _LINUX_POWER_SUPPLY_H_
+#ifndef _LINUXKPI_LINUX_POWER_SUPPLY_H_
+#define _LINUXKPI_LINUX_POWER_SUPPLY_H_
#include <sys/types.h>
#include <sys/power.h>
diff --git a/sys/compat/linuxkpi/common/include/linux/preempt.h b/sys/compat/linuxkpi/common/include/linux/preempt.h
index e19e7ee09a48..b8deb23d7089 100644
--- a/sys/compat/linuxkpi/common/include/linux/preempt.h
+++ b/sys/compat/linuxkpi/common/include/linux/preempt.h
@@ -26,8 +26,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_PREEMPT_H_
-#define _LINUX_PREEMPT_H_
+#ifndef _LINUXKPI_LINUX_PREEMPT_H_
+#define _LINUXKPI_LINUX_PREEMPT_H_
#include <linux/hardirq.h>
#include <linux/list.h>
@@ -40,4 +40,4 @@
#define preempt_disable() critical_enter()
#define preempt_enable() critical_exit()
-#endif /* _LINUX_PREEMPT_H_ */
+#endif /* _LINUXKPI_LINUX_PREEMPT_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/prefetch.h b/sys/compat/linuxkpi/common/include/linux/prefetch.h
index ed8f1838e178..aa997d50a3f3 100644
--- a/sys/compat/linuxkpi/common/include/linux/prefetch.h
+++ b/sys/compat/linuxkpi/common/include/linux/prefetch.h
@@ -28,9 +28,9 @@
* $FreeBSD$
*/
-#ifndef _LINUX_PREFETCH_H_
-#define _LINUX_PREFETCH_H_
+#ifndef _LINUXKPI_LINUX_PREFETCH_H_
+#define _LINUXKPI_LINUX_PREFETCH_H_
#define prefetchw(x) __builtin_prefetch(x,1)
-#endif /* _LINUX_PREFETCH_H_ */
+#endif /* _LINUXKPI_LINUX_PREFETCH_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/printk.h b/sys/compat/linuxkpi/common/include/linux/printk.h
index e6510e9e9834..317c6232bbc5 100644
--- a/sys/compat/linuxkpi/common/include/linux/printk.h
+++ b/sys/compat/linuxkpi/common/include/linux/printk.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_PRINTK_H_
-#define _LINUX_PRINTK_H_
+#ifndef _LINUXKPI_LINUX_PRINTK_H_
+#define _LINUXKPI_LINUX_PRINTK_H_
#include <linux/kernel.h>
@@ -127,4 +127,4 @@ print_hex_dump_bytes(const char *prefix_str, const int prefix_type,
#define pr_info_ratelimited(fmt, ...) \
printk_ratelimited(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
-#endif /* _LINUX_PRINTK_H_ */
+#endif /* _LINUXKPI_LINUX_PRINTK_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/radix-tree.h b/sys/compat/linuxkpi/common/include/linux/radix-tree.h
index 1bef60c44c41..86620614fb36 100644
--- a/sys/compat/linuxkpi/common/include/linux/radix-tree.h
+++ b/sys/compat/linuxkpi/common/include/linux/radix-tree.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_RADIX_TREE_H_
-#define _LINUX_RADIX_TREE_H_
+#ifndef _LINUXKPI_LINUX_RADIX_TREE_H_
+#define _LINUXKPI_LINUX_RADIX_TREE_H_
#include <linux/types.h>
@@ -82,4 +82,4 @@ int radix_tree_store(struct radix_tree_root *, unsigned long, void **);
bool radix_tree_iter_find(struct radix_tree_root *, struct radix_tree_iter *, void ***);
void radix_tree_iter_delete(struct radix_tree_root *, struct radix_tree_iter *, void **);
-#endif /* _LINUX_RADIX_TREE_H_ */
+#endif /* _LINUXKPI_LINUX_RADIX_TREE_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/random.h b/sys/compat/linuxkpi/common/include/linux/random.h
index 12de0e12bc5a..fafb87cae9fe 100644
--- a/sys/compat/linuxkpi/common/include/linux/random.h
+++ b/sys/compat/linuxkpi/common/include/linux/random.h
@@ -29,8 +29,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_RANDOM_H_
-#define _LINUX_RANDOM_H_
+#ifndef _LINUXKPI_LINUX_RANDOM_H_
+#define _LINUXKPI_LINUX_RANDOM_H_
#include <linux/types.h>
#include <sys/random.h>
@@ -78,4 +78,4 @@ prandom_u32_max(u32 max)
return (arc4random_uniform(max));
}
-#endif /* _LINUX_RANDOM_H_ */
+#endif /* _LINUXKPI_LINUX_RANDOM_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/ratelimit.h b/sys/compat/linuxkpi/common/include/linux/ratelimit.h
index a3991a06e6f0..9585b4b994d7 100644
--- a/sys/compat/linuxkpi/common/include/linux/ratelimit.h
+++ b/sys/compat/linuxkpi/common/include/linux/ratelimit.h
@@ -1,7 +1,7 @@
/* Public domain. */
-#ifndef _LINUX_RATELIMIT_H
-#define _LINUX_RATELIMIT_H
+#ifndef _LINUXKPI_LINUX_RATELIMIT_H
+#define _LINUXKPI_LINUX_RATELIMIT_H
struct ratelimit_state {
};
diff --git a/sys/compat/linuxkpi/common/include/linux/rbtree.h b/sys/compat/linuxkpi/common/include/linux/rbtree.h
index b010c277ee1a..de5ef0d6a3ce 100644
--- a/sys/compat/linuxkpi/common/include/linux/rbtree.h
+++ b/sys/compat/linuxkpi/common/include/linux/rbtree.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_RBTREE_H_
-#define _LINUX_RBTREE_H_
+#ifndef _LINUXKPI_LINUX_RBTREE_H_
+#define _LINUXKPI_LINUX_RBTREE_H_
#ifndef _STANDALONE
#include <sys/stddef.h>
@@ -175,4 +175,4 @@ rb_replace_node_cached(struct rb_node *old, struct rb_node *new,
#define RB_ROOT (struct rb_root) { NULL }
#define RB_ROOT_CACHED (struct rb_root_cached) { RB_ROOT, NULL }
-#endif /* _LINUX_RBTREE_H_ */
+#endif /* _LINUXKPI_LINUX_RBTREE_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/rculist.h b/sys/compat/linuxkpi/common/include/linux/rculist.h
index 6c21a6943f98..e0c3f79d9e5a 100644
--- a/sys/compat/linuxkpi/common/include/linux/rculist.h
+++ b/sys/compat/linuxkpi/common/include/linux/rculist.h
@@ -27,8 +27,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_RCULIST_H_
-#define _LINUX_RCULIST_H_
+#ifndef _LINUXKPI_LINUX_RCULIST_H_
+#define _LINUXKPI_LINUX_RCULIST_H_
#include <linux/list.h>
#include <linux/rcupdate.h>
@@ -141,4 +141,4 @@ hlist_del_init_rcu(struct hlist_node *n)
}
}
-#endif /* _LINUX_RCULIST_H_ */
+#endif /* _LINUXKPI_LINUX_RCULIST_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/rcupdate.h b/sys/compat/linuxkpi/common/include/linux/rcupdate.h
index bd8335216d1d..3599616430af 100644
--- a/sys/compat/linuxkpi/common/include/linux/rcupdate.h
+++ b/sys/compat/linuxkpi/common/include/linux/rcupdate.h
@@ -25,8 +25,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_RCUPDATE_H_
-#define _LINUX_RCUPDATE_H_
+#ifndef _LINUXKPI_LINUX_RCUPDATE_H_
+#define _LINUXKPI_LINUX_RCUPDATE_H_
#include <linux/compiler.h>
#include <linux/types.h>
@@ -127,4 +127,4 @@ extern void linux_synchronize_rcu(unsigned type);
#define init_rcu_head_on_stack(...)
#define destroy_rcu_head_on_stack(...)
-#endif /* _LINUX_RCUPDATE_H_ */
+#endif /* _LINUXKPI_LINUX_RCUPDATE_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/refcount.h b/sys/compat/linuxkpi/common/include/linux/refcount.h
index 02f9f32f7eb4..7c055fb32029 100644
--- a/sys/compat/linuxkpi/common/include/linux/refcount.h
+++ b/sys/compat/linuxkpi/common/include/linux/refcount.h
@@ -28,8 +28,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_REFCOUNT_H
-#define _LINUX_REFCOUNT_H
+#ifndef _LINUXKPI_LINUX_REFCOUNT_H
+#define _LINUXKPI_LINUX_REFCOUNT_H
#include <linux/atomic.h>
@@ -79,4 +79,4 @@ refcount_dec_and_lock_irqsave(refcount_t *ref, spinlock_t *lock,
return (false);
}
-#endif /* __LINUX_REFCOUNT_H__ */
+#endif /* __LINUXKPI_LINUX_REFCOUNT_H__ */
diff --git a/sys/compat/linuxkpi/common/include/linux/rwlock.h b/sys/compat/linuxkpi/common/include/linux/rwlock.h
index 621afb1e954b..e7557d29e77a 100644
--- a/sys/compat/linuxkpi/common/include/linux/rwlock.h
+++ b/sys/compat/linuxkpi/common/include/linux/rwlock.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_RWLOCK_H_
-#define _LINUX_RWLOCK_H_
+#ifndef _LINUXKPI_LINUX_RWLOCK_H_
+#define _LINUXKPI_LINUX_RWLOCK_H_
#include <sys/types.h>
#include <sys/lock.h>
@@ -65,4 +65,4 @@ rwlock_init(rwlock_t *lock)
rw_init_flags(&lock->rw, "lnxrw", RW_NOWITNESS);
}
-#endif /* _LINUX_RWLOCK_H_ */
+#endif /* _LINUXKPI_LINUX_RWLOCK_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/rwsem.h b/sys/compat/linuxkpi/common/include/linux/rwsem.h
index 8850da91bd4d..1e9eae79dbb8 100644
--- a/sys/compat/linuxkpi/common/include/linux/rwsem.h
+++ b/sys/compat/linuxkpi/common/include/linux/rwsem.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_RWSEM_H_
-#define _LINUX_RWSEM_H_
+#ifndef _LINUXKPI_LINUX_RWSEM_H_
+#define _LINUXKPI_LINUX_RWSEM_H_
#include <sys/param.h>
#include <sys/lock.h>
@@ -81,4 +81,4 @@ linux_init_rwsem(struct rw_semaphore *rw, const char *name)
extern int linux_down_write_killable(struct rw_semaphore *);
-#endif /* _LINUX_RWSEM_H_ */
+#endif /* _LINUXKPI_LINUX_RWSEM_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/scatterlist.h b/sys/compat/linuxkpi/common/include/linux/scatterlist.h
index 295ca2ba3cfd..a302eb87ff0a 100644
--- a/sys/compat/linuxkpi/common/include/linux/scatterlist.h
+++ b/sys/compat/linuxkpi/common/include/linux/scatterlist.h
@@ -30,8 +30,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_SCATTERLIST_H_
-#define _LINUX_SCATTERLIST_H_
+#ifndef _LINUXKPI_LINUX_SCATTERLIST_H_
+#define _LINUXKPI_LINUX_SCATTERLIST_H_
#include <sys/types.h>
#include <sys/sf_buf.h>
@@ -599,4 +599,4 @@ sg_pcopy_to_buffer(struct scatterlist *sgl, unsigned int nents,
return (total);
}
-#endif /* _LINUX_SCATTERLIST_H_ */
+#endif /* _LINUXKPI_LINUX_SCATTERLIST_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/sched.h b/sys/compat/linuxkpi/common/include/linux/sched.h
index 8f9ce5526e2c..5bb9047640b8 100644
--- a/sys/compat/linuxkpi/common/include/linux/sched.h
+++ b/sys/compat/linuxkpi/common/include/linux/sched.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_SCHED_H_
-#define _LINUX_SCHED_H_
+#ifndef _LINUXKPI_LINUX_SCHED_H_
+#define _LINUXKPI_LINUX_SCHED_H_
#include <sys/param.h>
#include <sys/systm.h>
@@ -201,4 +201,4 @@ get_task_comm(char *buf, struct task_struct *task)
return (task->comm);
}
-#endif /* _LINUX_SCHED_H_ */
+#endif /* _LINUXKPI_LINUX_SCHED_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/semaphore.h b/sys/compat/linuxkpi/common/include/linux/semaphore.h
index e4a72fd9b47a..da1fc73b1776 100644
--- a/sys/compat/linuxkpi/common/include/linux/semaphore.h
+++ b/sys/compat/linuxkpi/common/include/linux/semaphore.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_SEMAPHORE_H_
-#define _LINUX_SEMAPHORE_H_
+#ifndef _LINUXKPI_LINUX_SEMAPHORE_H_
+#define _LINUXKPI_LINUX_SEMAPHORE_H_
#include <sys/param.h>
#include <sys/lock.h>
@@ -67,4 +67,4 @@ init_MUTEX(struct semaphore *sem)
#define sema_init(...) linux_sema_init(__VA_ARGS__)
-#endif /* _LINUX_SEMAPHORE_H_ */
+#endif /* _LINUXKPI_LINUX_SEMAPHORE_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/seq_file.h b/sys/compat/linuxkpi/common/include/linux/seq_file.h
index dab8020a0336..9ab5ecce7768 100644
--- a/sys/compat/linuxkpi/common/include/linux/seq_file.h
+++ b/sys/compat/linuxkpi/common/include/linux/seq_file.h
@@ -27,8 +27,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_SEQ_FILE_H_
-#define _LINUX_SEQ_FILE_H_
+#ifndef _LINUXKPI_LINUX_SEQ_FILE_H_
+#define _LINUXKPI_LINUX_SEQ_FILE_H_
#include <linux/types.h>
#include <linux/fs.h>
@@ -85,4 +85,4 @@ int single_release(struct inode *, struct linux_file *);
#define file linux_file
-#endif /* _LINUX_SEQ_FILE_H_ */
+#endif /* _LINUXKPI_LINUX_SEQ_FILE_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/seqlock.h b/sys/compat/linuxkpi/common/include/linux/seqlock.h
index b7ae6e32ae69..03d36d89de89 100644
--- a/sys/compat/linuxkpi/common/include/linux/seqlock.h
+++ b/sys/compat/linuxkpi/common/include/linux/seqlock.h
@@ -26,8 +26,8 @@
* SUCH DAMAGE.
*/
-#ifndef _LINUX_SEQLOCK_H__
-#define _LINUX_SEQLOCK_H__
+#ifndef _LINUXKPI_LINUX_SEQLOCK_H__
+#define _LINUXKPI_LINUX_SEQLOCK_H__
#include <sys/param.h>
#include <sys/lock.h>
@@ -134,4 +134,4 @@ read_seqbegin(const struct seqlock *seqlock)
#define read_seqretry(seqlock, gen) \
read_seqcount_retry(&(seqlock)->seql_count, gen)
-#endif /* _LINUX_SEQLOCK_H__ */
+#endif /* _LINUXKPI_LINUX_SEQLOCK_H__ */
diff --git a/sys/compat/linuxkpi/common/include/linux/shmem_fs.h b/sys/compat/linuxkpi/common/include/linux/shmem_fs.h
index 63aff012c6bb..240d26c47685 100644
--- a/sys/compat/linuxkpi/common/include/linux/shmem_fs.h
+++ b/sys/compat/linuxkpi/common/include/linux/shmem_fs.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_SHMEM_FS_H_
-#define _LINUX_SHMEM_FS_H_
+#ifndef _LINUXKPI_LINUX_SHMEM_FS_H_
+#define _LINUXKPI_LINUX_SHMEM_FS_H_
/* Shared memory support */
unsigned long linux_invalidate_mapping_pages(vm_object_t, pgoff_t, pgoff_t);
@@ -52,4 +52,4 @@ void linux_shmem_truncate_range(vm_object_t, loff_t, loff_t);
#define shmem_truncate_range(...) \
linux_shmem_truncate_range(__VA_ARGS__)
-#endif /* _LINUX_SHMEM_FS_H_ */
+#endif /* _LINUXKPI_LINUX_SHMEM_FS_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/shrinker.h b/sys/compat/linuxkpi/common/include/linux/shrinker.h
index d18bb60645f8..05f702e62fd5 100644
--- a/sys/compat/linuxkpi/common/include/linux/shrinker.h
+++ b/sys/compat/linuxkpi/common/include/linux/shrinker.h
@@ -25,8 +25,8 @@
* $FreeBSD$
*/
-#ifndef __LINUX_SHRINKER_H__
-#define __LINUX_SHRINKER_H__
+#ifndef _LINUXKPI_LINUX_SHRINKER_H_
+#define _LINUXKPI_LINUX_SHRINKER_H_
#include <sys/queue.h>
@@ -53,4 +53,4 @@ void linuxkpi_unregister_shrinker(struct shrinker *s);
#define register_shrinker(s) linuxkpi_register_shrinker(s)
#define unregister_shrinker(s) linuxkpi_unregister_shrinker(s)
-#endif /* __LINUX_SHRINKER_H__ */
+#endif /* _LINUXKPI_LINUX_SHRINKER_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/sizes.h b/sys/compat/linuxkpi/common/include/linux/sizes.h
index a180cee5f022..b132eedff933 100644
--- a/sys/compat/linuxkpi/common/include/linux/sizes.h
+++ b/sys/compat/linuxkpi/common/include/linux/sizes.h
@@ -28,8 +28,8 @@
* $FreeBSD$
*/
-#ifndef __LINUX_SIZES_H__
-#define __LINUX_SIZES_H__
+#ifndef _LINUXKPI_LINUX_SIZES_H_
+#define _LINUXKPI_LINUX_SIZES_H_
#define SZ_1K (1024 * 1)
#define SZ_4K (1024 * 4)
diff --git a/sys/compat/linuxkpi/common/include/linux/slab.h b/sys/compat/linuxkpi/common/include/linux/slab.h
index b8fe3a48bd3c..1228c4d07aa6 100644
--- a/sys/compat/linuxkpi/common/include/linux/slab.h
+++ b/sys/compat/linuxkpi/common/include/linux/slab.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_SLAB_H_
-#define _LINUX_SLAB_H_
+#ifndef _LINUXKPI_LINUX_SLAB_H_
+#define _LINUXKPI_LINUX_SLAB_H_
#include <sys/types.h>
#include <sys/malloc.h>
@@ -207,4 +207,4 @@ extern void *lkpi_kmem_cache_zalloc(struct linux_kmem_cache *, gfp_t);
extern void lkpi_kmem_cache_free(struct linux_kmem_cache *, void *);
extern void linux_kmem_cache_destroy(struct linux_kmem_cache *);
-#endif /* _LINUX_SLAB_H_ */
+#endif /* _LINUXKPI_LINUX_SLAB_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/smp.h b/sys/compat/linuxkpi/common/include/linux/smp.h
index 3f5684015547..290b91469b12 100644
--- a/sys/compat/linuxkpi/common/include/linux/smp.h
+++ b/sys/compat/linuxkpi/common/include/linux/smp.h
@@ -26,8 +26,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_SMP_H_
-#define _LINUX_SMP_H_
+#ifndef _LINUXKPI_LINUX_SMP_H_
+#define _LINUXKPI_LINUX_SMP_H_
#define on_each_cpu(cb, data, wait) ({ \
CTASSERT(wait); \
@@ -36,4 +36,4 @@
extern int linux_on_each_cpu(void (*)(void *), void *);
-#endif /* _LINUX_SMP_H_ */
+#endif /* _LINUXKPI_LINUX_SMP_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/socket.h b/sys/compat/linuxkpi/common/include/linux/socket.h
index a9a952e4ffd8..3afb9bdfe3ba 100644
--- a/sys/compat/linuxkpi/common/include/linux/socket.h
+++ b/sys/compat/linuxkpi/common/include/linux/socket.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_SOCKET_H_
-#define _LINUX_SOCKET_H_
+#ifndef _LINUXKPI_LINUX_SOCKET_H_
+#define _LINUXKPI_LINUX_SOCKET_H_
#include <sys/socket.h>
@@ -66,4 +66,4 @@ memcpy_fromiovec(unsigned char *kdata, struct iovec *iov, int len)
}
#endif
-#endif /* _LINUX_SOCKET_H_ */
+#endif /* _LINUXKPI_LINUX_SOCKET_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/spinlock.h b/sys/compat/linuxkpi/common/include/linux/spinlock.h
index c020c7d1df6e..a87cb7180b28 100644
--- a/sys/compat/linuxkpi/common/include/linux/spinlock.h
+++ b/sys/compat/linuxkpi/common/include/linux/spinlock.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_SPINLOCK_H_
-#define _LINUX_SPINLOCK_H_
+#ifndef _LINUXKPI_LINUX_SPINLOCK_H_
+#define _LINUXKPI_LINUX_SPINLOCK_H_
#include <asm/atomic.h>
#include <sys/param.h>
@@ -185,4 +185,4 @@ _atomic_dec_and_lock_irqsave(atomic_t *cnt, spinlock_t *lock,
return (0);
}
-#endif /* _LINUX_SPINLOCK_H_ */
+#endif /* _LINUXKPI_LINUX_SPINLOCK_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/srcu.h b/sys/compat/linuxkpi/common/include/linux/srcu.h
index 1de7e8acedb8..0742d25d11ac 100644
--- a/sys/compat/linuxkpi/common/include/linux/srcu.h
+++ b/sys/compat/linuxkpi/common/include/linux/srcu.h
@@ -26,8 +26,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_SRCU_H_
-#define _LINUX_SRCU_H_
+#ifndef _LINUXKPI_LINUX_SRCU_H_
+#define _LINUXKPI_LINUX_SRCU_H_
#include <linux/compiler.h>
@@ -53,4 +53,4 @@ extern void cleanup_srcu_struct(struct srcu_struct *);
synchronize_srcu(srcu); \
} while (0)
-#endif /* _LINUX_SRCU_H_ */
+#endif /* _LINUXKPI_LINUX_SRCU_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/string.h b/sys/compat/linuxkpi/common/include/linux/string.h
index a757464bf02b..73a38dc42c6c 100644
--- a/sys/compat/linuxkpi/common/include/linux/string.h
+++ b/sys/compat/linuxkpi/common/include/linux/string.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_STRING_H_
-#define _LINUX_STRING_H_
+#ifndef _LINUXKPI_LINUX_STRING_H_
+#define _LINUXKPI_LINUX_STRING_H_
#include <sys/ctype.h>
@@ -196,4 +196,4 @@ strscpy(char* dst, const char* src, size_t len)
return (-E2BIG);
}
-#endif /* _LINUX_STRING_H_ */
+#endif /* _LINUXKPI_LINUX_STRING_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/stringify.h b/sys/compat/linuxkpi/common/include/linux/stringify.h
index 08fd0d909fae..bfdf99a30f2f 100644
--- a/sys/compat/linuxkpi/common/include/linux/stringify.h
+++ b/sys/compat/linuxkpi/common/include/linux/stringify.h
@@ -26,12 +26,12 @@
* $FreeBSD$
*/
-#ifndef __LKPI_LINUX_STRINGIFY_H_
-#define __LKPI_LINUX_STRINGIFY_H_
+#ifndef _LINUXKPI_LINUX_STRINGIFY_H_
+#define _LINUXKPI_LINUX_STRINGIFY_H_
#include <sys/cdefs.h>
#define ___stringify(...) #__VA_ARGS__
#define __stringify(...) ___stringify(__VA_ARGS__)
-#endif /* __LKPI_LINUX_STRINGIFY_H_ */
+#endif /* _LINUXKPI_LINUX_STRINGIFY_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/swap.h b/sys/compat/linuxkpi/common/include/linux/swap.h
index 33f8de4721a4..a080895bed98 100644
--- a/sys/compat/linuxkpi/common/include/linux/swap.h
+++ b/sys/compat/linuxkpi/common/include/linux/swap.h
@@ -26,8 +26,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_SWAP_H_
-#define _LINUX_SWAP_H_
+#ifndef _LINUXKPI_LINUX_SWAP_H_
+#define _LINUXKPI_LINUX_SWAP_H_
#include <vm/swap_pager.h>
#include <vm/vm_pageout.h>
diff --git a/sys/compat/linuxkpi/common/include/linux/sysfs.h b/sys/compat/linuxkpi/common/include/linux/sysfs.h
index f84790f1b910..0b6b479d9362 100644
--- a/sys/compat/linuxkpi/common/include/linux/sysfs.h
+++ b/sys/compat/linuxkpi/common/include/linux/sysfs.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_SYSFS_H_
-#define _LINUX_SYSFS_H_
+#ifndef _LINUXKPI_LINUX_SYSFS_H_
+#define _LINUXKPI_LINUX_SYSFS_H_
#include <sys/types.h>
#include <sys/sysctl.h>
@@ -297,4 +297,4 @@ sysfs_streq(const char *s1, const char *s2)
#define sysfs_attr_init(attr) do {} while(0)
-#endif /* _LINUX_SYSFS_H_ */
+#endif /* _LINUXKPI_LINUX_SYSFS_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/tcp.h b/sys/compat/linuxkpi/common/include/linux/tcp.h
index 1197f38b7898..cfc64b8c7e53 100644
--- a/sys/compat/linuxkpi/common/include/linux/tcp.h
+++ b/sys/compat/linuxkpi/common/include/linux/tcp.h
@@ -30,8 +30,8 @@
* $FreeBSD$
*/
-#ifndef __LKPI_LINUX_TCP_H
-#define __LKPI_LINUX_TCP_H
+#ifndef _LINUXKPI_LINUX_TCP_H
+#define _LINUXKPI_LINUX_TCP_H
#include <sys/types.h>
#include <linux/skbuff.h>
@@ -69,4 +69,4 @@ tcp_hdrlen(struct sk_buff *skb)
return (4 * th->doff);
}
-#endif /* __LKPI_LINUX_TCP_H */
+#endif /* _LINUXKPI_LINUX_TCP_H */
diff --git a/sys/compat/linuxkpi/common/include/linux/time.h b/sys/compat/linuxkpi/common/include/linux/time.h
index 1c07c69a67a6..c7a41a83f4aa 100644
--- a/sys/compat/linuxkpi/common/include/linux/time.h
+++ b/sys/compat/linuxkpi/common/include/linux/time.h
@@ -25,8 +25,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_TIME_H_
-#define _LINUX_TIME_H_
+#ifndef _LINUXKPI_LINUX_TIME_H_
+#define _LINUXKPI_LINUX_TIME_H_
#define NSEC_PER_USEC 1000L
#define NSEC_PER_MSEC 1000000L
@@ -132,4 +132,4 @@ get_seconds(void)
return time_uptime;
}
-#endif /* _LINUX_TIME_H_ */
+#endif /* _LINUXKPI_LINUX_TIME_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/timer.h b/sys/compat/linuxkpi/common/include/linux/timer.h
index 86048af31b2d..3432bfc46c4f 100644
--- a/sys/compat/linuxkpi/common/include/linux/timer.h
+++ b/sys/compat/linuxkpi/common/include/linux/timer.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_TIMER_H_
-#define _LINUX_TIMER_H_
+#ifndef _LINUXKPI_LINUX_TIMER_H_
+#define _LINUXKPI_LINUX_TIMER_H_
#include <linux/types.h>
@@ -91,4 +91,4 @@ extern int del_timer_sync(struct timer_list *);
#define round_jiffies_up(j) round_jiffies(j)
#define round_jiffies_up_relative(j) round_jiffies_up(j)
-#endif /* _LINUX_TIMER_H_ */
+#endif /* _LINUXKPI_LINUX_TIMER_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/types.h b/sys/compat/linuxkpi/common/include/linux/types.h
index db362c388573..dab5e6ddce42 100644
--- a/sys/compat/linuxkpi/common/include/linux/types.h
+++ b/sys/compat/linuxkpi/common/include/linux/types.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_TYPES_H_
-#define _LINUX_TYPES_H_
+#ifndef _LINUXKPI_LINUX_TYPES_H_
+#define _LINUXKPI_LINUX_TYPES_H_
#include <sys/cdefs.h>
#include <sys/types.h>
@@ -87,4 +87,4 @@ typedef void (*rcu_callback_t)(struct rcu_head *head);
typedef void (*call_rcu_func_t)(struct rcu_head *head, rcu_callback_t func);
typedef int linux_task_fn_t(void *data);
-#endif /* _LINUX_TYPES_H_ */
+#endif /* _LINUXKPI_LINUX_TYPES_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/uaccess.h b/sys/compat/linuxkpi/common/include/linux/uaccess.h
index 10a06a220f86..c62a94e8e044 100644
--- a/sys/compat/linuxkpi/common/include/linux/uaccess.h
+++ b/sys/compat/linuxkpi/common/include/linux/uaccess.h
@@ -30,8 +30,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_UACCESS_H_
-#define _LINUX_UACCESS_H_
+#ifndef _LINUXKPI_LINUX_UACCESS_H_
+#define _LINUXKPI_LINUX_UACCESS_H_
#include <sys/param.h>
#include <sys/lock.h>
@@ -89,4 +89,4 @@ pagefault_disabled(void)
return ((curthread->td_pflags & TDP_NOFAULTING) != 0);
}
-#endif /* _LINUX_UACCESS_H_ */
+#endif /* _LINUXKPI_LINUX_UACCESS_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/udp.h b/sys/compat/linuxkpi/common/include/linux/udp.h
index 259bdbfc1199..44c0763a1eeb 100644
--- a/sys/compat/linuxkpi/common/include/linux/udp.h
+++ b/sys/compat/linuxkpi/common/include/linux/udp.h
@@ -30,8 +30,8 @@
* $FreeBSD$
*/
-#ifndef __LKPI_LINUX_UDP_H
-#define __LKPI_LINUX_UDP_H
+#ifndef _LINUXKPI_LINUX_UDP_H
+#define _LINUXKPI_LINUX_UDP_H
#include <sys/types.h>
#include <linux/skbuff.h>
@@ -51,4 +51,4 @@ udp_hdr(struct sk_buff *skb)
return (struct udphdr *)skb_transport_header(skb);
}
-#endif /* __LKPI_LINUX_UDP_H */
+#endif /* _LINUXKPI_LINUX_UDP_H */
diff --git a/sys/compat/linuxkpi/common/include/linux/uuid.h b/sys/compat/linuxkpi/common/include/linux/uuid.h
index f2ff450ee907..a1f878b311a5 100644
--- a/sys/compat/linuxkpi/common/include/linux/uuid.h
+++ b/sys/compat/linuxkpi/common/include/linux/uuid.h
@@ -30,11 +30,11 @@
* $FreeBSD$
*/
-#ifndef __LKPI_LINUX_UUID_H
-#define __LKPI_LINUX_UUID_H
+#ifndef _LINUXKPI_LINUX_UUID_H
+#define _LINUXKPI_LINUX_UUID_H
typedef struct {
char x[16];
} guid_t;
-#endif /* __LKPI_LINUX_UUID_H */
+#endif /* _LINUXKPI_LINUX_UUID_H */
diff --git a/sys/compat/linuxkpi/common/include/linux/vmalloc.h b/sys/compat/linuxkpi/common/include/linux/vmalloc.h
index 53178314c35a..450db0f761f2 100644
--- a/sys/compat/linuxkpi/common/include/linux/vmalloc.h
+++ b/sys/compat/linuxkpi/common/include/linux/vmalloc.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_VMALLOC_H_
-#define _LINUX_VMALLOC_H_
+#ifndef _LINUXKPI_LINUX_VMALLOC_H_
+#define _LINUXKPI_LINUX_VMALLOC_H_
#include <linux/page.h>
@@ -40,4 +40,4 @@ void *vmap(struct page **pages, unsigned int count, unsigned long flags,
int prot);
void vunmap(void *addr);
-#endif /* _LINUX_VMALLOC_H_ */
+#endif /* _LINUXKPI_LINUX_VMALLOC_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/wait.h b/sys/compat/linuxkpi/common/include/linux/wait.h
index 348464fb27df..09cb5918b84b 100644
--- a/sys/compat/linuxkpi/common/include/linux/wait.h
+++ b/sys/compat/linuxkpi/common/include/linux/wait.h
@@ -30,8 +30,8 @@
* $FreeBSD$
*/
-#ifndef _LINUX_WAIT_H_
-#define _LINUX_WAIT_H_
+#ifndef _LINUXKPI_LINUX_WAIT_H_
+#define _LINUXKPI_LINUX_WAIT_H_
#include <linux/compiler.h>
#include <linux/list.h>
@@ -310,4 +310,4 @@ bool linux_wake_up_state(struct task_struct *, unsigned int);
#define wake_up_process(task) linux_wake_up_state(task, TASK_NORMAL)
#define wake_up_state(task, state) linux_wake_up_state(task, state)
-#endif /* _LINUX_WAIT_H_ */
+#endif /* _LINUXKPI_LINUX_WAIT_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/wait_bit.h b/sys/compat/linuxkpi/common/include/linux/wait_bit.h
index 711b19da6582..17716583399f 100644
--- a/sys/compat/linuxkpi/common/include/linux/wait_bit.h
+++ b/sys/compat/linuxkpi/common/include/linux/wait_bit.h
@@ -28,8 +28,8 @@
* $FreeBSD$
*/
-#ifndef __LINUX_WAITBIT_H__
-#define __LINUX_WAITBIT_H__
+#ifndef __LINUXKPI_LINUX_WAITBIT_H__
+#define __LINUXKPI_LINUX_WAITBIT_H__
#include <linux/wait.h>
#include <linux/bitops.h>
@@ -64,4 +64,4 @@ wake_up_var(void *var)
wake_up(&linux_var_waitq);
}
-#endif /* __LINUX_WAITBIT_H__ */
+#endif /* __LINUXKPI_LINUX_WAITBIT_H__ */
diff --git a/sys/compat/linuxkpi/common/include/linux/workqueue.h b/sys/compat/linuxkpi/common/include/linux/workqueue.h
index 768ce33bb20d..7ced4270e1db 100644
--- a/sys/compat/linuxkpi/common/include/linux/workqueue.h
+++ b/sys/compat/linuxkpi/common/include/linux/workqueue.h
@@ -28,8 +28,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_WORKQUEUE_H_
-#define _LINUX_WORKQUEUE_H_
+#ifndef _LINUXKPI_LINUX_WORKQUEUE_H_
+#define _LINUXKPI_LINUX_WORKQUEUE_H_
#include <linux/types.h>
#include <linux/kernel.h>
@@ -256,4 +256,4 @@ extern struct work_struct *linux_current_work(void);
extern bool linux_queue_rcu_work(struct workqueue_struct *wq, struct rcu_work *rwork);
extern bool linux_flush_rcu_work(struct rcu_work *rwork);
-#endif /* _LINUX_WORKQUEUE_H_ */
+#endif /* _LINUXKPI_LINUX_WORKQUEUE_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/ww_mutex.h b/sys/compat/linuxkpi/common/include/linux/ww_mutex.h
index 49bec6628486..82ba7a55a7e8 100644
--- a/sys/compat/linuxkpi/common/include/linux/ww_mutex.h
+++ b/sys/compat/linuxkpi/common/include/linux/ww_mutex.h
@@ -25,8 +25,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_WW_MUTEX_H_
-#define _LINUX_WW_MUTEX_H_
+#ifndef _LINUXKPI_LINUX_WW_MUTEX_H_
+#define _LINUXKPI_LINUX_WW_MUTEX_H_
#include <sys/param.h>
#include <sys/proc.h>
@@ -141,4 +141,4 @@ ww_acquire_done(struct ww_acquire_ctx *ctx)
{
}
-#endif /* _LINUX_WW_MUTEX_H_ */
+#endif /* _LINUXKPI_LINUX_WW_MUTEX_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/xarray.h b/sys/compat/linuxkpi/common/include/linux/xarray.h
index 3d9041bf108d..408906867479 100644
--- a/sys/compat/linuxkpi/common/include/linux/xarray.h
+++ b/sys/compat/linuxkpi/common/include/linux/xarray.h
@@ -25,8 +25,8 @@
*
* $FreeBSD$
*/
-#ifndef _LINUX_XARRAY_H_
-#define _LINUX_XARRAY_H_
+#ifndef _LINUXKPI_LINUX_XARRAY_H_
+#define _LINUXKPI_LINUX_XARRAY_H_
#include <linux/gfp.h>
#include <linux/radix-tree.h>
@@ -122,4 +122,4 @@ xa_to_value(const void *e)
return (v >> 1);
}
-#endif /* _LINUX_XARRAY_H_ */
+#endif /* _LINUXKPI_LINUX_XARRAY_H_ */