Received: by 10.223.176.46 with SMTP id f43csp2752092wra; Mon, 22 Jan 2018 02:50:01 -0800 (PST) X-Google-Smtp-Source: AH8x225VwqgT3w7LX6X51VfRN2hg/5zLPjKDlLsDOdhH//efxCNLhkWauxYBy6g7geRRWQFE2JmJ X-Received: by 10.101.77.144 with SMTP id p16mr7116672pgq.106.1516618201750; Mon, 22 Jan 2018 02:50:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516618201; cv=none; d=google.com; s=arc-20160816; b=btj2BcS6p26OYjA11E9z5Tk5uGWFvUWlQGQetKzQaLAw8f64qS8Pc4/Mg/cCC+7vQM +6Va/Y2iWQlQmEIaEj8wbK8UBfuy4l6GNitIIWFb16SrPMJ4WlmWN1kK69Ite6nSn3J3 6G4ZROg18/rBAPAs32RgKeA0rgmdzvAapoXbuvMYM3s7j/XexjSC1bYA4BlZapY13reT XbYeWQdAJgAV5OT7MkuKevG5OHPzdPyGpGkLxVkZW6h0yiHpr1N8zWGGSbQ88dTA/bph 54c+JS18lujTsjBEz/418x1sMo0DiAWCjTy7OK7RVnZhksci6x5YZohW8e6ptH6Vx0le jYDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=09jTQw2R0nrxVEIXwxDLsemLShWWBpxr1fAZVMyVZ4o=; b=WhvajmiBrpoymcohXr21PzTXih8PYEa0UiM2ai402EHl3H8qnnwh5dsqmDux32G90G EspvZFVdd0/jnepvEoEmzRs+Qzsf9gMMSXy28zb66sMYh41blnSwp/3lZSNz/n7P8YDS Kk5wr9IzpX0fnT1LoVT7bnVqEfDAB/wm7saVy4sF8CUNPHbFGSGds88Lt/7odDh+fdEh WvSz3K+wC5B+5Jm6vGmCJ3OYf+/6imPuRbosNJfaC77HlvM1Us2slFcu6FrBOoYcAIB9 vw2nkybfI7brbZTLoLCsouHj/r6H8uPGJA/V3BBT4Lbn1sR+9MMq+T3k6af7hF7JTPgx ydlg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h15-v6si3304658plk.480.2018.01.22.02.49.47; Mon, 22 Jan 2018 02:50:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751110AbeAVKss (ORCPT + 99 others); Mon, 22 Jan 2018 05:48:48 -0500 Received: from mx01.hxt-semitech.com.96.203.223.in-addr.arpa ([223.203.96.7]:45324 "EHLO barracuda.hxt-semitech.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751058AbeAVKsq (ORCPT ); Mon, 22 Jan 2018 05:48:46 -0500 X-ASG-Debug-ID: 1516618122-093b7e099d25a30001-xx1T2L Received: from HXTBJIDCEMVIW02.hxtcorp.net (localhost [10.128.0.15]) by barracuda.hxt-semitech.com with ESMTP id mPjPPVWzBG8LTIZ1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 22 Jan 2018 18:48:42 +0800 (CST) X-Barracuda-Envelope-From: shunyong.yang@hxt-semitech.com Received: from y.localdomain (10.5.21.109) by HXTBJIDCEMVIW02.hxtcorp.net (10.128.0.15) with Microsoft SMTP Server (TLS) id 15.0.847.32; Mon, 22 Jan 2018 18:48:50 +0800 From: Yang Shunyong To: CC: , , , Yang Shunyong Subject: [PATCH 1/2] dmaengine: dmatest: change symbolic permissions to octal values Date: Mon, 22 Jan 2018 18:44:40 +0800 X-ASG-Orig-Subj: [PATCH 1/2] dmaengine: dmatest: change symbolic permissions to octal values Message-ID: <1516617881-30044-1-git-send-email-shunyong.yang@hxt-semitech.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.5.21.109] X-ClientProxiedBy: HXTBJIDCEMVIW02.hxtcorp.net (10.128.0.15) To HXTBJIDCEMVIW02.hxtcorp.net (10.128.0.15) X-Barracuda-Connect: localhost[10.128.0.15] X-Barracuda-Start-Time: 1516618122 X-Barracuda-Encrypted: ECDHE-RSA-AES256-SHA X-Barracuda-URL: https://192.168.50.101:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at hxt-semitech.com X-Barracuda-BRTS-Status: 1 X-Barracuda-Bayes: INNOCENT GLOBAL 0.6244 1.0000 0.8711 X-Barracuda-Spam-Score: 0.87 X-Barracuda-Spam-Status: No, SCORE=0.87 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.47133 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Current coding style prefers octal permissions values. This patch changes symbolic permissions to octal values. Signed-off-by: Yang Shunyong --- drivers/dma/dmatest.c | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/drivers/dma/dmatest.c b/drivers/dma/dmatest.c index ec5f9d2..4cdccc3 100644 --- a/drivers/dma/dmatest.c +++ b/drivers/dma/dmatest.c @@ -24,60 +24,58 @@ #include static unsigned int test_buf_size = 16384; -module_param(test_buf_size, uint, S_IRUGO | S_IWUSR); +module_param(test_buf_size, uint, 0644); MODULE_PARM_DESC(test_buf_size, "Size of the memcpy test buffer"); static char test_channel[20]; -module_param_string(channel, test_channel, sizeof(test_channel), - S_IRUGO | S_IWUSR); +module_param_string(channel, test_channel, sizeof(test_channel), 0644); MODULE_PARM_DESC(channel, "Bus ID of the channel to test (default: any)"); static char test_device[32]; -module_param_string(device, test_device, sizeof(test_device), - S_IRUGO | S_IWUSR); +module_param_string(device, test_device, sizeof(test_device), 0644); MODULE_PARM_DESC(device, "Bus ID of the DMA Engine to test (default: any)"); static unsigned int threads_per_chan = 1; -module_param(threads_per_chan, uint, S_IRUGO | S_IWUSR); +module_param(threads_per_chan, uint, 0644); MODULE_PARM_DESC(threads_per_chan, "Number of threads to start per channel (default: 1)"); static unsigned int max_channels; -module_param(max_channels, uint, S_IRUGO | S_IWUSR); +module_param(max_channels, uint, 0644); MODULE_PARM_DESC(max_channels, "Maximum number of channels to use (default: all)"); static unsigned int iterations; -module_param(iterations, uint, S_IRUGO | S_IWUSR); +module_param(iterations, uint, 0644); MODULE_PARM_DESC(iterations, "Iterations before stopping test (default: infinite)"); static unsigned int dmatest; -module_param(dmatest, uint, S_IRUGO | S_IWUSR); +module_param(dmatest, uint, 0644); MODULE_PARM_DESC(dmatest, "dmatest 0-memcpy 1-memset (default: 0)"); static unsigned int xor_sources = 3; -module_param(xor_sources, uint, S_IRUGO | S_IWUSR); +module_param(xor_sources, uint, 0644); MODULE_PARM_DESC(xor_sources, "Number of xor source buffers (default: 3)"); static unsigned int pq_sources = 3; -module_param(pq_sources, uint, S_IRUGO | S_IWUSR); +module_param(pq_sources, uint, 0644); MODULE_PARM_DESC(pq_sources, "Number of p+q source buffers (default: 3)"); static int timeout = 3000; -module_param(timeout, uint, S_IRUGO | S_IWUSR); +module_param(timeout, uint, 0644); MODULE_PARM_DESC(timeout, "Transfer Timeout in msec (default: 3000), " "Pass -1 for infinite timeout"); static bool noverify; -module_param(noverify, bool, S_IRUGO | S_IWUSR); +module_param(noverify, bool, 0644); MODULE_PARM_DESC(noverify, "Disable random data setup and verification"); static bool verbose; -module_param(verbose, bool, S_IRUGO | S_IWUSR); +module_param(verbose, bool, 0644); MODULE_PARM_DESC(verbose, "Enable \"success\" result messages (default: off)"); /** @@ -131,7 +129,7 @@ struct dmatest_params { .get = dmatest_run_get, }; static bool dmatest_run; -module_param_cb(run, &run_ops, &dmatest_run, S_IRUGO | S_IWUSR); +module_param_cb(run, &run_ops, &dmatest_run, 0644); MODULE_PARM_DESC(run, "Run the test (default: false)"); /* Maximum amount of mismatched bytes in buffer to print */ @@ -216,7 +214,7 @@ static int dmatest_wait_get(char *val, const struct kernel_param *kp) .get = dmatest_wait_get, .set = param_set_bool, }; -module_param_cb(wait, &wait_ops, &wait, S_IRUGO); +module_param_cb(wait, &wait_ops, &wait, 0444); MODULE_PARM_DESC(wait, "Wait for tests to complete (default: false)"); static bool dmatest_match_channel(struct dmatest_params *params, -- 1.8.3.1