Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753794Ab0LABDT (ORCPT ); Tue, 30 Nov 2010 20:03:19 -0500 Received: from kroah.org ([198.145.64.141]:59742 "EHLO coco.kroah.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753147Ab0LABCc (ORCPT ); Tue, 30 Nov 2010 20:02:32 -0500 Date: Tue, 30 Nov 2010 16:55:49 -0800 From: Greg KH To: David Sin Cc: linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Lajos Molnar Subject: Re: [RFC v2 6/8] TILER-DMM: Geometry and view manipulation functions Message-ID: <20101201005549.GB29171@kroah.com> References: <1291147139-23472-1-git-send-email-davidsin@ti.com> <1291147139-23472-7-git-send-email-davidsin@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1291147139-23472-7-git-send-email-davidsin@ti.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1281 Lines: 43 On Tue, Nov 30, 2010 at 01:58:57PM -0600, David Sin wrote: > From: Lajos Molnar > > This patch contains information on TILER geometry, as well as > tiler_view_t object manipulation functions. > > It also contains an internal TILER header file to share geometric > information with other TILER files. > > Signed-off-by: Lajos Molnar > Signed-off-by: David Sin > --- > drivers/misc/tiler/_tiler.h | 48 +++++ Ick, no, just name it "tiler.h" please. There should not be any need to put _ in front of a .h file. > +u32 tiler_bpp(const struct tiler_block_t *b) > +{ > + enum tiler_fmt fmt = tiler_fmt(b->phys); > + BUG_ON(fmt == TILFMT_INVALID || fmt == TILFMT_PAGE); Don't cause the kernel to crash within a driver for no good reason like this. Please fix these to WARN_ON if it's really something that can happen. If not, then just remove it. > + > + return geom[fmt].bpp; > +} > +EXPORT_SYMBOL(tiler_bpp); EXPORT_SYMBOL_GPL() perhaps for all of these? thanks, greg k-h -- 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/