Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: dmatest: Replace symbolic permissions by octal permissions

Octal permissions are easier to read.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/a745b883288f95e999b71fac677bbc2daa13c22d.1654702928.git.geert+renesas@glider.be
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Geert Uytterhoeven and committed by
Vinod Koul
e8ecf73a 5f89b97e

+14 -15
+14 -15
drivers/dma/dmatest.c
··· 22 22 #include <linux/wait.h> 23 23 24 24 static unsigned int test_buf_size = 16384; 25 - module_param(test_buf_size, uint, S_IRUGO | S_IWUSR); 25 + module_param(test_buf_size, uint, 0644); 26 26 MODULE_PARM_DESC(test_buf_size, "Size of the memcpy test buffer"); 27 27 28 28 static char test_device[32]; 29 - module_param_string(device, test_device, sizeof(test_device), 30 - S_IRUGO | S_IWUSR); 29 + module_param_string(device, test_device, sizeof(test_device), 0644); 31 30 MODULE_PARM_DESC(device, "Bus ID of the DMA Engine to test (default: any)"); 32 31 33 32 static unsigned int threads_per_chan = 1; 34 - module_param(threads_per_chan, uint, S_IRUGO | S_IWUSR); 33 + module_param(threads_per_chan, uint, 0644); 35 34 MODULE_PARM_DESC(threads_per_chan, 36 35 "Number of threads to start per channel (default: 1)"); 37 36 38 37 static unsigned int max_channels; 39 - module_param(max_channels, uint, S_IRUGO | S_IWUSR); 38 + module_param(max_channels, uint, 0644); 40 39 MODULE_PARM_DESC(max_channels, 41 40 "Maximum number of channels to use (default: all)"); 42 41 43 42 static unsigned int iterations; 44 - module_param(iterations, uint, S_IRUGO | S_IWUSR); 43 + module_param(iterations, uint, 0644); 45 44 MODULE_PARM_DESC(iterations, 46 45 "Iterations before stopping test (default: infinite)"); 47 46 48 47 static unsigned int dmatest; 49 - module_param(dmatest, uint, S_IRUGO | S_IWUSR); 48 + module_param(dmatest, uint, 0644); 50 49 MODULE_PARM_DESC(dmatest, 51 50 "dmatest 0-memcpy 1-memset (default: 0)"); 52 51 53 52 static unsigned int xor_sources = 3; 54 - module_param(xor_sources, uint, S_IRUGO | S_IWUSR); 53 + module_param(xor_sources, uint, 0644); 55 54 MODULE_PARM_DESC(xor_sources, 56 55 "Number of xor source buffers (default: 3)"); 57 56 58 57 static unsigned int pq_sources = 3; 59 - module_param(pq_sources, uint, S_IRUGO | S_IWUSR); 58 + module_param(pq_sources, uint, 0644); 60 59 MODULE_PARM_DESC(pq_sources, 61 60 "Number of p+q source buffers (default: 3)"); 62 61 63 62 static int timeout = 3000; 64 - module_param(timeout, int, S_IRUGO | S_IWUSR); 63 + module_param(timeout, int, 0644); 65 64 MODULE_PARM_DESC(timeout, "Transfer Timeout in msec (default: 3000), " 66 65 "Pass -1 for infinite timeout"); 67 66 68 67 static bool noverify; 69 - module_param(noverify, bool, S_IRUGO | S_IWUSR); 68 + module_param(noverify, bool, 0644); 70 69 MODULE_PARM_DESC(noverify, "Disable data verification (default: verify)"); 71 70 72 71 static bool norandom; ··· 73 74 MODULE_PARM_DESC(norandom, "Disable random offset setup (default: random)"); 74 75 75 76 static bool verbose; 76 - module_param(verbose, bool, S_IRUGO | S_IWUSR); 77 + module_param(verbose, bool, 0644); 77 78 MODULE_PARM_DESC(verbose, "Enable \"success\" result messages (default: off)"); 78 79 79 80 static int alignment = -1; ··· 85 86 MODULE_PARM_DESC(transfer_size, "Optional custom transfer size in bytes (default: not used (0))"); 86 87 87 88 static bool polled; 88 - module_param(polled, bool, S_IRUGO | S_IWUSR); 89 + module_param(polled, bool, 0644); 89 90 MODULE_PARM_DESC(polled, "Use polling for completion instead of interrupts"); 90 91 91 92 /** ··· 153 154 .get = dmatest_run_get, 154 155 }; 155 156 static bool dmatest_run; 156 - module_param_cb(run, &run_ops, &dmatest_run, S_IRUGO | S_IWUSR); 157 + module_param_cb(run, &run_ops, &dmatest_run, 0644); 157 158 MODULE_PARM_DESC(run, "Run the test (default: false)"); 158 159 159 160 static int dmatest_chan_set(const char *val, const struct kernel_param *kp); ··· 289 290 .get = dmatest_wait_get, 290 291 .set = param_set_bool, 291 292 }; 292 - module_param_cb(wait, &wait_ops, &wait, S_IRUGO); 293 + module_param_cb(wait, &wait_ops, &wait, 0444); 293 294 MODULE_PARM_DESC(wait, "Wait for tests to complete (default: false)"); 294 295 295 296 static bool dmatest_match_channel(struct dmatest_params *params,