From patchwork Wed Aug 1 05:49:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Huang Rui X-Patchwork-Id: 10551715 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8FF2813BF for ; Wed, 1 Aug 2018 05:49:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 803612AE05 for ; Wed, 1 Aug 2018 05:49:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 73D792AE4D; Wed, 1 Aug 2018 05:49:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 37F752AE05 for ; Wed, 1 Aug 2018 05:49:52 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C7C456E1AB; Wed, 1 Aug 2018 05:49:48 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0046.outbound.protection.outlook.com [104.47.38.46]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9F32D6E029; Wed, 1 Aug 2018 05:49:46 +0000 (UTC) Received: from MWHPR12CA0046.namprd12.prod.outlook.com (2603:10b6:301:2::32) by DM5PR12MB2392.namprd12.prod.outlook.com (2603:10b6:4:b4::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.995.21; Wed, 1 Aug 2018 05:49:45 +0000 Received: from CO1NAM03FT038.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e48::201) by MWHPR12CA0046.outlook.office365.com (2603:10b6:301:2::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1017.14 via Frontend Transport; Wed, 1 Aug 2018 05:49:45 +0000 Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV01.amd.com (165.204.84.17) by CO1NAM03FT038.mail.protection.outlook.com (10.152.81.212) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.1038.3 via Frontend Transport; Wed, 1 Aug 2018 05:49:44 +0000 Received: from hr-intel.amd.com (10.34.1.3) by SATLEXCHOV01.amd.com (10.181.40.71) with Microsoft SMTP Server id 14.3.389.1; Wed, 1 Aug 2018 00:49:42 -0500 From: Huang Rui To: , Subject: [PATCH 1/3] drm/ttm: fix missed conversion of set_pages_array_uc Date: Wed, 1 Aug 2018 13:49:31 +0800 Message-ID: <1533102573-15365-1-git-send-email-ray.huang@amd.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 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)(979002)(136003)(346002)(376002)(396003)(39860400002)(2980300002)(428003)(189003)(199004)(110136005)(316002)(305945005)(2616005)(48376002)(81156014)(8676002)(126002)(8936002)(50466002)(68736007)(104016004)(36756003)(486006)(81166006)(356003)(476003)(16586007)(2906002)(7696005)(51416003)(5660300001)(86362001)(186003)(336012)(426003)(4326008)(450100002)(77096007)(47776003)(72206003)(26005)(106466001)(97736004)(53936002)(6666003)(14444005)(50226002)(53416004)(105586002)(478600001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR12MB2392; H:SATLEXCHOV01.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; MX:1; A:1; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM03FT038; 1:o+0dZhd8zK2/UALI+aUU/Y5Ol0sQYqKB8Jo3ybKcYHjBcaRZUHRa+5FTCXMHYVaEE4Vn6OEixmNdQO3gXWIWUVMml+LRE3ocIDkaX/ebFO3Y1i+rrQntjtMsBsPqbSWp X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ba7e447b-7be5-4b36-7e0d-08d5f7729561 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600074)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060); SRVR:DM5PR12MB2392; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB2392; 3:B/ztS6RmZcWV58srImjt0diz1qx2i1GhxR7rKVKxFkVUgO1x5OczEcDhhMtzq7cNvyWVJTiVcs+SnMmm9Tk+u10DRSee4SufViWLJL/ms8DlLmVsU8xX96Z6aPFCin+nyZBZfFxkTwZtFWq9KfjNXZ4idf9nFGhg6tgm2+E24KhZnt1Jl4toieLGUs0JKXKfIKTZHH4t9q55WjJoIc3Gji1urlMJCyKHZCJ5Ti3BbcYMY9/RSviFESCpSQQiB4t4BRY17efKbBagh7YPA9vFAtxuAiJZ2CG+NVqIh8THAL/hHLUU3NtVasov8tdZN13cYVu3y5Iaoryd2g6emPr6mGT8GhS7DRZCStdjoAd+FRU=; 25:Z94p7fmp67EUigMuAl8KavNXQdJlUIeu8E9Uk3XyGHypuOv1xDEl+10J52/MGSkpYTEQb0h+0zSKJyQak0Y2fP9R1OSmwsFuNipHMKX4Ydpe5aDj7M60puK9rzU1vZ9XsAy7/lWaus5YCEMqQ5wzU4Wlrpk32WwMWJiNvc0/43i5OLRLRDavmIsizV2LJNnAUm3GXnyEwEBkczezGWDQsUebSWRL0FKZiuL7fY2kWKEZE6W7/TTqxnWTqvUhAHysI0t1irQBx6X9GjkHraTesOzK20dhhTZ34ZS4dxu42gJAEgDO9gk088JjrNiVnf741q7GqtKMa05OCNS8PhV2ow== X-MS-TrafficTypeDiagnostic: DM5PR12MB2392: X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB2392; 31:o/4JSXixsHFNibD/jGsZTimQQ6HKU3VQlutuMTa6qaas378ierQ+w2qBfEXW/hZqmRQtxg5wgnPv2jGEdm3DxBWYm+hdkkUxwuXSvDtA/KEqJAIztbSFP8nMHOM7NPyT+j0yy/N0MCBLx9yyXx60QyRsiCNjjUeE0jJxJha+ykjWdPuuVZ6GLwX9X//IubAt35WBbLFb6d1bn7d3sD0BkhzcePhgL+hTYbBlwZbImCA=; 20:t3d7n+zzxvAPC94mEwlXcm9gJDiKc9MD4b+IpBqVzwULUjsMzNbumvnqzcLlJNdrNoBNs0dEYgEW85xv71t8ypqg142PfUbojryNkOUId7sq9NTC7gsVHarPf78BhTPxcgXA5Ly28a6+ghbjzsEeqhphMD9z81qoAug4zFP1zq2C5Swok1vKS5jL4iRPP6OcPZBdl0wk4Mm80Ks4VHfAB4dmkICg2V6b/7a+GE7qJWh6QFFBVH2JrZi9aNs0xFWaxG9D63p8wu4ZMZyy8/qK8L68sNsBINgyaj0g1kJxEJhGCan2xZZNEPlLt77uTf9GPRhvA8KYBeCwv1P6qsowS5JBYN/6x12yaauzM5XZ/D86180g9lrKgC8ezcp4HkwI125dxVtQjwX0tGh89VIzeQ7VqY8YsxUvouAKjsmzmaIO/zxZSDmjUuoT4UAKqi91HtPX4PEfvu/QxV1j4TNvrkcuaIFfuAnQsg3JG/m8btWulAhzHN1rDOEMgH40NRoI X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110)(228905959029699); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93003095)(3231311)(944501410)(52105095)(3002001)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:DM5PR12MB2392; BCL:0; PCL:0; RULEID:; SRVR:DM5PR12MB2392; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB2392; 4:3ZmkPbhK1ul/tPLxkyIz5QRJNDoMU0brHnlcT5RrXg5Kbj6DKHFd2YSj0J1vUIUh9xdtSRVSBEgiu7yayejiLbpjattGBNb6MBZa9RJbratKnLQ8kBaVS4nkt7GHvjEqOTBDZr9amiBboPDvxJWbok6JuNdkqfYE20I0Vo+HpN4cEIbsY5GZ2ZOblgVk8P8VdmaqdDvY/lZ6A7kP7sVfOKMs/hOiKjey5ScfDfPz0O08P5tT/L+qjQa+H5mhkyt4CP2zjbFv5mJB497wRGJI9ND2h1U7x78OQ2F3Wwpkkqikh0FbSLymu/mGZDHOK4UI0cY9WiOedvTVLvR1tSClDYL+iGphjz9HuZvHenpWcTw= X-Forefront-PRVS: 0751474A44 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR12MB2392; 23:pyzm4F+C3c6D9Cbqr05gBl+Yp7eaXgEd1bpqdotD1?= puGw0ejkRY1nF8ro9EpB5B8LwklMMfB3UCiagZbMrqUMr05iDusfpZLuSy3vFg7MHqfVkyJIisKvwE8pN2NaHeYisngFSgj57X4tDr18pSV4uMER67dehHo37AQDe+JhFscBw4oUkRAjB+NMwVULve+ql6IpLLMWK5yCO+82VxreV/WOVZZZw8LyaQJd9u5BZzWn18a9Y2ZKa7qOROfdB664z0SDBIKagmEyyvKx2VQGFQEszXA03cQ/W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+4vAb84u/QV/2gJaeo1UVGTpQ8zhn0wnSWw8HXWfRhd5clAfXnAfVBCMy/ZOmG7b9cuJRQvq0kEFea3dO4mlLMOlel6w5NgQW4MMxCfBGbZgW5bygn3pyYEu1faZE94RplzyPjz6H SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB2392; 20:Y1y0ubQJwwaOf+MTdPiw17dwFj4vHtlmpAlMZj/xxZD2g+GOzQ1M//pRFs2iZC0TshjICgc32W78J9R0B0nWoR1oPyfBPAemAJZtVgD0WEYFptr8w28d5djoBvGAY55dhZpp2B3mrdYfpBV+RgTxnsfmyMjpIxPYnNsRlFC9PaFinQHPIfWBcR10PNtOcU0vieWdi1f8sXeFwyoCVBV2zVsrhQT5WyA1z2n9mmODxsgrWgnPI+0u/QursVn1KnYu X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2018 05:49:44.4194 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ba7e447b-7be5-4b36-7e0d-08d5f7729561 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=[SATLEXCHOV01.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB2392 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Huang Rui Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patch fixed the error when do not configure CONFIG_X86, otherwise, below error will be encountered. All errors (new ones prefixed by >>): drivers/gpu/drm/ttm/ttm_page_alloc_dma.c: In function 'ttm_set_pages_caching': >> drivers/gpu/drm/ttm/ttm_page_alloc_dma.c:272:7: error: implicit declaration of function 'set_pages_array_uc'; did you mean +'ttm_set_pages_array_uc'? [-Werror=implicit-function-declaration] r = set_pages_array_uc(pages, cpages); ^~~~~~~~~~~~~~~~~~ ttm_set_pages_array_uc cc1: some warnings being treated as errors Reported-by: kbuild test robot Signed-off-by: Huang Rui Reviewed-by: Christian König for the series. --- drivers/gpu/drm/ttm/ttm_page_alloc_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c b/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c index 8304917..507be7a 100644 --- a/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c +++ b/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c @@ -269,7 +269,7 @@ static int ttm_set_pages_caching(struct dma_pool *pool, int r = 0; /* Set page caching */ if (pool->type & IS_UC) { - r = set_pages_array_uc(pages, cpages); + r = ttm_set_pages_array_uc(pages, cpages); if (r) pr_err("%s: Failed to set %d pages to uc!\n", pool->dev_name, cpages);