Re: [PATCH] spi: rockchip: avoid objtool warning

2021-03-01 Thread Mark Brown
On Thu, 25 Feb 2021 13:55:34 +0100, Arnd Bergmann wrote: > Building this file with clang leads to a an unreachable code path > causing a warning from objtool: > > drivers/spi/spi-rockchip.o: warning: objtool: > rockchip_spi_transfer_one()+0x2e0: sibling call from callable instruction > with

Re: [PATCH] spi: rockchip: avoid objtool warning

2021-02-26 Thread Arnd Bergmann
On Fri, Feb 26, 2021 at 12:05 PM 'Pratyush Yadav' via Clang Built Linux wrote: > On 26/02/21 10:49AM, Arnd Bergmann wrote: > > On Fri, Feb 26, 2021 at 9:16 AM 'Pratyush Yadav' via Clang Built Linux > > wrote: > > Returning an error code from this function (along with the dev_warn() or >

Re: [PATCH] spi: rockchip: avoid objtool warning

2021-02-26 Thread Pratyush Yadav
On 26/02/21 10:49AM, Arnd Bergmann wrote: > On Fri, Feb 26, 2021 at 9:16 AM 'Pratyush Yadav' via Clang Built Linux > wrote: > > > > Hi, > > > > On 25/02/21 01:55PM, Arnd Bergmann wrote: > > > From: Arnd Bergmann > > > > > > Building this file with clang leads to a an unreachable code path > > >

Re: [PATCH] spi: rockchip: avoid objtool warning

2021-02-26 Thread Arnd Bergmann
On Fri, Feb 26, 2021 at 9:16 AM 'Pratyush Yadav' via Clang Built Linux wrote: > > Hi, > > On 25/02/21 01:55PM, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > Building this file with clang leads to a an unreachable code path > > causing a warning from objtool: > > > >

Re: [PATCH] spi: rockchip: avoid objtool warning

2021-02-26 Thread Pratyush Yadav
Hi, On 25/02/21 01:55PM, Arnd Bergmann wrote: > From: Arnd Bergmann > > Building this file with clang leads to a an unreachable code path > causing a warning from objtool: > > drivers/spi/spi-rockchip.o: warning: objtool: > rockchip_spi_transfer_one()+0x2e0: sibling call from callable

Re: [PATCH] spi: rockchip: avoid objtool warning

2021-02-25 Thread Heiko Stübner
Am Donnerstag, 25. Februar 2021, 13:55:34 CET schrieb Arnd Bergmann: > From: Arnd Bergmann > > Building this file with clang leads to a an unreachable code path > causing a warning from objtool: > > drivers/spi/spi-rockchip.o: warning: objtool: > rockchip_spi_transfer_one()+0x2e0: sibling call

Re: [PATCH] spi: rockchip: avoid objtool warning

2021-02-25 Thread Nick Desaulniers
On Thu, Feb 25, 2021 at 4:55 AM Arnd Bergmann wrote: > > From: Arnd Bergmann > > Building this file with clang leads to a an unreachable code path > causing a warning from objtool: > > drivers/spi/spi-rockchip.o: warning: objtool: > rockchip_spi_transfer_one()+0x2e0: sibling call from callable

Re: [PATCH] spi: rockchip: avoid objtool warning

2021-02-25 Thread Emil Renner Berthing
On Thu, 25 Feb 2021 at 13:55, Arnd Bergmann wrote: > > From: Arnd Bergmann > > Building this file with clang leads to a an unreachable code path > causing a warning from objtool: > > drivers/spi/spi-rockchip.o: warning: objtool: > rockchip_spi_transfer_one()+0x2e0: sibling call from callable

[PATCH] spi: rockchip: avoid objtool warning

2021-02-25 Thread Arnd Bergmann
From: Arnd Bergmann Building this file with clang leads to a an unreachable code path causing a warning from objtool: drivers/spi/spi-rockchip.o: warning: objtool: rockchip_spi_transfer_one()+0x2e0: sibling call from callable instruction with modified stack frame Use BUG() instead of