Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935991AbcJYUHe (ORCPT ); Tue, 25 Oct 2016 16:07:34 -0400 Received: from mail-sn1nam01on0065.outbound.protection.outlook.com ([104.47.32.65]:38899 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754425AbcJYUHc (ORCPT ); Tue, 25 Oct 2016 16:07:32 -0400 From: "Deucher, Alexander" To: "'Arnd Bergmann'" , Baoyou Xie CC: Dave Airlie , "Zhu, Rex" , "Zhou, Jammy" , "Huang, JinHuiEric" , "StDenis, Tom" , "Edward O'Callaghan" , "Prosyak, Vitaly" , "Yang, Eric" , "Yang, Young" , "Huang, Ray" , Dan Carpenter , "Cui, Flora" , =?iso-8859-1?Q?Nils_Wallm=E9nius?= , "Liu, Monk" , "Wang, Ken" , "Min, Frank" , dri-devel , Linux Kernel Mailing List , "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 Thread-Topic: [PATCH] drm/amd/powerplay: mark symbols static where possible Thread-Index: AQHSLEJIm92MnInRcEaIoVpfU6VMC6C4GCqAgABfEICAAGAKAIAAZ28A Date: Tue, 25 Oct 2016 20:07:29 +0000 Message-ID: References: <1477126582-2906-1-git-send-email-baoyou.xie@linaro.org> <6582910.6C6abby7Jc@wuerfel> <10254575.qBa8RMPyZ5@wuerfel> In-Reply-To: <10254575.qBa8RMPyZ5@wuerfel> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Deucher@amd.com; x-originating-ip: [165.204.77.1] x-ms-office365-filtering-correlation-id: dde8cd3c-88a3-4ebb-9a3e-08d3fd128c2b x-microsoft-exchange-diagnostics: 1;MWHPR12MB1344;7:916GAq71mAlLdfbhYSh0nkk5cQz3yr7F/MFUzUO+9dPzLGVDonlskOqJO9Fc4bgmAaOvAuI0s/EyZ64qyC73PnVHDElHHWdAwIJGe4f2x/8LG3UUUKBg2mURp2fzJNVuGV/cm5q0JdHhZllN6DhUz1p3+srwYQmedzSghzvJOCsJ9yKE2Jy41NKk0TW8M087hLO2SkxIrNjbjgCw70lUpvyMK+EoUX5yRXKNE5uS7K91rpGryImMQc5qLky0m17M8GyIL95pfpL5k5S1XH75Ukk6+fmecL1KVwiEf5UWto9EyIFUjVoTIaXm/RixQp+f2HG1lN759iX74gPuwzVT1KfIPsmNPUnwf4OxuhMPWTU=;20:+f2bs9au2UqeamRFk3Y5dt+KLJjIVeufnmT76YkuabfE4Q38PMiFeblw5QkAc7i2ErvlJePCc1ecbHWSBtyFMw/OUqnF4XAVcVId34jlkeh8e/UKwo72JDITuWRsG1tdbczv+v/2PU1d7o+QUAX5DD8SCQReeaDR7vhzCM+oBXbtLqips9+B+dn9yWHxN4GTH8dh/DrsRMhAAc6wriGgNfXcUbNy0i0ESXdm+4aagSs+V5NxxtMg8zd58lNElfl/ x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:MWHPR12MB1344; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026);SRVR:MWHPR12MB1344;BCL:0;PCL:0;RULEID:;SRVR:MWHPR12MB1344; x-forefront-prvs: 01068D0A20 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(7916002)(199003)(24454002)(189002)(13464003)(377454003)(2906002)(93886004)(586003)(3280700002)(5001770100001)(2950100002)(66066001)(102836003)(97736004)(6116002)(3846002)(3660700001)(8676002)(77096005)(68736007)(54356999)(76176999)(8936002)(101416001)(81166006)(189998001)(2900100001)(5660300001)(81156014)(99286002)(11100500001)(7416002)(10400500002)(9686002)(74316002)(106116001)(106356001)(4326007)(33656002)(50986999)(86362001)(19580405001)(76576001)(19580395003)(305945005)(87936001)(7736002)(7696004)(122556002)(5002640100001)(7846002)(92566002)(105586002);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR12MB1344;H:MWHPR12MB1694.namprd12.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Oct 2016 20:07:29.0356 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1344 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id u9PK7chh024798 Content-Length: 1915 Lines: 45 > -----Original Message----- > From: Arnd Bergmann [mailto:arnd@arndb.de] > Sent: Tuesday, October 25, 2016 4:15 AM > To: Baoyou Xie > Cc: Deucher, Alexander; Dave Airlie; Zhu, Rex; Zhou, Jammy; Huang, > JinHuiEric; StDenis, Tom; Edward O'Callaghan; Prosyak, Vitaly; Yang, Eric; > Yang, Young; Huang, Ray; Dan Carpenter; Cui, Flora; Nils Wallm?nius; Liu, > Monk; Wang, Ken; Min, Frank; dri-devel; Linux Kernel Mailing List; > 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 > > On Tuesday, October 25, 2016 10:31:21 AM CEST Baoyou Xie wrote: > > On 25 October 2016 at 04:51, Arnd Bergmann wrote: > > > On Saturday, October 22, 2016 4:56:22 PM CEST Baoyou Xie wrote: > > > 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. > > > > > > It was assumed that this function will be used soon, so this patch remains > > it. > > if it still not be used in 4.10, then we can remove it. > > is it right? > > There is no such rule in general, it's up to the maintainer and > it depends on the specific reason for why the function ended up > being unused in the first place. > > However, we can expect the maintainer to come up with some solution > to address the warning. Possible options include: > > - calling the function from where it was meant to be used > - removing the function > - adding __maybe_unused > - adding an #if 0 > > I have not looked at this specific example and do not know > which of them would be appropriate here. If you look at the > output of 'git log -p > drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/smu7_hwmgr.c' > you might find it out yourself. This is mostly fallout from a big cleanup/re-org of the powerplay code in the 4.9. Rex said he was going to use these soon. Alex