Improve consistency of '#error' directive messages
Subsystems (13)
PATCH 1/1 Improve consistency of '#error' directive messages
Remove the use of contractions and use proper punctuation in #error directive messages that discourage the direct inclusion of header files.
Signed-off-by Nataniel Farzan <[email protected]>
--- arch/alpha/include/asm/spinlock_types.h | 2 +- arch/arm/include/asm/spinlock_types.h | 2 +- arch/arm64/include/asm/spinlock_types.h | 2 +- arch/hexagon/include/asm/spinlock_types.h | 2 +- arch/powerpc/include/asm/simple_spinlock_types.h | 2 +- arch/powerpc/include/asm/spinlock_types.h | 2 +- arch/s390/include/asm/spinlock_types.h | 2 +- arch/sh/include/asm/spinlock_types.h | 2 +- arch/xtensa/include/asm/spinlock_types.h | 2 +- include/acpi/platform/aclinux.h | 2 +- include/linux/compiler-clang.h | 2 +- include/linux/compiler-gcc.h | 2 +- include/linux/pm_wakeup.h | 2 +- include/linux/rwlock.h | 2 +- include/linux/rwlock_api_smp.h | 2 +- include/linux/spinlock_api_smp.h | 2 +- include/linux/spinlock_types_up.h | 2 +- include/linux/spinlock_up.h | 2 +- tools/include/linux/compiler-gcc.h | 2 +- 19 files changed, 19 insertions(+), 19 deletions(-)
arch/alpha/include/asm/spinlock_types.h +1 -1
@@ -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 {
arch/arm/include/asm/spinlock_types.h +1 -1
@@ -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
arch/arm64/include/asm/spinlock_types.h +1 -1
@@ -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>
arch/hexagon/include/asm/spinlock_types.h +1 -1
@@ -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 {
arch/powerpc/include/asm/simple_spinlock_types.h +1 -1
@@ -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 {
arch/powerpc/include/asm/spinlock_types.h +1 -1
@@ -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
arch/s390/include/asm/spinlock_types.h +1 -1
@@ -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 {
arch/sh/include/asm/spinlock_types.h +1 -1
@@ -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 {
arch/xtensa/include/asm/spinlock_types.h +1 -1
@@ -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>
include/acpi/platform/aclinux.h +1 -1
@@ -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
include/linux/compiler-clang.h +1 -1
@@ -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 */
include/linux/compiler-gcc.h +1 -1
@@ -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 /*
include/linux/pm_wakeup.h +1 -1
@@ -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>
include/linux/rwlock.h +1 -1
@@ -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 /*
include/linux/rwlock_api_smp.h +1 -1
@@ -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 /*
include/linux/spinlock_api_smp.h +1 -1
@@ -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 /*
include/linux/spinlock_types_up.h +1 -1
@@ -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 /*
include/linux/spinlock_up.h +1 -1
@@ -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() */
tools/include/linux/compiler-gcc.h +1 -1
@@ -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 /*
Signature · 1 line
2.35.3