From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Thu, 26 Apr 2012 12:55:40 +0200 Subject: [U-Boot] [PATCH v2 4/4] lin_gadget: use common linux/compat.h In-Reply-To: <20120426123240.76c4c43a@lmajewski.digital.local> References: <1334014796-4627-4-git-send-email-vapier@gentoo.org> <1335341501-4270-1-git-send-email-agust@denx.de> <20120425175851.3c996837@lmajewski.digital.local> <20120426110319.3690e103@wker> <20120426123240.76c4c43a@lmajewski.digital.local> Message-ID: <20120426125540.402048ba@wker> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Lukasz, On Thu, 26 Apr 2012 12:32:40 +0200 Lukasz Majewski wrote: ... > > Now I see another issue. In this 4/4 patch we are removing kmalloc: > > > > -#define kmalloc(size, type) memalign(CONFIG_SYS_CACHELINE_SIZE, size) > > > > linux/compat.h defines kmalloc() to be malloc(), so the gadget driver > > should probably use memalign() directly where it is needed? > > In the include/usb/lin_gadget_compat.h the > > #define kmalloc(size, type) memalign(CONFIG_SYS_CACHELINE_SIZE, size) > line is defined. > > I think that memalign can be used directly, no problem. Okay, I'll change this patch accordingly and will resubmit v3 then. Thanks, Anatolij