From patchwork Mon Jun 4 14:50:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Dickson X-Patchwork-Id: 10446749 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0F59460284 for ; Mon, 4 Jun 2018 14:50:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C7E7228756 for ; Mon, 4 Jun 2018 14:50:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C56062884E; Mon, 4 Jun 2018 14:50:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC26A2885E for ; Mon, 4 Jun 2018 14:50:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751473AbeFDOuy (ORCPT ); Mon, 4 Jun 2018 10:50:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51900 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751782AbeFDOux (ORCPT ); Mon, 4 Jun 2018 10:50:53 -0400 Received: from smtp.corp.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7A0C93640F7 for ; Mon, 4 Jun 2018 14:50:53 +0000 (UTC) Received: from steved.boston.devel.redhat.com (ovpn-116-215.phx2.redhat.com [10.3.116.215]) by smtp.corp.redhat.com (Postfix) with ESMTP id 31F7D30012D0 for ; Mon, 4 Jun 2018 14:50:53 +0000 (UTC) From: Steve Dickson To: Linux NFS Mailing list Subject: [PATCH 1/4] xtab.c: Removed overflow in implicit constant conversion errors Date: Mon, 4 Jun 2018 10:50:48 -0400 Message-Id: <20180604145051.146390-2-steved@redhat.com> In-Reply-To: <20180604145051.146390-1-steved@redhat.com> References: <20180604145051.146390-1-steved@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.26 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Mon, 04 Jun 2018 14:50:53 +0000 (UTC) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP xtab.c: In function 'xtab_read': xtab.c:60:4: error: overflow in implicit constant conversion [-Werror=overflow] exp->m_xtabent = 1; ^ xtab.c:61:4: error: overflow in implicit constant conversion [-Werror=overflow] exp->m_mayexport = 1; Signed-off-by: Steve Dickson --- support/include/exportfs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/include/exportfs.h b/support/include/exportfs.h index 8af47a8..a82a9b8 100644 --- a/support/include/exportfs.h +++ b/support/include/exportfs.h @@ -97,7 +97,7 @@ typedef struct mexport { struct mclient * m_client; struct exportent m_export; int m_exported; /* known to knfsd. */ - int m_xtabent : 1, /* xtab entry exists */ + unsigned int m_xtabent : 1, /* xtab entry exists */ m_mayexport: 1, /* derived from xtabbed */ m_changed : 1, /* options (may) have changed */ m_warned : 1; /* warned about multiple exports