Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp485145lqr; Wed, 5 Jun 2024 11:32:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWe6o/7gZ1qY0ygVTnOaNAbDSJ9QXzXyt62RPLH0xfZ+lJIvg2N6P/9LqK+t8DnYTtZeCU7tQt8ucLH32ipHg80Id2PDRlhe9fMBVYYOA== X-Google-Smtp-Source: AGHT+IE9PJ1+W4RqHYmq+qRe/lI/yvjkiBeiatTLoKOqzmuKVae+/l4HBMqdPIJLrM557ccMWRnp X-Received: by 2002:a17:902:e80b:b0:1f4:8358:47d5 with SMTP id d9443c01a7336-1f6a590a9d9mr48007455ad.7.1717612344205; Wed, 05 Jun 2024 11:32:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717612343; cv=pass; d=google.com; s=arc-20160816; b=y6ikufrscacguxuQuCveBsYj8iWUCKxZBRu7wsUDipZOOZdB6uxPvRjLYnPxmg2fn0 4rv3fhPR0rIP7Ch7zAfmygJVtkmXFcd/0gkgQOKGM/njFPbYE+fCEFhF5yX/6hQ9KTeu MQf3XlDSuu0o23YPe8c4/FQtooEkMbmSloo0RPpS7QOkJv2nA9R74zLHtzwqg2FKwMOV NqFd8x0+dZg40dZO+M6+fZwktlpMtgjbpiBIuh2nh8WIQgNGlLqlrHZoijmEHQJsUVFi kc4C+1nzW8ddZzwFMn1YxeIY+W1eyXvYENg79HxsOc/v7MeQ3UarylwR2E42ZeVep0HP C+ew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=lNDweJq8WOexpVGadm1HsCQHiC7xA9GF7/ziWHMu88Y=; fh=IObVn/donomTpz5vT4bk4DGhv9BgUzyL4ihOk8phJpI=; b=aAD0JEUjljWWf0sUymQxEkCQ3ht+Xt9y6i398AzN/kCtlcomkxuaUCAokNA6IofjZs idTm4VueHqLkfpdRDICy8IUQK7RfUjMtq0gmQxZvL4ChBJr3l8fWdFwp3wcxe4r4iebP WCn3GeLKS0nWPG0i2Jh9zsjBUTzegp+qt8lSm87eOprz6GTvd3wE0QxJnt2cNhE4z7GC sxYcdzWh+Dj33BE+ZmQgAF+TpmbogoYuK/nZ2YYDbi/tQr7RDA0B0nl3jY4I+0TJq7Ef fDCO6CLPLYM1iyui+7Y1hbnR62k+aZ+uo+kHW7/sKP4WVCwNnQZ/v6tCRag4qnzbgNy8 Cmpg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=JPGAA+RA; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-203059-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203059-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f63233d229si106443315ad.118.2024.06.05.11.32.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 11:32:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203059-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=JPGAA+RA; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-203059-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203059-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 66D9A2870A2 for ; Wed, 5 Jun 2024 18:31:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DFCB913A88F; Wed, 5 Jun 2024 18:31:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="JPGAA+RA" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 9E19A2030B; Wed, 5 Jun 2024 18:31:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717612308; cv=none; b=oBLNuqAApEel74DS39ip7y3bXuCTEHBZsClqhirx6Vdco7Tx70dIQj611rNw/5LFDkj7K8ktNfQmvUhw7A61K14L9ahKMi33z7SnmImoz76lVH8PsLjL0c7LMCK4qsMqe9jM1EXprzgb+XaI0oKAQ+uR/5gCO4TjpcuLlmuVa+w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717612308; c=relaxed/simple; bh=pMhGK2c46VI7tICgIa0pyhSxFvamnt0NcI3irQdY8N8=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=OE9Aia0CqwyZ0GV7PwRHAOkiGyRGO4+OQC7nO48D2c5SUThNOQGHDCrAI4kqekm5SuaLsky/Pd5MqQdSFMmtFBSoDPyFQ0/RRX67lGiZV2urnE3/+Xjl7yBD72httNmFUiEWgHx+zunKDlG1K7UcpW90dbIBEiIJl6TSpypY2M8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=JPGAA+RA; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 455I2vod014213; Wed, 5 Jun 2024 18:31:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= lNDweJq8WOexpVGadm1HsCQHiC7xA9GF7/ziWHMu88Y=; b=JPGAA+RADzu5VcfB clQB0pVmdkOJ2WHOkJKwtCGR3KzeUgaNuZ3RlBnOFmVPaYr/JvW9km8DH7jxwvig S/kionDsgogj1oRR+mky5JqGe6fIu6SmPORi/pdpskF+d8nwGgDrEq18nNIzNlPs yxhtJm1ATEHMY6KSuahNsC9wrDukkoEsDQbQndcPrl3ejbAC/PyZe34fJXrX6+mU 0hSHdWcUyEnSKZI+7aNFrMWMeOWfkU5/GBND+bWDHf1cplThebJc4gI07mM+DzUM OGAgw1RSrugifbpmTez1qJBt7bv83rDxMcCZL+puHcSi8Bmz+q0bwrVDiLKlRJqM Gld9RQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yjvxy82av-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Jun 2024 18:31:34 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 455IVWUI022056 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 5 Jun 2024 18:31:32 GMT Received: from [10.71.110.249] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Wed, 5 Jun 2024 11:31:28 -0700 Message-ID: <77e34b55-b114-e807-b81e-a5525350e547@quicinc.com> Date: Wed, 5 Jun 2024 11:31:26 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v3] drm/msm/a6xx: use __unused__ to fix compiler warnings for gen7_* includes Content-Language: en-US To: Nathan Chancellor CC: , Rob Clark , "Sean Paul" , Konrad Dybcio , "Dmitry Baryshkov" , Marijn Suijten , David Airlie , "Daniel Vetter" , Connor Abbott , , , , Rob Clark , , References: <20240605003829.4120343-1-quic_abhinavk@quicinc.com> <20240605180553.GA2457302@thelio-3990X> From: Abhinav Kumar In-Reply-To: <20240605180553.GA2457302@thelio-3990X> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: RoYk8VptRL-YRt4XhvlSzUgCYjr4uYX4 X-Proofpoint-GUID: RoYk8VptRL-YRt4XhvlSzUgCYjr4uYX4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-05_02,2024-06-05_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 spamscore=0 mlxscore=0 adultscore=0 bulkscore=0 phishscore=0 priorityscore=1501 lowpriorityscore=0 mlxlogscore=999 impostorscore=0 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406050140 Hi Nathan On 6/5/2024 11:05 AM, Nathan Chancellor wrote: > 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'. > Thanks for the note. Let me update the patch to use __always_unused. > Cheers, > Nathan