summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-02-27 17:28:58 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-27 21:43:46 -0500
commit550116d21a656e8b5670073e586315e5a6d12f01 (patch)
tree1fb553e737d26bbd317953da619a8f160f68aa37
parent8ab102d60a0c19df602f3758848d55f0703bf9bb (diff)
scripts/spelling.txt: add "aligment" pattern and fix typo instances
Fix typos and add the following to the scripts/spelling.txt: aligment||alignment I did not touch the "N_BYTE_ALIGMENT" macro in drivers/net/wireless/realtek/rtlwifi/wifi.h to avoid unpredictable impact. I fixed "_aligment_handler" in arch/openrisc/kernel/entry.S because it is surrounded by #if 0 ... #endif. It is surely safe and I confirmed "_alignment_handler" is correct. I also fixed the "controler" I found in the same hunk in arch/openrisc/kernel/head.S. Link: http://lkml.kernel.org/r/1481573103-11329-8-git-send-email-yamada.masahiro@socionext.com Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--arch/arc/kernel/unwind.c4
-rw-r--r--arch/openrisc/kernel/entry.S4
-rw-r--r--arch/openrisc/kernel/head.S6
-rw-r--r--arch/openrisc/kernel/vmlinux.lds.S4
-rw-r--r--drivers/gpu/drm/amd/include/atombios.h6
-rw-r--r--drivers/gpu/drm/i915/i915_gem_render_state.c2
-rw-r--r--drivers/gpu/drm/radeon/atombios.h4
-rw-r--r--drivers/media/platform/exynos4-is/fimc-core.h2
-rw-r--r--drivers/net/wireless/ath/ath9k/ani.c4
-rw-r--r--drivers/net/wireless/realtek/rtlwifi/rtl8192se/fw.c4
-rw-r--r--drivers/scsi/bfa/bfi_ms.h2
-rw-r--r--net/netfilter/x_tables.c2
-rw-r--r--scripts/spelling.txt1
13 files changed, 23 insertions, 22 deletions
diff --git a/arch/arc/kernel/unwind.c b/arch/arc/kernel/unwind.c
index 61fd1ce63c56..b6e4f7a7419b 100644
--- a/arch/arc/kernel/unwind.c
+++ b/arch/arc/kernel/unwind.c
@@ -1051,9 +1051,9 @@ int arc_unwind(struct unwind_frame_info *frame)
1051 ++ptr; 1051 ++ptr;
1052 } 1052 }
1053 if (cie != NULL) { 1053 if (cie != NULL) {
1054 /* get code aligment factor */ 1054 /* get code alignment factor */
1055 state.codeAlign = get_uleb128(&ptr, end); 1055 state.codeAlign = get_uleb128(&ptr, end);
1056 /* get data aligment factor */ 1056 /* get data alignment factor */
1057 state.dataAlign = get_sleb128(&ptr, end); 1057 state.dataAlign = get_sleb128(&ptr, end);
1058 if (state.codeAlign == 0 || state.dataAlign == 0 || ptr >= end) 1058 if (state.codeAlign == 0 || state.dataAlign == 0 || ptr >= end)
1059 cie = NULL; 1059 cie = NULL;
diff --git a/arch/openrisc/kernel/entry.S b/arch/openrisc/kernel/entry.S
index bc6500860f4d..459e4b129e4f 100644
--- a/arch/openrisc/kernel/entry.S
+++ b/arch/openrisc/kernel/entry.S
@@ -319,7 +319,7 @@ EXCEPTION_ENTRY(_timer_handler)
319 l.j _ret_from_intr 319 l.j _ret_from_intr
320 l.nop 320 l.nop
321 321
322/* ---[ 0x600: Aligment exception ]-------------------------------------- */ 322/* ---[ 0x600: Alignment exception ]-------------------------------------- */
323 323
324EXCEPTION_ENTRY(_alignment_handler) 324EXCEPTION_ENTRY(_alignment_handler)
325 CLEAR_LWA_FLAG(r3) 325 CLEAR_LWA_FLAG(r3)
@@ -331,7 +331,7 @@ EXCEPTION_ENTRY(_alignment_handler)
331 l.nop 331 l.nop
332 332
333#if 0 333#if 0
334EXCEPTION_ENTRY(_aligment_handler) 334EXCEPTION_ENTRY(_alignment_handler)
335// l.mfspr r2,r0,SPR_EEAR_BASE /* Load the efective addres */ 335// l.mfspr r2,r0,SPR_EEAR_BASE /* Load the efective addres */
336 l.addi r2,r4,0 336 l.addi r2,r4,0
337// l.mfspr r5,r0,SPR_EPCR_BASE /* Load the insn address */ 337// l.mfspr r5,r0,SPR_EPCR_BASE /* Load the insn address */
diff --git a/arch/openrisc/kernel/head.S b/arch/openrisc/kernel/head.S
index d01b82eace3e..1e87913576e3 100644
--- a/arch/openrisc/kernel/head.S
+++ b/arch/openrisc/kernel/head.S
@@ -325,7 +325,7 @@ _dispatch_do_ipage_fault:
325 .org 0x500 325 .org 0x500
326 EXCEPTION_HANDLE(_timer_handler) 326 EXCEPTION_HANDLE(_timer_handler)
327 327
328/* ---[ 0x600: Aligment exception ]-------------------------------------- */ 328/* ---[ 0x600: Alignment exception ]-------------------------------------- */
329 .org 0x600 329 .org 0x600
330 EXCEPTION_HANDLE(_alignment_handler) 330 EXCEPTION_HANDLE(_alignment_handler)
331 331
@@ -640,8 +640,8 @@ _flush_tlb:
640 640
641/* ========================================[ cache ]=== */ 641/* ========================================[ cache ]=== */
642 642
643 /* aligment here so we don't change memory offsets with 643 /* alignment here so we don't change memory offsets with
644 * memory controler defined 644 * memory controller defined
645 */ 645 */
646 .align 0x2000 646 .align 0x2000
647 647
diff --git a/arch/openrisc/kernel/vmlinux.lds.S b/arch/openrisc/kernel/vmlinux.lds.S
index 552544616b9d..00ddb7804be4 100644
--- a/arch/openrisc/kernel/vmlinux.lds.S
+++ b/arch/openrisc/kernel/vmlinux.lds.S
@@ -19,8 +19,8 @@
19 19
20/* TODO 20/* TODO
21 * - clean up __offset & stuff 21 * - clean up __offset & stuff
22 * - change all 8192 aligment to PAGE !!! 22 * - change all 8192 alignment to PAGE !!!
23 * - recheck if all aligments are really needed 23 * - recheck if all alignments are really needed
24 */ 24 */
25 25
26# define LOAD_OFFSET PAGE_OFFSET 26# define LOAD_OFFSET PAGE_OFFSET
diff --git a/drivers/gpu/drm/amd/include/atombios.h b/drivers/gpu/drm/amd/include/atombios.h
index 9f970b5c7171..181a2c3c6362 100644
--- a/drivers/gpu/drm/amd/include/atombios.h
+++ b/drivers/gpu/drm/amd/include/atombios.h
@@ -188,7 +188,7 @@
188#define HW_ASSISTED_I2C_STATUS_FAILURE 2 188#define HW_ASSISTED_I2C_STATUS_FAILURE 2
189#define HW_ASSISTED_I2C_STATUS_SUCCESS 1 189#define HW_ASSISTED_I2C_STATUS_SUCCESS 1
190 190
191#pragma pack(1) // BIOS data must use byte aligment 191#pragma pack(1) // BIOS data must use byte alignment
192 192
193// Define offset to location of ROM header. 193// Define offset to location of ROM header.
194#define OFFSET_TO_POINTER_TO_ATOM_ROM_HEADER 0x00000048L 194#define OFFSET_TO_POINTER_TO_ATOM_ROM_HEADER 0x00000048L
@@ -9180,7 +9180,7 @@ typedef struct _ATOM_POWERPLAY_INFO_V3
9180 9180
9181/*********************************************************************************/ 9181/*********************************************************************************/
9182 9182
9183#pragma pack() // BIOS data must use byte aligment 9183#pragma pack() // BIOS data must use byte alignment
9184 9184
9185#pragma pack(1) 9185#pragma pack(1)
9186 9186
@@ -9211,7 +9211,7 @@ typedef struct _ATOM_SERVICE_INFO
9211 9211
9212 9212
9213 9213
9214#pragma pack() // BIOS data must use byte aligment 9214#pragma pack() // BIOS data must use byte alignment
9215 9215
9216// 9216//
9217// AMD ACPI Table 9217// AMD ACPI Table
diff --git a/drivers/gpu/drm/i915/i915_gem_render_state.c b/drivers/gpu/drm/i915/i915_gem_render_state.c
index b42c81b42487..7032c542a9b1 100644
--- a/drivers/gpu/drm/i915/i915_gem_render_state.c
+++ b/drivers/gpu/drm/i915/i915_gem_render_state.c
@@ -60,7 +60,7 @@ render_state_get_rodata(const struct intel_engine_cs *engine)
60 * this is sufficient as the null state generator makes the final batch 60 * this is sufficient as the null state generator makes the final batch
61 * with two passes to build command and state separately. At this point 61 * with two passes to build command and state separately. At this point
62 * the size of both are known and it compacts them by relocating the state 62 * the size of both are known and it compacts them by relocating the state
63 * right after the commands taking care of aligment so we should sufficient 63 * right after the commands taking care of alignment so we should sufficient
64 * space below them for adding new commands. 64 * space below them for adding new commands.
65 */ 65 */
66#define OUT_BATCH(batch, i, val) \ 66#define OUT_BATCH(batch, i, val) \
diff --git a/drivers/gpu/drm/radeon/atombios.h b/drivers/gpu/drm/radeon/atombios.h
index 66a26422e9e3..4b86e8b45009 100644
--- a/drivers/gpu/drm/radeon/atombios.h
+++ b/drivers/gpu/drm/radeon/atombios.h
@@ -181,7 +181,7 @@
181#define HW_ASSISTED_I2C_STATUS_FAILURE 2 181#define HW_ASSISTED_I2C_STATUS_FAILURE 2
182#define HW_ASSISTED_I2C_STATUS_SUCCESS 1 182#define HW_ASSISTED_I2C_STATUS_SUCCESS 1
183 183
184#pragma pack(1) /* BIOS data must use byte aligment */ 184#pragma pack(1) /* BIOS data must use byte alignment */
185 185
186/* Define offset to location of ROM header. */ 186/* Define offset to location of ROM header. */
187 187
@@ -7909,7 +7909,7 @@ typedef struct _ATOM_POWERPLAY_INFO_V3
7909 7909
7910/*********************************************************************************/ 7910/*********************************************************************************/
7911 7911
7912#pragma pack() // BIOS data must use byte aligment 7912#pragma pack() // BIOS data must use byte alignment
7913 7913
7914// 7914//
7915// AMD ACPI Table 7915// AMD ACPI Table
diff --git a/drivers/media/platform/exynos4-is/fimc-core.h b/drivers/media/platform/exynos4-is/fimc-core.h
index 5615fefbf7af..c0373aede81a 100644
--- a/drivers/media/platform/exynos4-is/fimc-core.h
+++ b/drivers/media/platform/exynos4-is/fimc-core.h
@@ -358,7 +358,7 @@ struct fimc_pix_limit {
358 * @pix_limit: pixel size constraints for the scaler 358 * @pix_limit: pixel size constraints for the scaler
359 * @min_inp_pixsize: minimum input pixel size 359 * @min_inp_pixsize: minimum input pixel size
360 * @min_out_pixsize: minimum output pixel size 360 * @min_out_pixsize: minimum output pixel size
361 * @hor_offs_align: horizontal pixel offset aligment 361 * @hor_offs_align: horizontal pixel offset alignment
362 * @min_vsize_align: minimum vertical pixel size alignment 362 * @min_vsize_align: minimum vertical pixel size alignment
363 */ 363 */
364struct fimc_variant { 364struct fimc_variant {
diff --git a/drivers/net/wireless/ath/ath9k/ani.c b/drivers/net/wireless/ath/ath9k/ani.c
index 815efe9fd208..5214dd7a3936 100644
--- a/drivers/net/wireless/ath/ath9k/ani.c
+++ b/drivers/net/wireless/ath/ath9k/ani.c
@@ -59,13 +59,13 @@ static const struct ani_ofdm_level_entry ofdm_level_table[] = {
59/* 59/*
60 * MRC (Maximal Ratio Combining) has always been used with multi-antenna ofdm. 60 * MRC (Maximal Ratio Combining) has always been used with multi-antenna ofdm.
61 * With OFDM for single stream you just add up all antenna inputs, you're 61 * With OFDM for single stream you just add up all antenna inputs, you're
62 * only interested in what you get after FFT. Signal aligment is also not 62 * only interested in what you get after FFT. Signal alignment is also not
63 * required for OFDM because any phase difference adds up in the frequency 63 * required for OFDM because any phase difference adds up in the frequency
64 * domain. 64 * domain.
65 * 65 *
66 * MRC requires extra work for use with CCK. You need to align the antenna 66 * MRC requires extra work for use with CCK. You need to align the antenna
67 * signals from the different antenna before you can add the signals together. 67 * signals from the different antenna before you can add the signals together.
68 * You need aligment of signals as CCK is in time domain, so addition can cancel 68 * You need alignment of signals as CCK is in time domain, so addition can cancel
69 * your signal completely if phase is 180 degrees (think of adding sine waves). 69 * your signal completely if phase is 180 degrees (think of adding sine waves).
70 * You also need to remove noise before the addition and this is where ANI 70 * You also need to remove noise before the addition and this is where ANI
71 * MRC CCK comes into play. One of the antenna inputs may be stronger but 71 * MRC CCK comes into play. One of the antenna inputs may be stronger but
diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192se/fw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192se/fw.c
index 1922e78ad6bd..89a0a28b8b20 100644
--- a/drivers/net/wireless/realtek/rtlwifi/rtl8192se/fw.c
+++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192se/fw.c
@@ -455,7 +455,7 @@ static u32 _rtl92s_fill_h2c_cmd(struct sk_buff *skb, u32 h2cbufferlen,
455 u8 i = 0; 455 u8 i = 0;
456 456
457 do { 457 do {
458 /* 8 - Byte aligment */ 458 /* 8 - Byte alignment */
459 len = H2C_TX_CMD_HDR_LEN + N_BYTE_ALIGMENT(pcmd_len[i], 8); 459 len = H2C_TX_CMD_HDR_LEN + N_BYTE_ALIGMENT(pcmd_len[i], 8);
460 460
461 /* Buffer length is not enough */ 461 /* Buffer length is not enough */
@@ -504,7 +504,7 @@ static u32 _rtl92s_get_h2c_cmdlen(u32 h2cbufferlen, u32 cmd_num, u32 *pcmd_len)
504 u8 i = 0; 504 u8 i = 0;
505 505
506 do { 506 do {
507 /* 8 - Byte aligment */ 507 /* 8 - Byte alignment */
508 len = H2C_TX_CMD_HDR_LEN + N_BYTE_ALIGMENT(pcmd_len[i], 8); 508 len = H2C_TX_CMD_HDR_LEN + N_BYTE_ALIGMENT(pcmd_len[i], 8);
509 509
510 /* Buffer length is not enough */ 510 /* Buffer length is not enough */
diff --git a/drivers/scsi/bfa/bfi_ms.h b/drivers/scsi/bfa/bfi_ms.h
index ae5bfe039fcc..ccbd9e31a5de 100644
--- a/drivers/scsi/bfa/bfi_ms.h
+++ b/drivers/scsi/bfa/bfi_ms.h
@@ -680,7 +680,7 @@ struct bfi_ioim_req_s {
680 680
681 /* 681 /*
682 * SG elements array within the IO request must be double word 682 * SG elements array within the IO request must be double word
683 * aligned. This aligment is required to optimize SGM setup for the IO. 683 * aligned. This alignment is required to optimize SGM setup for the IO.
684 */ 684 */
685 struct bfi_sge_s sges[BFI_SGE_INLINE_MAX]; 685 struct bfi_sge_s sges[BFI_SGE_INLINE_MAX];
686 u8 io_timeout; 686 u8 io_timeout;
diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c
index 016db6be94b9..14857afc9937 100644
--- a/net/netfilter/x_tables.c
+++ b/net/netfilter/x_tables.c
@@ -667,7 +667,7 @@ int xt_compat_check_entry_offsets(const void *base, const char *elems,
667 COMPAT_XT_ALIGN(target_offset + sizeof(struct compat_xt_standard_target)) != next_offset) 667 COMPAT_XT_ALIGN(target_offset + sizeof(struct compat_xt_standard_target)) != next_offset)
668 return -EINVAL; 668 return -EINVAL;
669 669
670 /* compat_xt_entry match has less strict aligment requirements, 670 /* compat_xt_entry match has less strict alignment requirements,
671 * otherwise they are identical. In case of padding differences 671 * otherwise they are identical. In case of padding differences
672 * we need to add compat version of xt_check_entry_match. 672 * we need to add compat version of xt_check_entry_match.
673 */ 673 */
diff --git a/scripts/spelling.txt b/scripts/spelling.txt
index 6ff540377fe6..12777ab32306 100644
--- a/scripts/spelling.txt
+++ b/scripts/spelling.txt
@@ -71,6 +71,7 @@ algoritm||algorithm
71algoritms||algorithms 71algoritms||algorithms
72algorrithm||algorithm 72algorrithm||algorithm
73algorritm||algorithm 73algorritm||algorithm
74aligment||alignment
74allign||align 75allign||align
75allocatrd||allocated 76allocatrd||allocated
76allocte||allocate 77allocte||allocate