public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.5.30-dj1 (sort of)
@ 2002-08-02 15:12 Dave Jones
  2002-08-04 10:30 ` Adrian Bunk
  2002-08-04 13:55 ` 2.5.30-dj1 (sort of) Adrian Bunk
  0 siblings, 2 replies; 11+ messages in thread
From: Dave Jones @ 2002-08-02 15:12 UTC (permalink / raw)
  To: Linux Kernel

Change of technique this time, as I found a way to work with BitKeeper
that I'm comfortable with. On the upside, syncing gets easier for me,
on the downside, I'm still experimenting, so some bits might be a bit
bumpy, with maybe 1-2 files there that shouldn't be etc..

Chances are this won't even boot for many people (if any at all).
There's something nasty in my tree right now which makes it
fail to find init(1).  I wasn't going to put up a .30-dj for this
reason until I tracked it down, but a few people asked for
something to sync against, or wanted to see where my tree currently
stood (and didn't want to use bk), so just before I disappear
for a week, I've put this up.  So consider it a 'useful only
if you plan to send dave anything' patch for now.

There's still truckloads in my pending patches folder that need
going through, but things like the init(1) problem need tracking
down before I move onto those.

Back in a week..

        -- Davej


As usual,..

Patch against 2.5.30 vanilla is available from:
ftp://ftp.kernel.org/pub/linux/kernel/people/davej/patches/2.5/

Merged patch archive: http://www.codemonkey.org.uk/patches/merged/
BitKeeper tree at http://linux-dj.bkbits.net

2.5.30-dj1
o   Merge bits from 2.4.19 release candidates.
o   Backout the buggy dcache list_ conversion.
o   Remove some more bogus bits Christoph Hellwig found.
o   Remove lots of other bogus bits found during the cvs->bk transition.
o   Fix mask calculation in x86-64 MTRR driver.     (Me)
o   Fix up incorrect C in cpufreq macros.       (Neil Booth)
o   Add missing identification of Intel CPUs.       (Patrick Mochel)

-- 
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.5.30-dj1 (sort of)
@ 2002-08-02 20:45 rwhron
  0 siblings, 0 replies; 11+ messages in thread
From: rwhron @ 2002-08-02 20:45 UTC (permalink / raw)
  To: linux-kernel


Tim Schmielau posted this bit.  2.5.30-dj1 wants it.

--- linux-2.5.25-dj2/include/linux/times.h      Sat Jul 13 08:40:21 2002
+++ linux-2.5.25-dj2-jfix/include/linux/times.h Sat Jul 13 09:06:05 2002
@@ -2,7 +2,22 @@
 #define _LINUX_TIMES_H

 #ifdef __KERNEL__
+#include <asm/div64.h>
+#include <asm/types.h>
+
 # define jiffies_to_clock_t(x) ((x) / (HZ / USER_HZ))
+
+/*
+ * returning a different type than the function name says is
+ * ugly as hell, and only intended to stay until I know what type
+ * should replace clock_t
+ */
+
+static inline u64 jiffies_64_to_clock_t(u64 x)
+{
+       do_div(x, HZ / USER_HZ);
+       return x;
+}
 #endif

 struct tms {

> Chances are this won't even boot for many people (if any at all).
> There's something nasty in my tree right now which makes it
> fail to find init(1).  

Maybe someone will post a patch for that while you are on holiday :)

VFS: Cannot open root device "1602" or 16:02
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 16:02

-- 
Randy Hron
http://home.earthlink.net/~rwhron/kernel/bigbox.html


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.5.30-dj1 (sort of)
  2002-08-02 15:12 2.5.30-dj1 (sort of) Dave Jones
@ 2002-08-04 10:30 ` Adrian Bunk
  2002-08-05 14:15   ` David Woodhouse
  2002-08-04 13:55 ` 2.5.30-dj1 (sort of) Adrian Bunk
  1 sibling, 1 reply; 11+ messages in thread
From: Adrian Bunk @ 2002-08-04 10:30 UTC (permalink / raw)
  To: Dave Jones; +Cc: Linux Kernel

Hi Dave,

the part of -dj1 below is obviously wrong (and it causes a compile error).
After removing it the file compiles.

--- linux-2.5.30/fs/jffs2/dir.c	2002-08-01 22:16:15.000000000 +0100
+++ linux-2.5/fs/jffs2/dir.c	2002-08-02 15:50:33.000000000 +0100
@@ -718,6 +718,7 @@ static int jffs2_rename (struct inode *o
 	struct jffs2_sb_info *c = JFFS2_SB_INFO(old_dir_i->i_sb);
 	struct jffs2_inode_info *victim_f = NULL;
 	uint8_t type;
+	struct jffs2_inode_info *victim_f = NULL;

 	/* The VFS will check for us and prevent trying to rename a
 	 * file over a directory and vice versa, but if it's a directory,

cu
Adrian

-- 

You only think this is a free country. Like the US the UK spends a lot of
time explaining its a free country because its a police state.
								Alan Cox


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.5.30-dj1 (sort of)
  2002-08-02 15:12 2.5.30-dj1 (sort of) Dave Jones
  2002-08-04 10:30 ` Adrian Bunk
@ 2002-08-04 13:55 ` Adrian Bunk
  1 sibling, 0 replies; 11+ messages in thread
From: Adrian Bunk @ 2002-08-04 13:55 UTC (permalink / raw)
  To: Dave Jones; +Cc: Linux Kernel

Hi Dave,

the PCI_DEVICE_ID_AL_M1671_0 entry that is added by your patch needs the
following obvious fix to compile:

--- drivers/char/agp/agp.c.old	Sun Aug  4 15:52:02 2002
+++ drivers/char/agp/agp.c	Sun Aug  4 15:52:13 2002
@@ -818,7 +818,7 @@
 		.device_id	= PCI_DEVICE_ID_AL_M1671_0,
 		.vendor_id	= PCI_VENDOR_ID_AL,
 		.chipset	= ALI_M1671,
-		.vendor_name	= "Ali"
+		.vendor_name	= "Ali",
 		.chipset_name	= "M1671",
 		.chipset_setup	= ali_generic_setup,
 	},

cu
Adrian

-- 

You only think this is a free country. Like the US the UK spends a lot of
time explaining its a free country because its a police state.
								Alan Cox


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.5.30-dj1 (sort of)
  2002-08-04 10:30 ` Adrian Bunk
@ 2002-08-05 14:15   ` David Woodhouse
  2002-08-05 14:41     ` Adrian Bunk
  0 siblings, 1 reply; 11+ messages in thread
From: David Woodhouse @ 2002-08-05 14:15 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: Dave Jones, Linux Kernel


bunk@fs.tum.de said:
>  the part of -dj1 below is obviously wrong (and it causes a compile
> error). After removing it the file compiles.

The -dj tree should have no changes to JFFS2. If there are any, they are 
patches which have passed me by for some reason so please resend them to me.

--
dwmw2



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.5.30-dj1 (sort of)
  2002-08-05 14:15   ` David Woodhouse
@ 2002-08-05 14:41     ` Adrian Bunk
  2002-08-05 14:48       ` David Woodhouse
  2002-08-05 20:24       ` [PATCH] 2.5.30-dj1 Paul Larson
  0 siblings, 2 replies; 11+ messages in thread
From: Adrian Bunk @ 2002-08-05 14:41 UTC (permalink / raw)
  To: David Woodhouse; +Cc: Dave Jones, Linux Kernel

On Mon, 5 Aug 2002, David Woodhouse wrote:

> bunk@fs.tum.de said:
> >  the part of -dj1 below is obviously wrong (and it causes a compile
> > error). After removing it the file compiles.
>
> The -dj tree should have no changes to JFFS2. If there are any, they are
> patches which have passed me by for some reason so please resend them to me.

Below is the output of
  filterdiff -z -i \*jffs2\* patch-2.5.30-dj1.diff.gz

> dwmw2

cu
Adrian



--- linux-2.5.30/fs/jffs2/background.c	2002-08-01 22:16:02.000000000 +0100
+++ linux-2.5/fs/jffs2/background.c	2002-08-02 15:50:33.000000000 +0100
@@ -83,7 +83,6 @@ static int jffs2_garbage_collect_thread(
 	struct jffs2_sb_info *c = _c;

 	daemonize();
-	current->tty = NULL;
 	c->gc_task = current;
 	up(&c->gc_thread_start);

--- linux-2.5.30/fs/jffs2/dir.c	2002-08-01 22:16:15.000000000 +0100
+++ linux-2.5/fs/jffs2/dir.c	2002-08-02 15:50:33.000000000 +0100
@@ -718,6 +718,7 @@ static int jffs2_rename (struct inode *o
 	struct jffs2_sb_info *c = JFFS2_SB_INFO(old_dir_i->i_sb);
 	struct jffs2_inode_info *victim_f = NULL;
 	uint8_t type;
+	struct jffs2_inode_info *victim_f = NULL;

 	/* The VFS will check for us and prevent trying to rename a
 	 * file over a directory and vice versa, but if it's a directory,
@@ -775,6 +776,18 @@ static int jffs2_rename (struct inode *o
 	if (S_ISDIR(old_dentry->d_inode->i_mode) && !victim_f)
 		new_dir_i->i_nlink++;

+	if (victim_f) {
+		/* There was a victim. Kill it off nicely */
+		new_dentry->d_inode->i_nlink--;
+		/* Don't oops if the victim was a dirent pointing to an
+		   inode which didn't exist. */
+		if (victim_f->inocache) {
+			down(&victim_f->sem);
+			victim_f->inocache->nlink--;
+			up(&victim_f->sem);
+		}
+	}
+
 	/* Unlink the original */
 	ret = jffs2_do_unlink(c, JFFS2_INODE_INFO(old_dir_i),
 		      old_dentry->d_name.name, old_dentry->d_name.len, NULL);


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.5.30-dj1 (sort of)
  2002-08-05 14:41     ` Adrian Bunk
@ 2002-08-05 14:48       ` David Woodhouse
  2002-08-05 20:24       ` [PATCH] 2.5.30-dj1 Paul Larson
  1 sibling, 0 replies; 11+ messages in thread
From: David Woodhouse @ 2002-08-05 14:48 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: Dave Jones, Linux Kernel


bunk@fs.tum.de said:
>  Below is the output of
>   filterdiff -z -i \*jffs2\* patch-2.5.30-dj1.diff.gz 

Thanks.

> --- linux-2.5.30/fs/jffs2/background.c	2002-08-01 22:16:02 +0100 
> +++ linux-2.5/fs/jffs2/background.c	2002-08-02 15:50:33 +0100

Applied. 

> --- linux-2.5.30/fs/jffs2/dir.c	2002-08-01 22:16:15.000000000 +0100
> +++ linux-2.5/fs/jffs2/dir.c	2002-08-02 15:50:33.000000000 +0100

This is a duplicate -- it's already in Linus' tree. You noticed the line 
which actually stopped it compiling; the other hunk is bogus too.

--
dwmw2



^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH] 2.5.30-dj1
  2002-08-05 14:41     ` Adrian Bunk
  2002-08-05 14:48       ` David Woodhouse
@ 2002-08-05 20:24       ` Paul Larson
  2002-08-05 21:48         ` Matti Aarnio
  1 sibling, 1 reply; 11+ messages in thread
From: Paul Larson @ 2002-08-05 20:24 UTC (permalink / raw)
  To: davej; +Cc: lkml

Trivial fix for sym53c8xx driver breakage when 
CONFIG_BROKEN_SCSI_ERROR_HANDLING is turned off.

Thanks,
Paul Larson

--- linux-dj/drivers/scsi/sym53c8xx.h	Mon Aug  5 15:42:11 2002
+++ linux-dj-symfix/drivers/scsi/sym53c8xx.h	Mon Aug  5 15:41:43 2002
@@ -89,8 +89,10 @@
 			release:        sym53c8xx_release,	\
 			info:           sym53c8xx_info, 	\
 			queuecommand:   sym53c8xx_queue_command,\
+#ifdef CONFIG_BROKEN_SCSI_ERROR_HANDLING
 			abort:          sym53c8xx_abort,	\
 			reset:          sym53c8xx_reset,	\
+#endif
 			bios_param:     scsicam_bios_param,	\
 			can_queue:      SCSI_NCR_CAN_QUEUE,	\
 			this_id:        7,			\


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] 2.5.30-dj1
  2002-08-05 20:24       ` [PATCH] 2.5.30-dj1 Paul Larson
@ 2002-08-05 21:48         ` Matti Aarnio
  2002-08-05 22:11           ` Paul Larson
  0 siblings, 1 reply; 11+ messages in thread
From: Matti Aarnio @ 2002-08-05 21:48 UTC (permalink / raw)
  To: Paul Larson; +Cc: davej, lkml

On Mon, Aug 05, 2002 at 03:24:43PM -0500, Paul Larson wrote:
> Trivial fix for sym53c8xx driver breakage when 
> CONFIG_BROKEN_SCSI_ERROR_HANDLING is turned off.

  Wrong.   You are trying to place your "fix" within
  a  #define  statement.  No can do.

> Thanks,
> Paul Larson
> 
> --- linux-dj/drivers/scsi/sym53c8xx.h	Mon Aug  5 15:42:11 2002
> +++ linux-dj-symfix/drivers/scsi/sym53c8xx.h	Mon Aug  5 15:41:43 2002
> @@ -89,8 +89,10 @@
>  			release:        sym53c8xx_release,	\
>  			info:           sym53c8xx_info, 	\
>  			queuecommand:   sym53c8xx_queue_command,\
> +#ifdef CONFIG_BROKEN_SCSI_ERROR_HANDLING
>  			abort:          sym53c8xx_abort,	\
>  			reset:          sym53c8xx_reset,	\
> +#endif
>  			bios_param:     scsicam_bios_param,	\
>  			can_queue:      SCSI_NCR_CAN_QUEUE,	\
>  			this_id:        7,			\
> 

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] 2.5.30-dj1
  2002-08-05 21:48         ` Matti Aarnio
@ 2002-08-05 22:11           ` Paul Larson
  2002-08-05 23:53             ` Alan Cox
  0 siblings, 1 reply; 11+ messages in thread
From: Paul Larson @ 2002-08-05 22:11 UTC (permalink / raw)
  To: Matti Aarnio; +Cc: davej, lkml

On Mon, 2002-08-05 at 16:48, Matti Aarnio wrote:
> On Mon, Aug 05, 2002 at 03:24:43PM -0500, Paul Larson wrote:
> > Trivial fix for sym53c8xx driver breakage when 
> > CONFIG_BROKEN_SCSI_ERROR_HANDLING is turned off.
> 
>   Wrong.   You are trying to place your "fix" within
>   a  #define  statement.  No can do.
No, just ifdefing out the broken part the same way it's ifdefed out in
hosts.h which should make the driver compile regardless of whether
broken scsi error handling is enabled or disabled.  Hopefully you have a
cleaner way of doing it.  The problem is that this driver won't build if
CONFIG_BROKEN_SCSI_ERROR_HANDLING isn't defined because in hosts.h we
have this in the Scsi_Host_Template struct:
#ifdef CONFIG_BROKEN_SCSI_ERROR_HANDLING
         int (* abort)(Scsi_Cmnd *);
         int (* reset)(Scsi_Cmnd *, unsigned int);
#endif

This is the compiler error generated by it:
  gcc -Wp,-MD,./.sym53c8xx.o.d -D__KERNEL__
-I/kernel/bk/linux-dj/include -Wall -Wstrict-prototypes -Wno-trigraphs
-O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe
-mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix
include    -DKBUILD_BASENAME=sym53c8xx   -c -o sym53c8xx.o sym53c8xx.c
sym53c8xx.c:14724: unknown field `abort' specified in initializer
sym53c8xx.c:14724: warning: initialization from incompatible pointer
type
sym53c8xx.c:14724: unknown field `reset' specified in initializer
sym53c8xx.c:14724: warning: initialization from incompatible pointer
type
make[3]: *** [sym53c8xx.o] Error 1
make[3]: Leaving directory `/kernel/bk/linux-dj/drivers/scsi'
make[2]: *** [scsi] Error 2
make[2]: Leaving directory `/kernel/bk/linux-dj/drivers'
make[1]: *** [drivers] Error 2
make[1]: Leaving directory `/kernel/bk/linux-dj'
make: *** [bzImage] Error 2

> > Thanks,
> > Paul Larson
> > 
> > --- linux-dj/drivers/scsi/sym53c8xx.h	Mon Aug  5 15:42:11 2002
> > +++ linux-dj-symfix/drivers/scsi/sym53c8xx.h	Mon Aug  5 15:41:43 2002
> > @@ -89,8 +89,10 @@
> >  			release:        sym53c8xx_release,	\
> >  			info:           sym53c8xx_info, 	\
> >  			queuecommand:   sym53c8xx_queue_command,\
> > +#ifdef CONFIG_BROKEN_SCSI_ERROR_HANDLING
> >  			abort:          sym53c8xx_abort,	\
> >  			reset:          sym53c8xx_reset,	\
> > +#endif
> >  			bios_param:     scsicam_bios_param,	\
> >  			can_queue:      SCSI_NCR_CAN_QUEUE,	\
> >  			this_id:        7,			\
> > 
> 



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] 2.5.30-dj1
  2002-08-05 22:11           ` Paul Larson
@ 2002-08-05 23:53             ` Alan Cox
  0 siblings, 0 replies; 11+ messages in thread
From: Alan Cox @ 2002-08-05 23:53 UTC (permalink / raw)
  To: Paul Larson; +Cc: Matti Aarnio, davej, lkml

On Mon, 2002-08-05 at 23:11, Paul Larson wrote:

> cleaner way of doing it.  The problem is that this driver won't build if
> CONFIG_BROKEN_SCSI_ERROR_HANDLING isn't defined because in hosts.h we
> have this in the Scsi_Host_Template struct:
> #ifdef CONFIG_BROKEN_SCSI_ERROR_HANDLING
>          int (* abort)(Scsi_Cmnd *);
>          int (* reset)(Scsi_Cmnd *, unsigned int);
> #endif

We dont want it to build until its fixed

Take a look at http://www.andante.org/scsi_eh.html


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2002-08-05 22:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-02 15:12 2.5.30-dj1 (sort of) Dave Jones
2002-08-04 10:30 ` Adrian Bunk
2002-08-05 14:15   ` David Woodhouse
2002-08-05 14:41     ` Adrian Bunk
2002-08-05 14:48       ` David Woodhouse
2002-08-05 20:24       ` [PATCH] 2.5.30-dj1 Paul Larson
2002-08-05 21:48         ` Matti Aarnio
2002-08-05 22:11           ` Paul Larson
2002-08-05 23:53             ` Alan Cox
2002-08-04 13:55 ` 2.5.30-dj1 (sort of) Adrian Bunk
  -- strict thread matches above, loose matches on Subject: below --
2002-08-02 20:45 rwhron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox