]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Improve consistency of '#error' directive messages
authorNataniel Farzan <natanielfarzan@gmail.com>
Tue, 5 Nov 2024 03:22:32 +0000 (19:22 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 12 Nov 2024 01:17:04 +0000 (17:17 -0800)
Remove the use of contractions and use proper punctuation in #error
directive messages that discourage the direct inclusion of header files.

Link: https://lkml.kernel.org/r/20241105032231.28833-1-natanielfarzan@gmail.com
Signed-off-by: Nataniel Farzan <natanielfarzan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
19 files changed:
arch/alpha/include/asm/spinlock_types.h
arch/arm/include/asm/spinlock_types.h
arch/arm64/include/asm/spinlock_types.h
arch/hexagon/include/asm/spinlock_types.h
arch/powerpc/include/asm/simple_spinlock_types.h
arch/powerpc/include/asm/spinlock_types.h
arch/s390/include/asm/spinlock_types.h
arch/sh/include/asm/spinlock_types.h
arch/xtensa/include/asm/spinlock_types.h
include/acpi/platform/aclinux.h
include/linux/compiler-clang.h
include/linux/compiler-gcc.h
include/linux/pm_wakeup.h
include/linux/rwlock.h
include/linux/rwlock_api_smp.h
include/linux/spinlock_api_smp.h
include/linux/spinlock_types_up.h
include/linux/spinlock_up.h
tools/include/linux/compiler-gcc.h

index 2526fd3be5fd71022ce21098961c98f82d47c9f5..05a444d77c5314ae96c88641ea0e843cc68e86bd 100644 (file)
@@ -3,7 +3,7 @@
 #define _ALPHA_SPINLOCK_TYPES_H
 
 #ifndef __LINUX_SPINLOCK_TYPES_RAW_H
-# error "please don't include this file directly"
+# error "Please do not include this file directly."
 #endif
 
 typedef struct {
index 0c14b36ef10131b2a1fc95d91ccc76871e8ba4d4..5404a2a96bf3cb993941c218a7c590e0f5458936 100644 (file)
@@ -3,7 +3,7 @@
 #define __ASM_SPINLOCK_TYPES_H
 
 #ifndef __LINUX_SPINLOCK_TYPES_RAW_H
-# error "please don't include this file directly"
+# error "Please do not include this file directly."
 #endif
 
 #define TICKET_SHIFT   16
index 11ab1c07769779120fc7f1435a6fc42cda7f3205..7cde3d8bd0addc1a9fc500b4cbc1a6919c0b2b02 100644 (file)
@@ -6,7 +6,7 @@
 #define __ASM_SPINLOCK_TYPES_H
 
 #if !defined(__LINUX_SPINLOCK_TYPES_RAW_H) && !defined(__ASM_SPINLOCK_H)
-# error "please don't include this file directly"
+# error "Please do not include this file directly."
 #endif
 
 #include <asm-generic/qspinlock_types.h>
index d5f66495b670f2da4b7e26fc85b8f4118f32fe08..63add2d863e819eba9b9551b4beb5e82ba353af9 100644 (file)
@@ -9,7 +9,7 @@
 #define _ASM_SPINLOCK_TYPES_H
 
 #ifndef __LINUX_SPINLOCK_TYPES_RAW_H
-# error "please don't include this file directly"
+# error "Please do not include this file directly."
 #endif
 
 typedef struct {
index 08243338069d2997af1cbeb9cc1c1053655fc838..391fc19f727236fb18190f9407e2e23b94c819d1 100644 (file)
@@ -3,7 +3,7 @@
 #define _ASM_POWERPC_SIMPLE_SPINLOCK_TYPES_H
 
 #ifndef __LINUX_SPINLOCK_TYPES_RAW_H
-# error "please don't include this file directly"
+# error "Please do not include this file directly."
 #endif
 
 typedef struct {
index 40b01446cf755e862b99d0e9cef116089cf2b8b1..569765fa16bc4e3f59efe3ad73c6e9c6cdf2ee78 100644 (file)
@@ -3,7 +3,7 @@
 #define _ASM_POWERPC_SPINLOCK_TYPES_H
 
 #ifndef __LINUX_SPINLOCK_TYPES_RAW_H
-# error "please don't include this file directly"
+# error "Please do not include this file directly."
 #endif
 
 #ifdef CONFIG_PPC_QUEUED_SPINLOCKS
index b69695e399574edb6956294ea44673c46fd97ae3..3653ff57d6d9a79d35af660dd493d1af9d65e23b 100644 (file)
@@ -3,7 +3,7 @@
 #define __ASM_SPINLOCK_TYPES_H
 
 #ifndef __LINUX_SPINLOCK_TYPES_RAW_H
-# error "please don't include this file directly"
+# error "Please do not include this file directly."
 #endif
 
 typedef struct {
index 907bda4b1619a9e69291349a0ea0433c07f1f088..7cb50e68448f4d2b79cbac2d0520b5b8d4e0e2a0 100644 (file)
@@ -3,7 +3,7 @@
 #define __ASM_SH_SPINLOCK_TYPES_H
 
 #ifndef __LINUX_SPINLOCK_TYPES_RAW_H
-# error "please don't include this file directly"
+# error "Please do not include this file directly."
 #endif
 
 typedef struct {
index 797aed7df3dd81673cc1d642a2db9e0750fb6445..6baaeac6248b82823d970ad109983f797aa0a357 100644 (file)
@@ -3,7 +3,7 @@
 #define __ASM_SPINLOCK_TYPES_H
 
 #if !defined(__LINUX_SPINLOCK_TYPES_RAW_H) && !defined(__ASM_SPINLOCK_H)
-# error "please don't include this file directly"
+# error "Please do not include this file directly."
 #endif
 
 #include <asm-generic/qspinlock_types.h>
index 565341c826e38be71e73624512d50846c8032520..f3249b7df5cbcf91994922274bd840aae3c20414 100644 (file)
@@ -15,7 +15,7 @@
 /* ACPICA external files should not include ACPICA headers directly. */
 
 #if !defined(BUILDING_ACPICA) && !defined(_LINUX_ACPI_H)
-#error "Please don't include <acpi/acpi.h> directly, include <linux/acpi.h> instead."
+#error "Please do not include <acpi/acpi.h> directly, include <linux/acpi.h> instead."
 #endif
 
 #endif
index 4c1a39dcb624e9918dbaed72bf0c01bd0944b2df..2e7c2c282f3af39037a7dab5698c25c1148145f1 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 #ifndef __LINUX_COMPILER_TYPES_H
-#error "Please don't include <linux/compiler-clang.h> directly, include <linux/compiler.h> instead."
+#error "Please do not include <linux/compiler-clang.h> directly, include <linux/compiler.h> instead."
 #endif
 
 /* Compiler specific definitions for Clang compiler */
index cd6f9aae311fca0f6d13a6534bdcbf24564d3fa3..d0ed9583743fc2855b2291e58f24ac878c9dc4b0 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 #ifndef __LINUX_COMPILER_TYPES_H
-#error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead."
+#error "Please do not include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead."
 #endif
 
 /*
index 76cd1f9f1365306ab45b2832767e400f09e503bc..222f7530806c5cb7101ef0b3729aa9e1e161ca59 100644 (file)
@@ -10,7 +10,7 @@
 #define _LINUX_PM_WAKEUP_H
 
 #ifndef _DEVICE_H_
-# error "please don't include this file directly"
+# error "Please do not include this file directly."
 #endif
 
 #include <linux/types.h>
index c0ef596f340b58e0caf76d154bdd16dcc0711eeb..5b87c6f4a243b59ae59c2e495e008cb1467d15b6 100644 (file)
@@ -2,7 +2,7 @@
 #define __LINUX_RWLOCK_H
 
 #ifndef __LINUX_INSIDE_SPINLOCK_H
-# error "please don't include this file directly"
+# error "Please do not include this file directly."
 #endif
 
 /*
index dceb0a59b6927e1052fde9ae68cdeb9f586f94e8..31d3d1116323ed4dd9124b8cbb3805661bafa918 100644 (file)
@@ -2,7 +2,7 @@
 #define __LINUX_RWLOCK_API_SMP_H
 
 #ifndef __LINUX_SPINLOCK_API_SMP_H
-# error "please don't include this file directly"
+# error "Please do not include this file directly."
 #endif
 
 /*
index 89eb6f4c659c706c1b7376534a25d53a316316b7..9ecb0ab504e32010387c6910f0ef22fd670e97a5 100644 (file)
@@ -2,7 +2,7 @@
 #define __LINUX_SPINLOCK_API_SMP_H
 
 #ifndef __LINUX_INSIDE_SPINLOCK_H
-# error "please don't include this file directly"
+# error "Please do not include this file directly."
 #endif
 
 /*
index 7f86a2016ac5c8f52828e868a21b5aef02091bb3..fc4e2d017c2016d8e3e05c18130e7be58ecd45a3 100644 (file)
@@ -2,7 +2,7 @@
 #define __LINUX_SPINLOCK_TYPES_UP_H
 
 #ifndef __LINUX_SPINLOCK_TYPES_RAW_H
-# error "please don't include this file directly"
+# error "Please do not include this file directly."
 #endif
 
 /*
index c87204247592fd2a037c071eaf1fbf93abd16aeb..1e84e71ca495e4f729c68f063b92e7896f573ea7 100644 (file)
@@ -2,7 +2,7 @@
 #define __LINUX_SPINLOCK_UP_H
 
 #ifndef __LINUX_INSIDE_SPINLOCK_H
-# error "please don't include this file directly"
+# error "Please do not include this file directly."
 #endif
 
 #include <asm/processor.h>     /* for cpu_relax() */
index 62e7c901ac28c5006fa94b2a54a5fc82ab616bd4..e20f98e14e8146996bd9917a6a7b557e313116cc 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 #ifndef _TOOLS_LINUX_COMPILER_H_
-#error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead."
+#error "Please do not include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead."
 #endif
 
 /*