From patchwork Tue Oct 30 14:36:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Theodore Ts'o X-Patchwork-Id: 10660979 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9CC831734 for ; Tue, 30 Oct 2018 14:36:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8ABD72A50C for ; Tue, 30 Oct 2018 14:36:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7D69C2A52F; Tue, 30 Oct 2018 14:36:56 +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.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 EE99F2A50C for ; Tue, 30 Oct 2018 14:36:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726863AbeJ3Xai (ORCPT ); Tue, 30 Oct 2018 19:30:38 -0400 Received: from imap.thunk.org ([74.207.234.97]:44090 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725853AbeJ3Xai (ORCPT ); Tue, 30 Oct 2018 19:30:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=BIeKbY9Eblg174Rln2TepiEuH/BIhYz1oUoxcL9PHok=; b=EwuZVCtZalVTt7/NPOcduv+k8X AhPtGsis0iXZyVDj3N2rrYcAQK7fFBntrAV5A0ZwpP06AFw+QYFqvH1a2sE7DHsCBAGmWdqHsdLfr e2T4OHIy/Dtsm7eNm0UwwvZhb5VHwdklAaceY5tksGPdouFnKF8Pwno8qkt449cm3G0s=; Received: from root (helo=callcc.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.89) (envelope-from ) id 1gHV8Y-0007OR-Iq; Tue, 30 Oct 2018 14:36:54 +0000 Received: by callcc.thunk.org (Postfix, from userid 15806) id C5AE87A45B5; Tue, 30 Oct 2018 10:36:53 -0400 (EDT) From: Theodore Ts'o To: linux-block@vger.kernel.org Cc: Theodore Ts'o Subject: [PATCH blktests -v2] Fix build failure for discontiguous-io on 32-bit platforms Date: Tue, 30 Oct 2018 10:36:49 -0400 Message-Id: <20181030143649.28246-1-tytso@mit.edu> X-Mailer: git-send-email 2.18.0.rc0 X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Theodore Ts'o Reviewed-by: Bart Van Assche --- src/discontiguous-io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/discontiguous-io.cpp b/src/discontiguous-io.cpp index 5e0ee0f..f51a305 100644 --- a/src/discontiguous-io.cpp +++ b/src/discontiguous-io.cpp @@ -251,7 +251,7 @@ int main(int argc, char **argv) const char *dev; int c; std::vector buf; - size_t len = 512; + unsigned long len = 512; while ((c = getopt(argc, argv, "hl:o:sw")) != EOF) { switch (c) {