Skip to content

Commit

Permalink
Merge pull request torvalds#474 from retrage/v5.3-fixes
Browse files Browse the repository at this point in the history
Suppress gcc warnings
  • Loading branch information
thehajime authored Oct 4, 2019
2 parents 0a25540 + fd54f45 commit 06ca3dd
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
1 change: 0 additions & 1 deletion arch/lkl/include/asm/Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ generic-y += mmu.h
generic-y += mmu_context.h
generic-y += module.h
generic-y += msgbuf.h
generic-y += page.h
generic-y += param.h
generic-y += parport.h
generic-y += pci.h
Expand Down
2 changes: 2 additions & 0 deletions arch/lkl/include/uapi/asm/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#define __ARCH_WANT_SET_GET_RLIMIT
#define __ARCH_WANT_TIME32_SYSCALLS

#include <asm/bitsperlong.h>

#if __BITS_PER_LONG == 64
#define __ARCH_WANT_SYS_NEWFSTATAT
#endif
Expand Down
5 changes: 4 additions & 1 deletion arch/lkl/kernel/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <asm/ptrace.h>
#include <asm/host_ops.h>

#ifdef CONFIG_PRINTK
void dump_stack(void)
{
unsigned long dummy;
Expand All @@ -15,13 +16,15 @@ void dump_stack(void)
while (((long)stack & (THREAD_SIZE - 1)) != 0) {
addr = *stack;
if (__kernel_text_address(addr)) {
pr_info("%p: [<%08lx>] %pS", stack, addr, addr);
pr_info("%p: [<%08lx>] %pS", stack, addr,
(void *)addr);
pr_cont("\n");
}
stack++;
}
pr_info("\n");
}
#endif

void show_regs(struct pt_regs *regs)
{
Expand Down
2 changes: 1 addition & 1 deletion arch/lkl/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ int __init lkl_start_kernel(struct lkl_host_operations *ops,
va_end(ap);

if (ops->virtio_devices)
strncpy(boot_command_line + ret, ops->virtio_devices,
strscpy(boot_command_line + ret, ops->virtio_devices,
COMMAND_LINE_SIZE - ret);

memcpy(cmd_line, boot_command_line, COMMAND_LINE_SIZE);
Expand Down
5 changes: 5 additions & 0 deletions tools/lkl/lib/config.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#include <stdlib.h>
#define _HAVE_STRING_ARCH_strtok_r
#include <string.h>
#ifndef __MINGW32__
#include <arpa/inet.h>
#else
#define inet_pton lkl_inet_pton
#endif
#include <lkl_host.h>
#include <lkl_config.h>

Expand Down

0 comments on commit 06ca3dd

Please sign in to comment.