From patchwork Thu Feb 15 13:59:23 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: 10221299 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 CC44A6055C for ; Thu, 15 Feb 2018 13:59:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BFCB72893B for ; Thu, 15 Feb 2018 13:59:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B494B29347; Thu, 15 Feb 2018 13:59:34 +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 6A7A82893B for ; Thu, 15 Feb 2018 13:59:34 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1C0816E525; 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-f66.google.com (mail-oi0-f66.google.com [209.85.218.66]) by gabe.freedesktop.org (Postfix) with ESMTPS id 486166E524 for ; Thu, 15 Feb 2018 13:59:30 +0000 (UTC) Received: by mail-oi0-f66.google.com with SMTP id x21so19097436oie.13 for ; Thu, 15 Feb 2018 05:59:30 -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=CHIWpcrP50wuGb/a4HhCH4ADcGpqYb/K2lzv7IEKJU8=; b=KGNM3INt4tCiaaClF5HI1qJ+ESs6dVBRQqkxn6NUeyKnTsXm86JZV/155WVAUj1H8U 3Ldpt4Mb3Yv7GA8BwoMZuj6t18XUwycW0BJMGz6aDufR6HX6tZ6cAH/EYa1Vazuaw0/z fCOfigjNfuAjIW4clrXoVRe1qKnHEcit2ToHrMp77bWWLo+EwpQKPNICin4dY6iiFiYn KuyvR2h598lvZfoxT1tKTiJZWMAPw1qdMmN8Mw6bHK3UO4/9EMUhBgJCWgzE7bSHsvGb svcAwEZHyOeIb9Zbe3/WRk2+max9k9eesuADiEzKrfBOcLu9voff+JJo5L5iSg3yVs3n H3tQ== X-Gm-Message-State: APf1xPBSzG9QSjvQRQDgmjr8ScExVkMjauF/Fdm7X8cmCsUDJezPQIO4 PxSFT9BH2qHxyyBKwodi+TXKYts= X-Google-Smtp-Source: AH8x224g2T+Uuj7Er5x0xr7w1+pj1SCkOeji2/ZFTRz9fkN08855MkFU03uZUoE2pxqIlsAj42oaSA== X-Received: by 10.202.98.139 with SMTP id w133mr1731605oib.282.1518703169252; Thu, 15 Feb 2018 05:59:29 -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.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Feb 2018 05:59:28 -0800 (PST) From: Rob Herring To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 1/4] android: revert making handle magic and version members const Date: Thu, 15 Feb 2018 07:59:23 -0600 Message-Id: <20180215135926.9502-2-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 Const members are problematic for dynamically allocating struct gralloc_handle_t, so just drop the const modifier. Signed-off-by: Rob Herring --- android/gralloc_handle.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/gralloc_handle.h b/android/gralloc_handle.h index b47bee191f94..b035e03566cc 100644 --- a/android/gralloc_handle.h +++ b/android/gralloc_handle.h @@ -51,8 +51,8 @@ struct gralloc_handle_t { int prime_fd; /* api variables */ - const uint32_t magic; /* differentiate between allocator impls */ - const uint32_t version; /* api version */ + uint32_t magic; /* differentiate between allocator impls */ + uint32_t version; /* api version */ uint32_t width; /* width of buffer in pixels */ uint32_t height; /* height of buffer in pixels */