1. 22 May, 2020 3 commits
  2. 27 Apr, 2020 2 commits
  3. 15 Apr, 2020 1 commit
  4. 09 Apr, 2020 3 commits
  5. 28 Mar, 2020 1 commit
  6. 23 Mar, 2020 2 commits
    • Vincenzo Frascino's avatar
      vdso: Fix clocksource.h macro detection · ca214e2c
      Vincenzo Frascino authored
      CONFIG_GENERIC_GETTIMEOFDAY is a sufficient condition to verify if an
      architecture implements asm/vdso/clocksource.h or not. The current
      implementation wrongly assumes that the same is true for the config
      option CONFIG_ARCH_CLOCKSOURCE_DATA.
      
      This results in a series of build errors on ia64/sparc/sparc64 like this:
      
        In file included from ./include/linux/clocksource.h:31,
                         from ./include/linux/clockchips.h:14,
                         from ./include/linux/tick.h:8,
                         from fs/proc/stat.c:15:
        ./include/vdso/clocksource.h:9:10: fatal error: asm/vdso/clocksource.h:
        No such file or directory
            9 | #include <asm/vdso/clocksource.h>
              |          ^~~~~~~~~~~~~~~~~~~~~~~~
      
      Fix the issue removing the unneeded config condition.
      
      Fixes: 14ee2ac6 ("linux/clocksource.h: Extract common header for vDSO")
      Reported-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: default avatarVincenzo Frascino <vincenzo.frascino@arm.com>
      Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
      Link: https://lkml.kernel.org/r/20200323133920.46546-1-vincenzo.frascino@arm.com
      ca214e2c
    • Vincenzo Frascino's avatar
      um: Fix header inclusion · 1c1a18b0
      Vincenzo Frascino authored
      User Mode Linux is a flavor of x86 that from the vDSO prospective always
      falls back on system calls. This implies that it does not require any
      of the unified vDSO definitions and their inclusion causes side effects
      like this:
      
        In file included from include/vdso/processor.h:10:0,
                            from include/vdso/datapage.h:17,
                            from arch/x86/include/asm/vgtod.h:7,
                            from arch/x86/um/../kernel/sys_ia32.c:49:
        >> arch/x86/include/asm/vdso/processor.h:11:29: error: redefinition of 'rep_nop'
            static __always_inline void rep_nop(void)
                                        ^~~~~~~
           In file included from include/linux/rcupdate.h:30:0,
                            from include/linux/rculist.h:11,
                            from include/linux/pid.h:5,
                            from include/linux/sched.h:14,
                            from arch/x86/um/../kernel/sys_ia32.c:25:
           arch/x86/um/asm/processor.h:24:20: note: previous definition of 'rep_nop' was here
            static inline void rep_nop(void)
      
      Make sure that the unnecessary headers are not included when um is built
      to address the problem.
      
      Fixes: abc22418 ("x86/vdso: Enable x86 to use common headers")
      Reported-by: default avatarkbuild test robot <lkp@intel.com>
      Signed-off-by: default avatarVincenzo Frascino <vincenzo.frascino@arm.com>
      Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
      Link: https://lkml.kernel.org/r/20200323124109.7104-1-vincenzo.frascino@arm.com
      1c1a18b0
  7. 21 Mar, 2020 26 commits
  8. 19 Mar, 2020 2 commits