Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp103312lqr; Tue, 4 Jun 2024 23:29:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUb4/xNzfTzBV9XEFueKUTCcqVBhsvrO/v62DJDN7eLnkQcj8/S9VkPV3qI3pZsqOvCl82enh/VOgv9iZd6zS2bdrbM9+oZOiu/E95Uyg== X-Google-Smtp-Source: AGHT+IG0QBqrk02xHvhkZuOThJ34A3KGU9UjEz+Cj9Z+K76s3Rkc27qgQ9sstu3LqjxenabKkvkX X-Received: by 2002:a17:907:9702:b0:a6a:bcd0:9f16 with SMTP id a640c23a62f3a-a6abcd0a02emr37683866b.25.1717568971626; Tue, 04 Jun 2024 23:29:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717568971; cv=pass; d=google.com; s=arc-20160816; b=dZ3hEGJ1gI01B0utu7PwD1OLoa9u+lM+B5CcPSejlIDS7pHKCXaCcNNFguk6vXoVPU KfoEA/9USbVLdvkNERcMs54y3CgVxZGxda/Y/cjPK9c8sJVpptLBAveWaXPkS1LA6CL7 8wnClyS1EvuCQ80htexlVPtNblpj+l4ToMNZ28DUwXHZfI0EiWIg25sO+Fai1UqVpcrm Dx6HNtqFQ90Jv8PzzzX0OgiI0P+k57VhVb/hh2L6DOnXtygxh2v5l7IeXxvI8h+2ehMS s4ar3eOD0urBhu3N4xMAJf7eL8qhZeJgl5nlwAQE1JGj3HOqXtH2UDAEtLY9YAQmDxhv sQPA== 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=RJ/23iqkxXhCu+0zyqHfXdCfh5GsXoO3Ru5EztY6RCw=; fh=debDRkomzIddbRsUxbNarIaohtnNt9v9tv2CSHcoals=; b=0P8QFnti5AneNARs8FNlaNPXECbVPVWCWF4QKf2ITEMf7tMgYf2t7roxqzT1C1CI6w cuqWSBfAv4MXVQiVbC43KjyjKGGL/I5TsRxvy4Ky5uRVysacsycl8HvYEYHTnza1M68x zz4lIAT8sWhAtQd/VOmXIxydIfVMVX3PxjT4qL7A+POeoVry7gH+pn6KtHIvDN2cZQKF 9v+q93E/ocXNl1l3TFEOxaPQIo/L3JfF1JTQUeCikaUhP00zTbRlOF0K69VYvMYSeFzw KW/JHOpMOhB5PYc9ZB5D/Z+XOSlEgzVGMDrCwloHeJf9xZrqgUWtaETcIYg8T87kYSqP eeOg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FHcRfxUn; 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-201807-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201807-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a68f7c44cbbsi331340866b.11.2024.06.04.23.29.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 23:29:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201807-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FHcRfxUn; 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-201807-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201807-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4FDCA1F23807 for ; Wed, 5 Jun 2024 06:29:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 413B921C19A; Wed, 5 Jun 2024 06:29:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FHcRfxUn" Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (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 6ED6E21C183 for ; Wed, 5 Jun 2024 06:29:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717568964; cv=none; b=HgHIMJov1mmmNsYm74EbtzowQ1ivB4YDxCJCc5IOG/c1rBnjZhCt7m+mzJgUhAo42Qr+bijbmh4/zSPEsD++WJE9+u11iVM+iQJ9cdAbZGPbawccTcAcJcXI8pLet3B3OpzFUq74OZWJ78diVTXX226pjK+Ok8LDJ8trujDrDQA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717568964; c=relaxed/simple; bh=8MKNSHs8EGOAIZ9jigkySNhXca9mZ6lM0o1BuxSWNBY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Dlp+NEiseUZe1O8oya6VIqitVo+/RzRa58RFPvQ0IIR1ATNr1d9TSgpiIGYd8If9PhMnS23DOWOlHHsxSE/vpkzeUZSaoEK59EJ8G+SPA6p4N1UN3IV7HH5jX5j4kFfDUDDMWOM1TDEJW7qVCUjqxecTc4wZhGVGHVeueHyoudI= 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=FHcRfxUn; arc=none smtp.client-ip=209.85.167.43 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-f43.google.com with SMTP id 2adb3069b0e04-52b90038cf7so5341222e87.0 for ; Tue, 04 Jun 2024 23:29:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717568960; x=1718173760; 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=RJ/23iqkxXhCu+0zyqHfXdCfh5GsXoO3Ru5EztY6RCw=; b=FHcRfxUn+BpbyI6o91DoMiD9KAgc4o4f2dWNdUbU66wrMlsNzGUvmByNSWC13Yjvx7 CVNNYJ5bTn8krmLAlvpv9i3EJBdTV03UapQj3N8HQNO/bKuIdbx9VxCGKbeTPYLa3Er4 HhzYV1FSPpIXqjVqjtid54+gDXkQL4iQfvJfpokh3DgZ7meIfHf6pATYR+NyRsCtV4pK s7C+/b1oVZnyGn85LGVwLipCa1yaJnQtJSj1TlbIeYRkpvr12K4aaYGXIr68jbCsLA2s +wFGyCWpHOWAlaAtoxty/6gZ7f0p2gRTch2nES90HcQM7UL+4IBJOVn4vGjfbmBUaLCK oCjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717568960; x=1718173760; 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=RJ/23iqkxXhCu+0zyqHfXdCfh5GsXoO3Ru5EztY6RCw=; b=J61phzvbEh9YRJJuCKH7w/sxUP/SIc2ur2eAqV+A7anTFUBxpkYDP1vLzr+MX3n0kJ uIR73n2Csm78cBsWE0FgQ5GWwXiM82b7oupchxfmT30+1gbei2ChtHGk1S3i/tVoY562 WkkdqVjSU91i5W/KdT5aTjg0easOiubuFyQbY5Oo2imCSTDD64AEGyrrGnVkAfhxYtlw tzzjhl2sQvquGDik4ljLu/WnLjK4v4BzWtA3o9fmAbrUXep13+EEU3+GqG1uK46UkFvH es0/k2VEtKwcxPL3GICZUscQLINI/kJwpXrDmvCaxSjnkZEU95oAnNVW8KH2VHib7j8y +fhw== X-Forwarded-Encrypted: i=1; AJvYcCXlPsSlCCKid/2EGltUyygvThImdrkR+5qU8JbxrPU/XVNFpc2AlP92ytb4qoGXbR7LDY1rOb5/qnMbPtApwUumHK9Z57vbL097TKr2 X-Gm-Message-State: AOJu0YyveWtVbyRLiZvRPEl3vnSy3ta5vvkAuKWioVhxzRNrPbd4cgUM ex+nb5Sb19ET8opqsdibQK1tUYRanM9B7vYvnpO6lAfMadYkUZY9gKY2pt1qKdw= X-Received: by 2002:a05:6512:3056:b0:52b:7945:a434 with SMTP id 2adb3069b0e04-52bab4bd908mr1013426e87.28.1717568960298; Tue, 04 Jun 2024 23:29:20 -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-52b97a15436sm943344e87.96.2024.06.04.23.29.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 23:29:19 -0700 (PDT) Date: Wed, 5 Jun 2024 09:29:18 +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, 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: 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> On Tue, Jun 04, 2024 at 05:38:28PM -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 > > 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