Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE46DC55186 for ; Fri, 24 Apr 2020 03:14:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BC2E12074F for ; Fri, 24 Apr 2020 03:14:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726362AbgDXDOH (ORCPT ); Thu, 23 Apr 2020 23:14:07 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:41096 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725790AbgDXDOG (ORCPT ); Thu, 23 Apr 2020 23:14:06 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 0D361B37420008873918; Fri, 24 Apr 2020 11:14:02 +0800 (CST) Received: from huawei.com (10.67.174.156) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Fri, 24 Apr 2020 11:13:51 +0800 From: ChenTao To: , , , CC: , , , , , , Subject: [PATCH] drm: amdgpu: Move static inline keyword to the front of declarations Date: Fri, 24 Apr 2020 11:13:16 +0800 Message-ID: <20200424031316.61662-1-chentao107@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.174.156] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following warning: Move the static inline keyword to the front of declarations amdgpu_device_wreg_no_kiq, and resolve the following compiler warnings that can be seen when building with warnings enabled (W=1): drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:344:1:warning: ‘static’ is not at beginning of declaration drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:344:1:warning: ‘inline’ is not at beginning of declaration Reported-by: Hulk Robot Signed-off-by: ChenTao --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index ad1c66763dc1..d53a5e3f464b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -341,7 +341,7 @@ void amdgpu_mm_wreg8(struct amdgpu_device *adev, uint32_t offset, uint8_t value) BUG(); } -void static inline amdgpu_device_wreg_no_kiq(struct amdgpu_device *adev, uint32_t reg, +static inline void amdgpu_device_wreg_no_kiq(struct amdgpu_device *adev, uint32_t reg, uint32_t v, uint32_t acc_flags) { trace_amdgpu_device_wreg(adev->pdev->device, reg, v); -- 2.17.1