All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jurriaan <thunder7@xs4all.nl>
To: Libor Vanek <libor@conet.cz>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Highmem fails to compile with 2.6.10-rc1-mm5
Date: Fri, 12 Nov 2004 17:58:10 +0100	[thread overview]
Message-ID: <20041112165810.GA28664@middle.of.nowhere> (raw)
In-Reply-To: <4194C9A3.6080106@conet.cz>

From: Libor Vanek <libor@conet.cz>
Date: Fri, Nov 12, 2004 at 03:33:07PM +0100
> Hi,
> I got problems when compiling latest 2.6.10-rc1-mm5 with enabled 
> highmem  (set to 4GB). I got this error:
> 
>  CC      arch/i386/mm/mmap.o
>  CC      arch/i386/mm/highmem.o
> arch/i386/mm/highmem.c:96: error: conflicting types for 
> 'kmap_atomic_to_page'
> include/asm/highmem.h:65: error: previous declaration of 
> 'kmap_atomic_to_page' was here
> arch/i386/mm/highmem.c:96: error: conflicting types for 
> 'kmap_atomic_to_page'
> include/asm/highmem.h:65: error: previous declaration of 
> 'kmap_atomic_to_page' was here
> make[1]: *** [arch/i386/mm/highmem.o] Error 1
> make: *** [arch/i386/mm] Error 2
> 
> I got gcc 3.4.2 (Fedora rawhide). I attach my .config.
> 
A patch was posted:


From: Andrew Morton <akpm@osdl.org>

Needs a fixup for CONFIG_HIGHMEM

--- linux-bix/include/asm/highmem.h~a	2004-11-11 03:07:37.105728944 -0800
+++ linux-bix-akpm/include/asm/highmem.h	2004-11-11 03:07:49.511842928 -0800
@@ -62,7 +62,7 @@ void kunmap(struct page *page);
 char *kmap_atomic(struct page *page, enum km_type type);
 void kunmap_atomic(char *kvaddr, enum km_type type);
 char *kmap_atomic_pfn(unsigned long pfn, enum km_type type);
-struct page *kmap_atomic_to_page(void *ptr);
+struct page *kmap_atomic_to_page(char *ptr);
 
 #define flush_cache_kmaps()	do { } while (0)
 
Also, to prevent needlessly large messages, could you filter out all the
'is not set' lines when posting your .config? They are not necessary for
anybody. Just grep "=" /usr/src/linux-x.x.xx/.config and you'll save
lots of bandwidth.

Kind regards,
Jurriaan
-- 
And you have the right to free speech, as long as you're not dumb
enough, to actually try it...
        The Clash - Know Your Rights
Debian (Unstable) GNU/Linux 2.6.9-mm1 2x6078 bogomips load 0.22

  reply	other threads:[~2004-11-12 17:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-12 14:33 Highmem fails to compile with 2.6.10-rc1-mm5 Libor Vanek
2004-11-12 16:58 ` Jurriaan [this message]
2004-11-12 18:42   ` Adrian Bunk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041112165810.GA28664@middle.of.nowhere \
    --to=thunder7@xs4all.nl \
    --cc=libor@conet.cz \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.