Skip to content

Commit a7306f3

Browse files
natanielfakpm00
authored andcommitted
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. 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>
1 parent adc77b1 commit a7306f3

File tree

19 files changed

+19
-19
lines changed

19 files changed

+19
-19
lines changed

arch/alpha/include/asm/spinlock_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#define _ALPHA_SPINLOCK_TYPES_H
44

55
#ifndef __LINUX_SPINLOCK_TYPES_RAW_H
6-
# error "please don't include this file directly"
6+
# error "Please do not include this file directly."
77
#endif
88

99
typedef struct {

arch/arm/include/asm/spinlock_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#define __ASM_SPINLOCK_TYPES_H
44

55
#ifndef __LINUX_SPINLOCK_TYPES_RAW_H
6-
# error "please don't include this file directly"
6+
# error "Please do not include this file directly."
77
#endif
88

99
#define TICKET_SHIFT 16

arch/arm64/include/asm/spinlock_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#define __ASM_SPINLOCK_TYPES_H
77

88
#if !defined(__LINUX_SPINLOCK_TYPES_RAW_H) && !defined(__ASM_SPINLOCK_H)
9-
# error "please don't include this file directly"
9+
# error "Please do not include this file directly."
1010
#endif
1111

1212
#include <asm-generic/qspinlock_types.h>

arch/hexagon/include/asm/spinlock_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#define _ASM_SPINLOCK_TYPES_H
1010

1111
#ifndef __LINUX_SPINLOCK_TYPES_RAW_H
12-
# error "please don't include this file directly"
12+
# error "Please do not include this file directly."
1313
#endif
1414

1515
typedef struct {

arch/powerpc/include/asm/simple_spinlock_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#define _ASM_POWERPC_SIMPLE_SPINLOCK_TYPES_H
44

55
#ifndef __LINUX_SPINLOCK_TYPES_RAW_H
6-
# error "please don't include this file directly"
6+
# error "Please do not include this file directly."
77
#endif
88

99
typedef struct {

arch/powerpc/include/asm/spinlock_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#define _ASM_POWERPC_SPINLOCK_TYPES_H
44

55
#ifndef __LINUX_SPINLOCK_TYPES_RAW_H
6-
# error "please don't include this file directly"
6+
# error "Please do not include this file directly."
77
#endif
88

99
#ifdef CONFIG_PPC_QUEUED_SPINLOCKS

arch/s390/include/asm/spinlock_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#define __ASM_SPINLOCK_TYPES_H
44

55
#ifndef __LINUX_SPINLOCK_TYPES_RAW_H
6-
# error "please don't include this file directly"
6+
# error "Please do not include this file directly."
77
#endif
88

99
typedef struct {

arch/sh/include/asm/spinlock_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#define __ASM_SH_SPINLOCK_TYPES_H
44

55
#ifndef __LINUX_SPINLOCK_TYPES_RAW_H
6-
# error "please don't include this file directly"
6+
# error "Please do not include this file directly."
77
#endif
88

99
typedef struct {

arch/xtensa/include/asm/spinlock_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#define __ASM_SPINLOCK_TYPES_H
44

55
#if !defined(__LINUX_SPINLOCK_TYPES_RAW_H) && !defined(__ASM_SPINLOCK_H)
6-
# error "please don't include this file directly"
6+
# error "Please do not include this file directly."
77
#endif
88

99
#include <asm-generic/qspinlock_types.h>

include/acpi/platform/aclinux.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/* ACPICA external files should not include ACPICA headers directly. */
1616

1717
#if !defined(BUILDING_ACPICA) && !defined(_LINUX_ACPI_H)
18-
#error "Please don't include <acpi/acpi.h> directly, include <linux/acpi.h> instead."
18+
#error "Please do not include <acpi/acpi.h> directly, include <linux/acpi.h> instead."
1919
#endif
2020

2121
#endif

0 commit comments

Comments
 (0)