From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 20 Feb 2008 11:09:33 +0100 From: Bastian Blank Subject: Re: [patch 07/13] Initialize per cpu lowcores on cpu hotplug. Message-ID: <20080220100933.GA20162@wavehammer.waldi.eu.org> References: <20080219144047.587547541@de.ibm.com> <20080219144504.392301782@de.ibm.com> <20080219151355.GA24547@wavehammer.waldi.eu.org> <20080219153855.GA11599@osiris.boeblingen.de.ibm.com> <20080219154149.GB11599@osiris.boeblingen.de.ibm.com> <0d276daad249ac20ae922f4aa9a6e88b@kernel.crashing.org> <20080220094552.GA12635@osiris.boeblingen.de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20080220094552.GA12635@osiris.boeblingen.de.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-Archive: List-Post: To: Heiko Carstens Cc: Segher Boessenkool , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, Martin Schwidefsky List-ID: On Wed, Feb 20, 2008 at 10:45:52AM +0100, Heiko Carstens wrote: > - copy_page(lowcore, &S390_lowcore); > + memcpy(lowcore, &S390_lowcore, 512); Okay > memset((void *)lowcore + 512, 0, sizeof(*lowcore) - 512); Not completely okay. void pointer are not allowed in arithmetic. gcc handles void * as char * in this case, but I think it should usualy be avoided. Bastian -- Peace was the way. -- Kirk, "The City on the Edge of Forever", stardate unknown