Re: [PATCH v2] arch/sparc: fix unused variable warning
Alex Shi <[email protected]>
| Newsgroups | org.kernel.vger.sparclinux,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <CAJy-Amkx=EgsyZq3pdpg8Ucgb_=07evL-tSigZw5T=_F1EmT6g@mail.gmail.com> |
Andreas Larsson <[email protected]> 于2026年1月27日周二 00:44写道: > > On 2026-01-07 11:41, [email protected] wrote: > > From: Alex Shi <[email protected]> > > > > arch/sparc/mm/init_64.c: In function 'arch_hugetlb_valid_size': > > arch/sparc/mm/init_64.c:361:24: warning: variable 'hv_pgsz_idx' set but not used [-Wunused-but-set-variable] > > 361 | unsigned short hv_pgsz_idx; > > | ^~~~~~~~~~~ > > > > Reported-by: kernel test robot <[email protected]> > > Did the kernel test robot also suggest a "Closes:" line as well? If so, > please also add that. No, I found this issue in a lkp report for my testing code on sparc. In that report, lkp just focus on my another issue. > > > Signed-off-by: Alex Shi <[email protected]> > > Cc: [email protected] > > Cc: Matthew Wilcox <[email protected]> > > Cc: Lorenzo Stoakes <[email protected]> > > Cc: Qi Zheng <[email protected]> > > Cc: Dave Hansen <[email protected]> > > Cc: Zi Yan <[email protected]> > > Cc: Kevin Brodsky <[email protected]> > > Cc: Mike Rapoport <[email protected]> > > Cc: Andrew Morton <[email protected]> > > Cc: Andreas Larsson <[email protected]> > > Cc: David S. Miller <[email protected]> > > --- > > It's helpful if you put changes between versions in between --- lines > here. Thanks for suggestion, will do it in next version. Thanks Alex