From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Torvalds Subject: Re: [PATCH] m68knommu: change definitions of __pa() and __va() Date: Mon, 11 Jan 2010 16:53:56 -0800 (PST) Message-ID: References: <201001120039.o0C0dboQ031390@goober.internal.moreton.com.au> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-path: Received: from smtp1.linux-foundation.org ([140.211.169.13]:45388 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750940Ab0ALAyG (ORCPT ); Mon, 11 Jan 2010 19:54:06 -0500 In-Reply-To: <201001120039.o0C0dboQ031390@goober.internal.moreton.com.au> Sender: linux-m68k-owner@vger.kernel.org List-Id: linux-m68k@vger.kernel.org To: Greg Ungerer Cc: gerg@uclinux.org, linux-m68k@vger.kernel.org, linux-kernel@vger.kernel.org On Tue, 12 Jan 2010, Greg Ungerer wrote: > +#else > +#define page_to_phys(page) ((page - mem_map) << PAGE_SHIFT) > +#define page_to_bus(page) ((page - mem_map) << PAGE_SHIFT) > +#endif Ok, so the old ones were total crap too, but when moving things around, don't just copy the crap like this. Look at those two #define's for five seconds, and ask yourself what is wrong with them. Those macros are not good. Linus