Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756528Ab1EHXGf (ORCPT ); Sun, 8 May 2011 19:06:35 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:49055 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755876Ab1EHWkf (ORCPT ); Sun, 8 May 2011 18:40:35 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=IEaervM9KJSQ1sQ4qgxdXL4vhokA0ntFodpeV1wLcHzxNcNKfCnRoDVtjFoWshymbT lhvm1kbyY0j/KV96N4kB+8G/MWYYyQl8e4qvt70tofRsgJ8JqAJp/fsHZesWL/9jss6z wHrhNelJu3n5GcIFyxukbnoWJ20BvQkYJ0bzM= From: Lucian Adrian Grijincu To: linux-kernel@vger.kernel.org Cc: netdev@vger.kernel.org, Lucian Adrian Grijincu Subject: [v2 006/115] sysctl: remove .child from kernel/vsyscall64 (x86) Date: Mon, 9 May 2011 00:38:18 +0200 Message-Id: <1304894407-32201-7-git-send-email-lucian.grijincu@gmail.com> X-Mailer: git-send-email 1.7.5.134.g1c08b In-Reply-To: <1304894407-32201-1-git-send-email-lucian.grijincu@gmail.com> References: <1304894407-32201-1-git-send-email-lucian.grijincu@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1765 Lines: 58 Signed-off-by: Lucian Adrian Grijincu --- arch/x86/kernel/vsyscall_64.c | 25 ++++++++++++++----------- 1 files changed, 14 insertions(+), 11 deletions(-) diff --git a/arch/x86/kernel/vsyscall_64.c b/arch/x86/kernel/vsyscall_64.c index dcbb28c..7d8b83d 100644 --- a/arch/x86/kernel/vsyscall_64.c +++ b/arch/x86/kernel/vsyscall_64.c @@ -234,18 +234,21 @@ static long __vsyscall(3) venosys_1(void) } #ifdef CONFIG_SYSCTL -static ctl_table kernel_table2[] = { - { .procname = "vsyscall64", - .data = &vsyscall_gtod_data.sysctl_enabled, .maxlen = sizeof(int), - .mode = 0644, - .proc_handler = proc_dointvec }, - {} +static ctl_table vsyscall64_table[] = { + { + .procname = "vsyscall64", + .data = &vsyscall_gtod_data.sysctl_enabled, + .maxlen = sizeof(int), + .mode = 0644, + .proc_handler = proc_dointvec, + }, + { } }; -static ctl_table kernel_root_table2[] = { - { .procname = "kernel", .mode = 0555, - .child = kernel_table2 }, - {} + +static struct ctl_path kernel_root_path[] = { + { .procname = "kernel" }, + { } }; #endif @@ -303,7 +306,7 @@ static int __init vsyscall_init(void) BUG_ON((VSYSCALL_ADDR(0) != __fix_to_virt(VSYSCALL_FIRST_PAGE))); BUG_ON((unsigned long) &vgetcpu != VSYSCALL_ADDR(__NR_vgetcpu)); #ifdef CONFIG_SYSCTL - register_sysctl_table(kernel_root_table2); + register_sysctl_paths(kernel_root_path, vsyscall64_table); #endif on_each_cpu(cpu_vsyscall_init, NULL, 1); /* notifier priority > KVM */ -- 1.7.5.134.g1c08b -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/