From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anand Gadiyar Subject: [PATCH] kernel/cpu.c - fix build warning Date: Fri, 19 Nov 2010 10:56:50 +0530 Message-ID: <1290144410-30981-1-git-send-email-gadiyar@ti.com> Return-path: Received: from comal.ext.ti.com ([198.47.26.152]:34196 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750887Ab0KSF1I (ORCPT ); Fri, 19 Nov 2010 00:27:08 -0500 Sender: linux-next-owner@vger.kernel.org List-ID: To: linux-kernel@vger.kernel.org, linux-next@vger.kernel.org Cc: Anand Gadiyar , Peter Zijlstra , Ingo Molnar Patch "sched: Simplify cpu-hot-unplug task migration" in linux-next as of 20101119 introduced the following compile warning. Fix this. CC kernel/cpu.o kernel/cpu.c: In function 'take_cpu_down': kernel/cpu.c:200: warning: unused variable 'cpu' Signed-off-by: Anand Gadiyar Cc: Peter Zijlstra Cc: Ingo Molnar --- Okay with me to fold this into the original patch if that's still possible. kernel/cpu.c | 1 - 1 file changed, 1 deletion(-) Index: linux-2.6/kernel/cpu.c =================================================================== --- linux-2.6.orig/kernel/cpu.c +++ linux-2.6/kernel/cpu.c @@ -197,7 +197,6 @@ struct take_cpu_down_param { static int __ref take_cpu_down(void *_param) { struct take_cpu_down_param *param = _param; - unsigned int cpu = (unsigned long)param->hcpu; int err; /* Ensure this CPU doesn't handle any more interrupts. */