Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp474678lqr; Wed, 5 Jun 2024 11:12:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU5EJXYUxsDTfaV57e2MKShSYxiKi4RleusE9D1N69kSscC4aOowq3c5slW7HDtXzsszap9J1kfrI5rpsDyJnopLTyhEDZVJy5urPO8Ag== X-Google-Smtp-Source: AGHT+IE66E8FUKgQuTLTQUTfLI3DkgdllQTFv6HXznczOy0iHO59B9vFFK9BU+AWKSfREPcZLBeb X-Received: by 2002:ac8:5d4e:0:b0:43a:b1bf:4762 with SMTP id d75a77b69052e-4402b5abe59mr37794471cf.5.1717611172449; Wed, 05 Jun 2024 11:12:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717611172; cv=pass; d=google.com; s=arc-20160816; b=YlpcKoSyAQX3nK129p/fjN3NJpCaAWH1nWiYrnpotq/PjgAb2RDwCtZAcrLgsoJ69s MB9STNvLbDjpIzZE17K+r3L8Z0ncVx3EdU+rFrsS2wC6dbLqf7lq3f2hd03pPV4Y/YEf JqC+DYoxKSSomHZEpbYZoracwu4o1IgxDiE45EhkWtHT8UP9/wCwd5s6c846Qv6BQdoH n3G2mPTCZpzTiGTR5TPs4GP8F4F9Cvy3Z/MputCaNre+C0H8C6snSOR0uPay7zmk6JlF DgFxxrYLDhiBpjAEYutHPyAoVK1gTyWJnQ0+aJYtBFejyjYDfEsWav1KfLUT2q3f+tV+ nlrg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=W9slnD3ITjyjkyQwDxAGTH/CfjTjpCmUIb+L6Ff24QA=; fh=dQl2Nog7lS14hRvS7CPbUuzKaVnay4gpBJj1sMW4aSw=; b=pkH0B1r3Nrr1F7nRfVjcWhlivsts5qSt7f1bn14ik79EmgFU3VNSwdeLAOjFZhRF7z UKRnSo2VF9pScOut1xwOQ4WHLCjrLnrsTH6rd3E5BXGSutPdu4G9n/5qGKbmd7ID5yyv 6lsBVnASY2RA+kawAvufWD9ra7bNm8R2Xhm6pLKos3ig85pkq3faR4dVUWCNRQWckuF5 UYWplQpZVOH4XIGmU5ucd8hClubh4t3UyO11vUs917xyIiukVwFVrUC/P2QxEBV1mFD1 yHRyIPBPv4NIr5dInux/yp39APbIhvqneVhGGz/P3bx6/oT18qJkfW32PoVVeM4aBgId x91Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DzuCIoOM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-203040-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203040-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-440357afa70si5429961cf.416.2024.06.05.11.12.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 11:12:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203040-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DzuCIoOM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-203040-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203040-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 311961C24EED for ; Wed, 5 Jun 2024 18:12:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 605E414D29D; Wed, 5 Jun 2024 18:05:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DzuCIoOM" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B7C11465BD; Wed, 5 Jun 2024 18:05:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717610756; cv=none; b=MM//v/B5AvOCHweqs/4+mNhvVI9CxJHDJpABhe9B3+EiZwfAX2BnVZedQpwykYdOxKjdotLPtkT9+ASLvIURyQkPDvQsUAc6o2qJI60T1PxIQZLs05Km+UpnFimq0cV72X3Kx9YBBpCz/Y84HOYSkt/VS6a9GpqPFOnYfqR0fhM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717610756; c=relaxed/simple; bh=+y3yaIyqBqQ+qBHCr47NqxdcQHNtVGTtw1CuuXvmOLM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UYIfRddfMiLOXEEXaBiyNabnjxCgVKVLKbVXljPEK01v1k1P2m0DOEDae5woIeZL3AD/4hI3BE7bQ9yotVjcbv/JORBZ00ExnCZ4GpozPm3vxGhTqpjgQWjOvuUFmiWuxt4cV+wrkng5hVztSZ7GcwIlr+JR1FMsXXJppKM19Yc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DzuCIoOM; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F0F1C2BD11; Wed, 5 Jun 2024 18:05:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717610756; bh=+y3yaIyqBqQ+qBHCr47NqxdcQHNtVGTtw1CuuXvmOLM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DzuCIoOMgM+pzFBzbvCyjZN42UWIwiaZK6pNVz3kvyxqniODrNgOtKnWXrWg8NlE/ 3eD723EsPgq5mps0oe5/pR/v46PSvROk+9Raucfi8oUK4SlHfkJzvtQovS2XyyG9rW c2ZaQUxTyCPHDdZlZ7uukErpYO1VY2Hd38We4Fku5gMyIF4RH6AsiOVan3wx93mjLQ RC4kOv48WgOePpBwRDTbJBGXPlfOu8lvAq79ZkC140eTdwrIhkmxuiZ5hTBzxjiDts d4wZRrGS8vG81M0FoeQ5bNW3JpSP4lfR73xsg2XaVCRzYpXOvuAtVxBe0gqJIsVHuQ HZ1L2Vhy9PWYA== Date: Wed, 5 Jun 2024 11:05:53 -0700 From: Nathan Chancellor To: Abhinav Kumar Cc: freedreno@lists.freedesktop.org, Rob Clark , Sean Paul , Konrad Dybcio , Dmitry Baryshkov , Marijn Suijten , David Airlie , Daniel Vetter , Connor Abbott , dri-devel@lists.freedesktop.org, seanpaul@chromium.org, quic_jesszhan@quicinc.com, Rob Clark , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] drm/msm/a6xx: use __unused__ to fix compiler warnings for gen7_* includes Message-ID: <20240605180553.GA2457302@thelio-3990X> References: <20240605003829.4120343-1-quic_abhinavk@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240605003829.4120343-1-quic_abhinavk@quicinc.com> Hi Abhinav, Just a drive by style comment. On Tue, Jun 04, 2024 at 05:38:28PM -0700, Abhinav Kumar wrote: > diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c b/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c > index 0a7717a4fc2f..a958e2b3c025 100644 > --- a/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c > +++ b/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c > @@ -8,19 +8,15 @@ > #include "a6xx_gpu_state.h" > #include "a6xx_gmu.xml.h" > > -/* Ignore diagnostics about register tables that we aren't using yet. We don't > - * want to modify these headers too much from their original source. > - */ > -#pragma GCC diagnostic push > -#pragma GCC diagnostic ignored "-Wunused-variable" > -#pragma GCC diagnostic ignored "-Wunused-const-variable" > +static const unsigned int *gen7_0_0_external_core_regs[] __attribute((__unused__)); > +static const unsigned int *gen7_2_0_external_core_regs[] __attribute((__unused__)); > +static const unsigned int *gen7_9_0_external_core_regs[] __attribute((__unused__)); > +static struct gen7_sptp_cluster_registers gen7_9_0_sptp_clusters[] __attribute((__unused__)); Please do not open code attributes. This is available as either '__always_unused' or '__maybe_unused', depending on the context. checkpatch would have warned about this if it was '__attribute__' instead of '__attribute'. Cheers, Nathan