From: akpm@linux-foundation.org Subject: + kernel-rcu-treec-make-rcu-node-arrays-static-const-char-const.patch added to -mm tree Date: Tue, 06 May 2014 13:47:45 -0700 Message-ID: <53694a71.MPy+oSV6PBZuU3sm%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:40853 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932084AbaEFUrq (ORCPT ); Tue, 6 May 2014 16:47:46 -0400 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: mm-commits@vger.kernel.org, paulmck@us.ibm.com, dipankar@in.ibm.com, fabf@skynet.be Subject: + kernel-rcu-treec-make-rcu-node-arrays-static-const-char-const.patch added to -mm tree To: fabf@skynet.be,dipankar@in.ibm.com,paulmck@us.ibm.com From: akpm@linux-foundation.org Date: Tue, 06 May 2014 13:47:45 -0700 The patch titled Subject: kernel/rcu/tree.c: make rcu node arrays static const char * const has been added to the -mm tree. Its filename is kernel-rcu-treec-make-rcu-node-arrays-static-const-char-const.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/kernel-rcu-treec-make-rcu-node-arrays-static-const-char-const.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/kernel-rcu-treec-make-rcu-node-arrays-static-const-char-const.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Fabian Frederick Subject: kernel/rcu/tree.c: make rcu node arrays static const char * const Those 2 arrays are being passed to lockdep_init_map with const char * and stored in lockdep_map the same way Signed-off-by: Fabian Frederick Cc: Dipankar Sarma Cc: "Paul E. McKenney" Signed-off-by: Andrew Morton --- kernel/rcu/tree.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff -puN kernel/rcu/tree.c~kernel-rcu-treec-make-rcu-node-arrays-static-const-char-const kernel/rcu/tree.c --- a/kernel/rcu/tree.c~kernel-rcu-treec-make-rcu-node-arrays-static-const-char-const +++ a/kernel/rcu/tree.c @@ -3468,14 +3468,16 @@ static void __init rcu_init_levelspread( static void __init rcu_init_one(struct rcu_state *rsp, struct rcu_data __percpu *rda) { - static char *buf[] = { "rcu_node_0", - "rcu_node_1", - "rcu_node_2", - "rcu_node_3" }; /* Match MAX_RCU_LVLS */ - static char *fqs[] = { "rcu_node_fqs_0", - "rcu_node_fqs_1", - "rcu_node_fqs_2", - "rcu_node_fqs_3" }; /* Match MAX_RCU_LVLS */ + static const char * const buf[] = { + "rcu_node_0", + "rcu_node_1", + "rcu_node_2", + "rcu_node_3" }; /* Match MAX_RCU_LVLS */ + static const char * const fqs[] = { + "rcu_node_fqs_0", + "rcu_node_fqs_1", + "rcu_node_fqs_2", + "rcu_node_fqs_3" }; /* Match MAX_RCU_LVLS */ int cpustride = 1; int i; int j; _ Patches currently in -mm which might be from fabf@skynet.be are origin.patch fs-affs-superc-bugfix-double-free.patch fs-ceph-replace-pr_warning-by-pr_warn.patch fs-ceph-debugfsc-replace-seq_printf-by-seq_puts.patch fs-cifs-remove-obsolete-__constant.patch fs-jfs-jfs_logmgrc-remove-null-assignment-on-static.patch fs-jfs-superc-remove-0-assignement-to-static-code-clean-up.patch fs-fscache-convert-printk-to-pr_foo.patch fs-fscache-replace-seq_printf-by-seq_puts.patch ntfs-remove-null-value-assignments.patch fs-squashfs-squashfsh-replace-pr_warning-by-pr_warn.patch fs-configs-itemc-kernel-doc-fixes-clean-up.patch ocfs2-remove-null-assignments-on-static.patch fs-ocfs2-superc-use-ocfs2_max_vol_label_len-and-strlcpy.patch fs-9p-v9fsc-add-__init-to-v9fs_sysfs_init.patch fs-9p-kerneldoc-fixes.patch mm-slubc-convert-printk-to-pr_foo.patch mm-slubc-convert-vnsprintf-static-to-va_format.patch mm-memory_hotplugc-use-pfn_down.patch mm-memblockc-use-pfn_down.patch mm-memcontrolc-remove-null-assignment-on-static.patch mm-vmallocc-replace-seq_printf-by-seq_puts.patch mm-mempolicyc-parameter-doc-uniformization.patch mm-zbudc-make-size-unsigned-like-unique-callsite.patch sys_sgetmask-sys_ssetmask-add-config_sgetmask_syscall.patch kernel-cpuc-convert-printk-to-pr_foo.patch kernel-backtracetestc-replace-no-level-printk-by-pr_info.patch kernel-capabilityc-code-clean-up.patch kernel-exec_domainc-code-clean-up.patch lib-libcrc32cc-use-ptr_err_or_zero.patch lib-vsprintfc-fix-comparison-to-bool.patch kernel-compatc-use-sizeof-instead-of-sizeof.patch fs-binfmt_elfc-fix-bool-assignements.patch fs-autofs4-dev-ioctlc-add-__init-to-autofs_dev_ioctl_init.patch fs-befs-linuxvfsc-replace-strncpy-by-strlcpy.patch fs-befs-btreec-replace-strncpy-by-strlcpy-coding-style-fixing.patch fs-befs-linuxvfsc-remove-positive-test-on-sector_t.patch fs-befs-kernel-doc-fixes.patch fs-isofs-logging-clean-up.patch fs-ufs-ballocc-remove-err-parameter-in-ufs_add_fragments.patch fs-reiserfs-bitmapc-coding-style-fixes.patch fs-reiserfs-streec-remove-obsolete-__constant.patch kernel-cpusetc-kernel-doc-fixes.patch kernel-cpusetc-convert-printk-to-pr_foo.patch kernel-kexecc-convert-printk-to-pr_foo.patch fs-affs-filec-remove-unnecessary-function-parameters.patch fs-affs-convert-printk-to-pr_foo.patch fs-affs-pr_debug-cleanup.patch fs-pstore-logging-clean-up.patch fs-pstore-logging-clean-up-fix.patch linux-next.patch init-mainc-code-clean-up.patch ufs-sb-mutex-merge-mutex_destroy.patch arch-unicore32-mm-ioremapc-convert-printk-warn_on-to-warn1.patch arch-unicore32-mm-ioremapc-convert-printk-warn_on-to-warn1-fix.patch kernel-kprobesc-convert-printk-to-pr_foo.patch kernel-latencytopc-convert-seq_printf-to-seq_puts.patch kernel-posix-timersc-code-clean-up.patch kernel-profilec-convert-printk-to-pr_foo.patch kernel-rcu-treec-make-rcu-node-arrays-static-const-char-const.patch