From patchwork Mon Dec 30 13:58:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 3419541 X-Patchwork-Delegate: dan.j.williams@gmail.com Return-Path: X-Original-To: patchwork-dmaengine@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4FADE9F37A for ; Mon, 30 Dec 2013 13:58:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 02EFA200F2 for ; Mon, 30 Dec 2013 13:58:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DC991200F0 for ; Mon, 30 Dec 2013 13:58:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755735Ab3L3N6I (ORCPT ); Mon, 30 Dec 2013 08:58:08 -0500 Received: from moutng.kundenserver.de ([212.227.17.10]:55119 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755765Ab3L3N6H (ORCPT ); Mon, 30 Dec 2013 08:58:07 -0500 Received: from axis700.grange (dslb-146-060-127-062.pools.arcor-ip.net [146.60.127.62]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0Lfnn4-1VeSYO00a2-00p4nv; Mon, 30 Dec 2013 14:58:06 +0100 Received: by axis700.grange (Postfix, from userid 1000) id 2311140BB4; Mon, 30 Dec 2013 14:58:04 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by axis700.grange (Postfix) with ESMTP id F014940BB3; Mon, 30 Dec 2013 14:58:04 +0100 (CET) Date: Mon, 30 Dec 2013 14:58:04 +0100 (CET) From: Guennadi Liakhovetski X-X-Sender: lyakh@axis700.grange To: dmaengine@vger.kernel.org cc: "Koul, Vinod" Subject: [PATCH] DMA: dmatest: extend the "device" module parameter to 32 characters Message-ID: MIME-Version: 1.0 X-Provags-ID: V02:K0:NCFiUKMS12z3gm51scs13sqDIe+UX9RSsJtJmkb3qyp 3/n8QC4Xfk3HwO+emLsOJc2ZmAAA/YVQRLkxw3D3LUc3D23BVi liQQ7BRMpzVhT2vS4xE90v2dUwT4p6jA5OvSfj2NZzUPz9NCAf DNmHu2aq8h4xxUxWghR8v+AGVjwlHA/VdwEzkWgszE2RY33JG2 Y2zaPIRQvP6uSnDPFt25yXNfFkXfA6PGsKM47MR80Vn++Wp/lz AD2HODpyY7xS9Nq2VteUUqy81XjUbxWsUn7ARzR5XJP/aIWdPX W/czqGPC7D7jcymfLjGoa5LQwz1455Y17JmzqfSMt9xWnQihL3 vspwcD+AUrLxBJVk6Sr1mEJf16YF0yAIcWkrk2yc9FTlQecZY6 RIv2ZtDlKHUFA== Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP With Device Tree a typical DMA controller device name can look like 10000000.dma-controller, which extends the current size of the string, allocated for this parameter. This patch extends its size from 20 to 32 characters. Signed-off-by: Guennadi Liakhovetski --- drivers/dma/dmatest.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/dmatest.c b/drivers/dma/dmatest.c index 20f9a3a..79c87fa 100644 --- a/drivers/dma/dmatest.c +++ b/drivers/dma/dmatest.c @@ -31,7 +31,7 @@ module_param_string(channel, test_channel, sizeof(test_channel), S_IRUGO | S_IWUSR); MODULE_PARM_DESC(channel, "Bus ID of the channel to test (default: any)"); -static char test_device[20]; +static char test_device[32]; module_param_string(device, test_device, sizeof(test_device), S_IRUGO | S_IWUSR); MODULE_PARM_DESC(device, "Bus ID of the DMA Engine to test (default: any)"); @@ -89,7 +89,7 @@ MODULE_PARM_DESC(verbose, "Enable \"success\" result messages (default: off)"); struct dmatest_params { unsigned int buf_size; char channel[20]; - char device[20]; + char device[32]; unsigned int threads_per_chan; unsigned int max_channels; unsigned int iterations;