Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F13C5C6FD1D for ; Tue, 14 Mar 2023 13:12:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232158AbjCNNMb (ORCPT ); Tue, 14 Mar 2023 09:12:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231564AbjCNNMO (ORCPT ); Tue, 14 Mar 2023 09:12:14 -0400 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2058.outbound.protection.outlook.com [40.107.244.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7ABD95E34 for ; Tue, 14 Mar 2023 06:08:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BvIYxNWL8MylPpaeMGvVHgkapAt0bUvfPe2eU+xhQCTYP6n2Ga6u3CftZiCM3tkS3FTr0P6afMRULKPquXj8K/S4l89ylftMp6unN1lymPxPJFCeXIzaBKjat7JJ8D5AYmIIdWKmCR8h9QdMSKTOYlJOWHov+JUAbgT57vV2vn3DIHMA7Vr253lwRrno/257Tha2IAWuMxNl45TQS9HNCLdZN1dzC+/xFPqVz7vmSkkAPFNh9Xb7nW3IKecUvYmMJtObn9VOZrdnx+MYKJNYOxe/H47CntdnSQLLByzGxO+EEpmJGDRA0s0hbv/1EFWGfp1E3kQD7DqkEbaIXQxFAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Gy/kl5XTz5vVfTpuKvbZ0ccTc8MsZ81xw9RC6nq0d8U=; b=RxcpZv9K6Rb/OsrUBknCUNMIfQzxj3AFP47WxLDVDiCW7JzDYcyhCmdNXps+dBxEJADBvSPnUQoEOSBYrf5N2bN9f3pY+uswBZSWmCWzaB0xefFlFAqiKRhrJk4IgKztSyReJP6QaQl95RCxaB+g2GPeLBRo0mnbukjke+uhJwaW/FL3CW3wWzc6D81pXKCBtMPcS0RMPTeLSia2yWnAEDNRUdNa+HZvjC9l2Y/ISqhu5jW3Bc0HrHd5gg8Z/IiIkShSCjX2L2KJcNDCm9pS14hgNvblcOCo6GcsvFTqvMqp4QfXgpHUfEDlOohA6BR80UJ9ezanPBRD1Qf7wVxZRg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Gy/kl5XTz5vVfTpuKvbZ0ccTc8MsZ81xw9RC6nq0d8U=; b=TqSwD78zCSNqaZdVidO6gRm0rgsGe5+RVNraZ5BIAPjclYawKSIZxiQSzryeY9Ybza0JVHHJaNRYPgLI4vNOKxQFRBXDBRm5EY7KARxuF/4UNdN3+2Gjm9NVph22XnOCfWMOzCRDIJynfStagDek/uo3WHZeVECNE91thnm/xNU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BN8PR12MB3587.namprd12.prod.outlook.com (2603:10b6:408:43::13) by MW4PR12MB7383.namprd12.prod.outlook.com (2603:10b6:303:219::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.26; Tue, 14 Mar 2023 13:08:14 +0000 Received: from BN8PR12MB3587.namprd12.prod.outlook.com ([fe80::d23f:bb1:df95:3918]) by BN8PR12MB3587.namprd12.prod.outlook.com ([fe80::d23f:bb1:df95:3918%4]) with mapi id 15.20.6178.024; Tue, 14 Mar 2023 13:08:14 +0000 Message-ID: Date: Tue, 14 Mar 2023 14:08:09 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH] drm/radeon: remove unused variable rbo Content-Language: en-US To: Tom Rix , alexander.deucher@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20230314130616.2170856-1-trix@redhat.com> From: =?UTF-8?Q?Christian_K=c3=b6nig?= In-Reply-To: <20230314130616.2170856-1-trix@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: FR2P281CA0012.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a::22) To BN8PR12MB3587.namprd12.prod.outlook.com (2603:10b6:408:43::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8PR12MB3587:EE_|MW4PR12MB7383:EE_ X-MS-Office365-Filtering-Correlation-Id: 1e91a1ea-4736-49a7-69b8-08db248d2b86 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sNH05qPkhwoe73lrz/tjdJPHDZL3g+CRjqK5EBAZeAjD61FDa255p6bQWLH2XK9PmEaZyM5s3bzYQEe2uK6FoEHKPZlM63OF8d+cxUF4StiF9e+NcyiLIdC+VCJoWXgwIMjhDxStecm/WzLGO7v2yT17iL0rQs4T7oVlhfljOfSMloZh9GLVSoQrM1bRp8Jp80/TLcgwtCvt8WYyVQtSLniiK2oZie/87iSsC33tJQUmLYxyz5NYGVTIPgtpzTDy+dmgtvPtLtC95UQ8GWjmOyWljGuV/UP0cZN6pkREF0FhPdXuf9ZDVyTeipzAY8tfpjFM9mnYFY7aHe8wSB4flq4qAA9cEcQV3KS/AqZepoRBt9QZIUcqk5pRv+49of/g9vBLH1LLQu8DOo5X6cUp72NNtPWyZdSB/5Krb/mNdOHL5oSd4AkCdarVTHQSqo9dcBbByrQ62iDqjrEnvBMKH2ZTWdiTp9Z/9G5nLL6tAiqwwh4lnhXPNMujzggmRJxM9mIdlpsg0WqSgPEqoAmqyAU4DN7ZRiH3BoUghAlUnwnC+ijHrEMsFduUWO/2lPpZFBoWzEx7tsM4YaYbkpjzcrcwRogzreT/yOt34l6a2SSBqEhBz/MXpBk/gwQEshc/ZONt00twHBpbDLN+mJLnN/XjiNafEeCoHX2wZuapEn9iVxkJALWoZ+iPbuO10ACduw49IUmnqW9ljKKP22ItuGykPjnOoVBpGzA8eFSl3Wg= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN8PR12MB3587.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(39860400002)(136003)(346002)(366004)(396003)(376002)(451199018)(36756003)(316002)(38100700002)(83380400001)(26005)(6666004)(6506007)(478600001)(2616005)(186003)(6486002)(8936002)(41300700001)(5660300002)(2906002)(86362001)(6512007)(31696002)(66556008)(66476007)(4326008)(8676002)(66946007)(31686004)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?d2dtT3N0TE1oaFkwdXloT0loa3FjMU9oTUdtejIvbGY1M1czaHVVWFZnRnNR?= =?utf-8?B?cFVRSmVQZm43WnlnSFFjdVNoWGpuRnV6Z3hRSFIrc0Q2dGJaMFFyUG93ZHY1?= =?utf-8?B?UkhtNzRRRlFEZXZScXNJdlRFL0FGRHloMmR3S3lTb2orbkdE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VhK1JBdWNXWDAvb3BzNmFydllnVzI2?= =?utf-8?B?d0Ztbk45cTE2elN2VURmdHZmM015ZjMvazNFUGUyZjdFQmZ3dkR3N0srM2lZ?= =?utf-8?B?QWFaN2ZWZ2hVZW1UTXZUcmdjS3FrY05FVEpWQmJGblR4WDE5bDNtUm5ZMUtM?= =?utf-8?Q?tsgvGm84UXIfguK40NvKzVeKN?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1e91a1ea-4736-49a7-69b8-08db248d2b86 X-MS-Exchange-CrossTenant-AuthSource: BN8PR12MB3587.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2023 13:08:14.4774 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: MyjEUqgDmJlCl+d1oeE6h72mkiwLUcEqjZkIu404uAZpuONCX/LVa4CqULYvwGpU X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB7383 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 14.03.23 um 14:06 schrieb Tom Rix: > gcc with W=1 reports this error > drivers/gpu/drm/radeon/radeon_ttm.c:201:27: error: > variable ‘rbo’ set but not used [-Werror=unused-but-set-variable] > 201 | struct radeon_bo *rbo; > | ^~~ > > rbo use was removed with > commit f87c1f0b7b79 ("drm/ttm: prevent moving of pinned BOs") > Since the variable is not used, remove it. > > Signed-off-by: Tom Rix Reviewed-by: Christian König > --- > drivers/gpu/drm/radeon/radeon_ttm.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_ttm.c > index 2220cdf6a3f6..0ea430ee5256 100644 > --- a/drivers/gpu/drm/radeon/radeon_ttm.c > +++ b/drivers/gpu/drm/radeon/radeon_ttm.c > @@ -198,7 +198,6 @@ static int radeon_bo_move(struct ttm_buffer_object *bo, bool evict, > { > struct ttm_resource *old_mem = bo->resource; > struct radeon_device *rdev; > - struct radeon_bo *rbo; > int r; > > if (new_mem->mem_type == TTM_PL_TT) { > @@ -211,7 +210,6 @@ static int radeon_bo_move(struct ttm_buffer_object *bo, bool evict, > if (r) > return r; > > - rbo = container_of(bo, struct radeon_bo, tbo); > rdev = radeon_get_rdev(bo->bdev); > if (!old_mem || (old_mem->mem_type == TTM_PL_SYSTEM && > bo->ttm == NULL)) {