From patchwork Tue May 2 20:08:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9708561 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AE4B160349 for ; Tue, 2 May 2017 20:13:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A05D6284DA for ; Tue, 2 May 2017 20:13:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 90E3828462; Tue, 2 May 2017 20:13:33 +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=-4.2 required=2.0 tests=BAYES_00, 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 3399528462 for ; Tue, 2 May 2017 20:13:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 943D889D77; Tue, 2 May 2017 20:13:31 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.web.de (mout.web.de [212.227.17.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id F11E289D77; Tue, 2 May 2017 20:13:29 +0000 (UTC) Received: from [192.168.1.2] ([77.182.79.197]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MZlMw-1dMd0d149O-00LXFP; Tue, 02 May 2017 22:08:13 +0200 Subject: [PATCH 2/3] GPU-DRM-Radeon: Use seq_puts() in radeon_debugfs_pm_info() From: SF Markus Elfring To: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= , David Airlie References: <74d2df52-f509-e6d2-5b35-e25b7cbd1fbe@users.sourceforge.net> Message-ID: <85bb0532-b548-b3cc-4482-ce7a161c7d32@users.sourceforge.net> Date: Tue, 2 May 2017 22:08:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 MIME-Version: 1.0 In-Reply-To: <74d2df52-f509-e6d2-5b35-e25b7cbd1fbe@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:bMOXYrmQ2AvcUgTDoq805OtKElYBB+JJqO2hlacfPOMIPJ5ma5n NumN5SaDcQIcbPvNXzIEDdVmckcgzVPHqKKZ7ntirrZev+QEkLOXc3xjm2QXkUdpYUE89dg lUYEtrQPXpigTBnTuHLwzR1QvUEyuuuw6Th2PpfFNppeG8ZWGtx3efMocxTYN+8xWssAh/G HSt/lUtoX8esMglthyEhA== X-UI-Out-Filterresults: notjunk:1; V01:K0:umA3dz4N858=:08UQxv6LKdoM2ikbOMc0QL NKAKehMNTH9efAvpYlhXcVZIcgA6lhX3+hH0HTAzTHeagcvIIK0KQ93FyBLgP4R0fWFz0ZKuG T2ujI7R2K3qOf1ECoZYT2UbKwUc6Qe6Vs3VX8MO/FXzpxMaBOi/xxVDmxANvvklcgX+bnVVYK lcQNUA3QDM6rVLWeey4/FJ4CWA41FrXjg5butBCYMoM9FlFqLXyPGtVVJSd5DezQ0a0rkMG1a E6M8ny/qgQ1Va2pgbR68/QBckM/OulBywqjDj/GwwawFOVa8LddOIbsggSKrZhj1m0tnVFN6Y ff7HUm/4S19zVe7diMuw+ySGrDiWnNhPgtbSLmr5s7qzkON9TfqD/FRER0Sgp5iCIovU8hPOh eWmKhHByRCfQJ6f9wFI3oUGonguTIvKWZdWO4sb87c26ybLSUJ46JBdrIL6lKg9GFRBFqNLta LJ1KdhX8VL7YPfxQoJeFd1gROOT7QPVkg/yKN68DElXsyG3mKvKzAg78UrDsY9nG/QdWMkYPe hJiK/8dmER1ImCn1OSQhTA5UJBKtrHf4Tzi3MpJsd7TTtYgNf6eqrd61T/wEbF4Fs6X/dAkXy LXyW67gkSNBhS29NtqVZ6/8gOstlgIrzD0tRbSDiTjgaI8zeEpx3nQXo1m0A7ASDrKALTMpxt 7KR+sCJ2onE6l1oOlmzNmWqmQfoEdj7aVU1YEz5Ms8K36FOmno4xwH3oDVusO82XtHlWyeqmE N905M36GsDGABocpbvIRp6wXSyXRPRNHnYl7F4KaD5yid10Tpm6CfGZrbeL4rEqw7kpuSlVWL 9Z7XE1T Cc: kernel-janitors@vger.kernel.org, LKML X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Tue, 2 May 2017 21:50:14 +0200 Two strings which did not contain data format specifications should be put into a sequence. Thus use the corresponding function "seq_puts". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/gpu/drm/radeon/radeon_pm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_pm.c b/drivers/gpu/drm/radeon/radeon_pm.c index 326ad068c15a..f84ddcc426c1 100644 --- a/drivers/gpu/drm/radeon/radeon_pm.c +++ b/drivers/gpu/drm/radeon/radeon_pm.c @@ -1869,13 +1869,14 @@ static int radeon_debugfs_pm_info(struct seq_file *m, void *data) if ((rdev->flags & RADEON_IS_PX) && (ddev->switch_power_state != DRM_SWITCH_POWER_ON)) { - seq_printf(m, "PX asic powered off\n"); + seq_puts(m, "PX asic powered off\n"); } else if (rdev->pm.dpm_enabled) { mutex_lock(&rdev->pm.mutex); if (rdev->asic->dpm.debugfs_print_current_performance_level) radeon_dpm_debugfs_print_current_performance_level(rdev, m); else - seq_printf(m, "Debugfs support not implemented for this asic\n"); + seq_puts(m, + "Debugfs support not implemented for this asic\n"); mutex_unlock(&rdev->pm.mutex); } else { seq_printf(m, "default engine clock: %u0 kHz\n", rdev->pm.default_sclk);