From: Daniel Vetter Subject: Re: [PATCH 00/14] cleanup radeon_asic.h Date: Thu, 11 Mar 2010 22:10:10 +0100 Message-ID: <20100311211009.GA3536@viiv.ffwll.ch> References: <1268312776-32615-1-git-send-email-daniel.vetter@ffwll.ch> <20100311163428.GC3033@barney.localdomain> <21d7e9971003111252j2a7958edm5806acc87ea85f13@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <21d7e9971003111252j2a7958edm5806acc87ea85f13@mail.gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.sourceforge.net To: Dave Airlie Cc: Alex Deucher , dri-devel@lists.sourceforge.net, Daniel Vetter List-Id: dri-devel@lists.freedesktop.org On Fri, Mar 12, 2010 at 06:52:43AM +1000, Dave Airlie wrote: > > I don't have strong feeling but Alex has a point, right now we often > > update them, maybe we should add radeon_asic.c and move asic init > > (function now in radeon_device.c) along structure there. > > > > I've seen it sugggested earlier, > > Just don't use declarations in the C file, that isn't acceptable coding. > > If we add radeon_asic.h make sure to include that in places that > define the functions as well. > > Last thing we want is declarations to diverge by accident. Well, this is exactly what I'm trying to fix here. atm radeon_asic.h contains static struct definitions (i.e. should be a C file) and is therefore included only exactly _once_. And contains tons of declarations for the functions it uses. Which are actually in one case not coherent with the actual definitions! -Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48 ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev --