Message ID | 1456194106-10376-1-git-send-email-alexander.deucher@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 91AE49F1D4 for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 23 Feb 2016 02:22:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B90162062A for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 23 Feb 2016 02:22:03 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id E6604205C7 for <patchwork-dri-devel@patchwork.kernel.org>; Tue, 23 Feb 2016 02:22:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2688C6E2FD; Tue, 23 Feb 2016 02:22:00 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qg0-x234.google.com (mail-qg0-x234.google.com [IPv6:2607:f8b0:400d:c04::234]) by gabe.freedesktop.org (Postfix) with ESMTPS id C33816E2FD for <dri-devel@lists.freedesktop.org>; Tue, 23 Feb 2016 02:21:57 +0000 (UTC) Received: by mail-qg0-x234.google.com with SMTP id y9so128410863qgd.3 for <dri-devel@lists.freedesktop.org>; Mon, 22 Feb 2016 18:21:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=tS6DM3ney375Br8iZORHgYuIDgqHWhUmUnv5o/A81kI=; b=xXpxxwydt+UtpxPusX50TC5oHpt06tGkn/c/rVuEv8kPt8bayb96tRvC6Jm57VEzaC X/Gn+qsHB78zjVIvcqfjWX/Hvo9FfIYkvB3Woiyy74jVbFZvTPZD3M+Mtj4WtqZxpvEL ulQqApDbXsbm96hF8h5xWLCO62uvRgwHgaghsdDym59zEVElpVijwVVNgngiRjSM1o2T oXcCXGalO2cqr8u4E0kR9EZsj4mmjJm06CI/fyHPsoBoaBXcwxKuSUyQmnBBAQmn7Ok7 LABJSgShFtir+3Rm8CeQTahEW0db3H5lIswTP1JlGNiPH8ho1NccBtvbF8mG4ojblECS Jndw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-type:content-transfer-encoding; bh=tS6DM3ney375Br8iZORHgYuIDgqHWhUmUnv5o/A81kI=; b=J9tWP5XockXEnUJRPB2rWe/uKiSApz/Be7FT0B96v+dBuLXBSosevRy9x+q3z3pwik J4xWb9orP0SaT1Fzl+gbfwG8bxExNDTSL4h03+KADYi/aEyIA+TCv1wZ24mcIVaZPIy2 0znZLTJBMJhmKO+tOIuSUqb9dSqkaXDIuCCDTZ+qFsaRBZMJ5uhy7ePUZbni9JidSblx YKoSf2+EDmSDkC32g6AMc9T1y2T2BICBN5UK3h5zmQ2R9q/INFwWCBuGavW6r/1qmJ6l w45PZM22s9s38Xa4c2ODkcnn9yIll4zpRkFioQfnsHtYcNJjYePGtvEIaDOO/g1vtO7h OaHA== X-Gm-Message-State: AG10YOQHhn02iHZ5xdhFAsJN5NimLg9cv19cQjfa1s0shhv9rSA+0RRSUBFeiixrfBXuQA== X-Received: by 10.140.22.139 with SMTP id 11mr39161482qgn.34.1456194116979; Mon, 22 Feb 2016 18:21:56 -0800 (PST) Received: from cm.localdomain (static-74-96-105-49.washdc.fios.verizon.net. [74.96.105.49]) by smtp.gmail.com with ESMTPSA id t67sm7793048qhb.38.2016.02.22.18.21.56 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 22 Feb 2016 18:21:56 -0800 (PST) From: Alex Deucher <alexdeucher@gmail.com> X-Google-Original-From: Alex Deucher <alexander.deucher@amd.com> To: dri-devel@lists.freedesktop.org, sumit.semwal@linaro.org, linaro-mm-sig@lists.linaro.org Subject: [PATCH] dma-buf/fence: fix fence_is_later v2 Date: Mon, 22 Feb 2016 21:21:46 -0500 Message-Id: <1456194106-10376-1-git-send-email-alexander.deucher@amd.com> X-Mailer: git-send-email 2.5.0 MIME-Version: 1.0 Cc: Alex Deucher <alexander.deucher@amd.com>, =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/include/linux/fence.h b/include/linux/fence.h index bb52201..5aa95eb 100644 --- a/include/linux/fence.h +++ b/include/linux/fence.h @@ -292,7 +292,7 @@ static inline bool fence_is_later(struct fence *f1, struct fence *f2) if (WARN_ON(f1->context != f2->context)) return false; - return f1->seqno - f2->seqno < INT_MAX; + return (int)(f1->seqno - f2->seqno) > 0; } /**