Received: by 10.213.65.68 with SMTP id h4csp887126imn; Sat, 7 Apr 2018 11:54:30 -0700 (PDT) X-Google-Smtp-Source: AIpwx49KENZsDZ0S83z4IcmNP8xdgTa5DsizoyhFxwjRXIJsVvg/2SjfoIhBZkIJtfLy3JJlw+lF X-Received: by 10.98.157.199 with SMTP id a68mr24050170pfk.237.1523127270202; Sat, 07 Apr 2018 11:54:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523127270; cv=none; d=google.com; s=arc-20160816; b=FMiktx/EIxAeCkj51ibIRHdsvY2e0XmpI7OCHeHpSjeXSdqyoJu8nnyabcfyQkjBYN i14/9mXlkDJGenFYODvMdHpaMD2KZQ3IifJi+Ta3sjic4QtggBxIelnJXKC2IvTiQCVv dSdk5Z126DMJ7134Fnt7FEf/rhVZYNntCFP8G/zA12QRmeKBzqvAKT1m4lA9tmWxx7PO 3pEGXRWjPpXhYjBGariXlDQex+7+0rz5ygqVhZHOJSQZLWw22cUmfbUZmFE+n1yvz51i m9wUvd8PxqFMOWX3QOEHtCyFWyWFP1j7LKOjTKKZ5mTM97bBRb0tVDSq03IfaS+TeAuX U09w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=9C+sIhYgUd1V+aOu/sCv8Wkqazx/5p5yXUByivhAodw=; b=G+PoUYNPUv9xlwcGMo1mW2IshZYHwuUpayRBhOjHLe9MUsrlRq+odib8mvE8nWtGul 6xwKCD0CsJbBNJO9aDsBBlb1PjStpzweTdYUI86YOsDTc/lrTDVa/Qz4EEmer4ztpaJb l30JsS18bKzciOwUMIMbE7wGtDtV2ZOhhMDZ6D/Rk/z/khpTJC3iws7sSdy6AdzK4gJg hQrVfMWRPNnnEfaCRRPx5UelMIxpN9Bf/kUgj2bfkguomFHRkqg8bqQZLnHFqx8B2A/5 HCvmWPykDOXwSaFvt+I6IP1hZwMM9UBnt1q9SqNyaiQECT25Q96Bvjbhz98BkoJAtAkY /vrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=g+81DAnF; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11-v6si10259071pls.699.2018.04.07.11.53.52; Sat, 07 Apr 2018 11:54:30 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=g+81DAnF; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752070AbeDGSr4 (ORCPT + 99 others); Sat, 7 Apr 2018 14:47:56 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:40787 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751779AbeDGSrz (ORCPT ); Sat, 7 Apr 2018 14:47:55 -0400 Received: by mail-wm0-f66.google.com with SMTP id x4so8409926wmh.5 for ; Sat, 07 Apr 2018 11:47:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=9C+sIhYgUd1V+aOu/sCv8Wkqazx/5p5yXUByivhAodw=; b=g+81DAnFd95QRRZ6xCVVEz9hZ2hHSeFrt2w4CzP8nnU6oxwEkkNq0HUNM/id0QUSha BIqRuy0pJJzIRs2ksahU0IfS4LFu8Q+G+hIvRAljfgKd5VNxLIq7L0kLdj3iriGuXN1H 9yb86JAm93qk+f5FrTgIBNTRnLx91huvwndsBrOIgcKjja94iF6Ngs27ygAfVoLLsAO/ 34ZZepV5aNeEeMI2eDmByCa+LJpdE8UBGEN6M+qcJ+NcLbUcsizVR56SLX5oG7r8+bGa hqSVuRfKUiEWY1RF8Midutco7rNQ4BRJJ6IGsFPI0O6sNYCqEbU7tNc94BsVeKMCrpu2 aoVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=9C+sIhYgUd1V+aOu/sCv8Wkqazx/5p5yXUByivhAodw=; b=M4i/P1ZaheaGT50sZ3J9pR1b+jfuFwk7tKVVkaqANxqamTL2dh72WKGc0SUwYG74uC iqbDpO58l6DylurskNzMFFyNyx5Xuc7CAoS5+M0X46fo6I5a8Ys48hE40evma6gU3ssP k6KjtX+UfiSeBnx0sPS2zjeYsLaxbX4SoC+/i6VrK9QajlWsI8q1eKCUBr5anL37nRcV O5ripPuHo/vaW/yE5ynEwXqfxk9atKceb2zDPKLMAmfL0MKIRgoC47VFveeTjSUe4l8L xouPq3pLLbmdH8gr+OfbYWrJHlgtJOrReUX5Ljl1v18PfAbNqmQyFgiQRN06PDvmwetY 1G2g== X-Gm-Message-State: ALQs6tDQIZB7VQ8oivgDC7otZaFquerkBlGgELFcJCbFHLJNpilrQTse qgiwtb3rXrkB+TF+W4lP26A= X-Received: by 10.80.151.167 with SMTP id e36mr13623775edb.210.1523126874100; Sat, 07 Apr 2018 11:47:54 -0700 (PDT) Received: from gamer-pc.Home ([78.18.185.194]) by smtp.gmail.com with ESMTPSA id c1sm7663587edi.80.2018.04.07.11.47.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Apr 2018 11:47:52 -0700 (PDT) From: Paul McQuade To: paulmcquad@gmail.com Cc: konrad.wilk@oracle.com, labbott@redhat.com, gregkh@linuxfoundation.org, akpm@linux-foundation.org, guptap@codeaurora.org, vbabka@suse.cz, mgorman@techsingularity.net, hannes@cmpxchg.org, rientjes@google.com, mhocko@suse.com, rppt@linux.vnet.ibm.com, dave@stgolabs.net, hmclauchlan@fb.com, tglx@linutronix.de, pombredanne@nexb.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 1/3] mm: replace S_IRUGO with 0444 Date: Sat, 7 Apr 2018 19:47:24 +0100 Message-Id: <20180407184726.8634-1-paulmcquad@gmail.com> X-Mailer: git-send-email 2.16.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix checkpatch warnings about S_IRUGO being less readable than providing the permissions octal as '0444'. Signed-off-by: Paul McQuade --- mm/cleancache.c | 8 ++++---- mm/cma_debug.c | 12 ++++++------ mm/dmapool.c | 2 +- mm/frontswap.c | 8 ++++---- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/mm/cleancache.c b/mm/cleancache.c index f7b9fdc79d97..90d259e69496 100644 --- a/mm/cleancache.c +++ b/mm/cleancache.c @@ -307,11 +307,11 @@ static int __init init_cleancache(void) struct dentry *root = debugfs_create_dir("cleancache", NULL); if (root == NULL) return -ENXIO; - debugfs_create_u64("succ_gets", S_IRUGO, root, &cleancache_succ_gets); - debugfs_create_u64("failed_gets", S_IRUGO, + debugfs_create_u64("succ_gets", 0444, root, &cleancache_succ_gets); + debugfs_create_u64("failed_gets", 0444, root, &cleancache_failed_gets); - debugfs_create_u64("puts", S_IRUGO, root, &cleancache_puts); - debugfs_create_u64("invalidates", S_IRUGO, + debugfs_create_u64("puts", 0444, root, &cleancache_puts); + debugfs_create_u64("invalidates", 0444, root, &cleancache_invalidates); #endif return 0; diff --git a/mm/cma_debug.c b/mm/cma_debug.c index 275df8b5b22e..6494c7a7d257 100644 --- a/mm/cma_debug.c +++ b/mm/cma_debug.c @@ -178,17 +178,17 @@ static void cma_debugfs_add_one(struct cma *cma, int idx) debugfs_create_file("free", S_IWUSR, tmp, cma, &cma_free_fops); - debugfs_create_file("base_pfn", S_IRUGO, tmp, + debugfs_create_file("base_pfn", 0444, tmp, &cma->base_pfn, &cma_debugfs_fops); - debugfs_create_file("count", S_IRUGO, tmp, + debugfs_create_file("count", 0444, tmp, &cma->count, &cma_debugfs_fops); - debugfs_create_file("order_per_bit", S_IRUGO, tmp, + debugfs_create_file("order_per_bit", 0444, tmp, &cma->order_per_bit, &cma_debugfs_fops); - debugfs_create_file("used", S_IRUGO, tmp, cma, &cma_used_fops); - debugfs_create_file("maxchunk", S_IRUGO, tmp, cma, &cma_maxchunk_fops); + debugfs_create_file("used", 0444, tmp, cma, &cma_used_fops); + debugfs_create_file("maxchunk", 0444, tmp, cma, &cma_maxchunk_fops); u32s = DIV_ROUND_UP(cma_bitmap_maxno(cma), BITS_PER_BYTE * sizeof(u32)); - debugfs_create_u32_array("bitmap", S_IRUGO, tmp, (u32*)cma->bitmap, u32s); + debugfs_create_u32_array("bitmap", 0444, tmp, (u32 *)cma->bitmap, u32s); } static int __init cma_debugfs_init(void) diff --git a/mm/dmapool.c b/mm/dmapool.c index 4d90a64b2fdc..6d4b97e7e9e9 100644 --- a/mm/dmapool.c +++ b/mm/dmapool.c @@ -105,7 +105,7 @@ show_pools(struct device *dev, struct device_attribute *attr, char *buf) return PAGE_SIZE - size; } -static DEVICE_ATTR(pools, S_IRUGO, show_pools, NULL); +static DEVICE_ATTR(pools, 0444, show_pools, NULL); /** * dma_pool_create - Creates a pool of consistent memory blocks, for dma. diff --git a/mm/frontswap.c b/mm/frontswap.c index fec8b5044040..3b41425d34cd 100644 --- a/mm/frontswap.c +++ b/mm/frontswap.c @@ -486,11 +486,11 @@ static int __init init_frontswap(void) struct dentry *root = debugfs_create_dir("frontswap", NULL); if (root == NULL) return -ENXIO; - debugfs_create_u64("loads", S_IRUGO, root, &frontswap_loads); - debugfs_create_u64("succ_stores", S_IRUGO, root, &frontswap_succ_stores); - debugfs_create_u64("failed_stores", S_IRUGO, root, + debugfs_create_u64("loads", 0444, root, &frontswap_loads); + debugfs_create_u64("succ_stores", 0444, root, &frontswap_succ_stores); + debugfs_create_u64("failed_stores", 0444, root, &frontswap_failed_stores); - debugfs_create_u64("invalidates", S_IRUGO, + debugfs_create_u64("invalidates", 0444, root, &frontswap_invalidates); #endif return 0; -- 2.16.2