* Linux 2.4.10-pre6
@ 2001-09-09 2:52 Linus Torvalds
2001-09-09 5:29 ` Linux 2.4.10-pre6, NTFS build break John Kacur
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Linus Torvalds @ 2001-09-09 2:52 UTC (permalink / raw)
To: Kernel Mailing List
Most noticeable (except perhaps for the NTFS update if you're a NTFS user)
is that the broken bootdata patch that could cause some spurious MM
corruption due to a double page free of the bootdata got reverted. This is
the one that caused BUG reports from mm/page_alloc.c..
Changelog appended..
Linus
-----
pre6:
- Jens Axboe: remove trivially dead io_request_lock usage
- Andrea Arcangeli: softirq cleanup and ARM fixes. Slab cleanups
- Christoph Hellwig: gendisk handling helper functions/cleanups
- Nikita Danilov: reiserfs dead code pruning
- Anton Altaparmakov: NTFS update to 1.1.18
- firestream network driver: patch reverted on authors request
- NIIBE Yutaka: SH architecture update
- Paul Mackerras: PPC cleanups, PPC8xx update.
- me: reverse broken bootdata allocation patch that went into pre5
pre5:
- Merge with Alan
- Trond Myklebust: NFS fixes - kmap and root inode special case
- Al Viro: more superblock cleanups, inode leak in rd.c, minix
directories in page cache
- Paul Mackerras: clean up rubbish from sl82c105.c
- Neil Brown: md/raid cleanups, NFS filehandles
- Johannes Erdfelt: USB update (usb-2.0 support, visor fix, Clie fix,
pl2303 driver update)
- David Miller: sparc and net update
- Eric Biederman: simplify and correct bootdata allocation - don't
overwrite ramdisks
- Tim Waugh: support multiple SuperIO devices, parport doc updates
pre4:
- Hugh Dickins: swapoff cleanups and speedups
- Matthew Dharm: USB storage update
- Keith Owens: Makefile fixes
- Tom Rini: MPC8xx build fix
- Nikita Danilov: reiserfs update
- Jakub Jelinek: ELF loader fix for ET_DYN
- Andrew Morton: reparent_to_init() for kernel threads
- Christoph Hellwig: VxFS and SysV updates, vfs_permission fix
pre3:
- Johannes Erdfelt, Oliver Neukum: USB printer driver race fix
- John Byrne: fix stupid i386-SMP irq stack layout bug
- Andreas Bombe, me: yenta IO window fix
- Neil Brown: raid1 buffer state fix
- David Miller, Paul Mackerras: fix up sparc and ppc respectively for kmap/kbd_rate
- Matija Nalis: umsdos fixes, and make it possible to boot up with umsdos
- Francois Romieu: fix bugs in dscc4 driver
- Andy Grover: new PCI config space access functions (eventually for ACPI)
- Albert Cranford: fix incorrect e2fsprog data from ver_linux script
- Dave Jones: re-sync x86 setup code, fix macsonic kmalloc use
- Johannes Erdfelt: remove obsolete plusb USB driver
- Andries Brouwer: fix USB compact flash version info, add blksize ioctls
pre2:
- Al Viro: block device cleanups
- Marcelo Tosatti: make bounce buffer allocations more robust (it's ok
for them to do IO, just not cause recursive bounce IO. So allow them)
- Anton Altaparmakov: NTFS update (1.1.17)
- Paul Mackerras: PPC update (big re-org)
- Petko Manolov: USB pegasus driver fixes
- David Miller: networking and sparc updates
- Trond Myklebust: Export atomic_dec_and_lock
- OGAWA Hirofumi: find and fix umsdos "filldir" users that were broken
by the 64-bit-cleanups. Fix msdos warnings.
- Al Viro: superblock handling cleanups and race fixes
- Johannes Erdfelt++: USB updates
pre1:
- Jeff Hartmann: DRM AGP/alpha cleanups
- Ben LaHaise: highmem user pagecopy/clear optimization
- Vojtech Pavlik: VIA IDE driver update
- Herbert Xu: make cramfs work with HIGHMEM pages
- David Fennell: awe32 ram size detection improvement
- Istvan Varadi: umsdos EMD filename bug fix
- Keith Owens: make min/max work for pointers too
- Jan Kara: quota initialization fix
- Brad Hards: Kaweth USB driver update (enable, and fix endianness)
- Ralf Baechle: MIPS updates
- David Gibson: airport driver update
- Rogier Wolff: firestream ATM driver multi-phy support
- Daniel Phillips: swap read page referenced set - avoid swap thrashing
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Linux 2.4.10-pre6, NTFS build break
2001-09-09 2:52 Linux 2.4.10-pre6 Linus Torvalds
@ 2001-09-09 5:29 ` John Kacur
2001-09-09 6:38 ` Aaron Lehmann
2001-09-09 9:47 ` Linux 2.4.10-pre6: necessary patches Eyal Lebedinsky
` (2 subsequent siblings)
3 siblings, 1 reply; 6+ messages in thread
From: John Kacur @ 2001-09-09 5:29 UTC (permalink / raw)
To: linux-kernel
Linus Torvalds wrote:
>
> Most noticeable (except perhaps for the NTFS update if you're a NTFS user)
> is that the broken bootdata patch that could cause some spurious MM
> corruption due to a double page free of the bootdata got reverted. This is
> the one that caused BUG reports from mm/page_alloc.c..
>
> Changelog appended..
>
> Linus
>
> -----
> pre6:
> - Jens Axboe: remove trivially dead io_request_lock usage
> - Andrea Arcangeli: softirq cleanup and ARM fixes. Slab cleanups
> - Christoph Hellwig: gendisk handling helper functions/cleanups
> - Nikita Danilov: reiserfs dead code pruning
> - Anton Altaparmakov: NTFS update to 1.1.18
> - firestream network driver: patch reverted on authors request
> - NIIBE Yutaka: SH architecture update
> - Paul Mackerras: PPC cleanups, PPC8xx update.
> - me: reverse broken bootdata allocation patch that went into pre5
>
> pre5:
> - Merge with Alan
> - Trond Myklebust: NFS fixes - kmap and root inode special case
> - Al Viro: more superblock cleanups, inode leak in rd.c, minix
> directories in page cache
> - Paul Mackerras: clean up rubbish from sl82c105.c
> - Neil Brown: md/raid cleanups, NFS filehandles
> - Johannes Erdfelt: USB update (usb-2.0 support, visor fix, Clie fix,
> pl2303 driver update)
> - David Miller: sparc and net update
> - Eric Biederman: simplify and correct bootdata allocation - don't
> overwrite ramdisks
> - Tim Waugh: support multiple SuperIO devices, parport doc updates
>
> pre4:
> - Hugh Dickins: swapoff cleanups and speedups
> - Matthew Dharm: USB storage update
> - Keith Owens: Makefile fixes
> - Tom Rini: MPC8xx build fix
> - Nikita Danilov: reiserfs update
> - Jakub Jelinek: ELF loader fix for ET_DYN
> - Andrew Morton: reparent_to_init() for kernel threads
> - Christoph Hellwig: VxFS and SysV updates, vfs_permission fix
>
> pre3:
> - Johannes Erdfelt, Oliver Neukum: USB printer driver race fix
> - John Byrne: fix stupid i386-SMP irq stack layout bug
> - Andreas Bombe, me: yenta IO window fix
> - Neil Brown: raid1 buffer state fix
> - David Miller, Paul Mackerras: fix up sparc and ppc respectively for kmap/kbd_rate
> - Matija Nalis: umsdos fixes, and make it possible to boot up with umsdos
> - Francois Romieu: fix bugs in dscc4 driver
> - Andy Grover: new PCI config space access functions (eventually for ACPI)
> - Albert Cranford: fix incorrect e2fsprog data from ver_linux script
> - Dave Jones: re-sync x86 setup code, fix macsonic kmalloc use
> - Johannes Erdfelt: remove obsolete plusb USB driver
> - Andries Brouwer: fix USB compact flash version info, add blksize ioctls
>
> pre2:
> - Al Viro: block device cleanups
> - Marcelo Tosatti: make bounce buffer allocations more robust (it's ok
> for them to do IO, just not cause recursive bounce IO. So allow them)
> - Anton Altaparmakov: NTFS update (1.1.17)
> - Paul Mackerras: PPC update (big re-org)
> - Petko Manolov: USB pegasus driver fixes
> - David Miller: networking and sparc updates
> - Trond Myklebust: Export atomic_dec_and_lock
> - OGAWA Hirofumi: find and fix umsdos "filldir" users that were broken
> by the 64-bit-cleanups. Fix msdos warnings.
using egcs-2.91.66
line 25 of fs/ntfs/support.h
#define ntfs_debug(mask, fmt, ...) do {} while (0)
causes a build break because "..." is not valid in the identifier-list
of a #define.
Perhaps this can just be turned into
static inline ntfs_debug(mask, fmt, ...) do {} while(0)
or is something else required?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Linux 2.4.10-pre6, NTFS build break
2001-09-09 5:29 ` Linux 2.4.10-pre6, NTFS build break John Kacur
@ 2001-09-09 6:38 ` Aaron Lehmann
0 siblings, 0 replies; 6+ messages in thread
From: Aaron Lehmann @ 2001-09-09 6:38 UTC (permalink / raw)
To: John Kacur; +Cc: linux-kernel
On Sun, Sep 09, 2001 at 01:29:07AM -0400, John Kacur wrote:
> Perhaps this can just be turned into
> static inline ntfs_debug(mask, fmt, ...) do {} while(0)
You mean static inline ntfs_debug(mask,fmt,...) { }
but it should probably also work as
#define ntfs_debug(mask, fmt...) do {} while(0)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Linux 2.4.10-pre6: necessary patches
2001-09-09 2:52 Linux 2.4.10-pre6 Linus Torvalds
2001-09-09 5:29 ` Linux 2.4.10-pre6, NTFS build break John Kacur
@ 2001-09-09 9:47 ` Eyal Lebedinsky
2001-09-09 12:33 ` Linux 2.4.10-pre6, NTFS build break Anton Altaparmakov
2001-09-09 23:43 ` Linux 2.4.10-pre6 Stephen Frost
3 siblings, 0 replies; 6+ messages in thread
From: Eyal Lebedinsky @ 2001-09-09 9:47 UTC (permalink / raw)
To: Linus Torvalds; +Cc: Kernel Mailing List
[-- Attachment #1: Type: text/plain, Size: 295 bytes --]
Most are old ones, from way back 2.4.9 to latest -pre5.
drivers/block/genhd.c needs a few EXPORT_SYMBOLs. A peek at the -ac
series shows an added lock:
static rwlock_t gendisk_lock;
which is used by all the functions. It may be necessary now
that these functions are used from so many places.
[-- Attachment #2: 2.4.10-pre6-genhd.patch --]
[-- Type: text/plain, Size: 627 bytes --]
--- linux/drivers/block/genhd.c.orig Sun Sep 9 18:54:21 2001
+++ linux/drivers/block/genhd.c Sun Sep 9 19:39:45 2001
@@ -11,6 +11,7 @@
*/
#include <linux/config.h>
+#include <linux/module.h>
#include <linux/fs.h>
#include <linux/genhd.h>
#include <linux/kernel.h>
@@ -27,6 +28,8 @@
gendisk_head = gp;
}
+EXPORT_SYMBOL(add_gendisk);
+
void
del_gendisk(struct gendisk *gp)
{
@@ -39,6 +42,8 @@
*gpp = (*gpp)->next;
}
+EXPORT_SYMBOL(del_gendisk);
+
struct gendisk *
get_gendisk(kdev_t dev)
{
@@ -50,6 +55,8 @@
return gp;
return NULL;
}
+
+EXPORT_SYMBOL(get_gendisk);
#ifdef CONFIG_PROC_FS
int
[-- Attachment #3: 2.4.10-pre6-ixj.patch --]
[-- Type: text/plain, Size: 9624 bytes --]
--- linux/drivers/telephony/ixj.c-orig Sat Sep 8 11:49:14 2001
+++ linux/drivers/telephony/ixj.c Sat Sep 8 12:01:53 2001
@@ -2895,15 +2895,15 @@
set_current_state(TASK_RUNNING);
/* Don't ever copy more than the user asks */
if(j->rec_codec == ALAW)
- ulaw2alaw(j->read_buffer, min(length, j->read_buffer_size));
- i = copy_to_user(buf, j->read_buffer, min(length, j->read_buffer_size));
+ ulaw2alaw(j->read_buffer, min(unsigned int, length, j->read_buffer_size));
+ i = copy_to_user(buf, j->read_buffer, min(unsigned int, length, j->read_buffer_size));
j->read_buffer_ready = 0;
if (i) {
j->flags.inread = 0;
return -EFAULT;
} else {
j->flags.inread = 0;
- return min(length, j->read_buffer_size);
+ return min(unsigned int, length, j->read_buffer_size);
}
}
@@ -2975,15 +2975,15 @@
remove_wait_queue(&j->write_q, &wait);
if (j->write_buffer_wp + count >= j->write_buffer_end)
j->write_buffer_wp = j->write_buffer;
- i = copy_from_user(j->write_buffer_wp, buf, min(count, j->write_buffer_size));
+ i = copy_from_user(j->write_buffer_wp, buf, min(unsigned int, count, j->write_buffer_size));
if (i) {
j->flags.inwrite = 0;
return -EFAULT;
}
if(j->play_codec == ALAW)
- alaw2ulaw(j->write_buffer_wp, min(count, j->write_buffer_size));
+ alaw2ulaw(j->write_buffer_wp, min(unsigned int, count, j->write_buffer_size));
j->flags.inwrite = 0;
- return min(count, j->write_buffer_size);
+ return min(unsigned int, count, j->write_buffer_size);
}
static ssize_t ixj_enhanced_write(struct file * file_p, const char *buf, size_t count, loff_t * ppos)
@@ -6693,7 +6693,10 @@
retval = ixj_init_filter_raw(j, &jfr);
break;
case IXJCTL_GET_FILTER_HIST:
- retval = j->filter_hist[arg];
+ if(arg<0||arg>3)
+ retval = -EINVAL;
+ else
+ retval = j->filter_hist[arg];
break;
case IXJCTL_INIT_TONE:
copy_from_user(&ti, (char *) arg, sizeof(ti));
--- linux/include/linux/ixjuser.h-orig Sat Sep 8 11:57:55 2001
+++ linux/include/linux/ixjuser.h Sat Sep 8 11:58:03 2001
@@ -1,11 +1,16 @@
+#ifndef __LINUX_IXJUSER_H
+#define __LINUX_IXJUSER_H
+
/******************************************************************************
*
* ixjuser.h
*
- * Device Driver for the Internet PhoneJACK and
- * Internet LineJACK Telephony Cards.
+ * Device Driver for Quicknet Technologies, Inc.'s Telephony cards
+ * including the Internet PhoneJACK, Internet PhoneJACK Lite,
+ * Internet PhoneJACK PCI, Internet LineJACK, Internet PhoneCARD and
+ * SmartCABLE
*
- * (c) Copyright 1999 Quicknet Technologies, Inc.
+ * (c) Copyright 1999-2001 Quicknet Technologies, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -37,14 +42,14 @@
*
*****************************************************************************/
-static char ixjuser_h_rcsid[] = "$Id: ixjuser.h,v 3.11 2000/03/30 22:06:48 eokerson Exp $";
+static char ixjuser_h_rcsid[] = "$Id: ixjuser.h,v 4.1 2001/08/05 00:17:37 craigs Exp $";
-#include "telephony.h"
+#include <linux/telephony.h>
/******************************************************************************
*
-* IOCTL's used for the Quicknet Cards
+* IOCTL's used for the Quicknet Telephony Cards
*
* If you use the IXJCTL_TESTRAM command, the card must be power cycled to
* reset the SRAM values before futher use.
@@ -135,6 +140,7 @@
} IXJ_FILTER_CADENCE;
#define IXJCTL_SET_FILTER _IOW ('q', 0xC7, IXJ_FILTER *)
+#define IXJCTL_SET_FILTER_RAW _IOW ('q', 0xDD, IXJ_FILTER_RAW *)
#define IXJCTL_GET_FILTER_HIST _IOW ('q', 0xC8, int)
#define IXJCTL_FILTER_CADENCE _IOW ('q', 0xD6, IXJ_FILTER_CADENCE *)
#define IXJCTL_PLAY_CID _IO ('q', 0xD7)
@@ -366,7 +372,7 @@
* This group of IOCTLs deal with the Acoustic Echo Cancellation settings
* of the DSP
*
-* Issueing the IXJCTL_AEC_START command with a value of AEC_OFF has the
+* Issuing the IXJCTL_AEC_START command with a value of AEC_OFF has the
* same effect as IXJCTL_AEC_STOP. This is to simplify slider bar
* controls. IXJCTL_AEC_GET_LEVEL returns the current setting of the AEC.
******************************************************************************/
@@ -379,11 +385,12 @@
#define AEC_MED 2
#define AEC_HIGH 3
#define AEC_AUTO 4
+#define AEC_AGC 5
/******************************************************************************
*
* Call Progress Tones, DTMF, etc.
-* IXJCTL_DTMF_OOB determines if dtmf signaling is sent as Out-Of-Band
-* only. If you pass a 1, dtmf is suppressed from the audio stream.
+* IXJCTL_DTMF_OOB determines if DTMF signaling is sent as Out-Of-Band
+* only. If you pass a 1, DTMF is suppressed from the audio stream.
* Tone on and off times are in 250 microsecond intervals so
* ioctl(ixj1, IXJCTL_SET_TONE_ON_TIME, 360);
* will set the tone on time of board ixj1 to 360 * 250us = 90ms
@@ -407,10 +414,10 @@
#define IXJCTL_CPT_STOP PHONE_CPT_STOP
/******************************************************************************
-* LineJack specific IOCTLs
+* LineJACK specific IOCTLs
*
* The lsb 4 bits of the LED argument represent the state of each of the 4
-* LED's on the LineJack
+* LED's on the LineJACK
******************************************************************************/
#define IXJCTL_SET_LED _IOW ('q', 0xCE, int)
@@ -423,8 +430,8 @@
* as the parameter to the mixer command to change the mixer settings.
*
******************************************************************************/
-#define MIXER_MASTER_L 0x0100
-#define MIXER_MASTER_R 0x0200
+#define MIXER_MASTER_L 0x0000
+#define MIXER_MASTER_R 0x0100
#define ATT00DB 0x00
#define ATT02DB 0x01
#define ATT04DB 0x02
@@ -535,9 +542,9 @@
******************************************************************************/
#define IXJCTL_DAA_COEFF_SET _IOW ('q', 0xD0, int)
-#define DAA_US 1 //PITA 8kHz
-#define DAA_UK 2 //ISAR34 8kHz
-#define DAA_FRANCE 3 //
+#define DAA_US 1 /*PITA 8kHz */
+#define DAA_UK 2 /*ISAR34 8kHz */
+#define DAA_FRANCE 3 /* */
#define DAA_GERMANY 4
#define DAA_AUSTRALIA 5
#define DAA_JAPAN 6
@@ -575,14 +582,14 @@
******************************************************************************/
#define IXJCTL_DAA_AGAIN _IOW ('q', 0xD2, int)
-#define AGRR00DB 0x00 // Analog gain in receive direction 0dB
-#define AGRR3_5DB 0x10 // Analog gain in receive direction 3.5dB
-#define AGRR06DB 0x30 // Analog gain in receive direction 6dB
-
-#define AGX00DB 0x00 // Analog gain in transmit direction 0dB
-#define AGX_6DB 0x04 // Analog gain in transmit direction -6dB
-#define AGX3_5DB 0x08 // Analog gain in transmit direction 3.5dB
-#define AGX_2_5B 0x0C // Analog gain in transmit direction -2.5dB
+#define AGRR00DB 0x00 /* Analog gain in receive direction 0dB */
+#define AGRR3_5DB 0x10 /* Analog gain in receive direction 3.5dB */
+#define AGRR06DB 0x30 /* Analog gain in receive direction 6dB */
+
+#define AGX00DB 0x00 /* Analog gain in transmit direction 0dB */
+#define AGX_6DB 0x04 /* Analog gain in transmit direction -6dB */
+#define AGX3_5DB 0x08 /* Analog gain in transmit direction 3.5dB */
+#define AGX_2_5B 0x0C /* Analog gain in transmit direction -2.5dB */
#define IXJCTL_PSTN_LINETEST _IO ('q', 0xD3)
@@ -639,6 +646,52 @@
#define IXJCTL_WRITE_WAIT _IOR ('q', 0xE5, unsigned long)
#define IXJCTL_DRYBUFFER_READ _IOR ('q', 0xE6, unsigned long)
#define IXJCTL_DRYBUFFER_CLEAR _IO ('q', 0xE7)
+#define IXJCTL_DTMF_PRESCALE _IOW ('q', 0xE8, int)
+
+/******************************************************************************
+*
+* This ioctl allows the user application to control what events the driver
+* will send signals for, and what signals it will send for which event.
+* By default, if signaling is enabled, all events will send SIGIO when
+* they occur. To disable signals for an event set the signal to 0.
+*
+******************************************************************************/
+typedef enum {
+ SIG_DTMF_READY,
+ SIG_HOOKSTATE,
+ SIG_FLASH,
+ SIG_PSTN_RING,
+ SIG_CALLER_ID,
+ SIG_PSTN_WINK,
+ SIG_F0, SIG_F1, SIG_F2, SIG_F3,
+ SIG_FC0, SIG_FC1, SIG_FC2, SIG_FC3,
+ SIG_READ_READY = 33,
+ SIG_WRITE_READY = 34
+} IXJ_SIGEVENT;
+
+typedef struct {
+ unsigned int event;
+ int signal;
+} IXJ_SIGDEF;
+
+#define IXJCTL_SIGCTL _IOW ('q', 0xE9, IXJ_SIGDEF *)
+
+/******************************************************************************
+*
+* These ioctls allow the user application to change the gain in the
+* Smart Cable of the Internet Phone Card. Sending -1 as a value will cause
+* return value to be the current setting. Valid values to set are 0x00 - 0x1F
+*
+* 11111 = +12 dB
+* 10111 = 0 dB
+* 00000 = -34.5 dB
+*
+* IXJCTL_SC_RXG sets the Receive gain
+* IXJCTL_SC_TXG sets the Transmit gain
+*
+******************************************************************************/
+#define IXJCTL_SC_RXG _IOW ('q', 0xEA, int)
+#define IXJCTL_SC_TXG _IOW ('q', 0xEB, int)
/******************************************************************************
*
@@ -653,3 +706,17 @@
#define IXJCTL_INTERCOM_START _IOW ('q', 0xFD, int)
#define IXJCTL_INTERCOM_STOP _IOW ('q', 0xFE, int)
+
+/******************************************************************************
+ *
+ * new structure for accessing raw filter information
+ *
+ ******************************************************************************/
+
+typedef struct {
+ unsigned int filter;
+ char enable;
+ unsigned int coeff[19];
+} IXJ_FILTER_RAW;
+
+#endif
[-- Attachment #4: 2.4.10-pre6-pci_ids.patch --]
[-- Type: text/plain, Size: 395 bytes --]
--- linux/include/linux/pci_ids.h-orig Sat Sep 8 11:41:13 2001
+++ linux/include/linux/pci_ids.h Sat Sep 8 11:41:34 2001
@@ -852,6 +852,7 @@
#define PCI_DEVICE_ID_INTERG_2000 0x2000
#define PCI_DEVICE_ID_INTERG_2010 0x2010
#define PCI_DEVICE_ID_INTERG_5000 0x5000
+#define PCI_DEVICE_ID_INTERG_5050 0x5050
#define PCI_VENDOR_ID_REALTEK 0x10ec
#define PCI_DEVICE_ID_REALTEK_8029 0x8029
[-- Attachment #5: 2.4.10-pre6-rd.patch --]
[-- Type: text/plain, Size: 714 bytes --]
--- linux/drivers/block/rd.c.orig Sat Sep 8 11:58:19 2001
+++ linux/drivers/block/rd.c Sat Sep 8 12:21:50 2001
@@ -259,7 +259,7 @@
/* special: we want to release the ramdisk memory,
it's not like with the other blockdevices where
this ioctl only flushes away the buffer cache. */
- if ((atomic_read(rd_bdev[minor]->bd_openers) > 2))
+ if ((atomic_read(&rd_bdev[minor]->bd_openers) > 2))
return -EBUSY;
destroy_buffers(inode->i_rdev);
rd_blocksizes[minor] = 0;
@@ -372,7 +372,7 @@
struct block_device *bdev = rd_bdev[i];
rd_bdev[i] = NULL;
if (bdev) {
- blkdev_put(bdev);
+ blkdev_put(bdev, BDEV_FILE);
bdput(bdev);
}
destroy_buffers(MKDEV(MAJOR_NR, i));
[-- Attachment #6: 2.4.10-pre6-rrunner.patch --]
[-- Type: text/plain, Size: 913 bytes --]
--- linux/drivers/net/rrunner.c.orig Thu Jul 5 04:50:39 2001
+++ linux/drivers/net/rrunner.c Fri Aug 17 08:12:20 2001
@@ -1238,7 +1238,7 @@
index, cons);
if (rrpriv->tx_skbuff[index]){
- len = min(0x80, rrpriv->tx_skbuff[index]->len);
+ len = min(int, 0x80, rrpriv->tx_skbuff[index]->len);
printk("skbuff for index %i is valid - dumping data (0x%x bytes - DMA len 0x%x)\n", index, len, rrpriv->tx_ring[index].size);
for (i = 0; i < len; i++){
if (!(i & 7))
@@ -1249,7 +1249,7 @@
}
if (rrpriv->tx_skbuff[cons]){
- len = min(0x80, rrpriv->tx_skbuff[cons]->len);
+ len = min(int, 0x80, rrpriv->tx_skbuff[cons]->len);
printk("skbuff for cons %i is valid - dumping data (0x%x bytes - skbuff len 0x%x)\n", cons, len, rrpriv->tx_skbuff[cons]->len);
printk("mode 0x%x, size 0x%x,\n phys %08x (virt %08lx), skbuff-addr %08lx, truesize 0x%x\n",
rrpriv->tx_ring[cons].mode,
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Linux 2.4.10-pre6, NTFS build break
2001-09-09 2:52 Linux 2.4.10-pre6 Linus Torvalds
2001-09-09 5:29 ` Linux 2.4.10-pre6, NTFS build break John Kacur
2001-09-09 9:47 ` Linux 2.4.10-pre6: necessary patches Eyal Lebedinsky
@ 2001-09-09 12:33 ` Anton Altaparmakov
2001-09-09 23:43 ` Linux 2.4.10-pre6 Stephen Frost
3 siblings, 0 replies; 6+ messages in thread
From: Anton Altaparmakov @ 2001-09-09 12:33 UTC (permalink / raw)
To: Aaron Lehmann; +Cc: John Kacur, linux-kernel
At 07:38 09/09/2001, Aaron Lehmann wrote:
>On Sun, Sep 09, 2001 at 01:29:07AM -0400, John Kacur wrote:
> > Perhaps this can just be turned into
> > static inline ntfs_debug(mask, fmt, ...) do {} while(0)
>
>You mean static inline ntfs_debug(mask,fmt,...) { }
Actually:
static inline ntfs_debug(int mask, const char *fmt, ...) { }
>but it should probably also work as
>
>#define ntfs_debug(mask, fmt...) do {} while(0)
Indeed. This is what I intended to write but gcc-2.96 obviously forgave me
the typo... as it both compiles and works fine here.
Anton
--
"Nothing succeeds like success." - Alexandre Dumas
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Linux NTFS Maintainer / WWW: http://linux-ntfs.sf.net/
ICQ: 8561279 / WWW: http://www-stu.christs.cam.ac.uk/~aia21/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Linux 2.4.10-pre6
2001-09-09 2:52 Linux 2.4.10-pre6 Linus Torvalds
` (2 preceding siblings ...)
2001-09-09 12:33 ` Linux 2.4.10-pre6, NTFS build break Anton Altaparmakov
@ 2001-09-09 23:43 ` Stephen Frost
3 siblings, 0 replies; 6+ messages in thread
From: Stephen Frost @ 2001-09-09 23:43 UTC (permalink / raw)
To: Linus Torvalds; +Cc: Kernel Mailing List
[-- Attachment #1: Type: text/plain, Size: 1309 bytes --]
* Linus Torvalds (torvalds@transmeta.com) wrote:
>
> Most noticeable (except perhaps for the NTFS update if you're a NTFS user)
> is that the broken bootdata patch that could cause some spurious MM
> corruption due to a double page free of the bootdata got reverted. This is
> the one that caused BUG reports from mm/page_alloc.c..
The changes to rd.c cause it to fail in compiling. Following
is a patch which I believe to be correct. It fixes the
compilation problem and the module appears to load, work and
unload correctly.
Stephen
--- linux-2.4.10-pre6-orig/drivers/block/rd.c Sun Sep 9 16:19:07 2001
+++ linux/drivers/block/rd.c Sun Sep 9 16:06:59 2001
@@ -259,7 +259,7 @@
/* special: we want to release the ramdisk memory,
it's not like with the other blockdevices where
this ioctl only flushes away the buffer cache. */
- if ((atomic_read(rd_bdev[minor]->bd_openers) > 2))
+ if ((atomic_read(&rd_bdev[minor]->bd_openers) > 2))
return -EBUSY;
destroy_buffers(inode->i_rdev);
rd_blocksizes[minor] = 0;
@@ -372,7 +372,7 @@
struct block_device *bdev = rd_bdev[i];
rd_bdev[i] = NULL;
if (bdev) {
- blkdev_put(bdev);
+ blkdev_put(bdev, BDEV_FILE);
bdput(bdev);
}
destroy_buffers(MKDEV(MAJOR_NR, i));
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2001-09-09 23:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-09 2:52 Linux 2.4.10-pre6 Linus Torvalds
2001-09-09 5:29 ` Linux 2.4.10-pre6, NTFS build break John Kacur
2001-09-09 6:38 ` Aaron Lehmann
2001-09-09 9:47 ` Linux 2.4.10-pre6: necessary patches Eyal Lebedinsky
2001-09-09 12:33 ` Linux 2.4.10-pre6, NTFS build break Anton Altaparmakov
2001-09-09 23:43 ` Linux 2.4.10-pre6 Stephen Frost
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).