Re: [PATCH] um: clang: Strip out -mno-global-merge from USER_CFLAGS

2022-03-03 Thread Nathan Chancellor
On Thu, Mar 03, 2022 at 10:04:28AM -0800, Kees Cook wrote: > On Thu, Mar 03, 2022 at 10:30:47AM -0700, Nathan Chancellor wrote: > > Hi David, > > > > On Thu, Mar 03, 2022 at 05:06:42PM +0800, David Gow wrote: > > > The things built with USER_CFLAGS don't seem to recognise it as a > > > compiler op

Re: [PATCH] um: clang: Strip out -mno-global-merge from USER_CFLAGS

2022-03-03 Thread Nathan Chancellor
Hi David, On Thu, Mar 03, 2022 at 05:06:42PM +0800, David Gow wrote: > The things built with USER_CFLAGS don't seem to recognise it as a > compiler option, and print a warning: > clang: warning: argument unused during compilation: '-mno-global-merge' > [-Wunused-command-line-argument] > > Fixes:

Re: [PATCH V3 05/30] arm64/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT

2022-03-03 Thread Catalin Marinas
Hi Anshuman, On Mon, Feb 28, 2022 at 04:17:28PM +0530, Anshuman Khandual wrote: > +static inline pgprot_t __vm_get_page_prot(unsigned long vm_flags) > +{ > + switch (vm_flags & (VM_READ | VM_WRITE | VM_EXEC | VM_SHARED)) { > + case VM_NONE: > + return PAGE_NONE; > + case VM

Re: [PATCH v3 7/7] UAPI: Introduce KUnit userspace compatibility

2022-03-03 Thread Greg KH
On Thu, Mar 03, 2022 at 04:27:13PM +0800, David Gow wrote: > On Mon, Feb 28, 2022 at 2:45 AM Kees Cook wrote: > > diff --git a/include/uapi/misc/kunit.h b/include/uapi/misc/kunit.h > > new file mode 100644 > > index ..afdffda583ae > > --- /dev/null > > +++ b/include/uapi/misc/kunit.h >