Re: [PATCH v3 10/14] x86: prefer __section from compiler_attributes.h

2019-08-29 Thread Miguel Ojeda
On Thu, Aug 29, 2019 at 4:14 PM Miguel Ojeda wrote: > > On Thu, Aug 29, 2019 at 12:56 AM Nick Desaulniers > wrote: > > > > diff --git a/arch/x86/include/asm/iommu_table.h > > b/arch/x86/include/asm/iommu_table.h > > index 1fb3fd1a83c2..7d190710eb92 100644 > > --- a/arch/x86/include/asm/iommu_tab

Re: [PATCH v3 10/14] x86: prefer __section from compiler_attributes.h

2019-08-29 Thread Miguel Ojeda
On Thu, Aug 29, 2019 at 12:56 AM Nick Desaulniers wrote: > > diff --git a/arch/x86/include/asm/iommu_table.h > b/arch/x86/include/asm/iommu_table.h > index 1fb3fd1a83c2..7d190710eb92 100644 > --- a/arch/x86/include/asm/iommu_table.h > +++ b/arch/x86/include/asm/iommu_table.h > @@ -50,9 +50,8 @@ s

[PATCH v3 10/14] x86: prefer __section from compiler_attributes.h

2019-08-28 Thread Nick Desaulniers
GCC unescapes escaped string section names while Clang does not. Because __section uses the `#` stringification operator for the section name, it doesn't need to be escaped. Instead, we should: 1. Prefer __section(.section_name_no_quotes). 2. Only use __attribute__((__section__(".section"))) when