From owner-svn-src-head@freebsd.org Tue Sep 3 14:07:29 2019 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9CE52DD539; Tue, 3 Sep 2019 14:07:08 +0000 (UTC) (envelope-from yuripv@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46N80C6qN5z4QGn; Tue, 3 Sep 2019 14:07:07 +0000 (UTC) (envelope-from yuripv@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1452) id 8D1701B10E; Tue, 3 Sep 2019 14:06:28 +0000 (UTC) X-Original-To: yuripv@localmail.freebsd.org Delivered-To: yuripv@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 52D5E15DB0; Fri, 19 Apr 2019 12:07:11 +0000 (UTC) (envelope-from owner-src-committers@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DDF7731CA; Fri, 19 Apr 2019 12:07:10 +0000 (UTC) (envelope-from owner-src-committers@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 538) id 1251115D6A; Fri, 19 Apr 2019 12:07:10 +0000 (UTC) Delivered-To: src-committers@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 1CD1A15D67; Fri, 19 Apr 2019 12:07:07 +0000 (UTC) (envelope-from oshogbo.vx@gmail.com) Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 35E41731C5; Fri, 19 Apr 2019 12:07:06 +0000 (UTC) (envelope-from oshogbo.vx@gmail.com) Received: by mail-lf1-x12c.google.com with SMTP id i68so3918365lfi.10; Fri, 19 Apr 2019 05:07:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=jjqHxxVBIYetT13OgJJ0bw1na2r4Sk4JvFTnIF3BDLE=; b=eZd6ewxwvnGEaoNmTbv9rNK33dke5joIlLcW8P0OJi7hrmT9hsPKztkgMxoiM4B27X wrYvpfljJy8PGpfr7CsKcURTR7KdA2aYFqzCRo1tYup+rcMdiepIPb6ijYn2NdITzBdq E1RsW8vcMfLo7kHkfoMw97WJJjgx56wChrv8MjlQjio/zJwdTzB1qfBdwejFK/7OhMTp 4UDZFhytKre+LrxhRa8uIZkizWMItTRtTWSi4XSeXl3NeoDqoxnbEjR3C4GLzfYNbI8b GTRRG7of6hhDatkGjfZxOUj9QIRP9yGQBxPMfjUOw5rrgTnuqFT+icxVLx37T6DFp0n9 kTrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=jjqHxxVBIYetT13OgJJ0bw1na2r4Sk4JvFTnIF3BDLE=; b=bM7kID1CbhHm+ndxTuQA+07HXvmAxxXvpA0zQD/FgeXZRrYWYVnmenh7s4sT4VUnhS LXWGFOE/jSB9PyIKfVBcEI6L7gjEID3AWDp5D4Sne2aGsZS1DRylnkUW/aN8JsCwcoA6 q5oi3EkBiq5mCrwoRbAHCoKpKVa35WIpbnLExk9y1n7bjFaX8qNs7dm5EV9ZyqtkNiBK 9TcuXoUCdCQ9tDr+hDP6eaUWL5Qx3VjbtgnHmA2LasM4Wkl2RnJucbcgSnmO8xswOL0F up2xdhTcjF+XGd2jaL+L4D/Iy4FNHIvBGAKVBrGOoe8buajWiQhBL0IjHJYsWqLcBzXU V1lQ== X-Gm-Message-State: APjAAAU9BMtj29XOmraILMqRKtIGPq9ejBP6XqpBjvESB3vb0Kdk/B1U WZBVgxdgtd6YbnfScgTCYhzqeYZYvlc= X-Google-Smtp-Source: APXvYqx/cqYCL902SrTBQ6pyxX70aeAgf84kUmhYtDFDeZc4Ji+tjsdy6G7laJPS/cG+Pu/aV+x+kw== X-Received: by 2002:a19:8017:: with SMTP id b23mr2223359lfd.12.1555675622770; Fri, 19 Apr 2019 05:07:02 -0700 (PDT) Received: from jarvis ([77.79.224.226]) by smtp.gmail.com with ESMTPSA id d80sm414629lfd.90.2019.04.19.05.07.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Apr 2019 05:07:01 -0700 (PDT) From: Mariusz Zaborski To: Adrian Chadd Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r346322 - head/lib/libcasper/services/cap_fileargs Message-ID: <20190419120625.GA2747@jarvis> References: <201904171658.x3HGwckd080598@repo.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7AUc2qLy4jB3hD7Z" Content-Disposition: inline In-Reply-To: <201904171658.x3HGwckd080598@repo.freebsd.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk X-Loop: FreeBSD.org Sender: owner-src-committers@freebsd.org X-Rspamd-Queue-Id: 4DDF7731CA X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.98)[-0.977,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] Status: O X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.29 List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Tue, 03 Sep 2019 14:07:29 -0000 X-Original-Date: Fri, 19 Apr 2019 14:06:25 +0200 X-List-Received-Date: Tue, 03 Sep 2019 14:07:29 -0000 --7AUc2qLy4jB3hD7Z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 17, 2019 at 04:58:38PM +0000, Adrian Chadd wrote: > Author: adrian > Date: Wed Apr 17 16:58:38 2019 > New Revision: 346322 > URL: https://svnweb.freebsd.org/changeset/base/346322 >=20 > Log: > [casper] fix compilation when casper is disabled. > =20 > This triggers an error in gcc-mips 6.4.0 complaining about unused argum= ents. > =20 > Tested: > =20 > * compiled/run on mips32; nothing complained. >=20 > Modified: > head/lib/libcasper/services/cap_fileargs/cap_fileargs.h >=20 > Modified: head/lib/libcasper/services/cap_fileargs/cap_fileargs.h > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/lib/libcasper/services/cap_fileargs/cap_fileargs.h Wed Apr 17 16= :45:42 2019 (r346321) > +++ head/lib/libcasper/services/cap_fileargs/cap_fileargs.h Wed Apr 17 16= :58:38 2019 (r346322) > @@ -108,8 +108,12 @@ fileargs_cinitnv(cap_channel_t *cas __unused, nvlist= _t > lstat(name, sb) > #define fileargs_open(fa, name) \ > open(name, fa->fa_flags, fa->fa_mode) > -#define fileargs_fopen(fa, name, mode) \ > - fopen(name, mode) > +static inline > +FILE *fileargs_fopen(fileargs_t *fa, const char *name, const char *mode) > +{ > + (void) fa; __unused is not good enough? > + return (fopen(name, mode)); > +} > #define fileargs_free(fa) (free(fa)) > #endif > =20 >=20 --=20 Mariusz Zaborski oshogbo//vx | http://oshogbo.vexillium.org FreeBSD committer | https://freebsd.org Software developer | http://wheelsystems.com If it's not broken, let's fix it till it is!!1 --7AUc2qLy4jB3hD7Z Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEkD1x0xkJXVVY1Gwf38KEGuLGxWQFAly5ub4ACgkQ38KEGuLG xWSAyxAAoDpfjabhuC7jWIoSj9d7qswZRdwG29tXSMQmpR5XXeNnIqH/5Avgji5m 6AFtksNmD6nquVw/hFQmPZ5Lx0//8LSc4iBOuSadunIiTrR2MwSsr7SQ3PTD077q o+j4OHNnMqJpiwht6FvoC5iXx9sqsI52eoAo5MAq/1FhiAPkzm4VxHyxehZHM6Rq X8SbxG0KClFOh0umt/WF0RZN8aMAnMdqK+wQEkgbgqa6PNQ7sI4NAnDem0+pwNL/ SsD/2h4JXP+g6IuHEJUYXRkZ3vobc5ovd/su+IzqBywSjQ3wraGwiEq75NKIMrDh doi9NRdyKHKdKXI/m2CJ2AtVpMCpnSJ+b0McpsIJ8l04ElNMxXj8Uw5vlUK9cTR1 0B0E5Z4/15GPSwcD1/CzpIXP1oH3GkXj9wyJuYv8D94r5Xpw04M6ECKydEvUHfVS j7Z0mA7IxaLC5+wYVm8SSfcSyj48x6JLRMGfDrnFfyEzrE0Qy+hUvV9eJEedc5xn kD651vNchdisLu9INXlhqke5RIlVvea+083JERVsUDkLDcCFoURqk93wyGIMBUNs mIm/4SaDSgh5p0BNqUw/BM+R4AxLqCyfUFlAaJbJa5jPjhQduGKD2LdZEtBGtrRA RtTUu0iWDCF3tkyWIjmo+S2H+34kP5fRQv2E5rna449v0louZdY= =dVXk -----END PGP SIGNATURE----- --7AUc2qLy4jB3hD7Z--