Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Aug 2017 13:10:13 +0000
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        Kirk McKusick <mckusick@FreeBSD.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   Re: svn commit: r322513 - stable/10/sys/geom/journal
Message-ID:  <20170815131013.GA29681@freefall.freebsd.org>
In-Reply-To: <201708141912.v7EJCqsc017835@repo.freebsd.org>
References:  <201708141912.v7EJCqsc017835@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 14, 2017 at 19:12:52 +0000, Kirk McKusick wrote:
> Author: mckusick
> Date: Mon Aug 14 19:12:51 2017
> New Revision: 322513
> URL: https://svnweb.freebsd.org/changeset/base/322513
> 
> Log:
>   MFC of 322178:
>   
>   Bug 198500 reports bad sysctl values for gjournal cache limit.
>   
>   PR: 198500
>   Submitted by: Dr. Andreas Longwitz <longwitz@incore.de>
>   Reported by: Eugene Grosbein
>   Discussed with: kib
>   Approved by: re (marius)
> 
> Modified:
>   stable/10/sys/geom/journal/g_journal.c
> Directory Properties:
>   stable/10/   (props changed)

This change seems breaking build:

/usr/src/sys/modules/geom/geom_journal/../../../geom/journal/g_journal.c:136:1: error: incompatible pointer types initializing 'int *' with an expression of type 'u_long *' (aka 'unsigned long *') [-Werror,-Wincompatible-pointer-types]
TUNABLE_INT("kern.geom.journal.cache.limit", &g_journal_cache_limit);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@/sys/kernel.h:287:3: note: expanded from macro 'TUNABLE_INT'
                (var),                                          \
                ^~~~~
/usr/src/sys/modules/geom/geom_journal/../../../geom/journal/g_journal.c:178:14: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (cswitch < 0 || cswitch > 100)
            ~~~~~~~ ^ ~

Could you help check this one?
https://ci.freebsd.org/job/FreeBSD-stable-10-amd64-build/1157/console

Thanks,
Li-Wen

-- 
Li-Wen Hsu <lwhsu@FreeBSD.org>
https://lwhsu.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170815131013.GA29681>