Hi Wang, On Tue, Dec 16, 2014 at 02:19:06PM +0800, Wang Nan wrote: > Commit 85c116a6c introduces asprintf() call and matches '%ld' to a u64 > argument, which is incorrect on ARM: > > CC /home/wn/util/srcline.o > util/srcline.c: In function 'get_srcline': > util/srcline.c:297:6: error: format '%ld' expects argument of type 'long > int', but argument 4 has type 'u64' [-Werror=format] > cc1: all warnings being treated as errors > make[1]: *** [/home/wn/util/srcline.o] Error 1 > > In addition, all users of get_srcline() use u64 addr, and libbfd > also use 64 bit bfd_vma as address. This patch also fix prototype > of get_srcline() and addr2line() to use u64 addr instead of > unsigned long. > > Signed-off-by: Wang Nan <wangn...@huawei.com>
Acked-by: Namhyung Kim <namhy...@kernel.org> Thanks, Namhyung -- 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/