From patchwork Mon Oct 29 16:15:34 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: 10659513 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 D1A6A13BF for ; Mon, 29 Oct 2018 16:15:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AFDE729AE8 for ; Mon, 29 Oct 2018 16:15:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A41BE29B22; Mon, 29 Oct 2018 16:15:42 +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 09DAA29AE8 for ; Mon, 29 Oct 2018 16:15:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727629AbeJ3BE5 (ORCPT ); Mon, 29 Oct 2018 21:04:57 -0400 Received: from imap.thunk.org ([74.207.234.97]:40022 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727597AbeJ3BE4 (ORCPT ); Mon, 29 Oct 2018 21:04:56 -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=9nP6f/ekEJZAz+E9u/gcX1ZGvsdbPFRlKQKxK7ZDBVU=; b=ukfz8TNO9VYnOQjWVgzGVbeWkI 6DMV+bPvgA2Zm8Hm+6Lzitf5+daMwLlgf+S7RqKdOkbULg+5cSmdIc1FqGIkJy5U8J6bfocVC0XIm t1MGJZBMA5sFLk7LG0DUn3dfMvYoV2X730xD7cMV+fJUrIoX1zXJCSz+7kRlw2Ra/DyQ=; Received: from root (helo=callcc.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.89) (envelope-from ) id 1gHACa-00026J-C1; Mon, 29 Oct 2018 16:15:40 +0000 Received: by callcc.thunk.org (Postfix, from userid 15806) id 876607A45B5; Mon, 29 Oct 2018 12:15:39 -0400 (EDT) From: Theodore Ts'o To: linux-block@vger.kernel.org Cc: Theodore Ts'o Subject: [PATCH blktests] Fix build failure for discontiguous-io on 32-bit platforms Date: Mon, 29 Oct 2018 12:15:34 -0400 Message-Id: <20181029161534.7564-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 --- 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..a59c18d 100644 --- a/src/discontiguous-io.cpp +++ b/src/discontiguous-io.cpp @@ -291,7 +291,7 @@ int main(int argc, char **argv) unsigned char *p = &*buf.begin(); for (int i = 0; i < len / 4; i++) iov.append(p + 4 + i * 8, - std::min(4ul, len - i * 4)); + std::min(4ul, (unsigned long) len - i * 4)); } else { iov.append(&*buf.begin(), buf.size()); }