Skip to contentSkip to conversation

VM_ZONE_RECLAIM_MODE warning in kernel/sysctl.c

PATCH Hugh Dickins 2 participants 2 messages Jan 23, 2006 Proc sysctl

lore
Share & tools
lore
#0 lore raw

Hi Christoph,

I'm puzzled why I who only pretend to have NUMA get this compiler warning kernel/sysctl.c:881: warning: initialization from incompatible pointer type but people who really have NUMA don't. Specifying the address of an int instead of a function looks unhealthy to me: could you please test this plausible but possibly nonsense patch below, correct it where necessary, and send it in? Thanks.

Heed NUMA VM_ZONE_RECLAIM_MODE compiler warning in kernel/sysctl.c.

kernel/sysctl.c +2 -1
@@ -878,7 +878,8 @@ static ctl_table vm_table[] = {
 		.maxlen		= sizeof(zone_reclaim_mode),
 		.mode		= 0644,
 		.proc_handler	= &proc_dointvec,
-		.strategy	= &zero,
+		.strategy	= &sysctl_intvec,
+		.extra1		= &zero,
 	},
 #endif
 	{ .ctl_name = 0 }
#1 lore raw
Quoted 1 line · Hugh Dickins

Heed NUMA VM_ZONE_RECLAIM_MODE compiler warning in kernel/sysctl.c.

This is already fixed in Andrews tree.