Re: [PATCH v2] mips: lib: uncached: fix non-standard usage of variable 'sp'

2020-12-19 Thread Naresh Kamboju
On Mon, 14 Dec 2020 at 21:05, Thomas Bogendoerfer wrote: > > On Fri, Dec 11, 2020 at 11:24:37AM +0100, Anders Roxell wrote: > > When building mips tinyconfig with clang the following warning show up: > > > > arch/mips/lib/uncached.c:45:6: warning: variable 'sp' is uninitialized when > > used

Re: [PATCH v2] mips: lib: uncached: fix non-standard usage of variable 'sp'

2020-12-14 Thread Thomas Bogendoerfer
On Fri, Dec 11, 2020 at 11:24:37AM +0100, Anders Roxell wrote: > When building mips tinyconfig with clang the following warning show up: > > arch/mips/lib/uncached.c:45:6: warning: variable 'sp' is uninitialized when > used here [-Wuninitialized] > if (sp >= (long)CKSEG0 && sp <

Re: [PATCH v2] mips: lib: uncached: fix non-standard usage of variable 'sp'

2020-12-11 Thread Nathan Chancellor
On Fri, Dec 11, 2020 at 07:54:07PM +, Maciej W. Rozycki wrote: > On Fri, 11 Dec 2020, Anders Roxell wrote: > > > diff --git a/arch/mips/lib/uncached.c b/arch/mips/lib/uncached.c > > index 09d5deea747f..f80a67c092b6 100644 > > --- a/arch/mips/lib/uncached.c > > +++ b/arch/mips/lib/uncached.c >

Re: [PATCH v2] mips: lib: uncached: fix non-standard usage of variable 'sp'

2020-12-11 Thread Maciej W. Rozycki
On Fri, 11 Dec 2020, Anders Roxell wrote: > diff --git a/arch/mips/lib/uncached.c b/arch/mips/lib/uncached.c > index 09d5deea747f..f80a67c092b6 100644 > --- a/arch/mips/lib/uncached.c > +++ b/arch/mips/lib/uncached.c > @@ -37,10 +37,12 @@ > */ > unsigned long run_uncached(void *func) > { > -

Re: [PATCH v2] mips: lib: uncached: fix non-standard usage of variable 'sp'

2020-12-11 Thread Nick Desaulniers
On Fri, Dec 11, 2020 at 2:24 AM Anders Roxell wrote: > > When building mips tinyconfig with clang the following warning show up: > > arch/mips/lib/uncached.c:45:6: warning: variable 'sp' is uninitialized when > used here [-Wuninitialized] > if (sp >= (long)CKSEG0 && sp < (long)CKSEG2) >