Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp397294pxf; Wed, 31 Mar 2021 06:17:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMRysz36cs0zGLCTjV6e6zdAq6Yc+gDEcZt338emOuUEJw58DeEHQKIjeTUcSu7ffx4bx4 X-Received: by 2002:aa7:c654:: with SMTP id z20mr3600183edr.377.1617196630757; Wed, 31 Mar 2021 06:17:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1617196630; cv=pass; d=google.com; s=arc-20160816; b=pLVOuiBgC43OqdZ/ZDJrmX12+ToJg7fvkkOTIbd8tWn3qkmlvwFUHvoThLUPl/Q6y5 maU8T8SF7K7vfKNJ2cMYiVyUR/oXNkrFZ38Q8EXYEBZH5jOHx0vNJy1H7ttjcYbNtRqK XKHs/f7RVPJv38kOG/1uyQxnCyQJJb5tmaLytpq1h2KA2sfnp2o4zfO48NNkOdox+lHw eoexWmnipNbD4YRkCI8CVbMLDpSGcik8g+7FvIpJB35H5q9FHRthzOqEPj6E/Zaz6x92 576dlsPdXpFf5T3ZcItiUnFXfEIEiVF46A13Mc9RYlsR76IQ0aBH7pQJgaUgtrPZOvII TNtg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-language :content-transfer-encoding:in-reply-to:user-agent:date:message-id :from:references:cc:to:subject:dkim-signature; bh=tXifBsN5n0n//EK0jzxvtIEsFE1hzwaexvcpOSHGbqM=; b=frO5/st+5YZn6JBjztk5WuHfavT8UhmKB2LutK7BhGUn8pge9GJA/DbvZkReIIunKP KtP2finJ8NSsSvKJB6zlszDSAhqUWjIwey4YrdEJmWuyZjz42y5YdB2XXI4UD+GUQ2ga yFI6TeaS+oZemGLyWYp+t5PFJuY5t0cWa9GTFREQ/pcHtWtt+3HrchtXWyJTFRic/ByD 9ipQJ0wnnrhjIw0zinzU6frz29qY9ymr4Zz0cO5Qkpo0nQsWn6rhwnUO6zzHug23NvJS 2BTcmFOPpiclVilk10L6yQhRTD2fFhZ3pVoQvWZwufNqIeJWunnZLaK19kQGEzy8anZU wUug== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=jRZDg03K; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amd.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b21si1518512eju.469.2021.03.31.06.16.47; Wed, 31 Mar 2021 06:17:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=jRZDg03K; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235140AbhCaNPv (ORCPT + 99 others); Wed, 31 Mar 2021 09:15:51 -0400 Received: from mail-eopbgr770082.outbound.protection.outlook.com ([40.107.77.82]:50661 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S235711AbhCaNPc (ORCPT ); Wed, 31 Mar 2021 09:15:32 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Iua6uWn4M8XRJTXXJUBlwjr1wOuCnFvIWK321PjrRGFZ7xPqY9uMZ6nmUolrarKkYNzZB8fv4nH5jbNbra/+jOz+nwgt9V91pAhMT7gwbwW/K2JcAgRbogAsiUwwKlVz0efpqIPEZq9KakynvSkaUqXc3iJ2lt5hS5wyCP+SUZgdXV99MwBOr2CZNObi+UpKVx4IuDcJ0ic3CU5H5OCF1Z7q/BX5Ki/0kqu+wShiRSKDeilYpze09ygAJk6yKez1xRcilu2AXFsLXDVi1DbTO6l+23qvchFaugvGT49BqbvxNkTTA8dYtVD2ZMWSIYAVlTID8gtAU1AsF8dyx2ZGZg== 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-SenderADCheck; bh=tXifBsN5n0n//EK0jzxvtIEsFE1hzwaexvcpOSHGbqM=; b=hXhBQ4jXXgNvVs0MT35w2jpDQWC1PQLG3+BUXLCPgB+EOSdK++/FRqanq4UUHirsfFK0lWzIw4e8hTSYtzwmWNaod1cEEe7p95eEZiSNpN/eRRUC/xiNRp5E7nDA09Rpfx3Mxum+wdLuBOPz7CT1RTT+b/ghxCfS3YRgGRhIwlSO/iU+LF5S/bDOXHTwN0xpeiCP1ADhMRJC2/oSJLWBLT5uUmeHYHvJjLwIujddtXjPDE/Zc0EByEWOylxvwdmuMZiNYtPLFRG2bBpdCbaDwmAIse4vZh6uIRUsZ4/hN0X76UD5/2Al0isAH0b3BvssZdYKchWZIcKx4PlYC0LAUQ== 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=tXifBsN5n0n//EK0jzxvtIEsFE1hzwaexvcpOSHGbqM=; b=jRZDg03Kd6/PCt0pp1ptCZM/bmygzTot1XkmfntfhJGnWgF3hdeB2n2n0S4NEDllVTOzIkQzj9QsZkgNDU23EEzKKi6utEAxPfrs0E9guWl6hyOCFxA8QL4ARGAmnU0YxdlDoGDhmiahjdSz/Ii6DQxStfr8101F0mVZrUkTF6g= Authentication-Results: vivo.com; dkim=none (message not signed) header.d=none;vivo.com; dmarc=none action=none header.from=amd.com; Received: from MN2PR12MB3775.namprd12.prod.outlook.com (2603:10b6:208:159::19) by MN2PR12MB4520.namprd12.prod.outlook.com (2603:10b6:208:26f::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.29; Wed, 31 Mar 2021 13:15:31 +0000 Received: from MN2PR12MB3775.namprd12.prod.outlook.com ([fe80::c1ff:dcf1:9536:a1f2]) by MN2PR12MB3775.namprd12.prod.outlook.com ([fe80::c1ff:dcf1:9536:a1f2%2]) with mapi id 15.20.3977.033; Wed, 31 Mar 2021 13:15:30 +0000 Subject: Re: [PATCH] drm/ttm: cleanup coding style a bit To: Bernard Zhao , Huang Rui , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: opensource.kernel@vivo.com References: <20210331131251.60883-1-bernard@vivo.com> From: =?UTF-8?Q?Christian_K=c3=b6nig?= Message-ID: Date: Wed, 31 Mar 2021 15:15:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 In-Reply-To: <20210331131251.60883-1-bernard@vivo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [2a02:908:1252:fb60:46d6:1b43:479c:c70b] X-ClientProxiedBy: AM0PR10CA0043.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:150::23) To MN2PR12MB3775.namprd12.prod.outlook.com (2603:10b6:208:159::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [IPv6:2a02:908:1252:fb60:46d6:1b43:479c:c70b] (2a02:908:1252:fb60:46d6:1b43:479c:c70b) by AM0PR10CA0043.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:150::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.26 via Frontend Transport; Wed, 31 Mar 2021 13:15:28 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: b37cde10-d395-44cd-d922-08d8f4470e7e X-MS-TrafficTypeDiagnostic: MN2PR12MB4520: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:53; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: b8ohR/BgMz59acMPYWShonIG2v+U45Oo1CqaN87M97Dx2L2qYnPMhVfR6O8p7EUNhjkeQ2ph9G9//BjzaTws8c+1C4PePf7ursU2oegtQv/dof7W9PR9C46j1BEFoNdfDv0XZpDjtORDQwz1Jw0AFRjJXvOWtq4ZHZsT0O0Rt20H+pqE8oS8viYmYyFN13e+/zFh4kvyA3DEzJnzev/xRzQC+pYeUAT2BYwVU8Bkc/b1nBledEDPvaVe9hVqyqJWM4tSO73+tJEjz6xaCy2hLRGJrEymMBOp1Nhh19l5By7bTpbHh3qvZ1EPlmBEwECU/alfTh2pv0Z0FV2t4xfhiLsyAwWN9v+QrBQIVmtymX8qdHPJ40y45YHdZABb2z7YZZmZ2DVNCgRn2/nr0iOirKTGe3LHDLQY1XKctOD6Og9LukeOf4tmSeySpYA3g/BKl0kMDGWXAm7z4FN03KSNR8BRTJ8knAPrE2X0JJ5epsJuM9+3/LgdEhFRSOEupd6/RU7G4Q9CmSmHfCEkruf1JEk5dvXJScGSzg0DUDX2G6+ysnkyQOYfMvUJNZOxolz7sBzoeZJbCNiHsKvmnd26jv5KsPTrh0xweb1Y0F0EU8t8Tn+JlxWtz3KcpbTAp+XMjbjJSivJ+/mAFx0/oYg+Szjy2u6tZaXq/9oNHqkAYiLDfs77zHDQpGxzj4X9Z2u3D4hKy+9T/8EWidPSTUFBc8W2KNZm+dH3lEwm5Q4ooc4= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3775.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(376002)(396003)(346002)(39860400002)(366004)(136003)(6486002)(8936002)(478600001)(110136005)(8676002)(52116002)(66476007)(86362001)(2616005)(66556008)(66946007)(31686004)(83380400001)(31696002)(2906002)(38100700001)(16526019)(36756003)(5660300002)(186003)(316002)(4326008)(6666004)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?d0FJKzlrcVN6OWpueW04U3VWUm9nRmxFdkZZaG1YYVNMSy9nbytMN0RLU3Z0?= =?utf-8?B?TXI0V3FoYmIvNDFWOURrb3RKRkZNUjNjY1RWVFp4am56QnRlb2tCY3I0Q2J4?= =?utf-8?B?b2V1blF6Z3FFdHN0QndMVFFGRUFGQ0tGd0FQbGU3dDd3dEpJc2N5eFJMMDI0?= =?utf-8?B?ZFFub09YL29GQ2xmWENGYTFGTDFITmhtMk5TTnVxOEtJd3lXbEdJSkhNUCtC?= =?utf-8?B?aDdJQ0Z3bVI3Y0wveDdwdjlVN1BISnF0TzdLWjB2MXBjb3FIODA0MnBlb0l5?= =?utf-8?B?a2toM3E5cmhjYzkxL2FvM01RZGtHd0NUaWZqRms3bDQrUFFhRElDbThXeDZh?= =?utf-8?B?M0pQTWpGSHZ0SXdkd2hBUGZWNHJSWGpLWnlmTTJQRzRDMFU1WTJRMW9IckJm?= =?utf-8?B?ZVJOelNsbmlYNlg2dWcrSVl5VWhyenljM01sRis1RktXemhyL1hFOFZLcnRp?= =?utf-8?B?Vjdqa1lLK3hKWGI2Zm84R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8?B?Q2FjeXE3ZUhnRVF3UlhEVjBIZ05OaGhGUlFyMWFjQlEwNnRYcUlqR1A0Zi93?= =?utf-8?B?UFJ2UXdqSCtFMVNNUHJXai82SzZrK0JBQjNNUGhpTW9HNVhnKzUvemVIZlJ6?= =?utf-8?B?RllqZG9ZZ1hnTjZ3elZjTHdUNGlMd1l2NVNwa3I2UFAwZENDb3JwVDRvYkRx?= =?utf-8?B?ZFI2UEYxRk5OcHNDV3ZWQlFLSURJQzdPQmIyVjNJMkZPZDhuUzE2Z08zMVBY?= =?utf-8?B?OStuS2xmbENNL0hsM0I2L3lHZldnVWJzdmFTRjUrMEo1T09jSWRQZ2JYTjRP?= =?utf-8?B?aHZhdG9RcGQ4dkZWa3V3Vmg3RTdWMFB2TG5Wbmg5b3lBVWp2Rnk1dlh2eXRW?= =?utf-8?B?bVo4VHJjS0o2a0l5cHRTK0g2TzIxL0dOTXl3eHhiR2QzeTkzZ3pxekVUa2FE?= =?utf-8?B?bFdBL2JvazJQTkxnNFlGYVU5TzNkekFJQ2pURGliemQzcEdKN29FUWtuWnFV?= =?utf-8?Q?yOh1rc0yItYTZ?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: b37cde10-d395-44cd-d922-08d8f4470e7e X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3775.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2021 13:15:29.8713 (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: H1IYkMzkW3c9DXx1q4IhetnITbSEWThkTXwrYRcrkVDhNQ9ucz7mRvTEE9C2S7UL X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4520 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 31.03.21 um 15:12 schrieb Bernard Zhao: > Fix sparse warning: > drivers/gpu/drm/ttm/ttm_bo.c:52:1: warning: symbol 'ttm_global_mutex' was not declared. Should it be static? > drivers/gpu/drm/ttm/ttm_bo.c:53:10: warning: symbol 'ttm_bo_glob_use_count' was not declared. Should it be static? > > Signed-off-by: Bernard Zhao You are based on an outdated branch, please rebase on top of drm-misc-next. Regards, Christian. > --- > drivers/gpu/drm/ttm/ttm_bo.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c > index 101a68dc615b..eab21643edfb 100644 > --- a/drivers/gpu/drm/ttm/ttm_bo.c > +++ b/drivers/gpu/drm/ttm/ttm_bo.c > @@ -49,8 +49,8 @@ static void ttm_bo_global_kobj_release(struct kobject *kobj); > /* > * ttm_global_mutex - protecting the global BO state > */ > -DEFINE_MUTEX(ttm_global_mutex); > -unsigned ttm_bo_glob_use_count; > +static DEFINE_MUTEX(ttm_global_mutex); > +static unsigned int ttm_bo_glob_use_count; > struct ttm_bo_global ttm_bo_glob; > EXPORT_SYMBOL(ttm_bo_glob); >