Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965481AbcJXUvg (ORCPT ); Mon, 24 Oct 2016 16:51:36 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:50423 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752186AbcJXUvf (ORCPT ); Mon, 24 Oct 2016 16:51:35 -0400 From: Arnd Bergmann To: Baoyou Xie Cc: alexander.deucher@amd.com, airlied@linux.ie, Rex.Zhu@amd.com, Jammy.Zhou@amd.com, JinHuiEric.Huang@amd.com, tom.stdenis@amd.com, funfunctor@folklore1984.net, vitaly.prosyak@amd.com, eric.yang2@amd.com, Young.Yang@amd.com, ray.huang@amd.com, dan.carpenter@oracle.com, Flora.Cui@amd.com, nils.wallmenius@gmail.com, Monk.Liu@amd.com, Qingqing.Wang@amd.com, Frank.Min@amd.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, xie.baoyou@zte.com.cn, han.fei@zte.com.cn, tang.qiang007@zte.com.cn Subject: Re: [PATCH] drm/amd/powerplay: mark symbols static where possible Date: Mon, 24 Oct 2016 22:51:07 +0200 Message-ID: <6582910.6C6abby7Jc@wuerfel> User-Agent: KMail/5.1.3 (Linux/4.4.0-34-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <1477126582-2906-1-git-send-email-baoyou.xie@linaro.org> References: <1477126582-2906-1-git-send-email-baoyou.xie@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:8f4N+KH8fJE0eRcFQiEEu8Hw08qavm0wh2GVEagpPxUZV7CtnjA qi7Fe98CYcbHoMgLs3ULNYXSw0SSFA2KDiXJpiX7ulhhGPWznwupmoc3aEZK9VoSTKdD0vu fBREvbKVDRi5CFsFtoX8ndqqqsUvl9KJH9a47o8OzAtrci0dzgxU0AJX6rwkFoSp4Mcps6P aAIxVdJ7ysgTTAVtt8ieQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:hQZekyZdpU4=:wnqlCmKxMqQcVyKlIoo1y3 sppheMyR8vAIEfFKdTF+NZTzzUx+eJlk0gNQQNEe36KPi3VERSPqGIuf0sE+GhvzHFBT25jhv Smq6tZuWML3SjiV6kGOVh20sNwv4lGAakyNYH5AcWR+BO+9NCOW6S60/vKquImIvdOQ/MhTpr FmBuDmKgo5Cl8YuML5fRmE53NoQj1+Y+KvkW7NZANzGbEYqmzEv8r+C5AAMmqzbMxJPTYrByT VXa0m0xs2sgcSrQ2WsDqeoGTTMPVZLld+33ILYl6gNPBnIDQpRI7O2aoFk5d6ItAK/da+gdZz aYwkzylAIG7PaklNwa0bu8kDJAiDZYYWq0lz4Qjk4tfEb3UZB5FqNkmlJfd9Uzm5q0/yIriYS 6xdpG3sOVZ7h0TqzqNcwbgTSt42xf4ckUiSxBmGzCUBMY8JokKCrCigP9OjlVpQNabe7k6/yZ yeOY3ER4vnVBSqyCA5v7wbHlGbifW8X0p8KsbcFdUYFU0vKHSwI1BZmMYdTpvQ66DmGYMIKRj EQFopDiH6hIEwpgMj6QY4TKd5vZoBw8coZ69tdiXySeJwMB9DeRkcZvDXqofB676RpuyEFQ6m 2uL1pcXArJaIr+Jr/xEf2tH/MyOd7FHWMiK64voiuFsZmiam2IxcQSbCNRgrLc4BVYmLZACPs 5g6ThP0bwUEgQeDsmlTYtYt/Kr+A7a7N0Tv835Xyg8/3imFomaUcpgQvRGcH3oHqYXyUn0C7d lldFyM14a5wem+8x Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 650 Lines: 20 On Saturday, October 22, 2016 4:56:22 PM CEST Baoyou Xie wrote: > @@ -1341,7 +1341,7 @@ int smu7_disable_dpm_tasks(struct pp_hwmgr *hwmgr) > return result; > } > > -int smu7_reset_asic_tasks(struct pp_hwmgr *hwmgr) > +static int smu7_reset_asic_tasks(struct pp_hwmgr *hwmgr) > { > > return 0; > This needs to be done differently: ../drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/smu7_hwmgr.c:1344:12: error: 'smu7_reset_asic_tasks' defined but not used [-Werror=unused-function] The function has no callers, so the easiest way would be to remove it entirely, but it's possible that there are plans to add users soon. Arnd