Linux 2.6.16.12
Subsystems (16)
We (the -stable team) are announcing the release of the 2.6.16.12 kernel.
The diffstat and short summary of the fixes are below.
I'll also be replying to this message with a copy of the patch between 2.6.16.11 and 2.6.16.12, as it is small enough to do so.
The updated 2.6.16.y git tree can be found at:
rsync://rsync.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.16.y.git
and can be browsed at the normal kernel.org git web browser:
www.kernel.org/git/
thanks,
greg k-h
--------
Documentation/dvb/get_dvb_firmware | 8 - Makefile | 2 arch/alpha/lib/strncpy.S | 8 - arch/i386/kernel/vm86.c | 12 ++ arch/mips/kernel/branch.c | 2 arch/mips/mm/c-r4k.c | 3 arch/x86_64/ia32/Makefile | 4 arch/x86_64/kernel/pci-gart.c | 4 block/genhd.c | 103 ++--------------------- drivers/char/cs5535_gpio.c | 5 - drivers/char/snsc.c | 3 drivers/char/sonypi.c | 3 drivers/char/tipar.c | 2 drivers/md/dm-snap.c | 6 + drivers/md/dm.c | 5 - drivers/md/kcopyd.c | 17 +++ drivers/media/dvb/dvb-usb/cxusb.c | 17 ++- drivers/media/video/saa7127.c | 1 drivers/net/e1000/e1000_main.c | 1 drivers/usb/serial/option.c | 4 fs/char_dev.c | 87 ++----------------- fs/compat.c | 4 fs/proc/proc_misc.c | 163 ++++++++----------------------------- fs/reiserfs/xattr_acl.c | 5 - include/asm-i386/i387.h | 4 include/asm-i386/pgtable-2level.h | 3 include/asm-i386/pgtable-3level.h | 20 ++++ include/asm-i386/pgtable.h | 4 include/asm-mips/bitops.h | 14 ++- include/asm-mips/byteorder.h | 4 include/asm-mips/interrupt.h | 8 + include/asm-mips/r4kcache.h | 2 include/linux/cpumask.h | 1 include/linux/fs.h | 15 --- kernel/auditsc.c | 5 - 35 files changed, 196 insertions(+), 353 deletions(-)
Summary of changes from v2.6.16.11 to v2.6.16.12
================================================
Alasdair G Kergon:
dm snapshot: fix kcopyd destructor
Andi Kleen:
x86_64: Pass -32 to the assembler when compiling the 32bit vsyscall pages
Andrew Morton:
for_each_possible_cpu
Simplify proc/devices and fix early termination regression
Arnaud MAZIN:
sonypi: correct detection of new ICH7-based laptops
Atsushi Nemoto:
MIPS: Fix tx49_blast_icache32_page_indexed.
Auke Kok:
NET: e1000: Update truesize with the length of the packet for packet split
Chuck Ebbert:
i386: fix broken FP exception handling
Daniel Drake:
tipar oops fix
Eric Sesterhenn:
USB: fix array overrun in drivers/usb/serial/option.c
Greg Howard:
Altix snsc: duplicate kobject fix
Greg Kroah-Hartman:
Linux 2.6.16.12
Ivan Kokshaysky:
Alpha: strncpy() fix
James Morris:
LSM: add missing hook to do_compat_readv_writev()
Jan Kara:
Fix reiserfs deadlock
Jason Baron:
make vm86 call audit_syscall_exit
Jose Alberto Reguero:
fix saa7129 support in saa7127 module for pvr350 tv out
Jun'ichi Nomura:
dm flush queue EINTR
Michael Krufky:
get_dvb_firmware: download nxt2002 firmware from new driver location
cxusb-bluebird: bug-fix: power down corrupts frontend
Mike Waychison:
x86_64: Fix a race in the free_iommu path.
Ralf Baechle:
MIPS: Use "R" constraint for cache_op.
MIPS: R2 build fixes for gcc < 3.4.
Thayumanavar Sachithanantham:
cs5535_gpio.c: call cdev_del() during module_exit to unmap kobject references and other cleanups
Win Treese:
MIPS: Fix branch emulation for floating-point exceptions.
Zachary Amsden:
x86/PAE: Fix pte_clear for the >4GB RAM case
Documentation/dvb/get_dvb_firmware +4 -4
@@ -240,9 +240,9 @@ sub dibusb { } sub nxt2002 { - my $sourcefile = "Broadband4PC_4_2_11.zip"; + my $sourcefile = "Technisat_DVB-PC_4_4_COMPACT.zip"; my $url = "http://www.bbti.us/download/windows/$sourcefile"; - my $hash = "c6d2ea47a8f456d887ada0cfb718ff2a"; + my $hash = "476befae8c7c1bb9648954060b1eec1f"; my $outfile = "dvb-fe-nxt2002.fw"; my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 1);
@@ -250,8 +250,8 @@ sub nxt2002 { wgetfile($sourcefile, $url); unzip($sourcefile, $tmpdir); - verify("$tmpdir/SkyNETU.sys", $hash); - extract("$tmpdir/SkyNETU.sys", 375832, 5908, $outfile); + verify("$tmpdir/SkyNET.sys", $hash); + extract("$tmpdir/SkyNET.sys", 331624, 5908, $outfile); $outfile; }
Makefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 16 -EXTRAVERSION = .11 +EXTRAVERSION = .12 NAME=Sliding Snow Leopard # *DOCUMENTATION*
arch/alpha/lib/strncpy.S +4 -4
@@ -43,8 +43,8 @@ strncpy: .align 4 $multiword: - subq $24, 1, $2 # clear the final bits in the prev word - or $2, $24, $2 + subq $27, 1, $2 # clear the final bits in the prev word + or $2, $27, $2 zapnot $1, $2, $1 subq $18, 1, $18
@@ -70,8 +70,8 @@ strncpy: bne $18, 0b 1: ldq_u $1, 0($16) # clear the leading bits in the final word - subq $27, 1, $2 - or $2, $27, $2 + subq $24, 1, $2 + or $2, $24, $2 zap $1, $2, $1 stq_u $1, 0($16)
arch/i386/kernel/vm86.c +10 -2
@@ -43,6 +43,7 @@ #include <linux/smp.h>#include <linux/smp_lock.h> #include <linux/highmem.h> #include <linux/ptrace.h> +#include <linux/audit.h> #include <asm/uaccess.h> #include <asm/io.h>
@@ -252,6 +253,7 @@ out:static void do_sys_vm86 (struct kernel_vm86_struct *info,struct task_struct *tsk) {struct tss_struct *tss; +long eax;/* * make sure the vm86() system call doesn't try to do anything silly */
@@ -305,13 +307,19 @@ static void do_sys_vm86(struct kernel_vm tsk->thread.screen_bitmap = info->screen_bitmap;if (info->flags &VM86_SCREEN_BITMAP )mark_screen_rdonly (tsk->mm); + __asm__ __volatile__("xorl %eax,%eax; movl %eax,%fs; movl %eax,%gs\n\t" ); + __asm__ __volatile__("movl %%eax, %0\n" :"=r" (eax)); + +/*call audit_syscall_exit since we do not exit via the normal paths */ +if (unlikely (current->audit_context)) +audit_syscall_exit (current,AUDITSC_RESULT (eax), eax); + __asm__ __volatile__( -"xorl %%eax,%%eax; movl %%eax,%%fs; movl %%eax,%%gs\n\t" "movl %0,%%esp\n\t" "movl %1,%%ebp\n\t" "jmp resume_userspace" :/* no outputs */ - :"r" (&info->regs),"r" (task_thread_info (tsk)) :"ax" ); + :"r" (&info->regs),"r" (task_thread_info (tsk)));/* we never return here */ }
arch/mips/kernel/branch.c +1 -1
@@ -184,7 +184,7 @@ int __compute_return_epc(struct pt_regs bit = (insn.i_format.rt >>2 ); bit += (bit !=0 ); bit +=23 ; -switch (insn.i_format.rt) { +switch (insn.i_format.rt &3 ) {case 0 :/* bc1f */ case 2 :/* bc1fl */ if (~fcr31 & (1 << bit))
arch/mips/mm/c-r4k.c +2 -1
@@ -154,7 +154,8 @@ static inline void blast_icache32_r4600_static inline void tx49_blast_icache32_page_indexed (unsigned long page) { -unsigned long start = page; +unsigned long indexmask = current_cpu_data.icache.waysize -1 ; +unsigned long start =INDEX_BASE + (page & indexmask);unsigned long end = start +PAGE_SIZE ;unsigned long ws_inc =1UL << current_cpu_data.icache.waybit; unsigned long ws_end = current_cpu_data.icache.ways <<
arch/x86_64/ia32/Makefile +2 -2
@@ -27,5 +27,5 @@ quiet_cmd_syscall = SYSCALL $@ $(obj)/vsyscall-%.so: $(src)/vsyscall.lds $(obj)/vsyscall-%.o FORCE $(call if_changed,syscall) -AFLAGS_vsyscall-sysenter.o = -m32 -AFLAGS_vsyscall-syscall.o = -m32 +AFLAGS_vsyscall-sysenter.o = -m32 -Wa,-32 +AFLAGS_vsyscall-syscall.o = -m32 -Wa,-32
arch/x86_64/kernel/pci-gart.c +0 -4
@@ -114,10 +114,6 @@ static unsigned long alloc_iommu(int sizstatic void free_iommu (unsigned long offset,int size) {unsigned long flags; -if (size ==1 ) { -clear_bit (offset, iommu_gart_bitmap); -return ; - }spin_lock_irqsave (&iommu_bitmap_lock, flags);__clear_bit_string (iommu_gart_bitmap, offset, size);spin_unlock_irqrestore (&iommu_bitmap_lock, flags);
block/genhd.c +11 -92
127 lines not on this page · raw message
drivers/char/cs5535_gpio.c +3 -2
@@ -241,9 +241,10 @@ static int __init cs5535_gpio_init(void) static void __exit cs5535_gpio_cleanup(void) {dev_t dev_id =MKDEV (major,0 ); + +cdev_del (&cs5535_gpio_cdev);unregister_chrdev_region (dev_id,CS5535_GPIO_COUNT ); -if (gpio_base !=0 ) -release_region (gpio_base,CS5535_GPIO_SIZE ); +release_region (gpio_base,CS5535_GPIO_SIZE ); }module_init (cs5535_gpio_init);
drivers/char/snsc.c +2 -1
@@ -391,7 +391,8 @@ scdrv_init(void)format_module_id (devnamep,geo_module (geoid),MODULE_FORMAT_BRIEF ); devnamep = devname +strlen (devname); -sprintf (devnamep,"#%d" ,geo_slab (geoid)); +sprintf (devnamep,"^%d#%d" ,geo_slot (geoid), +geo_slab (geoid));/* allocate sysctl device data */ scd = kmalloc(sizeof (struct sysctl_data_s),
drivers/char/sonypi.c +3 -0
@@ -1341,6 +1341,9 @@ static int __devinit sonypi_probe(structelse if ((pcidev =pci_get_device (PCI_VENDOR_ID_INTEL ,PCI_DEVICE_ID_INTEL_ICH6_1 ,NULL ))) sonypi_device.model =SONYPI_DEVICE_MODEL_TYPE3 ; +else if ((pcidev =pci_get_device (PCI_VENDOR_ID_INTEL , +PCI_DEVICE_ID_INTEL_ICH7_1 ,NULL ))) + sonypi_device.model =SONYPI_DEVICE_MODEL_TYPE3 ;else sonypi_device.model =SONYPI_DEVICE_MODEL_TYPE2 ;
drivers/char/tipar.c +1 -1
@@ -515,7 +515,7 @@ tipar_init_module(void) err =PTR_ERR (tipar_class); goto out_chrdev; } -if (parport_register_driver (&tipar_driver) || tp_count ==0 ) { +if (parport_register_driver (&tipar_driver)) {printk (KERN_ERR "tipar: unable to register with parport\n" ); err = -EIO ; goto out_class;
drivers/md/dm-snap.c +5 -1
@@ -542,8 +542,12 @@ static void snapshot_dtr(struct dm_targe {struct dm_snapshot *s = (struct dm_snapshot *) ti->private; +/* Prevent further origin writes from using this snapshot. */ +/* After this returns there can be no new kcopyd jobs. */ unregister_snapshot (s); +kcopyd_client_destroy (s->kcopyd_client); +exit_exception_table (&s->pending, pending_cache);exit_exception_table (&s->complete, exception_cache);
@@ -552,7 +556,7 @@ static void snapshot_dtr(struct dm_targedm_put_device (ti, s->origin);dm_put_device (ti, s->cow); -kcopyd_client_destroy (s->kcopyd_client); +kfree (s); }
drivers/md/dm.c +4 -1
@@ -1098,6 +1098,7 @@ int dm_suspend(struct mapped_device *md, {struct dm_table *map =NULL ;DECLARE_WAITQUEUE (wait, current); +struct bio *def;int r = -EINVAL ;down (&md->suspend_lock);
@@ -1157,9 +1158,11 @@ int dm_suspend(struct mapped_device *md,/* were we interrupted ? */ r = -EINTR ;if (atomic_read (&md->pending)) { +clear_bit (DMF_BLOCK_IO , &md->flags); + def =bio_list_get (&md->deferred); +__flush_deferred_io (md, def);up_write (&md->io_lock);unlock_fs (md); -clear_bit (DMF_BLOCK_IO , &md->flags); goto out; }up_write (&md->io_lock);
drivers/md/kcopyd.c +16 -1
@@ -44,6 +44,9 @@ struct kcopyd_client {struct page_list *pages;unsigned int nr_pages;unsigned int nr_free_pages; + +wait_queue_head_t destroyq; +atomic_t nr_jobs; };static struct page_list *alloc_pl (void )
@@ -293,10 +296,15 @@ static int run_complete_job(struct kcopyint read_err = job->read_err;unsigned int write_err = job->write_err;kcopyd_notify_fn fn = job->fn; +struct kcopyd_client *kc = job->kc; -kcopyd_put_pages (job->kc, job->pages); +kcopyd_put_pages (kc, job->pages);mempool_free (job, _job_pool);fn (read_err, write_err, context); + +if (atomic_dec_and_test (&kc->nr_jobs)) +wake_up (&kc->destroyq); +return 0 ; }
@@ -431,6 +439,7 @@ static void do_work(void *ignored)*/ static void dispatch_job (struct kcopyd_job *job) { +atomic_inc (&job->kc->nr_jobs);push (&_pages_jobs, job);wake (); }
@@ -670,6 +679,9 @@ int kcopyd_client_create(unsigned int nrreturn r; } +init_waitqueue_head (&kc->destroyq); +atomic_set (&kc->nr_jobs,0 ); +client_add (kc); *result = kc;return 0 ;
@@ -677,6 +689,9 @@ int kcopyd_client_create(unsigned int nrvoid kcopyd_client_destroy (struct kcopyd_client *kc) { +/* Wait for completion of all jobs submitted by this client. */ +wait_event (kc->destroyq, !atomic_read (&kc->nr_jobs)); +dm_io_put (kc->nr_pages);client_free_pages (kc);client_del (kc);
drivers/media/dvb/dvb-usb/cxusb.c +13 -4
@@ -149,6 +149,15 @@ static int cxusb_power_ctrl(struct dvb_ureturn cxusb_ctrl_msg (d,CMD_POWER_OFF , &b,1 ,NULL ,0 ); } +static int cxusb_bluebird_power_ctrl (struct dvb_usb_device *d,int onoff) +{ +u8 b =0 ; +if (onoff) +return cxusb_ctrl_msg (d,CMD_POWER_ON , &b,1 ,NULL ,0 ); +else +return 0 ; +} +static int cxusb_streaming_ctrl (struct dvb_usb_device *d,int onoff) {u8 buf[2 ] = {0x03 ,0x00 };
@@ -505,7 +514,7 @@ static struct dvb_usb_properties cxusb_b .size_of_priv = sizeof(struct cxusb_state), .streaming_ctrl = cxusb_streaming_ctrl, - .power_ctrl = cxusb_power_ctrl, + .power_ctrl = cxusb_bluebird_power_ctrl, .frontend_attach = cxusb_lgdt3303_frontend_attach, .tuner_attach = cxusb_lgh064f_tuner_attach,
@@ -545,7 +554,7 @@ static struct dvb_usb_properties cxusb_b .size_of_priv = sizeof(struct cxusb_state), .streaming_ctrl = cxusb_streaming_ctrl, - .power_ctrl = cxusb_power_ctrl, + .power_ctrl = cxusb_bluebird_power_ctrl, .frontend_attach = cxusb_dee1601_frontend_attach, .tuner_attach = cxusb_dee1601_tuner_attach,
@@ -594,7 +603,7 @@ static struct dvb_usb_properties cxusb_b .size_of_priv = sizeof(struct cxusb_state), .streaming_ctrl = cxusb_streaming_ctrl, - .power_ctrl = cxusb_power_ctrl, + .power_ctrl = cxusb_bluebird_power_ctrl, .frontend_attach = cxusb_mt352_frontend_attach, .tuner_attach = cxusb_lgz201_tuner_attach,
@@ -634,7 +643,7 @@ static struct dvb_usb_properties cxusb_b .size_of_priv = sizeof(struct cxusb_state), .streaming_ctrl = cxusb_streaming_ctrl, - .power_ctrl = cxusb_power_ctrl, + .power_ctrl = cxusb_bluebird_power_ctrl, .frontend_attach = cxusb_mt352_frontend_attach, .tuner_attach = cxusb_dtt7579_tuner_attach,
drivers/media/video/saa7127.c +1 -0
@@ -141,6 +141,7 @@ struct i2c_reg_value {static const struct i2c_reg_value saa7129_init_config_extra[] = { {SAA7127_REG_OUTPUT_PORT_CONTROL ,0x38 }, {SAA7127_REG_VTRIG ,0xfa }, + {0 ,0 } };static const struct i2c_reg_value saa7127_init_config_common[] = {
drivers/net/e1000/e1000_main.c +1 -0
@@ -3851,6 +3851,7 @@ #endifskb_shinfo (skb)->nr_frags++; skb->len += length; skb->data_len += length; + skb->truesize += length; } e1000_rx_checksum(adapter, staterr,
drivers/usb/serial/option.c +2 -2
@@ -582,14 +582,14 @@ static void option_setup_urbs(struct usb portdata =usb_get_serial_port_data (port);/* Do indat endpoints first */ -for (j =0 ; j <=N_IN_URB ; ++j) { +for (j =0 ; j <N_IN_URB ; ++j) { portdata->in_urbs[j] =option_setup_urb (serial, port->bulk_in_endpointAddress,USB_DIR_IN , port, portdata->in_buffer[j],IN_BUFLEN , option_indat_callback); }/* outdat endpoints */ -for (j =0 ; j <=N_OUT_URB ; ++j) { +for (j =0 ; j <N_OUT_URB ; ++j) { portdata->out_urbs[j] =option_setup_urb (serial, port->bulk_out_endpointAddress,USB_DIR_OUT , port, portdata->out_buffer[j],OUT_BUFLEN , option_outdat_callback);
fs/char_dev.c +11 -76
118 lines not on this page · raw message
fs/compat.c +4 -0
@@ -1215,6 +1215,10 @@ static ssize_t compat_do_readv_writev(inif (ret <0 ) goto out; + ret =security_file_permission (file, type ==READ ?MAY_READ :MAY_WRITE ); +if (ret) + goto out; + fnv =NULL ;if (type ==READ ) { fn = file->f_op->read;
fs/proc/proc_misc.c +36 -127
193 lines not on this page · raw message
fs/reiserfs/xattr_acl.c +3 -2
@@ -408,8 +408,9 @@ int reiserfs_cache_default_acl(struct in acl =reiserfs_get_acl (inode,ACL_TYPE_DEFAULT );reiserfs_read_unlock_xattrs (inode->i_sb);reiserfs_read_unlock_xattr_i (inode); - ret = acl ?1 :0 ; -posix_acl_release (acl); + ret = (acl && !IS_ERR (acl)); +if (ret) +posix_acl_release (acl); }return ret;
include/asm-i386/i387.h +2 -2
@@ -58,13 +58,13 @@ static inline void __save_init_fpu( stru alternative_input( "fnsave %[fx] ;fwait;" GENERIC_NOP8 GENERIC_NOP4, "fxsave %[fx]\n" - "bt $7,%[fsw] ; jc 1f ; fnclex\n1:", + "bt $7,%[fsw] ; jnc 1f ; fnclex\n1:", X86_FEATURE_FXSR, [fx] "m" (tsk->thread.i387.fxsave), [fsw] "m" (tsk->thread.i387.fxsave.swd) : "memory"); /* AMD K7/K8 CPUs don't save/restore FDP/FIP/FOP unless an exception is pending. Clear the x87 state here by setting it to fixed - values. __per_cpu_offset[0] is a random variable that should be in L1 */ + values. safe_address is a random variable that should be in L1 */ alternative_input( GENERIC_NOP8 GENERIC_NOP2, "emms\n\t" /* clear stack tags */
include/asm-i386/pgtable-2level.h +3 -0
@@ -18,6 +18,9 @@ #define set_pte_at(mm,addr,ptep,pteval)#define set_pte_atomic (pteptr, pteval) set_pte(pteptr,pteval)#define set_pmd (pmdptr, pmdval) (*(pmdptr) = (pmdval)) +#define pte_clear (mm,addr,xp) do { set_pte_at(mm, addr, xp, __pte(0)); } while (0) +#define pmd_clear (xp) do { set_pmd(xp, __pmd(0)); } while (0) +#define ptep_get_and_clear (mm,addr,xp) __pte(xchg(&(xp)->pte_low, 0))#define pte_same (a, b) ((a).pte_low == (b).pte_low)#define pte_page (x) pfn_to_page(pte_pfn(x))
include/asm-i386/pgtable-3level.h +20 -0
@@ -85,6 +85,26 @@ ((unsigned long) __va(pud_val(pud) & PAG#define pmd_offset (pud, address) ((pmd_t *) pud_page(*(pud)) + \ pmd_index(address)) +/* +* For PTEs and PDEs, we must clear the P-bit first when clearing a page table +* entry, so clear the bottom half first and enforce ordering with a compiler +* barrier. +*/ +static inline void pte_clear (struct mm_struct *mm,unsigned long addr,pte_t *ptep) +{ + ptep->pte_low =0 ; +smp_wmb (); + ptep->pte_high =0 ; +} + +static inline void pmd_clear (pmd_t *pmd) +{ +u32 *tmp = (u32 *)pmd; + *tmp =0 ; +smp_wmb (); + *(tmp +1 ) =0 ; +} +static inline pte_t ptep_get_and_clear (struct mm_struct *mm,unsigned long addr,pte_t *ptep) {pte_t res;
include/asm-i386/pgtable.h +1 -3
@@ -204,12 +204,10 @@ #undef TEST_ACCESS_OKextern unsigned long pg0[];#define pte_present (x) ((x).pte_low & (_PAGE_PRESENT | _PAGE_PROTNONE)) -#define pte_clear (mm,addr,xp) do { set_pte_at(mm, addr, xp, __pte(0)); } while (0)/* To avoid harmful races, pmd_none(x) should check only the lower when PAE */ #define pmd_none (x) (!(unsigned long)pmd_val(x))#define pmd_present (x) (pmd_val(x) & _PAGE_PRESENT) -#define pmd_clear (xp) do { set_pmd(xp, __pmd(0)); } while (0)#define pmd_bad (x) ((pmd_val(x) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE)
@@ -269,7 +267,7 @@ static inline pte_t ptep_get_and_clear_fpte_t pte;if (full) { pte = *ptep; - *ptep =__pte (0 ); +pte_clear (mm, addr, ptep); }else { pte =ptep_get_and_clear (mm, addr, ptep); }
include/asm-mips/bitops.h +12 -2
@@ -654,7 +654,12 @@ static inline unsigned long fls(unsigned {#ifdef CONFIG_32BIT #ifdef CONFIG_CPU_MIPS32 - __asm__ ("clz %0, %1" :"=r" (word) :"r" (word)); + __asm__ ( +" .set mips32 \n" +" clz %0, %1 \n" +" .set mips0 \n" + :"=r" (word) + :"r" (word));return 32 - word;#else
@@ -678,7 +683,12 @@ #endif /* CONFIG_32BIT */#ifdef CONFIG_64BIT #ifdef CONFIG_CPU_MIPS64 - __asm__ ("dclz %0, %1" :"=r" (word) :"r" (word)); + __asm__ ( +" .set mips64 \n" +" dclz %0, %1 \n" +" .set mips0 \n" + :"=r" (word) + :"r" (word));return 64 - word;#else
include/asm-mips/byteorder.h +4 -0
@@ -19,7 +19,9 @@ #ifdef CONFIG_CPU_MIPSR2 static __inline__ __attribute_const__ __u16 ___arch__swab16(__u16 x) { __asm__( +" .set mips32r2 \n" " wsbh %0, %1 \n" +" .set mips0 \n" :"=r" (x) :"r" (x));
@@ -30,8 +32,10 @@ #define __arch__swab16(x) ___arch__swab1 static __inline__ __attribute_const__ __u32 ___arch__swab32(__u32 x) { __asm__( +" .set mips32r2 \n" " wsbh %0, %1 \n" " rotr %0, %0, 16 \n" +" .set mips0 \n" :"=r" (x) :"r" (x));
include/asm-mips/interrupt.h +8 -0
@@ -20,7 +20,9 @@ __asm__ ( " .set reorder \n" " .set noat \n" #ifdef CONFIG_CPU_MIPSR2 + " .set mips32r2 \n" " ei \n" + " .set mips0 \n" #else" mfc0 $1,$12 \n" " ori $1,0x1f \n"
@@ -63,7 +65,9 @@ __asm__ ( " .set push \n" " .set noat \n" #ifdef CONFIG_CPU_MIPSR2 + " .set mips32r2 \n" " di \n" + " .set mips0 \n" #else" mfc0 $1,$12 \n" " ori $1,0x1f \n"
@@ -103,8 +107,10 @@ __asm__ ( " .set reorder \n" " .set noat \n" #ifdef CONFIG_CPU_MIPSR2 + " .set mips32r2 \n" " di \\result \n" " andi \\result, 1 \n" + " .set mips0 \n" #else" mfc0 \\result, $12 \n" " ori $1, \\result, 0x1f \n"
@@ -133,9 +139,11 @@ #if defined(CONFIG_CPU_MIPSR2) && define* Slow, but doesn't suffer from a relativly unlikely race * condition we're having since days 1. */ +" .set mips32r2 \n" " beqz \\flags, 1f \n" " di \n" " ei \n" +" .set mips0 \n" "1: \n"#elif defined(CONFIG_CPU_MIPSR2 )/*
include/asm-mips/r4kcache.h +1 -1
@@ -37,7 +37,7 @@ #define cache_op(op,addr) \ " cache %0, %1 \n" \ " .set pop \n" \ : \ - : "i" (op), "m" (*(unsigned char *)(addr))) + : "i" (op), "R" (*(unsigned char *)(addr)))static inline void flush_icache_line_indexed (unsigned long addr) {
include/linux/cpumask.h +1 -0
@@ -408,6 +408,7 @@ ({ \ })#define for_each_cpu (cpu) for_each_cpu_mask((cpu), cpu_possible_map) +#define for_each_possible_cpu (cpu) for_each_cpu_mask((cpu), cpu_possible_map)#define for_each_online_cpu (cpu) for_each_cpu_mask((cpu), cpu_online_map)#define for_each_present_cpu (cpu) for_each_cpu_mask((cpu), cpu_present_map)
include/linux/fs.h +4 -11
@@ -1383,6 +1383,7 @@ extern int bd_claim(struct block_deviceextern void bd_release (struct block_device *);/* fs/char_dev.c */ +#define CHRDEV_MAJOR_HASH_SIZE 255extern int alloc_chrdev_region (dev_t *,unsigned ,unsigned ,const char *);extern int register_chrdev_region (dev_t ,unsigned ,const char *); extern int register_chrdev(unsigned int, const char *,
@@ -1390,25 +1391,17 @@ extern int register_chrdev(unsigned int,extern int unregister_chrdev (unsigned int ,const char *);extern void unregister_chrdev_region (dev_t ,unsigned );extern int chrdev_open (struct inode *,struct file *); -extern int get_chrdev_list (char *); -extern void *acquire_chrdev_list (void ); -extern int count_chrdev_list (void ); -extern void *get_next_chrdev (void *); -extern int get_chrdev_info (void *,int *,char **); -extern void release_chrdev_list (void *); +extern void chrdev_show (struct seq_file *,off_t );/* fs/block_dev.c */ +#define BLKDEV_MAJOR_HASH_SIZE 255#define BDEVNAME_SIZE 32/* Largest string for a blockdev identifier */ extern const char *__bdevname (dev_t ,char *buffer);extern const char *bdevname (struct block_device *bdev,char *buffer);extern struct block_device *lookup_bdev (const char *);extern struct block_device *open_bdev_excl (const char *,int ,void *);extern void close_bdev_excl (struct block_device *); -extern void *acquire_blkdev_list (void ); -extern int count_blkdev_list (void ); -extern void *get_next_blkdev (void *); -extern int get_blkdev_info (void *,int *,char **); -extern void release_blkdev_list (void *); +extern void blkdev_show (struct seq_file *,off_t );extern void init_special_inode (struct inode *,umode_t ,dev_t );
kernel/auditsc.c +0 -5
@@ -966,11 +966,6 @@ void audit_syscall_entry(struct task_strif (context->in_syscall) {struct audit_context *newctx; -#if defined(__NR_vm86) && defined(__NR_vm86old) -/* vm86 mode should only be entered once */ -if (major == __NR_vm86 || major == __NR_vm86old) -return ; -#endif #if AUDIT_DEBUG printk (KERN_ERR "audit(:%d) pid=%d in syscall=%d;"