Commit d665ea6e authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'for-linus-5.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml

Pull UML updates from Richard Weinberger:

 - Disable CONFIG_GCOV when built with modules

 - Many fixes for W=1 related warnings

 - Code cleanup

* tag 'for-linus-5.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml:
  um: Fix W=1 missing-include-dirs warnings
  um: elf.h: Fix W=1 warning for empty body in 'do' statement
  um: pgtable.h: Fix W=1 warning for empty body in 'do' statement
  um: Remove unused including <linux/version.h>
  um: Add 2 missing libs to fix various build errors
  um: Replace if (cond) BUG() with BUG_ON()
  um: Disable CONFIG_GCOV with MODULES
  um: Remove unneeded variable 'ret'
  um: Mark all kernel symbols as local
  um: Fix tag order in stub_32.h
parents 51f62944 ed102bf2
...@@ -17,6 +17,7 @@ config GCOV ...@@ -17,6 +17,7 @@ config GCOV
bool "Enable gcov support" bool "Enable gcov support"
depends on DEBUG_INFO depends on DEBUG_INFO
depends on !KCOV depends on !KCOV
depends on !MODULES
help help
This option allows developers to retrieve coverage data from a UML This option allows developers to retrieve coverage data from a UML
session. session.
......
...@@ -122,13 +122,11 @@ static ssize_t hostaudio_write(struct file *file, const char __user *buffer, ...@@ -122,13 +122,11 @@ static ssize_t hostaudio_write(struct file *file, const char __user *buffer,
static __poll_t hostaudio_poll(struct file *file, static __poll_t hostaudio_poll(struct file *file,
struct poll_table_struct *wait) struct poll_table_struct *wait)
{ {
__poll_t mask = 0;
#ifdef DEBUG #ifdef DEBUG
printk(KERN_DEBUG "hostaudio: poll called (unimplemented)\n"); printk(KERN_DEBUG "hostaudio: poll called (unimplemented)\n");
#endif #endif
return mask; return 0;
} }
static long hostaudio_ioctl(struct file *file, static long hostaudio_ioctl(struct file *file,
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
* Copyright (C) 2001 by various other people who didn't put their name here. * Copyright (C) 2001 by various other people who didn't put their name here.
*/ */
#include <linux/version.h>
#include <linux/memblock.h> #include <linux/memblock.h>
#include <linux/etherdevice.h> #include <linux/etherdevice.h>
#include <linux/ethtool.h> #include <linux/ethtool.h>
......
...@@ -302,7 +302,7 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) ...@@ -302,7 +302,7 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t newprot)
struct mm_struct; struct mm_struct;
extern pte_t *virt_to_pte(struct mm_struct *mm, unsigned long addr); extern pte_t *virt_to_pte(struct mm_struct *mm, unsigned long addr);
#define update_mmu_cache(vma,address,ptep) do ; while (0) #define update_mmu_cache(vma,address,ptep) do {} while (0)
/* Encode and de-code a swap entry */ /* Encode and de-code a swap entry */
#define __swp_type(x) (((x).val >> 5) & 0x1f) #define __swp_type(x) (((x).val >> 5) & 0x1f)
......
# SPDX-License-Identifier: GPL-2.0
...@@ -21,7 +21,6 @@ obj-y = config.o exec.o exitcode.o irq.o ksyms.o mem.o \ ...@@ -21,7 +21,6 @@ obj-y = config.o exec.o exitcode.o irq.o ksyms.o mem.o \
obj-$(CONFIG_BLK_DEV_INITRD) += initrd.o obj-$(CONFIG_BLK_DEV_INITRD) += initrd.o
obj-$(CONFIG_GPROF) += gprof_syms.o obj-$(CONFIG_GPROF) += gprof_syms.o
obj-$(CONFIG_GCOV) += gmon_syms.o
obj-$(CONFIG_EARLY_PRINTK) += early_printk.o obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
obj-$(CONFIG_STACKTRACE) += stacktrace.o obj-$(CONFIG_STACKTRACE) += stacktrace.o
......
...@@ -6,6 +6,12 @@ OUTPUT_ARCH(ELF_ARCH) ...@@ -6,6 +6,12 @@ OUTPUT_ARCH(ELF_ARCH)
ENTRY(_start) ENTRY(_start)
jiffies = jiffies_64; jiffies = jiffies_64;
VERSION {
{
local: *;
};
}
SECTIONS SECTIONS
{ {
PROVIDE (__executable_start = START); PROVIDE (__executable_start = START);
......
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
*/
#include <linux/module.h>
extern void __bb_init_func(void *) __attribute__((weak));
EXPORT_SYMBOL(__bb_init_func);
extern void __gcov_init(void *) __attribute__((weak));
EXPORT_SYMBOL(__gcov_init);
extern void __gcov_merge_add(void *, unsigned int) __attribute__((weak));
EXPORT_SYMBOL(__gcov_merge_add);
extern void __gcov_exit(void) __attribute__((weak));
EXPORT_SYMBOL(__gcov_exit);
...@@ -72,8 +72,7 @@ static void __init one_page_table_init(pmd_t *pmd) ...@@ -72,8 +72,7 @@ static void __init one_page_table_init(pmd_t *pmd)
set_pmd(pmd, __pmd(_KERNPG_TABLE + set_pmd(pmd, __pmd(_KERNPG_TABLE +
(unsigned long) __pa(pte))); (unsigned long) __pa(pte)));
if (pte != pte_offset_kernel(pmd, 0)) BUG_ON(pte != pte_offset_kernel(pmd, 0));
BUG();
} }
} }
......
...@@ -7,6 +7,12 @@ OUTPUT_ARCH(ELF_ARCH) ...@@ -7,6 +7,12 @@ OUTPUT_ARCH(ELF_ARCH)
ENTRY(_start) ENTRY(_start)
jiffies = jiffies_64; jiffies = jiffies_64;
VERSION {
{
local: *;
};
}
SECTIONS SECTIONS
{ {
/* This must contain the right address - not quite the default ELF one.*/ /* This must contain the right address - not quite the default ELF one.*/
......
...@@ -21,6 +21,7 @@ obj-y += checksum_32.o syscalls_32.o ...@@ -21,6 +21,7 @@ obj-y += checksum_32.o syscalls_32.o
obj-$(CONFIG_ELF_CORE) += elfcore.o obj-$(CONFIG_ELF_CORE) += elfcore.o
subarch-y = ../lib/string_32.o ../lib/atomic64_32.o ../lib/atomic64_cx8_32.o subarch-y = ../lib/string_32.o ../lib/atomic64_32.o ../lib/atomic64_cx8_32.o
subarch-y += ../lib/cmpxchg8b_emu.o ../lib/atomic64_386_32.o
subarch-y += ../kernel/sys_ia32.o subarch-y += ../kernel/sys_ia32.o
else else
......
...@@ -212,6 +212,6 @@ extern int elf_core_copy_fpregs(struct task_struct *t, elf_fpregset_t *fpu); ...@@ -212,6 +212,6 @@ extern int elf_core_copy_fpregs(struct task_struct *t, elf_fpregset_t *fpu);
extern long elf_aux_hwcap; extern long elf_aux_hwcap;
#define ELF_HWCAP (elf_aux_hwcap) #define ELF_HWCAP (elf_aux_hwcap)
#define SET_PERSONALITY(ex) do ; while(0) #define SET_PERSONALITY(ex) do {} while(0)
#endif #endif
...@@ -77,7 +77,7 @@ static inline void trap_myself(void) ...@@ -77,7 +77,7 @@ static inline void trap_myself(void)
__asm("int3"); __asm("int3");
} }
static void inline remap_stack_and_trap(void) static inline void remap_stack_and_trap(void)
{ {
__asm__ volatile ( __asm__ volatile (
"movl %%esp,%%ebx ;" "movl %%esp,%%ebx ;"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment