lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 2 Feb 2007 04:53:34 -0500 (EST)
From:	"Robert P. J. Day" <rpjday@...dspring.com>
To:	Linux kernel mailing list <linux-kernel@...r.kernel.org>
cc:	Andrew Morton <akpm@...l.org>, swhiteho@...hat.com
Subject: [PATCH] GFS2: Fix incorrect macro name "NR_CPUS" in glock.c.


  Rename the incorrect macro name "NR_CPUS" to "CONFIG_NR_CPUS".

Signed-off-by: Robert P. J. Day <rpjday@...dspring.com>

---

diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
index 4381469..e6bf4b9 100644
--- a/fs/gfs2/glock.c
+++ b/fs/gfs2/glock.c
@@ -70,13 +70,13 @@ static struct gfs2_gl_hash_bucket gl_hash_table[GFS2_GL_HASH_SIZE];
 #ifdef CONFIG_LOCKDEP
 # define GL_HASH_LOCK_SZ        256
 #else
-# if NR_CPUS >= 32
+# if CONFIG_NR_CPUS >= 32
 #  define GL_HASH_LOCK_SZ       4096
-# elif NR_CPUS >= 16
+# elif CONFIG_NR_CPUS >= 16
 #  define GL_HASH_LOCK_SZ       2048
-# elif NR_CPUS >= 8
+# elif CONFIG_NR_CPUS >= 8
 #  define GL_HASH_LOCK_SZ       1024
-# elif NR_CPUS >= 4
+# elif CONFIG_NR_CPUS >= 4
 #  define GL_HASH_LOCK_SZ       512
 # else
 #  define GL_HASH_LOCK_SZ       256

-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://www.fsdev.dreamhosters.com/wiki/index.php?title=Main_Page
========================================================================
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ