r310188: kernel build failure due to mlx4_ib_sysfs.c:90:22: error: format specifies type 'unsigned long long
O. Hartmann
ohartmann at walstatt.org
Sat Dec 17 17:48:14 UTC 2016
Am Sat, 17 Dec 2016 18:27:18 +0100
Dimitry Andric <dim at FreeBSD.org> schrieb:
> On 17 Dec 2016, at 12:46, O. Hartmann <ohartmann at walstatt.org> wrote:
> >
> > Recent kernel source reject to build:
> >
> > [...]
> > --- all_subdir_mlx4ib ---
> > --- mlx4_ib_sysfs.o ---
> > /usr/src/sys/modules/mlx4ib/../../dev/mlx4/mlx4_ib/mlx4_ib_sysfs.c:90:22: error:
> > format specifies type 'unsigned long long *' but the argument has type 'u64 *' (aka
> > 'unsigned long *') [-Werror,-Wformat] sscanf(buf, "%llx", &sysadmin_ag_val); ~~~~
> > ^~~~~~~~~~~~~~~~ %lx
> > 1 error generated.
>
> Ha, my r310171, which enabled sscanf() format checking, is already
> working, it seems! I built kernels for both i386 and amd64 without
> problems, but you may be using some non-default module or settings which
> trigger this warning.
>
> For which arch are you building here, and do you have any particular
> build settings which might influence this?
>
> -Dimitry
>
Building system is:
FreeBSD 12.0-CURRENT #74 r310129: Fri Dec 16 00:33:09 CET 2016
/etc/rc.conf is:
#
CPUTYPE?= native
#
CFLAGS+= -O3
COPTFLAGS+= -O3
#
#CXXFLAGS+= -std=c++11
#
WITH_CLANG_FULL= YES
WITH_CLANG_EXTRAS= YES
WITH_LLDB= YES
#
WITH_IDEA= YES
#
#WITH_BSD_GREP= YES
#
WITH_OFED= YES
WITH_NAND= YES
#
#WITH_CTF= YES
#
WITH_SVN= YES
#
#WITH_META_MODE= YES
#
#WITH_SORT_THREADS= YES
#
MALLOC_PRODUCTION= YES
#
WITHOUT_ASSERT_DEBUG= YES
#
WITHOUT_DEBUG_FILES= YES
--
O. Hartmann
Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 313 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20161217/a5696109/attachment.sig>
More information about the freebsd-current
mailing list