From patchwork Thu Feb 15 13:59:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 10221301 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 BB08D6055C for ; Thu, 15 Feb 2018 13:59:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ADF4C29347 for ; Thu, 15 Feb 2018 13:59:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A2C3A2934C; Thu, 15 Feb 2018 13:59:36 +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]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 594B929347 for ; Thu, 15 Feb 2018 13:59:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 39DAE6E526; Thu, 15 Feb 2018 13:59:33 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-oi0-f65.google.com (mail-oi0-f65.google.com [209.85.218.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id 481386E525 for ; Thu, 15 Feb 2018 13:59:31 +0000 (UTC) Received: by mail-oi0-f65.google.com with SMTP id y16so1370588oie.1 for ; Thu, 15 Feb 2018 05:59:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=QqT1h5P4E83PF1xN3T/G4BD3DFrXshSK/TrV8udhGC8=; b=nb7cOt3SQs1Q2REtX2AkT12PBSgEiYVDnfBUdzzZ7hGSJkLZAkigGH9au3J8PBNv1r wprfjJHXLwxerIROLSCtPi4RJJPXez+UWewiKx1AxRwDZtPt70K24ADJExjyRQAt76UQ HMFHyWwtvjDznrLjKpi3o558TJrpCA38HuCi5PePsVsnhfLnsmnU+Al1tw8khAYNwqk7 lBhFkQWXegbjLHYmG5gnpanubvBRGFv5QVHTD6x2oqCd/Eh+/+sYDxrsLpoRYpoH06XY It97ys6qc8pM09D2TVdoonDgYKdaRGcePREiy5eK8hZNg09PcihyMoKH5vLOAb6Xc4Gq EcbA== X-Gm-Message-State: APf1xPAgCNdCCxFRRhap+BrWmcKzO6agU8j5eYUO3p24k8gfYs9VhseJ AS+tx2c8iVMjDz/ZEydDW/RTtdA= X-Google-Smtp-Source: AH8x227KX8PiL0g3GbnpX2naKn+X1aXJS+4ZVCepuaE8Cy8Ok8zQNwv+SB2n46fElCpFgegCC577OQ== X-Received: by 10.202.185.70 with SMTP id j67mr1924785oif.285.1518703170219; Thu, 15 Feb 2018 05:59:30 -0800 (PST) Received: from xps15.herring.priv (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.googlemail.com with ESMTPSA id t8sm8677327otj.31.2018.02.15.05.59.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Feb 2018 05:59:29 -0800 (PST) From: Rob Herring To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 2/4] android: fix mis-named alloc_handle_t Date: Thu, 15 Feb 2018 07:59:24 -0600 Message-Id: <20180215135926.9502-3-robh@kernel.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180215135926.9502-1-robh@kernel.org> References: <20180215135926.9502-1-robh@kernel.org> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Robert Foss MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Fix a typo where alloc_handle_t should be gralloc_handle_t. One still remains in gralloc_handle_create, but a subsequent commit will fix that along with other problems in gralloc_handle_create. Signed-off-by: Rob Herring --- android/gralloc_handle.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/gralloc_handle.h b/android/gralloc_handle.h index b035e03566cc..b0f5048cc6a1 100644 --- a/android/gralloc_handle.h +++ b/android/gralloc_handle.h @@ -73,7 +73,7 @@ struct gralloc_handle_t { #define GRALLOC_HANDLE_MAGIC 0x60585350 #define GRALLOC_HANDLE_NUM_FDS 1 #define GRALLOC_HANDLE_NUM_INTS ( \ - ((sizeof(struct alloc_handle_t) - sizeof(native_handle_t))/sizeof(int)) \ + ((sizeof(struct gralloc_handle_t) - sizeof(native_handle_t))/sizeof(int)) \ - GRALLOC_HANDLE_NUM_FDS) /**