Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp324770imu; Wed, 7 Nov 2018 18:17:57 -0800 (PST) X-Google-Smtp-Source: AJdET5f8xQeHNzV3F2Kf3ejbzbgZ3XIXDepB30utf3qxR3GsSBGPhxC7YolvmgzLDkSdeKgBc2YL X-Received: by 2002:a17:902:584:: with SMTP id f4-v6mr2759042plf.132.1541643477635; Wed, 07 Nov 2018 18:17:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541643477; cv=none; d=google.com; s=arc-20160816; b=YiUYTF5H4oxYRrUKkVuFOkdCJf/7kcJuT3jnAXHiGrWLwsH1QIBrcGthSjGXPIvZHE QPDFVZ+Y3BRDnVirio5+UH0SJoa6t6zC8AAeae7qdOy9taLAdwAnNtxYYQjeeJPnv/vW c6yGtg86VduyZtqxs2QyO1LKtEHYFvX2fpS54V6eIv0TtjtWLYOVQvoHR0o5cedvhMtq fX7hLgJX1IlP0gNNnW0p/E6gwETkCCBNJEZX0ZnoQP8u8ntqHyUJByP9qFaFPSD/Mgaj 5GI9R341ApnTlIM1DzewK0f5Pa762Pa3m9qVeXjg+7m4ww5UIxEmYBK8t92UCMEr1RPf Rn+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=bdV7vQlSeJsKJoPSOFpkdEjACFt4D8tIt2bRV8XUhGk=; b=w7v03ydwSNolAlq+jzmujHedoOm50pdnyCYRoHoevm8bBbfwaUXxv2+y38l4nk4XC+ P+fgziO9HwLRjoyNTsDlkRumSPK2BvK/98A8nhDwWpSRGlttDQBxRuA+K6img0PjELNa LfmF/fKP7z2pWCcV3Sc4YtGLngOo8XBiZh/ebNLd3WIIX4JW3J7+nLcKCyZacj73AgYl D79bdF5hZVehlxtRsQSU1FhuF4W64e//xqLUWwXzJWeEa1PK4/5Pk4AzdYpJjoaAhWgx 8nKerc3jWsrjXFN/Ln63cco0JpdThbnrMkoUdSfpC5Q0agFf7Qhbb7LWmtLA3q5CGw/m +1kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=IFMXD9ff; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si2734152plk.407.2018.11.07.18.17.42; Wed, 07 Nov 2018 18:17:57 -0800 (PST) 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=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=IFMXD9ff; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728612AbeKHLu2 (ORCPT + 99 others); Thu, 8 Nov 2018 06:50:28 -0500 Received: from mail-by2nam03on0078.outbound.protection.outlook.com ([104.47.42.78]:23606 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726684AbeKHLu1 (ORCPT ); Thu, 8 Nov 2018 06:50:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bdV7vQlSeJsKJoPSOFpkdEjACFt4D8tIt2bRV8XUhGk=; b=IFMXD9ffG0uR2XUXgCb/CeZ5hdOzsBMhzm/M0CqkUneXDW1R2+FI43dqXnDchDCug1E0eISI//1W1dHGyQotrZwXpxkF92/6b41bKT2cI/BidRbxDNSIbBBF9MT6jV6XYPcWVRNw8TxzUFodBflwNm9uzwz9oVtj76alFuEfuIY= Received: from SN1PR12CA0067.namprd12.prod.outlook.com (2603:10b6:802:20::38) by DM3PR12MB0746.namprd12.prod.outlook.com (2a01:111:e400:5984::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.23; Thu, 8 Nov 2018 02:17:14 +0000 Received: from DM3NAM03FT050.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::203) by SN1PR12CA0067.outlook.office365.com (2603:10b6:802:20::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1294.20 via Frontend Transport; Thu, 8 Nov 2018 02:17:14 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; linux.ie; dkim=none (message not signed) header.d=none;linux.ie; dmarc=permerror action=none header.from=amd.com; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV02.amd.com (165.204.84.17) by DM3NAM03FT050.mail.protection.outlook.com (10.152.82.252) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1339.10 via Frontend Transport; Thu, 8 Nov 2018 02:17:13 +0000 Received: from [10.237.40.91] (10.34.1.3) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server (TLS) id 14.3.389.1; Wed, 7 Nov 2018 20:17:11 -0600 Subject: Re: [PATCH -next] drm/ttm: remove set but not used variable 'driver' To: YueHaibing , Christian Koenig , Huang Rui , David Airlie CC: , , References: <1541643300-109641-1-git-send-email-yuehaibing@huawei.com> From: "Zhang, Jerry(Junwei)" Message-ID: Date: Thu, 8 Nov 2018 10:17:05 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <1541643300-109641-1-git-send-email-yuehaibing@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.34.1.3] X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:165.204.84.17;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(376002)(346002)(136003)(396003)(39860400002)(2980300002)(428003)(189003)(199004)(50466002)(14444005)(3846002)(6116002)(16576012)(58126008)(53936002)(305945005)(64126003)(67846002)(316002)(104016004)(68736007)(186003)(36756003)(16526019)(23676004)(76176011)(53546011)(2906002)(7736002)(6246003)(97736004)(26005)(77096007)(356004)(6666004)(229853002)(2486003)(65806001)(54906003)(31696002)(230700001)(86362001)(31686004)(47776003)(105586002)(106466001)(65956001)(8936002)(11346002)(110136005)(478600001)(4326008)(8676002)(81156014)(2616005)(446003)(5660300001)(126002)(336012)(72206003)(81166006)(476003)(65826007)(486006)(426003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM3PR12MB0746;H:SATLEXCHOV02.amd.com;FPR:;SPF:None;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;DM3NAM03FT050;1:kJLPrOg54YSrrPKnKrvu73dr2VjSWKUJVR94hvRieBtLGUQqlfUCSMOqvOw1ael9uxaqMqYGOaZ3OOFJwRC1RPp94nEv53S/UBxWl6rgQVdyMS/e5AvfSht7TuzHtsvR X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 792d70ef-51e5-4b16-0ebd-08d645204c69 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:DM3P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;20:1iWrpqH3ZTzXv3PfktOeOqV/KOPOM+l6o0x5C9siCzdcTaAlPXfdN9L4V8AZ7EioyYUEMmaVjDjC7ilP6oEgPj917Pv5pVP7GKaDChjwRNRsuXOHXdxFTRNA0dR+3is3DYswqkDZ4Dr18jRnbo4bNoRVrsdZ3zeezEcPmOyX3dzKVyVuqWhg/ZQ9sUez1SHV5PDi7qPkZwXGpGR/kH+O1NBBJ/UDOuktPZu9S3HGfHN7ATDNDuWcOHTj7ixsTO/KycZy4QZbioSfKTX6SLE2u+eVmc1FjKhMax2kNQVW5JjGPMneSNSopxGcncG7kzhKPuzG+xbWmiDMpLkNC4JybrV5mV93hsAOPUFPK4t0SLUNsRdADEgzG8nBuFlsC8a7KR/YPU/X2mVLyqvVQPpYzscy+tS1fpLN/MKa48dCo8yOA/7TyWd3yOx5gUQo0+rcRuDTBenMRlPUR7fwdX4fSQTxbkXX8/9lrvAUmhnI/HvJ0rLxWmZob1a4IY6uhRSS X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(50582790962513)(767451399110); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231382)(944501410)(52105095)(93006095)(93003095)(3002001)(10201501046)(6055026)(148016)(149066)(150057)(6041310)(20161123560045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(201708071742011)(7699051)(76991095);SRVR:DM3PR12MB0746;BCL:0;PCL:0;RULEID:;SRVR:DM3PR12MB0746; X-Microsoft-Exchange-Diagnostics: 1;DM3PR12MB0746;4:Ia91bYSN6JEJEORSU5HzBqyJ9VGS9VSnSKYt7qdrpvGchuUrUxhwO2fZTUs2dhpgFJcGOIOlgZDWrKVBX3BkM+0OoxGU3/BlUF27uAIRJYzd26dEBuBqqgHDmATAFG+av09w5cNPv6xCRuqQb8PDMkJSdf61Ip64cycZjUQ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9dHNrwzfKmEhAdV3jXxNr6EAJkKK0/65so5GjOFlO+BS98hWwIesnIKJVsjYniz39KgVOasxV7auu0/WDmIb58JK46x12ALxzW2ublK7YnPova500MsgwMtwt33PbDjRWLevPzxc04G6G1AH4KyF9WvGvDk2UEMWHFzpBJQw357wfy3weqJe/w70Vk473OyAIQLP9BDOF9k7LvK0LZqx1lduS5r1FRAVRmZn3RpJ9wPMqpUjiwbE7JklGvsyirbdDVgNvJxihoDjxA==;5:YuvMzUkpk8kkQmz+sTQ/KmPjJ8ffvVSKhxLbTvBJAZ67xjVlRjEhKefngEGzRK7QZYC8Qx2uaMNlYruIg3qdqEBBHyMHIgvaYvYIUqoYszGZdvDqr9IVuPblg7Zzr9FCHQN6lD6RfWkfUYPsR2IGm7i4GWyuEbJMUC/uD6IlNmA=;7:xfBlWGPGsTrigb0KETnSiXARydlBbA6zQcAcA5YUfil8LBYSvstS3Hc2fvpDj8C9bztXP3QhXRobEXYk+GJzxNiwER8t2t6pN16bz2jTMGwM4zUWRJOrpm/B0QfRBWrjhXrFiMqBZTEIVbMObPPUAQ== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM3PR12MB0746;20:5I6hBJguedb/d1pcd24W7wyP7GNtcBHG6BDdskk9qV3gTGm/fxi+xKuYb+a70w4uEQ0Djm/ZdIYiCp/95l6Ww9Dq2KMrol72l6ShuH/pgo1OdEfl73Uy6mr0ZXJIYuBEka7AuOjh2UdCTjDsjLyUG8ZQUxiA3KZhWw6Qbm0yTkFYgI3MAYoCo92rbAufDJbZ9xlgMo/1eonQQGUOpRh0FL2ly37w13noARtwWVG0SkHflqj5xxExG7pJqEOwlu2H X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Nov 2018 02:17:13.9602 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 792d70ef-51e5-4b16-0ebd-08d645204c69 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXCHOV02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3PR12MB0746 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/8/18 10:15 AM, YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/gpu/drm/ttm/ttm_execbuf_util.c: In function 'ttm_eu_fence_buffer_objects': > drivers/gpu/drm/ttm/ttm_execbuf_util.c:190:24: warning: > variable 'driver' set but not used [-Wunused-but-set-variable] > > It not used any more after > commit f2c24b83ae90 ("drm/ttm: flip the switch, and convert to dma_fence") > > Signed-off-by: YueHaibing Thanks. Reviewed-by: Junwei Zhang > --- > drivers/gpu/drm/ttm/ttm_execbuf_util.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/gpu/drm/ttm/ttm_execbuf_util.c b/drivers/gpu/drm/ttm/ttm_execbuf_util.c > index e493edb..efa005a 100644 > --- a/drivers/gpu/drm/ttm/ttm_execbuf_util.c > +++ b/drivers/gpu/drm/ttm/ttm_execbuf_util.c > @@ -187,14 +187,12 @@ void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket, > struct ttm_buffer_object *bo; > struct ttm_bo_global *glob; > struct ttm_bo_device *bdev; > - struct ttm_bo_driver *driver; > > if (list_empty(list)) > return; > > bo = list_first_entry(list, struct ttm_validate_buffer, head)->bo; > bdev = bo->bdev; > - driver = bdev->driver; > glob = bo->bdev->glob; > > spin_lock(&glob->lru_lock); > > >