From patchwork Fri Jun 3 15:46:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 9153407 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 1659B6082E for ; Fri, 3 Jun 2016 15:46:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 08BC02780C for ; Fri, 3 Jun 2016 15:46:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F1A8E28309; Fri, 3 Jun 2016 15:46:43 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4E2BF2804C for ; Fri, 3 Jun 2016 15:46:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3EBE86EDFC; Fri, 3 Jun 2016 15:46:40 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-yw0-f193.google.com (mail-yw0-f193.google.com [209.85.161.193]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3C7C56EDFB for ; Fri, 3 Jun 2016 15:46:38 +0000 (UTC) Received: by mail-yw0-f193.google.com with SMTP id y6so11296762ywe.0 for ; Fri, 03 Jun 2016 08:46:38 -0700 (PDT) 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-transfer-encoding; bh=BVvt3C/F2qPx2zv6c8xc2/ERjWWSOnjppjYHolOk7d8=; b=O5ar4yvauYdR9h9rwImD+1RBFLEZSNLKaqL+PhhU+bTe1TTndKa2jNSLkJoNJ/enM2 0fOwzBuONE0bx17qHpoTcx9wmLtGMSrpwbJiAfRoe6Mm4jr1DMHVy6XGOF6VspfAHgWN 0ur8s+ghwiekWvR95kmlXMcSuyHNg/k2hvbifhVT96DyEuw+dz/yTDlJ0i3HMTbf16Q/ bZ52VzVonZHZHixpBM+vyG/W8DLmMQwauSm2jtjV+Mpsq8rBkcA9iLmgLiqpDBcGKEv2 rHVggrE9bLkK9kVoaOerp3nlb3BpMVhM7UgFAU8FuARIJjXcPJC//iAY03FB/o5Rv/sE 0O7Q== X-Gm-Message-State: ALyK8tKi79929SpKDMJuvMjaaJqeUNw9/1d3FsYkidx2H6jd0ualY67zOMZvTGq74x+FQg== X-Received: by 10.129.107.138 with SMTP id g132mr3138719ywc.74.1464968797034; Fri, 03 Jun 2016 08:46:37 -0700 (PDT) Received: from jade.localdomain ([201.82.24.203]) by smtp.gmail.com with ESMTPSA id i68sm3513026ywe.44.2016.06.03.08.46.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Jun 2016 08:46:35 -0700 (PDT) From: Gustavo Padovan To: Daniel Vetter Subject: [PATCH] dma-buf/sync_file: fix build warning with context format type Date: Fri, 3 Jun 2016 12:46:31 -0300 Message-Id: <1464968791-4564-1-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 2.5.5 MIME-Version: 1.0 Cc: Gustavo Padovan , dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Gustavo Padovan Christian König changed fence context to a u64 type, so we need to update all users accordingly. Signed-off-by: Gustavo Padovan Acked-by: Sumit Semwal --- Should we get this via drm-misc to silent the warning added by the change on the fence context? drivers/dma-buf/sync_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/sync_file.c b/drivers/dma-buf/sync_file.c index f08cf2d..9aaa608 100644 --- a/drivers/dma-buf/sync_file.c +++ b/drivers/dma-buf/sync_file.c @@ -82,7 +82,7 @@ struct sync_file *sync_file_create(struct fence *fence) sync_file->num_fences = 1; atomic_set(&sync_file->status, 1); - snprintf(sync_file->name, sizeof(sync_file->name), "%s-%s%d-%d", + snprintf(sync_file->name, sizeof(sync_file->name), "%s-%s%llu-%d", fence->ops->get_driver_name(fence), fence->ops->get_timeline_name(fence), fence->context, fence->seqno);