From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Schwab Subject: Re: [PATCH/RFC] m68k/sun3: Kill pte_unmap() warnings Date: Sun, 31 Oct 2010 22:32:18 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: (Geert Uytterhoeven's message of "Sun, 31 Oct 2010 21:38:35 +0100 (CET)") Sender: owner-linux-mm@kvack.org To: Geert Uytterhoeven Cc: Sam Creasey , Andrew Morton , Linux/m68k , Linux Kernel Development , linux-mm@kvack.org List-Id: linux-m68k@vger.kernel.org Geert Uytterhoeven writes: > Which one is preferable? > > -----------------------------------------------------------------------= -------- > Since commit 31c911329e048b715a1dfeaaf617be9430fd7f4e ("mm: check the a= rgument > of kunmap on architectures without highmem"), we get lots of warnings l= ike > > arch/m68k/kernel/sys_m68k.c:508: warning: passing argument 1 of =E2=80=98= kunmap=E2=80=99 from incompatible pointer type > > As m68k doesn't support highmem anyway, open code the calls to kmap() a= nd > kunmap() (the latter is a no-op) to kill the warnings. I prefer this one, it matches all architectures without CONFIG_HIGHPTE. Andreas. --=20 Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different." -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/ Don't email: email@kvack.org