From patchwork Fri Jun 15 23:00:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 10467955 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 BC67F600F4 for ; Sat, 16 Jun 2018 10:42:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC02E28C7E for ; Sat, 16 Jun 2018 10:42:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A09EB28CCF; Sat, 16 Jun 2018 10:42:00 +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 6B3AB28C7E for ; Sat, 16 Jun 2018 10:42:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 388996E2C6; Sat, 16 Jun 2018 10:41:20 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf0-x22d.google.com (mail-pf0-x22d.google.com [IPv6:2607:f8b0:400e:c00::22d]) by gabe.freedesktop.org (Postfix) with ESMTPS id 953D26EC4A for ; Fri, 15 Jun 2018 23:00:50 +0000 (UTC) Received: by mail-pf0-x22d.google.com with SMTP id b74-v6so5511682pfl.5 for ; Fri, 15 Jun 2018 16:00:50 -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:in-reply-to :references; bh=MHSvdkQ+pBrjMUbzMKgy6ofdZ36HXkxOpzdNnz5cjtk=; b=RPDAhEXqO4BU7RTgxeX4qA9x1Fy0gptav0EWkCqtnHwUTORYKL2MnyGq/dvSon1MiE hhjhkEgcLeGRgu1vJeeja4NyqiXBgUk+X09hNfZWYvkPrr9Uxu4OhWSlpYZfRdZmhGA3 2uSFS5Zw7h26O/g0SDSkVL+2liCyrE9BBh7dZFlElLyoRy617vEQVLCNTo5mOP2JP+Kr tl5xtOlTFGdhtFPVGvms3sVb2hpFER32pjpehnKMiKwfof0s6ckXxZbQn1fT5vB6amhs Wr0kd1XuIrBNd8pWNPgMiseNZJqmm5cc2Q5sX4nwtCy0QkvqpkFoxYAWNFGQj6nPrguS 3BMQ== X-Gm-Message-State: APt69E2jEZyIFWqImDGOXFahH1KQ1uhtw2JEHIT297JaKkfWl3xD81lK Eef3sSSGDgLpAxZ4/ya5qSwNaQ== X-Google-Smtp-Source: ADUXVKI/fmYNWnWe29CzGCyG7H0VzsTOuB9AEbOqvWXqCJzOvmDSWZeTVh2H0L1B8f4z12jt/cJE/w== X-Received: by 2002:a62:2414:: with SMTP id r20-v6mr3961514pfj.108.1529103649758; Fri, 15 Jun 2018 16:00:49 -0700 (PDT) Received: from ndesaulniers0.svl.corp.google.com ([2620:15c:2a3:1:d33:166f:5b79:14b3]) by smtp.gmail.com with ESMTPSA id t21-v6sm22570148pfi.22.2018.06.15.16.00.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Jun 2018 16:00:49 -0700 (PDT) From: Nick Desaulniers To: bskeggs@redhat.com, airlied@linux.ie Subject: [PATCH v2] drm/nouveau/nvif: remove const attribute from nvif_mclass Date: Fri, 15 Jun 2018 16:00:42 -0700 Message-Id: <20180615230044.189899-1-ndesaulniers@google.com> X-Mailer: git-send-email 2.18.0.rc1.244.gcf134e6275-goog In-Reply-To: References: 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: Kate Stewart , 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 --- Changes since v1: added additional space after statements. 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..3d7e485a9043 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; \ \