Message ID | 20230126163804.3648051-2-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp368169wrn; Thu, 26 Jan 2023 08:39:52 -0800 (PST) X-Google-Smtp-Source: AMrXdXvz0z7jC2ptT+sGpfl4NuI0c9VQGAPUs2Dxk3nl2Nxw1feM4yoRtnaKN3InLSS6WtPsd+Q+ X-Received: by 2002:a17:906:c1c6:b0:819:2756:e090 with SMTP id bw6-20020a170906c1c600b008192756e090mr37068952ejb.50.1674751192070; Thu, 26 Jan 2023 08:39:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674751192; cv=none; d=google.com; s=arc-20160816; b=F1wGo+LVJc+LU8AKr/qS8GgQyzWYKOPnSPjiLaZIRkRnjNQLwKD3VcCOkTTwqnrnWe Jp3RwbrFrT1HNymswORslDw69qsmgpcJ0t32R3uWf0GBaHXW3woSj0dOztywqtAbK7cz YBx5LmihPoYdDgprEng6QQiEtM46MhVyuYqKMJXYgeNlMcKQb7HzL7KCIIPkUkMCQpPa ITtgESW/joqJ4XoPtyPjAdZp4VwpVhsREWK+JMaekareOy3Z8OSCZxJtCMIvz+GYxRtO P034qMQ/sWlxHkl7CRRX6hhOZvdPvqHjG7Ub3ugMR/+55otUgQAAtOn9HFVCmYRGF4aH plmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+tHytWDRTAmBa90yQ4LxPz/sk/NlyKQz3BRCbNvtqq0=; b=0ITkTPGBt52v/UX1E23QWiGFSAoAczrhXit8ZGZ1oFBIJpd1W2RkRcozjTYA/Cccpb 9Dg6l1NcS070gPlO7PpOAmu7YLanNZOU8W03iVDUYkagB/1Uy3jvZ1F6YGSF9QCqfXXJ SFqT08WYrZ+AFTOk/CsHmpPYQr452a7CqQ0DlTtwczvGqAxSQZo4JPrAK1hYn86GWV16 r2mmU4imQQYHIcjnMDKLrRXl71fY2mB1UzB1vBDOCO/Ul1XUNvP+XqUMlRarPmo9V8xj MOm2HR9Kly4jpi5DUpXajlWB6dPlVGgkq25ynokEkHxKou6ZK6jyx1CGJsttkQ9iuyZm FvYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GDHMo0oZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fd7-20020a1709072a0700b008787d3c8c2dsi736385ejc.495.2023.01.26.08.39.29; Thu, 26 Jan 2023 08:39:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GDHMo0oZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231893AbjAZQi3 (ORCPT <rfc822;lekhanya01809@gmail.com> + 99 others); Thu, 26 Jan 2023 11:38:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231853AbjAZQi1 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 26 Jan 2023 11:38:27 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F09CB4AA62 for <linux-kernel@vger.kernel.org>; Thu, 26 Jan 2023 08:38:17 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8CCB4618E8 for <linux-kernel@vger.kernel.org>; Thu, 26 Jan 2023 16:38:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB66FC433D2; Thu, 26 Jan 2023 16:38:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674751097; bh=6qtgNxbECemucjlcZnysho52hl61i0+xb+1L04Nx6II=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GDHMo0oZscx3hvSa024f66iPJ8KgOweUrlORbRbz4kuAV3jGG03zI0+Rh7a9uh2eK 2snSerZvJ/fwoQTAP1ZIkxcXe67XQc10Ba4YA3WjK/zdncb8TuMTTtzkK1gcCfr7BN GXcUX5N/xLoi/tCDUAD7/8W7bcxaL7OPD2XuJkNyMaI/c1nPYSuFyG4nanzJLgxJyk R03PHKS/sF1Yq2GLeCRE1XCI5YlVJrmRJqQWkkDj78WxWAzwtWDTmC7wSqhuiYnYv7 acpJD2iIggHlvEUWeXbeEvK2GBMMT50jJ8VNvAF/reJaU2Eg2m8RRIdpKnzSpLF64h 1w/ob8zWBSKqw== From: Arnd Bergmann <arnd@kernel.org> To: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>, Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>, Oded Gabbay <ogabbay@kernel.org>, Jeffrey Hugo <quic_jhugo@quicinc.com> Cc: Arnd Bergmann <arnd@arndb.de>, Daniel Vetter <daniel.vetter@ffwll.ch>, Krystian Pradzynski <krystian.pradzynski@linux.intel.com>, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] accel/ivpu: avoid duplciate assignment Date: Thu, 26 Jan 2023 17:37:55 +0100 Message-Id: <20230126163804.3648051-2-arnd@kernel.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230126163804.3648051-1-arnd@kernel.org> References: <20230126163804.3648051-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756103905839210482?= X-GMAIL-MSGID: =?utf-8?q?1756103905839210482?= |
Series |
[1/2] accep/ivpu: PM: remove broken ivpu_dbg() statements
|
|
Commit Message
Arnd Bergmann
Jan. 26, 2023, 4:37 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> With extra warnings enabled, gcc warns about two assignments of the same .mmap callback: In file included from drivers/accel/ivpu/ivpu_drv.c:10: include/drm/drm_accel.h:31:27: error: initialized field overwritten [-Werror=override-init] 31 | .mmap = drm_gem_mmap | ^~~~~~~~~~~~ drivers/accel/ivpu/ivpu_drv.c:360:9: note: in expansion of macro 'DRM_ACCEL_FOPS' 360 | DRM_ACCEL_FOPS, | ^~~~~~~~~~~~~~ Remove the unused local assignment. Fixes: 20709aa9435b ("accel: Add .mmap to DRM_ACCEL_FOPS") Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/accel/ivpu/ivpu_drv.c | 1 - 1 file changed, 1 deletion(-)
Comments
duplciate -> duplicate On 1/26/2023 9:37 AM, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > With extra warnings enabled, gcc warns about two assignments > of the same .mmap callback: > > In file included from drivers/accel/ivpu/ivpu_drv.c:10: > include/drm/drm_accel.h:31:27: error: initialized field overwritten [-Werror=override-init] > 31 | .mmap = drm_gem_mmap > | ^~~~~~~~~~~~ > drivers/accel/ivpu/ivpu_drv.c:360:9: note: in expansion of macro 'DRM_ACCEL_FOPS' > 360 | DRM_ACCEL_FOPS, > | ^~~~~~~~~~~~~~ > > Remove the unused local assignment. > > Fixes: 20709aa9435b ("accel: Add .mmap to DRM_ACCEL_FOPS") > Signed-off-by: Arnd Bergmann <arnd@arndb.de> Yep, two things in flight at the same time. Thanks for getting to the cleanup before I did. Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Applied to drm-misc-next. Thanks. On 26.01.2023 17:37, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > With extra warnings enabled, gcc warns about two assignments > of the same .mmap callback: > > In file included from drivers/accel/ivpu/ivpu_drv.c:10: > include/drm/drm_accel.h:31:27: error: initialized field overwritten [-Werror=override-init] > 31 | .mmap = drm_gem_mmap > | ^~~~~~~~~~~~ > drivers/accel/ivpu/ivpu_drv.c:360:9: note: in expansion of macro 'DRM_ACCEL_FOPS' > 360 | DRM_ACCEL_FOPS, > | ^~~~~~~~~~~~~~ > > Remove the unused local assignment. > > Fixes: 20709aa9435b ("accel: Add .mmap to DRM_ACCEL_FOPS") > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > --- > drivers/accel/ivpu/ivpu_drv.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/accel/ivpu/ivpu_drv.c b/drivers/accel/ivpu/ivpu_drv.c > index 2bc2f1b90671..a29e8ee0dce6 100644 > --- a/drivers/accel/ivpu/ivpu_drv.c > +++ b/drivers/accel/ivpu/ivpu_drv.c > @@ -356,7 +356,6 @@ int ivpu_shutdown(struct ivpu_device *vdev) > > static const struct file_operations ivpu_fops = { > .owner = THIS_MODULE, > - .mmap = drm_gem_mmap, > DRM_ACCEL_FOPS, > }; >
Am 31.01.23 um 15:00 schrieb Jacek Lawrynowicz: > Applied to drm-misc-next. Thanks. I have cherry-picked the patch into drm-misc-next-fixes. > > On 26.01.2023 17:37, Arnd Bergmann wrote: >> From: Arnd Bergmann <arnd@arndb.de> >> >> With extra warnings enabled, gcc warns about two assignments >> of the same .mmap callback: >> >> In file included from drivers/accel/ivpu/ivpu_drv.c:10: >> include/drm/drm_accel.h:31:27: error: initialized field overwritten [-Werror=override-init] >> 31 | .mmap = drm_gem_mmap >> | ^~~~~~~~~~~~ >> drivers/accel/ivpu/ivpu_drv.c:360:9: note: in expansion of macro 'DRM_ACCEL_FOPS' >> 360 | DRM_ACCEL_FOPS, >> | ^~~~~~~~~~~~~~ >> >> Remove the unused local assignment. >> >> Fixes: 20709aa9435b ("accel: Add .mmap to DRM_ACCEL_FOPS") >> Signed-off-by: Arnd Bergmann <arnd@arndb.de> >> --- >> drivers/accel/ivpu/ivpu_drv.c | 1 - >> 1 file changed, 1 deletion(-) >> >> diff --git a/drivers/accel/ivpu/ivpu_drv.c b/drivers/accel/ivpu/ivpu_drv.c >> index 2bc2f1b90671..a29e8ee0dce6 100644 >> --- a/drivers/accel/ivpu/ivpu_drv.c >> +++ b/drivers/accel/ivpu/ivpu_drv.c >> @@ -356,7 +356,6 @@ int ivpu_shutdown(struct ivpu_device *vdev) >> >> static const struct file_operations ivpu_fops = { >> .owner = THIS_MODULE, >> - .mmap = drm_gem_mmap, >> DRM_ACCEL_FOPS, >> }; >> -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Ivo Totev
diff --git a/drivers/accel/ivpu/ivpu_drv.c b/drivers/accel/ivpu/ivpu_drv.c index 2bc2f1b90671..a29e8ee0dce6 100644 --- a/drivers/accel/ivpu/ivpu_drv.c +++ b/drivers/accel/ivpu/ivpu_drv.c @@ -356,7 +356,6 @@ int ivpu_shutdown(struct ivpu_device *vdev) static const struct file_operations ivpu_fops = { .owner = THIS_MODULE, - .mmap = drm_gem_mmap, DRM_ACCEL_FOPS, };