Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1065592ybd; Sat, 22 Jun 2019 23:02:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+3fJrwwShlKzMeFuYdyMKHcRuXEIC9q3cGlXCszdXeiPyLAlOWWAlEeJ6jtxO4QcSzREa X-Received: by 2002:a63:63c1:: with SMTP id x184mr2512057pgb.213.1561269759138; Sat, 22 Jun 2019 23:02:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561269759; cv=none; d=google.com; s=arc-20160816; b=uhDGCabQu/ZOFutDKCCE+jW21WoNYuhTMUW2jyJzcLtJ6JdiAp3PN1jC71joIaaAaN INsan7908PoOi0tJEapBqFG/VBE74x31YWIUwOQauR9cLxnxSYqZQdQEV2KDnUizwr+L UK3lYMBga5rgsJyprbtwflX5n75LSCRC861RRqQUenZWv1MXLnAFZyksOqocb/8JqZMA Z5QP3UPOGhsevSvYJmAb6GtdxndT2IpYTI5+Yc3JaeoFH93atB2/IQk2HlM0LpVTfoz6 b9QV8r0jup+ZeWFBklZhm2hLACHYSabkmh+kpl5BP7T6JEEeceUGSYCakO3D1rtxAFXl oxLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3Tqxh9oXL076ygce3iRd3OSDhwc/AqTWDgGWjKB7jzU=; b=XhHsEXyxTLxFfutYXsuHs8Kr9eC050n9fWHjREmes7qFI7sCVyy8LE5gK3/jUrwaVo 4peZRev9U3agPdjyhMaqTCwbA2J22oem+zkNTERZIrwtzQyABPseHxoC0eBUterAnwxD tIVZahxVvDqNpw1R7kERZAWrp8Ls0ygQJD0NDfUAc5d/UfPnwfHp92ezGWVCXPqnfbrg +KyBkpiOKLW+cycJ+8GXz8TUzzkrjZzULq2/Eve59YQmR8qN1mV+gt9BRe6GrWM8NU2j npy8RduXfHOTqflYXbDxFL46f2pBQPQasutYnJxwOZd3UFVuQfwXYFtC3Lg6raWlEa8f 0K4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=u8cYt3D8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w8si6481171pgr.258.2019.06.22.23.02.23; Sat, 22 Jun 2019 23:02:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=u8cYt3D8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726407AbfFWGAw (ORCPT + 99 others); Sun, 23 Jun 2019 02:00:52 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:40948 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725268AbfFWGAw (ORCPT ); Sun, 23 Jun 2019 02:00:52 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x5N5xPkZ118818; Sun, 23 Jun 2019 06:00:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2018-07-02; bh=3Tqxh9oXL076ygce3iRd3OSDhwc/AqTWDgGWjKB7jzU=; b=u8cYt3D8fx4rByZ8Kowuln3CYMbi9ubjwSQCfykl6KCupJN4TmO8X4Xyamx66n0/GydA ytg04soBoG1ilu6pSYSxPRe2BCkQGAoqG9y5NK8DtchGm9MjdepTcOto6qhLDQZmaeGb IniAnXDyUxnleyorU24VOxoEPkPFX+2mMm8Njz6w8uzqpSWFuN5Ci+UfbbrYZ//HzF41 8BbVBOSZKEsoxuMciqS8dxc//wH8b4wDL3ENvDin9bZySNmWZPcvqsi3RVmRFBxLGMVu ErEjGc8izlBubGhubeD1afYvBFlg2i0PoKP6/6p/Qz1NAcWLm6r1noOnQT5PHLKHmhUl KQ== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 2t9brst328-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 23 Jun 2019 06:00:42 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x5N5xqJX142593; Sun, 23 Jun 2019 06:00:41 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3020.oracle.com with ESMTP id 2t9x1ej6sy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 23 Jun 2019 06:00:41 +0000 Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x5N60aku021412; Sun, 23 Jun 2019 06:00:37 GMT Received: from kadam (/41.57.98.10) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 22 Jun 2019 23:00:35 -0700 Date: Sun, 23 Jun 2019 09:00:27 +0300 From: Dan Carpenter To: Mao Wenan Cc: airlied@linux.ie, daniel@ffwll.ch, alexander.deucher@amd.com, christian.koenig@amd.com, David1.Zhou@amd.com, kernel-janitors@vger.kernel.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] drm/amdgpu: remove set but not used variables 'ret' Message-ID: <20190623060027.GU28859@kadam> References: <20190622030314.169640-1-maowenan@huawei.com> <20190622104318.GT28859@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190622104318.GT28859@kadam> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9296 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906230052 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9296 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906230052 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 22, 2019 at 01:43:19PM +0300, Dan Carpenter wrote: > On Sat, Jun 22, 2019 at 11:03:14AM +0800, Mao Wenan wrote: > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c > > index 0e6dba9..0bf4dd9 100644 > > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c > > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c > > @@ -246,12 +246,10 @@ static int init_pmu_by_type(struct amdgpu_device *adev, > > /* init amdgpu_pmu */ > > int amdgpu_pmu_init(struct amdgpu_device *adev) > > { > > - int ret = 0; > > - > > switch (adev->asic_type) { > > case CHIP_VEGA20: > > /* init df */ > > - ret = init_pmu_by_type(adev, df_v3_6_attr_groups, > > + init_pmu_by_type(adev, df_v3_6_attr_groups, > > "DF", "amdgpu_df", PERF_TYPE_AMDGPU_DF, > > DF_V3_6_MAX_COUNTERS); > > > You're resending this for other reasons, but don't forget to update the > indenting on the arguments so they still line up with the '('. > Sorry, I was unclear. If you pull the init_pmu_by_type( back 6 characters then you also need to pull the "DF" back 6 characters. init_pmu_by_type(adev, df_v3_6_attr_groups, "DF", "amdgpu_df", PERF_TYPE_AMDGPU_DF, DF_V3_6_MAX_COUNTERS); You can actually fit it into two lines afterwards. regards, dan carpenter