All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jurriaan on Alpha <thunder7@xs4all.nl>
To: Oliver Pitzeier <o.pitzeier@uptime.at>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.5.24 doesn't compile on Alpha
Date: Fri, 21 Jun 2002 16:19:57 +0200	[thread overview]
Message-ID: <20020621141957.GA22555@alpha.of.nowhere> (raw)
In-Reply-To: <000301c2191e$5a4a3080$010b10ac@sbp.uptime.at>

From: Oliver Pitzeier <o.pitzeier@uptime.at>
Date: Fri, Jun 21, 2002 at 02:22:42PM +0200
> Hi Thunder!
> [ ... ]
> > `smp_num_cpus' undeclared (first use in this function)
> [ .... ]
> > 
> > I know I can fix the smp_num_cpus thing [ ... ]
> 
> Yes!? How????
> 
I tried #define smp_num_cpus 1 in include/asm-alpha/smp.h (the non-smp
section) but the same line in include/asm/mmu_context.h works - for a
while.

ALPHA :diff -Br -b -U 3 -N mmu_context.org mmu_context.h
--- mmu_context.org     Fri Jun 21 16:16:56 2002
+++ mmu_context.h       Fri Jun 21 16:09:33 2002
@@ -89,6 +89,7 @@
 #define cpu_last_asn(cpuid)    (cpu_data[cpuid].last_asn)
 #else
 extern unsigned long last_asn;
+#define smp_num_cpus   1
 #define cpu_last_asn(cpuid)    last_asn
 #endif /* CONFIG_SMP */

But after that while:

make[1]: Entering directory `/usr/src/linux-2.5.24/mm'
  gcc -Wp,-MD,./.memory.o.d -D__KERNEL__ -I/usr/src/linux-2.5.24/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-po
inter -fno-strict-aliasing -fno-common -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-mev6 -nostdinc -iwithprefix include    -DKBUILD_B
ASENAME=memory   -c -o memory.o memory.c
In file included from /usr/src/linux-2.5.24/include/asm/tlb.h:1,
                 from memory.c:50:
/usr/src/linux-2.5.24/include/asm-generic/tlb.h: In function `tlb_gather_mmu':
/usr/src/linux-2.5.24/include/asm-generic/tlb.h:57: warning: large integer implicitly truncated to unsigned type
/usr/src/linux-2.5.24/include/asm-generic/tlb.h: In function `tlb_flush_mmu':
/usr/src/linux-2.5.24/include/asm-generic/tlb.h:69: warning: implicit declaration of function `tlb_flush'
memory.c: In function `free_one_pmd':
memory.c:93: warning: implicit declaration of function `pte_free_tlb'
memory.c: In function `free_one_pgd':
memory.c:114: warning: implicit declaration of function `pmd_free_tlb'
memory.c: In function `copy_page_range':
memory.c:267: warning: implicit declaration of function `pte_pfn'
memory.c:268: warning: implicit declaration of function `pfn_valid'
memory.c:270: warning: implicit declaration of function `pfn_to_page'
memory.c:270: warning: assignment makes pointer from integer without a cast
memory.c: In function `zap_pte_range':
memory.c:338: warning: implicit declaration of function `tlb_remove_tlb_entry'
memory.c:340: warning: initialization makes pointer from integer without a cast
memory.c: In function `unmap_page_range':
memory.c:386: warning: implicit declaration of function `tlb_start_vma'
memory.c:392: warning: implicit declaration of function `tlb_end_vma'
memory.c: In function `follow_page':
memory.c:458: warning: return makes pointer from integer without a cast
memory.c: In function `remap_pte_range':
memory.c:845: invalid type argument of `->'
memory.c:846: warning: implicit declaration of function `pfn_pte'
memory.c:846: incompatible types in assignment
memory.c: In function `do_wp_page':
memory.c:961: warning: assignment makes pointer from integer without a cast
make[1]: *** [memory.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.5.24/mm'
make: *** [mm] Error 2
alpha:/usr/src/linux-2.5.24#

Jurriaan
-- 
I believe in coincidence. Coincidences happen every day. But I don't
trust coincidences.
	Garak - DS9
Debian GNU/Linux 2.4.19p10 on Alpha 990 bogomips load:0.52 0.48 0.46

  parent reply	other threads:[~2002-06-21 14:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-21  6:48 2.5.24 doesn't compile on Alpha Jurriaan on Alpha
2002-06-21 12:42 ` 2.5.24 on alpha; fls redefined!? HELP NEEDED Oliver Pitzeier
2002-06-21 12:55   ` Oliver Pitzeier
     [not found] ` <000301c2191e$5a4a3080$010b10ac@sbp.uptime.at>
2002-06-21 14:19   ` Jurriaan on Alpha [this message]
2002-06-21 15:24     ` 2.5.24 doesn't compile on Alpha Ivan Kokshaysky
2002-06-21 20:37       ` Jurriaan on Alpha
2002-06-21 20:57         ` Jan-Benedict Glaw
2002-06-22  6:17           ` Jurriaan on Alpha
2002-06-23 14:10             ` Oliver Pitzeier @ Home
2002-06-23 14:11       ` Oliver Pitzeier @ Home
2002-06-24  9:05         ` Boot problems (WAS: RE: 2.5.24 doesn't compile on Alpha) Oliver Pitzeier @ Home

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=20020621141957.GA22555@alpha.of.nowhere \
    --to=thunder7@xs4all.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=o.pitzeier@uptime.at \
    /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.