Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp468383lqt; Thu, 6 Jun 2024 08:45:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWdc+hQMwIocasNl4rtOGykGK2dHD3+A+6kJcVh7KocUkhcErfidy4k3lLDLleIb9AkPx4yQ8XIt9E3dtvhUQ+DeJHrswgF8S0TcltY5g== X-Google-Smtp-Source: AGHT+IGfqG5SZd9jReLqQdfje4XHq2BhOJHeaxjH/vTRmd40uUtj0DNCGWbK5YpCsVp0ujMFrqVZ X-Received: by 2002:a05:622a:1387:b0:43d:d77e:c6a3 with SMTP id d75a77b69052e-4402b627c17mr82103651cf.39.1717688702486; Thu, 06 Jun 2024 08:45:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717688702; cv=pass; d=google.com; s=arc-20160816; b=GmomTN/6NWwh7LVLpdUMmnV3CVc9nmBKNCPpflrYS6JrsRn3io1FsFsuS4x4HfkYIG 4oqK/CJymsE6/RkGUf1IF19dteSTMOrCUHN7/gmfU2BmZNPtp8P1EARroq7fCdmVJAWz JZjJqLHaFkvRbLtTHt2sX1Off039gWWX/vRZrwXgjM2EXSBv15iBcoH9XcLaOpEBSp9S hv5sGwnAZIIZOlvis7R1MroUpzLGNdxATXm68zpd8gjkzQ9QD9iYBy4X9XUY/52Z3aik ImHwDnwI27jB2b4qe5ogZ8nizw/wf+cMjfUALl/TKRkjkAb7xdrg3yB6gma6HUWXbKUn E3tg== 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=CcvLWtoAhuxv7+XmnyzWyh5/jHFSbk/UPbtacznbqAQ=; fh=/hs5c6Lm6txIt5cihtdMa1SYdsI+CrZ8X1nJHfr6ES0=; b=V6LchxkbkCpha8cDsGFIMZzXV+joJ5E9Z57MuuUAWvKgpxpPlq/psgEqveWS1Om17Z VtJdrdk8u9UQdYlDDuU6Iyp1qZUb2IKUb/WRgj9msULFRvyDjM7VPXAZb3cE4GJVSTnE Fuo2DZOzDJR/+RZAGAwPMkI/Ei2yp7KHZJDkiFivQWIGD0HsfYY+Pd+1tkGFn/dysez5 97q58c8bAqQWOvVE78qflKzuRX9Pyw1ifhw04eTQBz1R6tlIN9uT41pwhRlKDtVVBfxK tCF13euUc1b6YZ3NnTmfrS17ozkrcWFDWvrFrpLJQOPblAnB+uBT98t9CNq9UX86RP0A DjFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jXOHFHRb; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-204596-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204596-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-44038b7d3bfsi13608711cf.733.2024.06.06.08.45.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 08:45:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204596-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jXOHFHRb; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-204596-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204596-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 391A31C22CAF for ; Thu, 6 Jun 2024 15:45:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8DAF419751B; Thu, 6 Jun 2024 15:44:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jXOHFHRb" Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CD26519753B for ; Thu, 6 Jun 2024 15:44:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717688683; cv=none; b=uOYJ2x2I4HLHeeCeb/GcrUWYvZsplc1bn4FGqtzCAtVWQ1G+HoKgxcRu/NJfGzU6kKLAFdvXygGDwJjBWHTEJkYvGsgcHC3rIdMtlaBrNUmx3iiczDQjcKSXQU9mrf50J2Ah60nqcxtWJ2ancFcQgufKv4stZDWcjDQcgk7HfEA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717688683; c=relaxed/simple; bh=GK2TAzVHi7t+avHmUmGxuI/Ivtu5v5EspjOyIKr0EM0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OGiGhE7tOJQWzbxWZfD2Dnd3gY+WwtfwqPYWCYutbP7mxcapo07PEguSmxp5L38mPIHtJ8kxiQV2FbWtsqY/2suYLCBPNSOsB7XDTHxY+u1w4/hkczGNtUo/SBlBOBL33RxCm/EQ2MlotPlDibvXfqV+2hOwvw5TGTBBr34ZAHo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=jXOHFHRb; arc=none smtp.client-ip=209.85.167.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-52b938587a4so1295691e87.1 for ; Thu, 06 Jun 2024 08:44:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717688680; x=1718293480; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=CcvLWtoAhuxv7+XmnyzWyh5/jHFSbk/UPbtacznbqAQ=; b=jXOHFHRbt09mM9B9tKrV+CFN1aCkt/ox6ddsiYAhEIu7EV2k8UB6NuaMmZhbWMcU6i TpQHgmlN+IAiTeikDkAY4pYaFhXJGP6k47YpEvlrNQwEFHUrwlfiRP5OPiQ/it2Jp+ME 3yvkodRMX+JWFgHuy1/HhG6k2oYYhJ6CYMST3pyLbgMPHiKQpLqf9kSAYK+Fb/hSotKC ItvFFHipXubPO7xbLISCqHGS7Q7rMEFvAG49fAPlDzKHZE95NJ8qBfXJZgfoeHcPySn2 LESo5bEOh1bdPKLomyb9iXEbX4vBzLXHkWyCanNb+K9Eu1//FfY5pwLb3sUEkaWLE+FB Ww2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717688680; x=1718293480; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=CcvLWtoAhuxv7+XmnyzWyh5/jHFSbk/UPbtacznbqAQ=; b=SJX+nk3DIVcFSR/8uqFAdD+uohaRFoVyOTr9W1p5l5izt6MCuByw/ZW/+x2ygBxn1s qZ1GBwOi8jBqdsHvOBKEoiXM4LxYrV7hytn3f1W4/bRHsSk3+A6ZlE8urlnaFB2FFqoM WQ/1gVdepD/W9FjUf3pGHam90IYZnw/zSpQkAuJDePBCAcHpNZHdlBtnJOpYRxOjtbsM lTl4/OYZ5RGPUqKhS+4CQcp9jtbWpt7LdpPyzPYZ6YYVlVqoJwcw8G+JSdyhMPqDnxy6 6MWbIuzIoia9FKrx3duu4LpEo+XmMH/IU1R1IFXaQzJu6Bx4XKdVoJiXXMAOGJsFxd76 3FHQ== X-Forwarded-Encrypted: i=1; AJvYcCVqyU4IMHoRP4bvIKl4WfTdD0el7ZDuy0uv6WakyLVGdVC7hXjw2uzKi9l/1mCzS9e1DLPX5RSXGKpmFpN0epIoL8VNY2OOXBG3GUE2 X-Gm-Message-State: AOJu0YyZlXSVkogjxwDwZlM2sYmIH3Uy9JbA3jjJTrDIGIy3EguyW1r+ ve5oIKGMA+vmHZ+6Unn9B4GFvKqeOEpFwAHgOriK7DsUU/OuPxKkAOOYxqY6yNjwYD42QaCS5+M O X-Received: by 2002:a05:6512:3b8:b0:52b:7a3c:36ca with SMTP id 2adb3069b0e04-52bb9f7cbb5mr3964e87.27.1717688679984; Thu, 06 Jun 2024 08:44:39 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyyykxt-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::227]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52bb41ee6acsm227187e87.80.2024.06.06.08.44.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 08:44:39 -0700 (PDT) Date: Thu, 6 Jun 2024 18:44:38 +0300 From: Dmitry Baryshkov To: Abhinav Kumar Cc: freedreno@lists.freedesktop.org, Rob Clark , Sean Paul , Konrad Dybcio , Marijn Suijten , David Airlie , Daniel Vetter , Connor Abbott , dri-devel@lists.freedesktop.org, seanpaul@chromium.org, quic_jesszhan@quicinc.com, nathan@kernel.org, Rob Clark , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] drm/msm/a6xx: use __unused__ to fix compiler warnings for gen7_* includes Message-ID: <5b2o5hhq76pa322bum2td4cqqa5333d7rdxxsxulhalt3j24pi@ea7wzku5waf6> References: <20240605183415.259276-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: <20240605183415.259276-1-quic_abhinavk@quicinc.com> On Wed, Jun 05, 2024 at 11:34:15AM -0700, Abhinav Kumar wrote: > GCC diagnostic pragma method throws below warnings in some of the versions > > drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c:16:9: warning: unknown > option after '#pragma GCC diagnostic' kind [-Wpragmas] > #pragma GCC diagnostic ignored "-Wunused-const-variable" > ^ > In file included from drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c:18:0: > drivers/gpu/drm/msm/adreno/adreno_gen7_0_0_snapshot.h:924:19: warning: > 'gen7_0_0_external_core_regs' defined but not used [-Wunused-variable] > static const u32 *gen7_0_0_external_core_regs[] = { > ^ > In file included from drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c:19:0: > drivers/gpu/drm/msm/adreno/adreno_gen7_2_0_snapshot.h:748:19: warning: > 'gen7_2_0_external_core_regs' defined but not used [-Wunused-variable] > static const u32 *gen7_2_0_external_core_regs[] = { > ^ > In file included from drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c:20:0: > drivers/gpu/drm/msm/adreno/adreno_gen7_9_0_snapshot.h:1188:43: warning: > 'gen7_9_0_sptp_clusters' defined but not used [-Wunused-variable] > static struct gen7_sptp_cluster_registers gen7_9_0_sptp_clusters[] = { > ^ > drivers/gpu/drm/msm/adreno/adreno_gen7_9_0_snapshot.h:1438:19: warning: > 'gen7_9_0_external_core_regs' defined but not used [-Wunused-variable] > static const u32 *gen7_9_0_external_core_regs[] = { > > Remove GCC version dependency by using __unused__ for the unused gen7_* includes. > > Changes in v2: > - Fix the warnings in the commit text > - Use __attribute((__unused__)) instead of local assignment > > changes in v3: > - drop the Link from the auto add > > changes in v4: > - replace __attribute((__unused__)) with __always_unused > > Fixes: 64d6255650d4 ("drm/msm: More fully implement devcoredump for a7xx") > Suggested-by: Rob Clark > Signed-off-by: Abhinav Kumar > --- > drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c | 12 ++++-------- > 1 file changed, 4 insertions(+), 8 deletions(-) > Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry