Message ID | CAKwvOdnGDHn+Y+g5AsKvOFiuF7iVAJ8+x53SgWxH9ejqEZwY9w@mail.gmail.com |
---|---|
State | New |
Headers | show |
Series | 5.4 and 4.19 warning fix for LLVM_IAS | expand |
On Tue, Dec 08, 2020 at 04:43:34PM -0800, Nick Desaulniers wrote: > Dear stable kernel maintainers, > (Woah, two in one day; have I exceeded my limit?) > > Please consider the attached patch for 5.4 and 4.19 for commit > b8a9092330da ("Kbuild: do not emit debug info for assembly with > LLVM_IAS=1"), which fixes a significant number of warnings under arch/ > when assembling a kernel with Clang. I also need a version of this for 5.9.y before we can take this for older kernels. Can you provide that as well? thanks, greg k-h
On Wed, Dec 9, 2020 at 2:58 AM Greg KH <gregkh@linuxfoundation.org> wrote: > > On Tue, Dec 08, 2020 at 04:43:34PM -0800, Nick Desaulniers wrote: > > Dear stable kernel maintainers, > > (Woah, two in one day; have I exceeded my limit?) > > > > Please consider the attached patch for 5.4 and 4.19 for commit > > b8a9092330da ("Kbuild: do not emit debug info for assembly with > > LLVM_IAS=1"), which fixes a significant number of warnings under arch/ > > when assembling a kernel with Clang. > > I also need a version of this for 5.9.y before we can take this for > older kernels. Can you provide that as well? Yes, apologies. It's similar to the 5.4.y patch, but with a shorter set of conflicts as noted in the commit message. Attached. -- Thanks, ~Nick Desaulniers
On Thu, Dec 10, 2020 at 01:21:00PM -0800, Nick Desaulniers wrote: > On Wed, Dec 9, 2020 at 2:58 AM Greg KH <gregkh@linuxfoundation.org> wrote: > > > > On Tue, Dec 08, 2020 at 04:43:34PM -0800, Nick Desaulniers wrote: > > > Dear stable kernel maintainers, > > > (Woah, two in one day; have I exceeded my limit?) > > > > > > Please consider the attached patch for 5.4 and 4.19 for commit > > > b8a9092330da ("Kbuild: do not emit debug info for assembly with > > > LLVM_IAS=1"), which fixes a significant number of warnings under arch/ > > > when assembling a kernel with Clang. > > > > I also need a version of this for 5.9.y before we can take this for > > older kernels. Can you provide that as well? > > Yes, apologies. It's similar to the 5.4.y patch, but with a shorter > set of conflicts as noted in the commit message. Attached. > -- > Thanks, > ~Nick Desaulniers thanks, all now applied. greg k-h
diff --git a/Makefile b/Makefile index e520dee34490..f8c766b35b71 100644 --- a/Makefile +++ b/Makefile @@ -802,8 +802,11 @@ DEBUG_CFLAGS += -gsplit-dwarf else DEBUG_CFLAGS += -g endif +ifneq ($(LLVM_IAS),1) KBUILD_AFLAGS += -Wa,-gdwarf-2 endif +endif + ifdef CONFIG_DEBUG_INFO_DWARF4 DEBUG_CFLAGS += -gdwarf-4 endif