Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

powerpc/rtas: Remove trailing space

Use scripts/cleanfile to remove instances of trailing space in the
core RTAS code and header.

Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231106-rtas-trivial-v1-6-61847655c51f@linux.ibm.com

authored by

Nathan Lynch and committed by
Michael Ellerman
19773eda 010862d2

+12 -12
+3 -3
arch/powerpc/include/asm/rtas.h
··· 268 268 #define RTAS_TYPE_DEALLOC 0xE3 269 269 #define RTAS_TYPE_DUMP 0xE4 270 270 #define RTAS_TYPE_HOTPLUG 0xE5 271 - /* I don't add PowerMGM events right now, this is a different topic */ 271 + /* I don't add PowerMGM events right now, this is a different topic */ 272 272 #define RTAS_TYPE_PMGM_POWER_SW_ON 0x60 273 273 #define RTAS_TYPE_PMGM_POWER_SW_OFF 0x61 274 274 #define RTAS_TYPE_PMGM_LID_OPEN 0x62 ··· 461 461 462 462 /* Error types logged. */ 463 463 #define ERR_FLAG_ALREADY_LOGGED 0x0 464 - #define ERR_FLAG_BOOT 0x1 /* log was pulled from NVRAM on boot */ 464 + #define ERR_FLAG_BOOT 0x1 /* log was pulled from NVRAM on boot */ 465 465 #define ERR_TYPE_RTAS_LOG 0x2 /* from rtas event-scan */ 466 466 #define ERR_TYPE_KERNEL_PANIC 0x4 /* from die()/panic() */ 467 467 #define ERR_TYPE_KERNEL_PANIC_GZ 0x8 /* ditto, compressed */ ··· 471 471 (ERR_TYPE_RTAS_LOG | ERR_TYPE_KERNEL_PANIC | ERR_TYPE_KERNEL_PANIC_GZ) 472 472 473 473 #define RTAS_DEBUG KERN_DEBUG "RTAS: " 474 - 474 + 475 475 #define RTAS_ERROR_LOG_MAX 2048 476 476 477 477 /*
+9 -9
arch/powerpc/kernel/rtas.c
··· 670 670 static int pending_newline = 0; /* did last write end with unprinted newline? */ 671 671 static int width = 16; 672 672 673 - if (c == '\n') { 673 + if (c == '\n') { 674 674 while (width-- > 0) 675 675 call_rtas_display_status(' '); 676 676 width = 16; ··· 680 680 if (pending_newline) { 681 681 call_rtas_display_status('\r'); 682 682 call_rtas_display_status('\n'); 683 - } 683 + } 684 684 pending_newline = 0; 685 685 if (width--) { 686 686 call_rtas_display_status(c); ··· 820 820 else 821 821 rtas_call(display_character, 1, 1, NULL, '\r'); 822 822 } 823 - 823 + 824 824 if (row_width) 825 825 width = row_width[current_line]; 826 826 else ··· 840 840 spin_unlock(&progress_lock); 841 841 return; 842 842 } 843 - 843 + 844 844 /* RTAS wants CR-LF, not just LF */ 845 - 845 + 846 846 if (*os == '\n') { 847 847 rtas_call(display_character, 1, 1, NULL, '\r'); 848 848 rtas_call(display_character, 1, 1, NULL, '\n'); ··· 852 852 */ 853 853 rtas_call(display_character, 1, 1, NULL, *os); 854 854 } 855 - 855 + 856 856 if (row_width) 857 857 width = row_width[current_line]; 858 858 else ··· 861 861 width--; 862 862 rtas_call(display_character, 1, 1, NULL, *os); 863 863 } 864 - 864 + 865 865 os++; 866 - 866 + 867 867 /* if we overwrite the screen length */ 868 868 if (width <= 0) 869 869 while ((*os != 0) && (*os != '\n') && (*os != '\r')) 870 870 os++; 871 871 } 872 - 872 + 873 873 spin_unlock(&progress_lock); 874 874 } 875 875 EXPORT_SYMBOL_GPL(rtas_progress); /* needed by rtas_flash module */