On Thu, May 09, 2013 at 01:55:04PM +1000, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the final tree, today's linux-next build (arm defconfig)
> produced this warning:
> 
> ipc/shm.c: In function 'newseg':
> ipc/shm.c:494:18: warning: unused variable 'hs' [-Wunused-variable]
> 
> Introduced by commit af73e4d9506d ("hugetlbfs: fix mmap failure in
> unaligned size request") in Linus' tree.
> 
> Did the "[a...@linux-foundation.org: fix warning when
> CONFIG_HUGETLB_PAGE=n]" part get dropped?  Or was that something else?

In my original post, 2 auto variables hs were used both in newseg() and
sys_mmap_pgoff(), and Andrew fixed only one in sys_mmap_pgoff().
hs remains in newseg(), so it fires warning in linux-next.
Hours ago Li suggested another fix of af73e4d9506d and it implicitly
fixes this warning.
http://marc.info/?l=linux-kernel&m=136808335431220&w=2

Thanks,
Naoya
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to