Re: Patches for -stable to improve support for recent gcc versions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 30, 2018 at 3:31 PM, Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
> On 05/30/2018 02:27 AM, Arnd Bergmann wrote:
>>
>> On Mon, May 28, 2018 at 3:48 PM, Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
>>>
>>> Hi Greg,
>>>
>>> please apply the following patches.
>>>
>>> to v4.4-stable and older:
>>>
>>> cb36af3e48be sh: New gcc support
>>>          to support gcc 8.1.0 for sh
>>>
>>> to v4.9-stable and older:
>>>
>>> 009615ab7fd4 USB: serial: cp210x: use tcflag_t to fix incompatible
>>> pointer
>>> type
>>>          to support gcc 7.3.0 for sparc
>>>
>>> Copying Arnd - I can't get sparc images to compile with gcc 8.1.0. Any
>>> idea
>>
>>
>> No, sorry. I've just tried it again and couldn't find any problems with my
>> gcc-8.1 binaries building either sparc32_defconfig or sparc64_defconfig.
>>
>
> Interesting. With sparc64-linux-gcc (GCC) 8.1.0 from kernel.org:
>
> make ARCH=sparc64 CROSS_COMPILE=sparc64-linux- allmodconfig
> make ARCH=sparc64 CROSS_COMPILE=sparc64-linux-
> arch/sparc/kernel/sys_sparc_64.o
>
> results in:
>
> ./include/linux/syscalls.h:233:18: error:
>         'sys_sparc64_personality' alias between functions of incompatible
> types
>         'long int(long unsigned int)' and 'long int(long int)'
> [-Werror=attribute-alias]
>
> and many more.
>
> Presumably this is due to
>
> arch/sparc/kernel/Makefile:ccflags-y := -Werror

Right, I have disabled that warning locally, so I didn't get
it despite the -Werror.

       Arnd



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux