Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935822AbZDJGQt (ORCPT ); Fri, 10 Apr 2009 02:16:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760943AbZDJGQf (ORCPT ); Fri, 10 Apr 2009 02:16:35 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:34523 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758384AbZDJGQe (ORCPT ); Fri, 10 Apr 2009 02:16:34 -0400 Date: Thu, 9 Apr 2009 23:12:08 -0700 From: Andrew Morton To: liqin.chen@sunplusct.com Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, Arnd Bergmann , Sam Ravnborg , Thomas Gleixner , Kyle McMartin Subject: Re: [PATCH 2/14] score - New architecure port to SunplusCT S+CORE Message-Id: <20090409231208.558c0983.akpm@linux-foundation.org> In-Reply-To: References: X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.5; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1129 Lines: 34 On Wed, 8 Apr 2009 15:21:00 +0800 liqin.chen@sunplusct.com wrote: > From: Chen Liqin > > asm/asm.h, asm/atomic.h, asm/auxvec.h, asm/bitops.h, asm/bug.h, > asm/bugs.h, asm/byteorder.h, asm/cacheflush.h, asm/cache.h > and asm/checksum.h for the score architecture. > > > ... > > +#define PG_dcache_dirty PG_arch_1 > + > +#define Page_dcache_dirty(page) \ > + test_bit(PG_dcache_dirty, &(page)->flags) > +#define SetPageDcacheDirty(page) \ > + set_bit(PG_dcache_dirty, &(page)->flags) > +#define ClearPageDcacheDirty(page) \ > + clear_bit(PG_dcache_dirty, &(page)->flags) We have ugly macros in include/linux/page-flags.h which expand a page flag out into its accessors, with standardised naming: TESTSCFLAG, CLEARPAGEFLAG_NOOP, etc. It would be best of those were reused here. > > ... > -- 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/