Resent-Date: Fri, 23 Oct 1998 10:25:32 +0200 (MET DST)
To: "Petr Stehlik" <pstehlik@zln.cz>
Cc: <linux-m68k@lists.linux-m68k.org>
Subject: Re: STRAM swapping broken (was: atari_stram_alloc / __get_free_pages problem (was: atari scr)
References: <000001bdfe57$217ef460$0401a8c0@joy.sophics>
X-Yow: I'm RELIGIOUS!!  I love a man with a HAIRPIECE!!
 Equip me with MISSILES!!
From: Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Date: 23 Oct 1998 10:25:57 +0200
In-Reply-To: "Petr Stehlik"'s message of "Fri, 23 Oct 1998 09:31:21 +0200"
Resent-From: linux-m68k@phil.uni-sb.de

"Petr Stehlik" <pstehlik@zln.cz> writes:

|> > --- arch/m68k/atari/stram.c.~1~	Fri Oct  9 17:53:49 1998
|> > +++ arch/m68k/atari/stram.c	Tue Oct 20 19:40:55 1998
|> 
|> after applying your patch I get the following errors:
|> 
|> stram.c:565: parse error before `int'

Please try this patch, apparently gcc 2.8 is less restrictive about the
placement of __attribute__.

Andreas.

--- linux/arch/m68k/atari/stram.c.~2~	Fri Oct 23 10:22:05 1998
+++ linux/arch/m68k/atari/stram.c	Fri Oct 23 10:23:44 1998
@@ -564,7 +564,7 @@
  * Initialize ST-RAM swap device
  * (lots copied and modified from sys_swapon() in mm/swapfile.c)
  */
-static __init int swap_init(unsigned long start_mem, unsigned long swap_data)
+static int __init swap_init(unsigned long start_mem, unsigned long swap_data)
 {
 	static struct dentry fake_dentry[3];
 	struct swap_info_struct *p;

-- 
Andreas Schwab                                      "And now for something
schwab@issan.cs.uni-dortmund.de                      completely different"
schwab@gnu.org

