Skip to content

Commit acb4f33

Browse files
committed
Merge tag 'm68knommu-for-v6.15' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
Pull m68knommu updates from Greg Ungerer: - remove unused include of linux/fb.h - use strscpy() instead of strncpy() * tag 'm68knommu-for-v6.15' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu: m68k: mm: Replace deprecated strncpy() with strscpy() m68k: Do not include <linux/fb.h>
2 parents 7b667ac + a713091 commit acb4f33

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

arch/m68k/kernel/setup_mm.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,7 @@ void __init setup_arch(char **cmdline_p)
242242
setup_initial_init_mm((void *)PAGE_OFFSET, _etext, _edata, _end);
243243

244244
#if defined(CONFIG_BOOTPARAM)
245-
strncpy(m68k_command_line, CONFIG_BOOTPARAM_STRING, CL_SIZE);
246-
m68k_command_line[CL_SIZE - 1] = 0;
245+
strscpy(m68k_command_line, CONFIG_BOOTPARAM_STRING, CL_SIZE);
247246
#endif /* CONFIG_BOOTPARAM */
248247
process_uboot_commandline(&m68k_command_line[0], CL_SIZE);
249248
*cmdline_p = m68k_command_line;

arch/m68k/kernel/setup_no.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include <linux/sched.h>
2222
#include <linux/delay.h>
2323
#include <linux/interrupt.h>
24-
#include <linux/fb.h>
2524
#include <linux/module.h>
2625
#include <linux/mm.h>
2726
#include <linux/console.h>

arch/m68k/kernel/uboot.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include <linux/sched.h>
1111
#include <linux/delay.h>
1212
#include <linux/interrupt.h>
13-
#include <linux/fb.h>
1413
#include <linux/module.h>
1514
#include <linux/mm.h>
1615
#include <linux/console.h>

0 commit comments

Comments
 (0)