Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp453050rwd; Mon, 12 Jun 2023 16:43:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4t9tsZUQJl5Tropa5qsOIhMgi6/NVfReBHns9CmOMR8pnA/nKizLTsv3XIjlBH81DTBUjT X-Received: by 2002:a17:902:db04:b0:1b0:74f5:bf10 with SMTP id m4-20020a170902db0400b001b074f5bf10mr8883477plx.65.1686613426624; Mon, 12 Jun 2023 16:43:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686613426; cv=none; d=google.com; s=arc-20160816; b=fV7gpjS2LVsRPYxvX0iflhN2ayfQ3b19A8F5iFRohfDm6nJ9uVffLbdUBPdV6UEfKL zTUsAD4DPi6ziir0FlhtZxg8Iilbxia1DhxNQ9Q5afkOlXOa9PPpn1efOp7RaJPZ7pE8 Yo51FKneXGgqKLlhb0zCjf//xqeQk1UH5My+1szYMrSwlCj+l24HDO4Ki3A4DZtpCWQM aPH2FfnBxPcZrdSE9PTRUB2kVIO1ylwqE7+71olXPJrORXgDH584lds1MHXgjOupSLU1 lNcHNsrgvrHARx8btOVuSbuTX1Nl+TIijTFHGnUry9tqJnCglSCkWLii7YO/+ST46fAG vmRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=aJBg1CJ8pXjzH3h4w4MSJfOgwbvG0cruPfik94JF4zs=; b=03bjeKu99S6Gy8sAHiLooRrHBd0VaYZvXY3sYU20wRGt/3TRlhmbSPPIvwWVqKaxkM jU3XJWyQz1LOu3PxwuFanuxq86ShSi9A+FERbDdKWgWJjM2EtCf5vGvVGW5NitlsfGZD UKFKch2nexoUsV/+c+aFFek9SwAhaJwyeg/XY8ZppYqnZ0Zok28dzn/pqDLX3avcmU89 lpajHfICE32oAA78L5aSdi6n6ZRDtaAsAWGFVUbGTkP6eyP5pAgsmVE7i5GlHWxWIuFI h03oywx1v9z66kB3SRJJwDWW4dvkeTgOBn4G9zyZaGntuOhAKpPRyUAo/2b0jx/caoHq G0ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="gpxX/k65"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l6-20020a170902f68600b001ae5fe35b6dsi8108358plg.177.2023.06.12.16.43.34; Mon, 12 Jun 2023 16:43:46 -0700 (PDT) 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="gpxX/k65"; 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 S232949AbjFLXEG (ORCPT + 99 others); Mon, 12 Jun 2023 19:04:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229583AbjFLXEF (ORCPT ); Mon, 12 Jun 2023 19:04:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAD56E4 for ; Mon, 12 Jun 2023 16:04:04 -0700 (PDT) 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 3C77461F4C for ; Mon, 12 Jun 2023 23:04:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E45BDC433EF; Mon, 12 Jun 2023 23:04:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686611043; bh=VGVC+n+rB8PnKBUWaIKBuLjDMui58ZeepT338bJUEDA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gpxX/k65SlYeODpEyApi4SJsxFJS2jUwsIE2D6l13Y3fCKyersZkyiHrmX6DHCuG4 MsBBN36qvguFG4zIhfw6UNAwWGwrlI1zOyxxEPGp24MBEaQPQv0gr7C1OjM+Zgp7En eBuGMzml76Ve/YoEy8GpSHvrvP+rvl386UyywuHdoaZF9ByoJP7U+QgJ/ICFqhl8vk KO6sKIzG1seKoOO4+wvOL3AoBaHp0Y/o1yHKVV/mCxZRIDNZdGDmRU67V7gN2uzQCv Yoa8QYBljpLLa/8+ZS91ah44KKWBjnq4zsX0Jsb6sFjDsxNd7JKmrgIqET4DGqyCqU pzBmIbc+0GcDw== Date: Tue, 13 Jun 2023 01:03:59 +0200 From: Andi Shyti To: Arnd Bergmann Cc: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter , Arnd Bergmann , Ville =?utf-8?B?U3lyasOkbMOk?= , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/i915/gmch: avoid unused variable warning Message-ID: <20230612230359.swzobgrc5asfnolw@intel.intel> References: <20230612124408.521325-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230612124408.521325-1-arnd@kernel.org> 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,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, On Mon, Jun 12, 2023 at 02:43:59PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > When CONFIG_PNP is disabled, the mchbar_addr variable is only written but > not read: > > drivers/gpu/drm/i915/soc/intel_gmch.c: In function 'intel_alloc_mchbar_resource': > drivers/gpu/drm/i915/soc/intel_gmch.c:41:13: error: variable 'mchbar_addr' set but not used [-Werror=unused-but-set-variable] > 41 | u64 mchbar_addr; > | ^~~~~~~~~~~ > > No idea why this showed up now, but it's easy to fix by changing the #ifdef to > an IS_ENABLED() check that the compiler can see through. > > Signed-off-by: Arnd Bergmann applied to drm-intel-next. Thank you, Andi