From patchwork Fri Jun 15 22:56:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 10467945 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 48D5F600F4 for ; Sat, 16 Jun 2018 10:40:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3789D28C7E for ; Sat, 16 Jun 2018 10:40:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2C39F28CCD; Sat, 16 Jun 2018 10:40:49 +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=-5.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, MAILING_LIST_MULTI,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 EBC6828C7E for ; Sat, 16 Jun 2018 10:40:48 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 623F46E29E; Sat, 16 Jun 2018 10:40:42 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pl0-x241.google.com (mail-pl0-x241.google.com [IPv6:2607:f8b0:400e:c01::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id A0DEB6EC54 for ; Fri, 15 Jun 2018 22:56:18 +0000 (UTC) Received: by mail-pl0-x241.google.com with SMTP id a7-v6so6058487plp.3 for ; Fri, 15 Jun 2018 15:56:18 -0700 (PDT) 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; bh=ppihD1OoxteFoxOjO7adVgv0F5mAbgN4RNDTHViUapY=; b=lMrogU/vxY4s04yL7yx+6jneNKmxSoNdBEOv5twtX7XMJqb8wQx3MhMSgYKc8X7z4J BfeBpIPXUrQfKdk5REAXZphpZDGiWQCj7O/Ym545R9HfGWhbI0ldgjzgX+vJ1qtkEVl7 iHRL1PuJ/k9bgoJ1kBeLFUmOEqlFRI8pYqt8Q5MZJ52/Hy3RDys64TTQiy2dvd47Lxj5 eNQ70OXMp/DwOoAfZ8IijPOUWjZgHQqIxFB7B6uF4+bp9SbMb3wQKbvlgZJ+iGLANmf2 ZhGaRhcW1xsry4w17hz16CI16La2EUSBHdll9X/Vn+Xo8v2ICXYp5teVcvzUUUnkVaDc yqvQ== X-Gm-Message-State: APt69E1u+6z3Y/b0ySU8MZ/z03Gg7QixjGxb72rnm3il9KIeCzd50Lj8 C1/g64NrTNtiToCoYnu+vq21+w== X-Google-Smtp-Source: ADUXVKK01mnMutcJC1EiJnQDrbBqH5r0Igc5oKDTN9ol5rRXhKTqaS4I0576b+BQk+NEDBHZ03qoig== X-Received: by 2002:a17:902:7c83:: with SMTP id y3-v6mr4050046pll.51.1529103377914; Fri, 15 Jun 2018 15:56:17 -0700 (PDT) Received: from ndesaulniers0.svl.corp.google.com ([2620:15c:2a3:1:d33:166f:5b79:14b3]) by smtp.gmail.com with ESMTPSA id v78-v6sm8075306pfd.64.2018.06.15.15.56.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Jun 2018 15:56:17 -0700 (PDT) From: Nick Desaulniers To: bskeggs@redhat.com, airlied@linux.ie Subject: [PATCH] drm/nouveau/nvif: remove const attribute from nvif_mclass Date: Fri, 15 Jun 2018 15:56:04 -0700 Message-Id: <20180615225606.185324-1-ndesaulniers@google.com> X-Mailer: git-send-email 2.18.0.rc1.244.gcf134e6275-goog X-Mailman-Approved-At: Sat, 16 Jun 2018 10:40:39 +0000 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: Greg Kroah-Hartman , jeyu@kernel.org, Nick Desaulniers , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, mka@chromium.org, Philippe Ombredanne , nouveau@lists.freedesktop.org, Thomas Gleixner MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Similar to commit 0bf8bf50eddc ("module: Remove const attribute from alias for MODULE_DEVICE_TABLE") Fixes many -Wduplicate-decl-specifier warnings due to the combination of const typeof() of already const variables. Signed-off-by: Nick Desaulniers --- drivers/gpu/drm/nouveau/include/nvif/object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/include/nvif/object.h b/drivers/gpu/drm/nouveau/include/nvif/object.h index a2d5244ff2b7..7f188f66931e 100644 --- a/drivers/gpu/drm/nouveau/include/nvif/object.h +++ b/drivers/gpu/drm/nouveau/include/nvif/object.h @@ -78,7 +78,7 @@ struct nvif_mclass { #define nvif_mclass(o,m) ({ \ struct nvif_object *object = (o); \ struct nvif_sclass *sclass; \ - const typeof(m[0]) *mclass = (m); \ + typeof(m[0]) *mclass = (m); \ int ret = -ENODEV; \ int cnt, i, j; \ \