Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2325716ybl; Thu, 9 Jan 2020 10:45:01 -0800 (PST) X-Google-Smtp-Source: APXvYqxdrLrePGkHXTGRedjOSXDF+WA8biD7oJG9qAvs4QzeOXqXlIq7s8rIf8HzFC60bwt9CDWw X-Received: by 2002:a05:6830:2116:: with SMTP id i22mr10137780otc.0.1578595501395; Thu, 09 Jan 2020 10:45:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578595501; cv=none; d=google.com; s=arc-20160816; b=HxzHM63vGygLIWoP3Xuku84L3YyyEgr/EEjs219mi9uVAZjXLH9HCeN6zJLjEuopF1 tZOr/BJL1G61KzTnUwSwjOrNbYvHHopS/gG7ALf7UoP6To0FMPIyVQV+yT9gjT/oGEf+ F8NRhanWWH7SHuaG9DgDMiDN6lAacHO0xLDHunh+q1sMTXZr81FavvOYiatwAoNIBQ+V C0BcJN+zg90OCibDlrkUlb9bEc8XssZmVPe3FKjf51mdw9r4KqTEKsJnt8OBaowbjpdl A8+11cnbROwR6x15PoT9YAdyPoITLkWRfW9uIaed/dOuHlm/TLv31DMYqo7HYA9IPVD5 tSBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=ngmA26M2hKVkT6Bn1Bfh8CbRqBM+Rm+OJlQ2g5on+NM=; b=Ze42rZfTcdY9Dxgs2yLX15V3x061iRtTo2AbSvXn86bP+7yxugq8XJFLJ2r6JyVlJ0 jQ2MSGJt3+8X4PXGX+e6PR2OW+G7WiZoqHg4PE40YQJqJwguGxX4bmHnXL9OcZnA0yV/ msMeqJh5ebLFioDOTEFbPvz3d+iGLYZREvqVJJz/JQKIC9jqMX06VPHKvcLc2+0WVZi3 d+LOUREuxS8YJinQFuX9R0DTM8NhUdPqRoLh7/O9Lkvu0B6mKh05edfqQtmQCtfE6Zcj PhwWjUl15HpPmrPqJ8e9CQ4HRgV9olqoU7VhUVvhvHwR4X7IpkUcsJM2qFYlvmCopHVq OypA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BEoZneG3; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z14si4657303oth.15.2020.01.09.10.44.39; Thu, 09 Jan 2020 10:45:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BEoZneG3; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730025AbgAIPKL (ORCPT + 99 others); Thu, 9 Jan 2020 10:10:11 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:40561 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729483AbgAIPKK (ORCPT ); Thu, 9 Jan 2020 10:10:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578582610; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ngmA26M2hKVkT6Bn1Bfh8CbRqBM+Rm+OJlQ2g5on+NM=; b=BEoZneG3df5fnrhbCXp6TNkPZ8cP9qzXifipadhpqh0uE1Wr4cyuCWjaqeqvKJe10f69fb oCARDJzkJ1MZZMyMcgbfKL5rfgFkBmWp4MrKfkbPCWXLqBjcq+Y8hm/eAlGgcdlMvfOOOQ D0NtCBg+JsB+7zx8z+qFpM7cLDcd5Pk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-131-y42Sqch3PfiFmH76jCj8xw-1; Thu, 09 Jan 2020 10:10:05 -0500 X-MC-Unique: y42Sqch3PfiFmH76jCj8xw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B70128018CD; Thu, 9 Jan 2020 15:10:04 +0000 (UTC) Received: from madhat.boston.devel.redhat.com (madhat.boston.devel.redhat.com [10.19.60.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id 47EE810027A9; Thu, 9 Jan 2020 15:10:04 +0000 (UTC) Subject: Re: [nfs-utils PATCH 0/7] silence some warning in rpcgen To: Giulio Benetti , linux-nfs@vger.kernel.org References: <20200103215039.27471-1-giulio.benetti@benettiengineering.com> <11af1233-d6e1-3952-475d-306dc5fefc06@RedHat.com> <38aa6cba-91e4-f1ec-7978-45ba4b4cf4ee@benettiengineering.com> From: Steve Dickson Message-ID: <6ba97db1-bab3-95c5-9472-bde7865b8a4c@RedHat.com> Date: Thu, 9 Jan 2020 10:10:03 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <38aa6cba-91e4-f1ec-7978-45ba4b4cf4ee@benettiengineering.com> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Content-Transfer-Encoding: quoted-printable Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 1/9/20 9:00 AM, Giulio Benetti wrote: > On 1/7/20 8:06 PM, Steve Dickson wrote: >> >> >> On 1/3/20 4:50 PM, Giulio Benetti wrote: >>> Since I'm trying to bump version of nfs-utils to latest in Buildroot,= I've >>> noticed some warning in rpcgen, so I've decided to clean them up by f= ixing >>> code or #pragma ignoring them. Hope this is useful. Other warnings ar= e >>> still there waiting to be fixed and if you find these patches useful = I'm >>> going to complete all warning correction. >>> >>> Giulio Benetti (7): >>> =A0=A0 rpcgen: rpc_cout: silence unused def parameter >>> =A0=A0 rpcgen: rpc_util: add storeval args to prototype >>> =A0=A0 rpcgen: rpc_util: add findval args to prototype >>> =A0=A0 rpcgen: rpc_parse: add get_definition() void argument >>> =A0=A0 rpcgen: rpc_cout: fix potential -Wformat-nonliteral warning >>> =A0=A0 rpcgen: rpc_hout: fix potential -Wformat-security warning >>> =A0=A0 rpcgen: rpc_hout: fix indentation on f_print() argument separa= tor >>> >>> =A0 tools/rpcgen/rpc_cout.c=A0 | 8 ++++---- >>> =A0 tools/rpcgen/rpc_hout.c=A0 | 4 +++- >>> =A0 tools/rpcgen/rpc_parse.h | 2 +- >>> =A0 tools/rpcgen/rpc_util.h=A0 | 4 ++-- >>> =A0 4 files changed, 10 insertions(+), 8 deletions(-) >>> >> Committed (tag: nfs-utils-2-4-3-rc5) >> >> I must admit this code is actually being used... I assume they do the = right thing... >> >> The rpcgen we been using is the old one that came out >> of the glibc code at https://github.com/thkukuk/rpcsvc-proto >> >> I wonder what the difference is.... >=20 > I can check it and use that one as upstream maybe and update it here in= nfs-utils if you see that it makes sense. That would be interest... If they both generate the same code... two are probably not needed...=20 but I bet either code base as not changed in 40 yrs ;-)=20 steved. >=20 > Best regards