]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
Merge branch 'master' into for-next
authorJiri Kosina <jkosina@suse.cz>
Thu, 15 Sep 2011 13:08:05 +0000 (15:08 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 15 Sep 2011 13:08:18 +0000 (15:08 +0200)
Fast-forward merge with Linus to be able to merge patches
based on more recent version of the tree.

100 files changed:
Documentation/ABI/removed/o2cb
Documentation/ABI/testing/sysfs-bus-bcma
Documentation/ABI/testing/sysfs-class-backlight-driver-adp8870
Documentation/cpu-freq/governors.txt
arch/arm/mach-bcmring/irq.c
arch/arm/mach-bcmring/timer.c
arch/arm/mach-nuc93x/time.c
arch/arm/mach-omap2/smartreflex.c
arch/arm/mach-w90x900/cpu.c
arch/powerpc/platforms/embedded6xx/storcenter.c
arch/s390/hypfs/hypfs_diag.c
arch/x86/kernel/process_32.c
arch/x86/mm/mmio-mod.c
drivers/atm/idt77252.c
drivers/atm/lanai.c
drivers/block/drbd/drbd_bitmap.c
drivers/block/drbd/drbd_int.h
drivers/block/drbd/drbd_nl.c
drivers/block/rbd.c
drivers/block/xen-blkback/common.h
drivers/char/agp/backend.c
drivers/char/raw.c
drivers/char/rtc.c
drivers/cpufreq/cpufreq_ondemand.c
drivers/gpu/drm/radeon/radeon_fence.c
drivers/i2c/busses/i2c-designware.c
drivers/isdn/i4l/isdn_common.c
drivers/isdn/mISDN/dsp_core.c
drivers/isdn/mISDN/l1oip_codec.c
drivers/media/radio/wl128x/fmdrv_v4l2.c
drivers/net/arm/ks8695net.c
drivers/net/atlx/atl1.c
drivers/net/bnx2.h
drivers/net/sky2.c
drivers/net/wireless/ipw2x00/libipw_tx.c
drivers/net/wireless/libertas_tf/deb_defs.h
drivers/net/wireless/rtlwifi/pci.c
drivers/s390/cio/blacklist.c
drivers/scsi/aacraid/src.c
drivers/scsi/aic94xx/aic94xx_dump.c
drivers/scsi/bfa/bfad_drv.h
drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
drivers/scsi/fcoe/fcoe.c
drivers/scsi/isci/phy.c
drivers/scsi/mpt2sas/mpt2sas_base.c
drivers/scsi/mpt2sas/mpt2sas_config.c
drivers/scsi/mpt2sas/mpt2sas_ctl.c
drivers/scsi/mpt2sas/mpt2sas_scsih.c
drivers/scsi/mvsas/mv_sas.h
drivers/scsi/pmcraid.c
drivers/scsi/pmcraid.h
drivers/scsi/sg.c
drivers/staging/iio/addac/adt7316-i2c.c
drivers/staging/iio/dds/ad9832.c
drivers/target/target_core_alua.c
drivers/target/target_core_configfs.c
drivers/target/target_core_fabric_configfs.c
drivers/target/target_core_file.c
drivers/target/target_core_iblock.c
drivers/target/target_core_pr.c
drivers/target/target_core_pscsi.c
drivers/target/target_core_rd.c
drivers/target/target_core_stat.c
drivers/target/target_core_tmr.c
drivers/target/target_core_transport.c
drivers/target/target_core_ua.c
drivers/target/tcm_fc/tfc_cmd.c
drivers/target/tcm_fc/tfc_conf.c
drivers/target/tcm_fc/tfc_io.c
drivers/target/tcm_fc/tfc_sess.c
drivers/tty/serial/mrst_max3110.c
drivers/usb/gadget/langwell_udc.c
drivers/usb/gadget/mv_udc_core.c
drivers/usb/gadget/net2280.c
drivers/usb/gadget/uvc.h
drivers/usb/gadget/uvc_v4l2.c
drivers/usb/musb/musb_gadget.c
drivers/usb/serial/mos7720.c
drivers/usb/serial/mos7840.c
drivers/usb/storage/realtek_cr.c
drivers/uwb/uwb-internal.h
fs/coda/coda_linux.h
fs/eventpoll.c
fs/reiserfs/journal.c
fs/reiserfs/resize.c
fs/xfs/kmem.h
include/linux/ceph/messenger.h
include/linux/drbd_tag_magic.h
include/media/pwc-ioctl.h
kernel/async.c
kernel/futex.c
lib/Kconfig.debug
lib/dynamic_debug.c
lib/idr.c
mm/page_cgroup.c
mm/vmscan.c
net/netfilter/x_tables.c
net/rds/ib_cm.c
scripts/checkpatch.pl

index 7f5daa465093b898f123b67fb4bc8ab453ce9bc0..20c91adca6d412102dabf73d6b6f387a60d888ec 100644 (file)
@@ -1,6 +1,6 @@
 What:          /sys/o2cb symlink
 Date:          May 2011
-KernelVersion: 2.6.40
+KernelVersion: 3.0
 Contact:       ocfs2-devel@oss.oracle.com
 Description:   This is a symlink: /sys/o2cb to /sys/fs/o2cb. The symlink is
                removed when new versions of ocfs2-tools which know to look
index 06b62badddd18a4b5fdc61ae9012ad73621fcb7e..721b4aea3020a43f4722e61c6cff9cede284e664 100644 (file)
@@ -1,6 +1,6 @@
 What:          /sys/bus/bcma/devices/.../manuf
 Date:          May 2011
-KernelVersion: 2.6.40
+KernelVersion: 3.0
 Contact:       RafaÅ‚ MiÅ‚ecki <zajec5@gmail.com>
 Description:
                Each BCMA core has it's manufacturer id. See
@@ -8,7 +8,7 @@ Description:
 
 What:          /sys/bus/bcma/devices/.../id
 Date:          May 2011
-KernelVersion: 2.6.40
+KernelVersion: 3.0
 Contact:       RafaÅ‚ MiÅ‚ecki <zajec5@gmail.com>
 Description:
                There are a few types of BCMA cores, they can be identified by
@@ -16,7 +16,7 @@ Description:
 
 What:          /sys/bus/bcma/devices/.../rev
 Date:          May 2011
-KernelVersion: 2.6.40
+KernelVersion: 3.0
 Contact:       RafaÅ‚ MiÅ‚ecki <zajec5@gmail.com>
 Description:
                BCMA cores of the same type can still slightly differ depending
@@ -24,7 +24,7 @@ Description:
 
 What:          /sys/bus/bcma/devices/.../class
 Date:          May 2011
-KernelVersion: 2.6.40
+KernelVersion: 3.0
 Contact:       RafaÅ‚ MiÅ‚ecki <zajec5@gmail.com>
 Description:
                Each BCMA core is identified by few fields, including class it
index aa11dbdd794b2e1725bc254651198fa1af938f35..4a9c545bda4ba2d4d75637290007d2b510134c9f 100644 (file)
@@ -4,8 +4,8 @@ What:           /sys/class/backlight/<backlight>/l2_bright_max
 What:          /sys/class/backlight/<backlight>/l3_office_max
 What:          /sys/class/backlight/<backlight>/l4_indoor_max
 What:          /sys/class/backlight/<backlight>/l5_dark_max
-Date:          Mai 2011
-KernelVersion: 2.6.40
+Date:          May 2011
+KernelVersion: 3.0
 Contact:       device-drivers-devel@blackfin.uclinux.org
 Description:
                Control the maximum brightness for <ambient light zone>
@@ -18,8 +18,8 @@ What:         /sys/class/backlight/<backlight>/l2_bright_dim
 What:          /sys/class/backlight/<backlight>/l3_office_dim
 What:          /sys/class/backlight/<backlight>/l4_indoor_dim
 What:          /sys/class/backlight/<backlight>/l5_dark_dim
-Date:          Mai 2011
-KernelVersion: 2.6.40
+Date:          May 2011
+KernelVersion: 3.0
 Contact:       device-drivers-devel@blackfin.uclinux.org
 Description:
                Control the dim brightness for <ambient light zone>
@@ -29,8 +29,8 @@ Description:
                this <ambient light zone>.
 
 What:          /sys/class/backlight/<backlight>/ambient_light_level
-Date:          Mai 2011
-KernelVersion: 2.6.40
+Date:          May 2011
+KernelVersion: 3.0
 Contact:       device-drivers-devel@blackfin.uclinux.org
 Description:
                Get conversion value of the light sensor.
@@ -39,8 +39,8 @@ Description:
                8000 (max ambient brightness)
 
 What:          /sys/class/backlight/<backlight>/ambient_light_zone
-Date:          Mai 2011
-KernelVersion: 2.6.40
+Date:          May 2011
+KernelVersion: 3.0
 Contact:       device-drivers-devel@blackfin.uclinux.org
 Description:
                Get/Set current ambient light zone. Reading returns
index e74d0a2eb1cf4d9921b0720039c6696e42fc3062..d221781dabaa84f49977d985fe617f74dfdb090a 100644 (file)
@@ -132,7 +132,7 @@ The sampling rate is limited by the HW transition latency:
 transition_latency * 100
 Or by kernel restrictions:
 If CONFIG_NO_HZ is set, the limit is 10ms fixed.
-If CONFIG_NO_HZ is not set or no_hz=off boot parameter is used, the
+If CONFIG_NO_HZ is not set or nohz=off boot parameter is used, the
 limits depend on the CONFIG_HZ option:
 HZ=1000: min=20000us  (20ms)
 HZ=250:  min=80000us  (80ms)
index c48feaf4e8e9538655a7586c2a69fe340f87d0c8..437fa683bcb23bed8470bc9d6fa8f6fcc9faa52c 100644 (file)
@@ -20,7 +20,6 @@
 #include <linux/stddef.h>
 #include <linux/list.h>
 #include <linux/timer.h>
-#include <linux/version.h>
 #include <linux/io.h>
 
 #include <mach/hardware.h>
index 2d415d2a8e6823b08067b6db7fd011b19d264864..af9c3d7e2a0cbb6758b9acbc6e343498f06ee0bf 100644 (file)
@@ -12,7 +12,6 @@
 * consent.
 *****************************************************************************/
 
-#include <linux/version.h>
 #include <linux/types.h>
 #include <linux/module.h>
 #include <csp/tmrHw.h>
index 2f90f9dc6e300d698e1e7f0b9409565bc13021b7..f9807c029ec50bc400274dbea437cf502aba73ce 100644 (file)
@@ -82,7 +82,7 @@ static void nuc93x_timer_setup(void)
        timer0_load = (rate / TICKS_PER_SEC);
        __raw_writel(timer0_load, REG_TICR0);
 
-       val |= (PERIOD | COUNTEN | INTEN | PRESCALE);;
+       val |= (PERIOD | COUNTEN | INTEN | PRESCALE);
        __raw_writel(val, REG_TCSR0);
 
 }
index 34c01a7de81088b6e1657a575e8679125c13f75c..f49804f181d4622afc45f480bb9036015eb1cb71 100644 (file)
@@ -247,7 +247,7 @@ static void sr_stop_vddautocomp(struct omap_sr *sr)
  * driver register and sr device intializtion API's. Only one call
  * will ultimately succeed.
  *
- * Currently this function registers interrrupt handler for a particular SR
+ * Currently this function registers interrupt handler for a particular SR
  * if smartreflex class driver is already registered and has
  * requested for interrupts and the SR interrupt line in present.
  */
index 83c56324a472f16a5f155df056b4cc29ba9e562d..0a235e502330ced25bb246da225778641bdcf3bb 100644 (file)
@@ -60,7 +60,7 @@ static DEFINE_CLK(emc, 7);
 static DEFINE_SUBCLK(rmii, 2);
 static DEFINE_CLK(usbd, 8);
 static DEFINE_CLK(usbh, 9);
-static DEFINE_CLK(g2d, 10);;
+static DEFINE_CLK(g2d, 10);
 static DEFINE_CLK(pwm, 18);
 static DEFINE_CLK(ps2, 24);
 static DEFINE_CLK(kpi, 25);
index 613070e9ddbe068db1bc1b42bb17a21aac7b0120..f1eebcae9bf0b7e353b1a3cbabc091b386553960 100644 (file)
@@ -77,7 +77,7 @@ static void __init storcenter_setup_arch(void)
 }
 
 /*
- * Interrupt setup and service.  Interrrupts on the turbostation come
+ * Interrupt setup and service.  Interrupts on the turbostation come
  * from the four PCI slots plus onboard 8241 devices: I2C, DUART.
  */
 static void __init storcenter_init_IRQ(void)
index 6023c6dc1fb751c7a3b9f5f00e8cf68c5297c9b6..74c8f5e76ce4fffdfedaa9c7745f9a34dacc4abc 100644 (file)
@@ -562,10 +562,9 @@ static int dbfs_d204_create(void **data, void **data_free_ptr, size_t *size)
        void *base;
 
        buf_size = PAGE_SIZE * (diag204_buf_pages + 1) + sizeof(d204->hdr);
-       base = vmalloc(buf_size);
+       base = vzalloc(buf_size);
        if (!base)
                return -ENOMEM;
-       memset(base, 0, buf_size);
        d204 = page_align_ptr(base + sizeof(d204->hdr)) - sizeof(d204->hdr);
        rc = diag204_do_store(d204->buf, diag204_buf_pages);
        if (rc) {
index 7a3b65107a27cce70ff2b20c03e909c712c32e7e..2196c703c5e2e0700bb3f354890b35a6ef99221a 100644 (file)
@@ -262,7 +262,7 @@ EXPORT_SYMBOL_GPL(start_thread);
 
 
 /*
- *     switch_to(x,yn) should switch tasks from x to y.
+ *     switch_to(x,y) should switch tasks from x to y.
  *
  * We fsave/fwait so that an exception goes off at the right time
  * (as a call from the fsave or fwait in effect) rather than to
index 67421f38a215df252544f12805b5ea69e81f20e4..de54b9b278a7a1f6d55f545146317ab7763614e9 100644 (file)
@@ -29,7 +29,6 @@
 #include <linux/slab.h>
 #include <linux/uaccess.h>
 #include <linux/io.h>
-#include <linux/version.h>
 #include <linux/kallsyms.h>
 #include <asm/pgtable.h>
 #include <linux/mmiotrace.h>
index db06f34419cfe7ecf139e3ab47bcb300e9176f48..1c052127548c4f18575e835591e65b7b2a7e8196 100644 (file)
@@ -3416,27 +3416,28 @@ init_card(struct atm_dev *dev)
 
        size = sizeof(struct vc_map *) * card->tct_size;
        IPRINTK("%s: allocate %d byte for VC map.\n", card->name, size);
-       if (NULL == (card->vcs = vmalloc(size))) {
+       card->vcs = vzalloc(size);
+       if (!card->vcs) {
                printk("%s: memory allocation failure.\n", card->name);
                deinit_card(card);
                return -1;
        }
-       memset(card->vcs, 0, size);
 
        size = sizeof(struct vc_map *) * card->scd_size;
        IPRINTK("%s: allocate %d byte for SCD to VC mapping.\n",
                card->name, size);
-       if (NULL == (card->scd2vc = vmalloc(size))) {
+       card->scd2vc = vzalloc(size);
+       if (!card->scd2vc) {
                printk("%s: memory allocation failure.\n", card->name);
                deinit_card(card);
                return -1;
        }
-       memset(card->scd2vc, 0, size);
 
        size = sizeof(struct tst_info) * (card->tst_size - 2);
        IPRINTK("%s: allocate %d byte for TST to VC mapping.\n",
                card->name, size);
-       if (NULL == (card->soft_tst = vmalloc(size))) {
+       card->soft_tst = vmalloc(size);
+       if (!card->soft_tst) {
                printk("%s: memory allocation failure.\n", card->name);
                deinit_card(card);
                return -1;
index e828c548749398496ecb7297ae4ca818a66a84bb..f5569699f31cb228fe50822140416a937a2636c0 100644 (file)
@@ -1457,10 +1457,9 @@ static int __devinit vcc_table_allocate(struct lanai_dev *lanai)
        return (lanai->vccs == NULL) ? -ENOMEM : 0;
 #else
        int bytes = (lanai->num_vci) * sizeof(struct lanai_vcc *);
-       lanai->vccs = (struct lanai_vcc **) vmalloc(bytes);
+       lanai->vccs = vzalloc(bytes);
        if (unlikely(lanai->vccs == NULL))
                return -ENOMEM;
-       memset(lanai->vccs, 0, bytes);
        return 0;
 #endif
 }
index 7b976296b564faeed6a676afb22119bb99500174..912f585a760fd92dbbe45f42cd8af4658af80c53 100644 (file)
@@ -378,15 +378,14 @@ static struct page **bm_realloc_pages(struct drbd_bitmap *b, unsigned long want)
         * thread.  As we have no disk yet, we are not in the IO path,
         * not even the IO path of the peer. */
        bytes = sizeof(struct page *)*want;
-       new_pages = kmalloc(bytes, GFP_KERNEL);
+       new_pages = kzalloc(bytes, GFP_KERNEL);
        if (!new_pages) {
-               new_pages = vmalloc(bytes);
+               new_pages = vzalloc(bytes);
                if (!new_pages)
                        return NULL;
                vmalloced = 1;
        }
 
-       memset(new_pages, 0, bytes);
        if (want >= have) {
                for (i = 0; i < have; i++)
                        new_pages[i] = old_pages[i];
index ef2ceed3be4b2767f6b3886a48a002609597e2e8..1706d60b8c99996cdfd6a220a944739d5b4a837b 100644 (file)
@@ -28,7 +28,6 @@
 
 #include <linux/compiler.h>
 #include <linux/types.h>
-#include <linux/version.h>
 #include <linux/list.h>
 #include <linux/sched.h>
 #include <linux/bitops.h>
@@ -928,7 +927,7 @@ struct drbd_md {
 #define NL_INT64(pn,pr,member) __u64 member;
 #define NL_BIT(pn,pr,member)   unsigned member:1;
 #define NL_STRING(pn,pr,member,len) unsigned char member[len]; int member ## _len;
-#include "linux/drbd_nl.h"
+#include <linux/drbd_nl.h>
 
 struct drbd_backing_dev {
        struct block_device *backing_bdev;
index 0feab261e295b4c7ec75826066593f41bd44fc96..af2a25049bceef99700b110e8ae5df4aebe47edd 100644 (file)
@@ -94,7 +94,7 @@ static int name ## _from_tags(struct drbd_conf *mdev, \
                 arg->member ## _len = dlen; \
                 memcpy(arg->member, tags, min_t(size_t, dlen, len)); \
                 break;
-#include "linux/drbd_nl.h"
+#include <linux/drbd_nl.h>
 
 /* Generate the struct to tag_list functions */
 #define NL_PACKET(name, number, fields) \
@@ -129,7 +129,7 @@ name ## _to_tags(struct drbd_conf *mdev, \
        put_unaligned(arg->member ## _len, tags++);     \
        memcpy(tags, arg->member, arg->member ## _len); \
        tags = (unsigned short *)((char *)tags + arg->member ## _len);
-#include "linux/drbd_nl.h"
+#include <linux/drbd_nl.h>
 
 void drbd_bcast_ev_helper(struct drbd_conf *mdev, char *helper_name);
 void drbd_nl_send_reply(struct cn_msg *, int);
index 15f65b5f3fc7156c50300a6ab4d8efbe8a054e0e..fe3c3249cec4a47e7198404e0343004e457b3b2d 100644 (file)
@@ -192,7 +192,7 @@ static ssize_t rbd_snap_add(struct device *dev,
                            const char *buf,
                            size_t count);
 static void __rbd_remove_snap_dev(struct rbd_device *rbd_dev,
-                                 struct rbd_snap *snap);;
+                                 struct rbd_snap *snap);
 
 
 static struct rbd_device *dev_to_rbd(struct device *dev)
index 9e40b283a4685c38820c20e0d5bb26f1d6d74be5..0d04c7fb7cee6e6c2983c937ddef1b53800732bb 100644 (file)
@@ -27,7 +27,6 @@
 #ifndef __XEN_BLKIF__BACKEND__COMMON_H__
 #define __XEN_BLKIF__BACKEND__COMMON_H__
 
-#include <linux/version.h>
 #include <linux/module.h>
 #include <linux/interrupt.h>
 #include <linux/slab.h>
index f27d0d0816d3ce5371a9948bc9841e74ba0f533b..4b71647782d03d16c38dd1cb319ed396daa9844c 100644 (file)
@@ -171,7 +171,7 @@ static int agp_backend_initialize(struct agp_bridge_data *bridge)
        }
        got_gatt = 1;
 
-       bridge->key_list = vmalloc(PAGE_SIZE * 4);
+       bridge->key_list = vzalloc(PAGE_SIZE * 4);
        if (bridge->key_list == NULL) {
                dev_err(&bridge->dev->dev,
                        "can't allocate memory for key lists\n");
@@ -181,7 +181,6 @@ static int agp_backend_initialize(struct agp_bridge_data *bridge)
        got_keylist = 1;
 
        /* FIXME vmalloc'd memory not guaranteed contiguous */
-       memset(bridge->key_list, 0, PAGE_SIZE * 4);
 
        if (bridge->driver->configure()) {
                dev_err(&bridge->dev->dev, "error configuring host chipset\n");
index b33e8ea314ed0182e746d547e020933e053e5b03..b6de2c0471458d6c9191d32bbad740de904f1ed1 100644 (file)
@@ -324,13 +324,12 @@ static int __init raw_init(void)
                max_raw_minors = MAX_RAW_MINORS;
        }
 
-       raw_devices = vmalloc(sizeof(struct raw_device_data) * max_raw_minors);
+       raw_devices = vzalloc(sizeof(struct raw_device_data) * max_raw_minors);
        if (!raw_devices) {
                printk(KERN_ERR "Not enough memory for raw device structures\n");
                ret = -ENOMEM;
                goto error;
        }
-       memset(raw_devices, 0, sizeof(struct raw_device_data) * max_raw_minors);
 
        ret = register_chrdev_region(dev, max_raw_minors, "raw");
        if (ret)
index dfa8b3062fdad831485c7c8ee1f36839b6377a2f..ccd124ab7ca7c54d3b6ae2cc947d01261954cd1d 100644 (file)
@@ -80,6 +80,7 @@
 #include <linux/bcd.h>
 #include <linux/delay.h>
 #include <linux/uaccess.h>
+#include <linux/ratelimit.h>
 
 #include <asm/current.h>
 #include <asm/system.h>
@@ -1195,10 +1196,8 @@ static void rtc_dropped_irq(unsigned long data)
 
        spin_unlock_irq(&rtc_lock);
 
-       if (printk_ratelimit()) {
-               printk(KERN_WARNING "rtc: lost some interrupts at %ldHz.\n",
-                       freq);
-       }
+       printk_ratelimited(KERN_WARNING "rtc: lost some interrupts at %ldHz.\n",
+                          freq);
 
        /* Now we have new data */
        wake_up_interruptible(&rtc_wait);
index 891360edecdd218fcd200e5c1e47f28f3ff07d52..629b3ec698e2d4ac0f88f88e26f9e95e91e96150 100644 (file)
@@ -725,7 +725,7 @@ static int __init cpufreq_gov_dbs_init(void)
                dbs_tuners_ins.down_differential =
                                        MICRO_FREQUENCY_DOWN_DIFFERENTIAL;
                /*
-                * In no_hz/micro accounting case we set the minimum frequency
+                * In nohz/micro accounting case we set the minimum frequency
                 * not depending on HZ, but fixed (very low). The deferred
                 * timer might skip some samples if idle/sleeping as needed.
                */
index 7fd4e3e5ad5f133a37b0af396445cb0bab1cdaaa..3475a09f946b6d2928d708f49f460ba3e7fbf280 100644 (file)
@@ -48,7 +48,7 @@ static void radeon_fence_write(struct radeon_device *rdev, u32 seq)
                        scratch_index = R600_WB_EVENT_OFFSET + rdev->fence_drv.scratch_reg - rdev->scratch.reg_base;
                else
                        scratch_index = RADEON_WB_SCRATCH_OFFSET + rdev->fence_drv.scratch_reg - rdev->scratch.reg_base;
-               rdev->wb.wb[scratch_index/4] = cpu_to_le32(seq);;
+               rdev->wb.wb[scratch_index/4] = cpu_to_le32(seq);
        } else
                WREG32(rdev->fence_drv.scratch_reg, seq);
 }
index b7a51c43b185018289271d6e1db44f5453c76bce..1b42b50b59923b58d68d6b210e5615087a022405 100644 (file)
@@ -390,7 +390,7 @@ i2c_dw_xfer_msg(struct dw_i2c_dev *dev)
        int tx_limit, rx_limit;
        u32 addr = msgs[dev->msg_write_idx].addr;
        u32 buf_len = dev->tx_buf_len;
-       u8 *buf = dev->tx_buf;;
+       u8 *buf = dev->tx_buf;
 
        intr_mask = DW_IC_INTR_DEFAULT_MASK;
 
index 6ed82add6ffa8bcebb0b32b85daa84c15a8b56ed..6ddb795e31c50e371eb36d0dbd3dcda23f11978b 100644 (file)
@@ -2308,11 +2308,11 @@ static int __init isdn_init(void)
        int i;
        char tmprev[50];
 
-       if (!(dev = vmalloc(sizeof(isdn_dev)))) {
+       dev = vzalloc(sizeof(isdn_dev));
+       if (!dev) {
                printk(KERN_WARNING "isdn: Could not allocate device-struct.\n");
                return -EIO;
        }
-       memset((char *) dev, 0, sizeof(isdn_dev));
        init_timer(&dev->timer);
        dev->timer.function = isdn_timer_funct;
        spin_lock_init(&dev->lock);
index 2877291a9ed8a852937b25ebe59e09043097376d..0c41553ce6847ad4ae12669ecc81737e8d2e2273 100644 (file)
@@ -1052,12 +1052,11 @@ dspcreate(struct channel_req *crq)
        if (crq->protocol != ISDN_P_B_L2DSP
         && crq->protocol != ISDN_P_B_L2DSPHDLC)
                return -EPROTONOSUPPORT;
-       ndsp = vmalloc(sizeof(struct dsp));
+       ndsp = vzalloc(sizeof(struct dsp));
        if (!ndsp) {
                printk(KERN_ERR "%s: vmalloc struct dsp failed\n", __func__);
                return -ENOMEM;
        }
-       memset(ndsp, 0, sizeof(struct dsp));
        if (dsp_debug & DEBUG_DSP_CTRL)
                printk(KERN_DEBUG "%s: creating new dsp instance\n", __func__);
 
index bbfd1b863ed3da49f95138ed3389c2ba4336df05..5a89972624d8c9ac0cf399b11caba2c3098138b0 100644 (file)
@@ -330,14 +330,12 @@ l1oip_4bit_alloc(int ulaw)
                return 0;
 
        /* alloc conversion tables */
-       table_com = vmalloc(65536);
-       table_dec = vmalloc(512);
+       table_com = vzalloc(65536);
+       table_dec = vzalloc(512);
        if (!table_com || !table_dec) {
                l1oip_4bit_free();
                return -ENOMEM;
        }
-       memset(table_com, 0, 65536);
-       memset(table_dec, 0, 512);
        /* generate compression table */
        i1 = 0;
        while (i1 < 256) {
index 8c0e19276970543490fa02b07209825c897e2828..ec1d52f38904e55805e65d4583099a5c7bcc210b 100644 (file)
@@ -402,7 +402,7 @@ static int fm_v4l2_vidioc_s_hw_freq_seek(struct file *file, void *priv,
 static int fm_v4l2_vidioc_g_modulator(struct file *file, void *priv,
                struct v4l2_modulator *mod)
 {
-       struct fmdev *fmdev = video_drvdata(file);;
+       struct fmdev *fmdev = video_drvdata(file);
 
        if (mod->index != 0)
                return -EINVAL;
index c827a6097d024fda867cfff7365ea4da2ff31bc2..8d0baeceaaa317671d72a94db6561d7b0d9e781c 100644 (file)
@@ -414,7 +414,7 @@ ks8695_tx_irq(int irq, void *dev_id)
  *    Interrupt Status Register (Offset 0xF208)
  *        Bit29: WAN MAC Receive Status
  *        Bit16: LAN MAC Receive Status
- *    So, this Rx interrrupt enable/status bit number is equal
+ *    So, this Rx interrupt enable/status bit number is equal
  *    as Rx IRQ number.
  */
 static inline u32 ks8695_get_rx_enable_bit(struct ks8695_priv *ksp)
index 97e6954304eab6aa502384e5febe7bbc76b1274c..9f3e5306ef794c7301d0c67c2cf875beeb7e4950 100644 (file)
@@ -858,7 +858,7 @@ static s32 atl1_init_hw(struct atl1_hw *hw)
        atl1_init_flash_opcode(hw);
 
        if (!hw->phy_configured) {
-               /* enable GPHY LinkChange Interrrupt */
+               /* enable GPHY LinkChange Interrupt */
                ret_val = atl1_write_phy_reg(hw, 18, 0xC00);
                if (ret_val)
                        return ret_val;
index fc50d4267df878d7f50165ca7b85a0da2553bc6a..99d31a7d6aaab6d04a64c529c55700a9d74562e9 100644 (file)
@@ -5617,7 +5617,7 @@ struct l2_fhdr {
 #define BNX2_TXP_CPU_STATE_FIO_ABORT_HALTED             (1L<<8)
 #define BNX2_TXP_CPU_STATE_SOFT_HALTED                  (1L<<10)
 #define BNX2_TXP_CPU_STATE_SPAD_UNDERFLOW               (1L<<11)
-#define BNX2_TXP_CPU_STATE_INTERRRUPT                   (1L<<12)
+#define BNX2_TXP_CPU_STATE_INTERRUPT                    (1L<<12)
 #define BNX2_TXP_CPU_STATE_DATA_ACCESS_STALL            (1L<<14)
 #define BNX2_TXP_CPU_STATE_INST_FETCH_STALL             (1L<<15)
 #define BNX2_TXP_CPU_STATE_BLOCKED_READ                         (1L<<31)
@@ -5712,7 +5712,7 @@ struct l2_fhdr {
 #define BNX2_TPAT_CPU_STATE_FIO_ABORT_HALTED            (1L<<8)
 #define BNX2_TPAT_CPU_STATE_SOFT_HALTED                         (1L<<10)
 #define BNX2_TPAT_CPU_STATE_SPAD_UNDERFLOW              (1L<<11)
-#define BNX2_TPAT_CPU_STATE_INTERRRUPT                  (1L<<12)
+#define BNX2_TPAT_CPU_STATE_INTERRUPT                   (1L<<12)
 #define BNX2_TPAT_CPU_STATE_DATA_ACCESS_STALL           (1L<<14)
 #define BNX2_TPAT_CPU_STATE_INST_FETCH_STALL            (1L<<15)
 #define BNX2_TPAT_CPU_STATE_BLOCKED_READ                (1L<<31)
@@ -5807,7 +5807,7 @@ struct l2_fhdr {
 #define BNX2_RXP_CPU_STATE_FIO_ABORT_HALTED             (1L<<8)
 #define BNX2_RXP_CPU_STATE_SOFT_HALTED                  (1L<<10)
 #define BNX2_RXP_CPU_STATE_SPAD_UNDERFLOW               (1L<<11)
-#define BNX2_RXP_CPU_STATE_INTERRRUPT                   (1L<<12)
+#define BNX2_RXP_CPU_STATE_INTERRUPT                    (1L<<12)
 #define BNX2_RXP_CPU_STATE_DATA_ACCESS_STALL            (1L<<14)
 #define BNX2_RXP_CPU_STATE_INST_FETCH_STALL             (1L<<15)
 #define BNX2_RXP_CPU_STATE_BLOCKED_READ                         (1L<<31)
@@ -5953,7 +5953,7 @@ struct l2_fhdr {
 #define BNX2_COM_CPU_STATE_FIO_ABORT_HALTED             (1L<<8)
 #define BNX2_COM_CPU_STATE_SOFT_HALTED                  (1L<<10)
 #define BNX2_COM_CPU_STATE_SPAD_UNDERFLOW               (1L<<11)
-#define BNX2_COM_CPU_STATE_INTERRRUPT                   (1L<<12)
+#define BNX2_COM_CPU_STATE_INTERRUPT                    (1L<<12)
 #define BNX2_COM_CPU_STATE_DATA_ACCESS_STALL            (1L<<14)
 #define BNX2_COM_CPU_STATE_INST_FETCH_STALL             (1L<<15)
 #define BNX2_COM_CPU_STATE_BLOCKED_READ                         (1L<<31)
@@ -6119,7 +6119,7 @@ struct l2_fhdr {
 #define BNX2_CP_CPU_STATE_FIO_ABORT_HALTED              (1L<<8)
 #define BNX2_CP_CPU_STATE_SOFT_HALTED                   (1L<<10)
 #define BNX2_CP_CPU_STATE_SPAD_UNDERFLOW                (1L<<11)
-#define BNX2_CP_CPU_STATE_INTERRRUPT                    (1L<<12)
+#define BNX2_CP_CPU_STATE_INTERRUPT                     (1L<<12)
 #define BNX2_CP_CPU_STATE_DATA_ACCESS_STALL             (1L<<14)
 #define BNX2_CP_CPU_STATE_INST_FETCH_STALL              (1L<<15)
 #define BNX2_CP_CPU_STATE_BLOCKED_READ                  (1L<<31)
@@ -6291,7 +6291,7 @@ struct l2_fhdr {
 #define BNX2_MCP_CPU_STATE_FIO_ABORT_HALTED             (1L<<8)
 #define BNX2_MCP_CPU_STATE_SOFT_HALTED                  (1L<<10)
 #define BNX2_MCP_CPU_STATE_SPAD_UNDERFLOW               (1L<<11)
-#define BNX2_MCP_CPU_STATE_INTERRRUPT                   (1L<<12)
+#define BNX2_MCP_CPU_STATE_INTERRUPT                    (1L<<12)
 #define BNX2_MCP_CPU_STATE_DATA_ACCESS_STALL            (1L<<14)
 #define BNX2_MCP_CPU_STATE_INST_FETCH_STALL             (1L<<15)
 #define BNX2_MCP_CPU_STATE_BLOCKED_READ                         (1L<<31)
index 57339da76326eb504b4365a2716247c77af182ca..d7f879dfb1c91de033687bb50532933afbcff793 100644 (file)
@@ -2057,7 +2057,7 @@ static void sky2_hw_down(struct sky2_port *sky2)
 
        sky2_write8(hw, SK_REG(port, RX_GMF_CTRL_T), GMF_RST_SET);
 
-       /* Force any delayed status interrrupt and NAPI */
+       /* Force any delayed status interrupt and NAPI */
        sky2_write32(hw, STAT_LEV_TIMER_CNT, 0);
        sky2_write32(hw, STAT_TX_TIMER_CNT, 0);
        sky2_write32(hw, STAT_ISR_TIMER_CNT, 0);
index 01c88a71abe19a47da929e664e38f3656f4dd668..e8c039879b05a57ef5213a43a51c4cd1785ed8f4 100644 (file)
@@ -395,7 +395,7 @@ netdev_tx_t libipw_xmit(struct sk_buff *skb, struct net_device *dev)
                    (CFG_LIBIPW_COMPUTE_FCS | CFG_LIBIPW_RESERVE_FCS))
                        bytes_per_frag -= LIBIPW_FCS_LEN;
 
-               /* Each fragment may need to have room for encryptiong
+               /* Each fragment may need to have room for encryption
                 * pre/postfix */
                if (host_encrypt)
                        bytes_per_frag -= crypt->ops->extra_mpdu_prefix_len +
index ae753962d8b5a35ae05500e2a898cdcd49ba7379..4bd3dc5adf7c70da919d5658a7b1ee9cfebefaa3 100644 (file)
@@ -3,7 +3,7 @@
   * global variable declaration.
   */
 #ifndef _LBS_DEB_DEFS_H_
-#define _LBS_DEB_EFS_H_
+#define _LBS_DEB_DEFS_H_
 
 #ifndef DRV_NAME
 #define DRV_NAME "libertas_tf"
index 56f12358389d8614ba9167ad23239808cc489905..f8648b7288d5aed07b9fba04b530859430a3e02b 100644 (file)
@@ -488,7 +488,7 @@ static void _rtl_pci_tx_chk_waitq(struct ieee80211_hw *hw)
        struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw));
        struct sk_buff *skb = NULL;
        struct ieee80211_tx_info *info = NULL;
-       int tid; /* should be int */
+       int tid;
 
        if (!rtlpriv->rtlhal.earlymode_enable)
                return;
@@ -1538,7 +1538,7 @@ static int rtl_pci_start(struct ieee80211_hw *hw)
 
        rtl_init_rx_config(hw);
 
-       /*should after adapter start and interrupt enable. */
+       /*should be after adapter start and interrupt enable. */
        set_hal_start(rtlhal);
 
        RT_CLEAR_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC);
@@ -1559,7 +1559,7 @@ static void rtl_pci_stop(struct ieee80211_hw *hw)
        u8 RFInProgressTimeOut = 0;
 
        /*
-        *should before disable interrrupt&adapter
+        *should be before disable interrupt&adapter
         *and will do it immediately.
         */
        set_hal_stop(rtlhal);
index 76058a5166eda01681a368f061f59afcbe609454..08c66035dd19036814b1ff051e917e93165eca85 100644 (file)
@@ -335,10 +335,9 @@ cio_ignore_write(struct file *file, const char __user *user_buf,
                return -EINVAL;
        if (user_len > 65536)
                user_len = 65536;
-       buf = vmalloc (user_len + 1); /* maybe better use the stack? */
+       buf = vzalloc(user_len + 1); /* maybe better use the stack? */
        if (buf == NULL)
                return -ENOMEM;
-       memset(buf, 0, user_len + 1);
 
        if (strncpy_from_user (buf, user_buf, user_len) < 0) {
                rc = -EFAULT;
index c204946606039f75d188dd4853ad5167a57d1ef7..957595a7a45c1bc40f1de6f68d3d68a456219a9b 100644 (file)
@@ -37,7 +37,6 @@
 #include <linux/slab.h>
 #include <linux/blkdev.h>
 #include <linux/delay.h>
-#include <linux/version.h>
 #include <linux/completion.h>
 #include <linux/time.h>
 #include <linux/interrupt.h>
index 67eeba3bdb06b899dae6339980301b27aa9c9110..a16a77c8b9cf763fedff988bc44e5fb05c6439ea 100644 (file)
@@ -29,7 +29,7 @@
  *
  */
 
-#include "linux/pci.h"
+#include <linux/pci.h>
 #include "aic94xx.h"
 #include "aic94xx_reg.h"
 #include "aic94xx_reg_def.h"
index bda999ad9f5232a61981b96a4c6bae9b80437c0e..5e19a5f820ec6d515773ec942ff4ba1d9184608e 100644 (file)
@@ -27,7 +27,6 @@
 #define __BFAD_DRV_H__
 
 #include <linux/types.h>
-#include <linux/version.h>
 #include <linux/pci.h>
 #include <linux/dma-mapping.h>
 #include <linux/idr.h>
index bd22041e278949aa0ba3e456fbda6c8017d9f162..f4aa6375339b2e6195441c3fd41e01ae7a23943e 100644 (file)
@@ -14,7 +14,6 @@
 
 #define pr_fmt(fmt) KBUILD_MODNAME ":%s: " fmt, __func__
 
-#include <linux/version.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <scsi/scsi_host.h>
index ae13c4993aa378e2cc978f2215f73d6b938cd20b..31c79bde6976af4a347fdfe0a8775cc3cd3e6b0a 100644 (file)
@@ -13,7 +13,6 @@
 
 #define pr_fmt(fmt) KBUILD_MODNAME ":%s: " fmt, __func__
 
-#include <linux/version.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <scsi/scsi_host.h>
index 5d0e9a24ae94effa0a5561d997a96d9802d50d0d..34c8d82b74239fa7c82383aa5e0891f39aefab47 100644 (file)
@@ -18,7 +18,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/version.h>
 #include <linux/spinlock.h>
 #include <linux/netdevice.h>
 #include <linux/etherdevice.h>
index 430fc8ff014a167f7bbf61fab922313a4ca848e2..09e61134037fe877f20937721f5f1c6e13f6e5c2 100644 (file)
@@ -708,7 +708,7 @@ enum sci_status sci_phy_event_handler(struct isci_phy *iphy, u32 event_code)
                                 __func__,
                                 event_code);
 
-                       return SCI_FAILURE;;
+                       return SCI_FAILURE;
                }
                return SCI_SUCCESS;
        case SCI_PHY_SUB_AWAIT_SATA_SPEED_EN:
index 83035bd1c489545f7bfcec76b1c5b90c1bafcd15..6825772cfd6a16199ff8b8ab1f53e85ada6b62cb 100644 (file)
@@ -42,7 +42,6 @@
  * USA.
  */
 
-#include <linux/version.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/errno.h>
index 6861244249a3e543c54a68d34125f48ab5603eef..2b1101076cfe73c437473e0edea26dab7f86eff5 100644 (file)
@@ -41,7 +41,6 @@
  * USA.
  */
 
-#include <linux/version.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
index 38ed0260959d56adeb33aca2f4eb7698e1e14198..246d5fbc6e5a3c62a3264b3b81d58fce7e2fb1cf 100644 (file)
@@ -42,7 +42,6 @@
  * USA.
  */
 
-#include <linux/version.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/errno.h>
index 6abd2fcc43e2dba024ff28c8e7f993b2c82c3d28..5202de3f3d3fd2ec547c1e9836252e7ac13e9d24 100644 (file)
@@ -41,7 +41,6 @@
  * USA.
  */
 
-#include <linux/version.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
index 44d7885a4a1dd32dc3cef9460d80bcfcb65d2bfc..44b474513223b657fa40d447be8823f56110062d 100644 (file)
@@ -43,7 +43,6 @@
 #include <scsi/scsi.h>
 #include <scsi/scsi_tcq.h>
 #include <scsi/sas_ata.h>
-#include <linux/version.h>
 #include "mv_defs.h"
 
 #define DRV_NAME               "mvsas"
index d079f9a3c6b3a7fc2dedd4cc850d32fcc82b4930..b86db84d6f325c98623233d1a884ffca787b0680 100644 (file)
@@ -39,7 +39,6 @@
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/hdreg.h>
-#include <linux/version.h>
 #include <linux/io.h>
 #include <linux/slab.h>
 #include <asm/irq.h>
index f920baf3ff24638f6c28a1ecf36bc2d70916f9c4..ca496c7474e3bcb95ae3f7ae2fbdde7c74fd79ff 100644 (file)
@@ -24,7 +24,6 @@
 #ifndef _PMCRAID_H
 #define _PMCRAID_H
 
-#include <linux/version.h>
 #include <linux/types.h>
 #include <linux/completion.h>
 #include <linux/list.h>
index 909ed9ed24c0fb25663ee09d5ac864628f220843..441a1c5b8974a2ffaf9d104924cdfa58daa54713 100644 (file)
@@ -50,6 +50,7 @@ static int sg_version_num = 30534;    /* 2 digits for each component */
 #include <linux/delay.h>
 #include <linux/blktrace_api.h>
 #include <linux/mutex.h>
+#include <linux/ratelimit.h>
 
 #include "scsi.h"
 #include <scsi/scsi_dbg.h>
@@ -626,14 +627,15 @@ sg_write(struct file *filp, const char __user *buf, size_t count, loff_t * ppos)
         */
        if (hp->dxfer_direction == SG_DXFER_TO_FROM_DEV) {
                static char cmd[TASK_COMM_LEN];
-               if (strcmp(current->comm, cmd) && printk_ratelimit()) {
-                       printk(KERN_WARNING
-                              "sg_write: data in/out %d/%d bytes for SCSI command 0x%x--"
-                              "guessing data in;\n   "
-                              "program %s not setting count and/or reply_len properly\n",
-                              old_hdr.reply_len - (int)SZ_SG_HEADER,
-                              input_size, (unsigned int) cmnd[0],
-                              current->comm);
+               if (strcmp(current->comm, cmd)) {
+                       printk_ratelimited(KERN_WARNING
+                                          "sg_write: data in/out %d/%d bytes "
+                                          "for SCSI command 0x%x-- guessing "
+                                          "data in;\n   program %s not setting "
+                                          "count and/or reply_len properly\n",
+                                          old_hdr.reply_len - (int)SZ_SG_HEADER,
+                                          input_size, (unsigned int) cmnd[0],
+                                          current->comm);
                        strcpy(cmd, current->comm);
                }
        }
index 52d1ea349635dee4b5a2892fda87ea687a4cda1b..1c86cf11ab9449fd9334b840deadab2e128a1bc7 100644 (file)
@@ -109,7 +109,7 @@ static int __devinit adt7316_i2c_probe(struct i2c_client *client,
 
 static int __devexit adt7316_i2c_remove(struct i2c_client *client)
 {
-       return adt7316_remove(&client->dev);;
+       return adt7316_remove(&client->dev);
 }
 
 static const struct i2c_device_id adt7316_i2c_id[] = {
index e3e61a469bb8c2ffcf3de5f80cf607424a4863b5..6f0efe6580e75eeaac74662878d21cd5d7d41146 100644 (file)
@@ -52,7 +52,7 @@ static int ad9832_write_frequency(struct ad9832_state *st,
                                        ((addr - 3) << ADD_SHIFT) |
                                        ((regval >> 0) & 0xFF));
 
-       return spi_sync(st->spi, &st->freq_msg);;
+       return spi_sync(st->spi, &st->freq_msg);
 }
 
 static int ad9832_write_phase(struct ad9832_state *st,
index 98c98a3a0250c9c9b74a373ea346e58a15b32844..007c6c298b8bcd3f0ec3549f58ed0bc1d010748c 100644 (file)
@@ -24,7 +24,6 @@
  *
  ******************************************************************************/
 
-#include <linux/version.h>
 #include <linux/slab.h>
 #include <linux/spinlock.h>
 #include <linux/configfs.h>
index b2575d8568cc174ceadb7648c6fa9deb0a438a3f..f37e2b9cbbd7bcff8a259ae4f8128dcc438f4786 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <linux/module.h>
 #include <linux/moduleparam.h>
-#include <linux/version.h>
 #include <generated/utsrelease.h>
 #include <linux/utsname.h>
 #include <linux/init.h>
index 55bbe0847a6d351cbb2d7ee940fef3f1d194fd10..09b6f8729f918edbcd913770ef73c16485594839 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <linux/module.h>
 #include <linux/moduleparam.h>
-#include <linux/version.h>
 #include <generated/utsrelease.h>
 #include <linux/utsname.h>
 #include <linux/init.h>
index bc1b33639b8d8d0e16c2772ab859da2b63a1c1aa..99c9db003394603dd37e0ca13bae4100cfa01aca 100644 (file)
@@ -26,7 +26,6 @@
  *
  ******************************************************************************/
 
-#include <linux/version.h>
 #include <linux/string.h>
 #include <linux/parser.h>
 #include <linux/timer.h>
index 7e12341054426404ddd010d793450ca5ac0d7265..7f0cc53b45810d101b4430f0ce49c03c54d6bb24 100644 (file)
@@ -27,7 +27,6 @@
  *
  ******************************************************************************/
 
-#include <linux/version.h>
 #include <linux/string.h>
 #include <linux/parser.h>
 #include <linux/timer.h>
index 7fd3a161f7cc61cb8b95b6aca9f6af76972ba44c..0c4f783f924c450efcd82bf91a71027cbf60e508 100644 (file)
@@ -25,7 +25,6 @@
  *
  ******************************************************************************/
 
-#include <linux/version.h>
 #include <linux/slab.h>
 #include <linux/spinlock.h>
 #include <linux/list.h>
index 2b7b0da9146d3aa9ccf804975d6047afa70166e9..77d725886410973f97bcef2795813b8209224758 100644 (file)
@@ -26,7 +26,6 @@
  *
  ******************************************************************************/
 
-#include <linux/version.h>
 #include <linux/string.h>
 #include <linux/parser.h>
 #include <linux/timer.h>
index e567e129c69746b197ab0c2c4e6addfc008a3630..1ab69f32e664fdcd2b307e4dbf3173950292fc30 100644 (file)
@@ -27,7 +27,6 @@
  *
  ******************************************************************************/
 
-#include <linux/version.h>
 #include <linux/string.h>
 #include <linux/parser.h>
 #include <linux/timer.h>
index a8d6e1dee938b418b9c1164ae979acb2a950fbc6..874152aed94af013de0bc5762f0959ea25281e05 100644 (file)
@@ -32,7 +32,6 @@
 #include <linux/delay.h>
 #include <linux/timer.h>
 #include <linux/string.h>
-#include <linux/version.h>
 #include <generated/utsrelease.h>
 #include <linux/utsname.h>
 #include <linux/proc_fs.h>
index 27d4925e51c3f373914fe058630ccda7ccb121c1..662473c5404361a1c4c300ab528a1a2fba567695 100644 (file)
@@ -24,7 +24,6 @@
  *
  ******************************************************************************/
 
-#include <linux/version.h>
 #include <linux/slab.h>
 #include <linux/spinlock.h>
 #include <linux/list.h>
index 8d0c58ea6316e5ad079b75c856744362e6aafb33..0304e765158e5b6431e4b2c4c4821b6c9cd36a76 100644 (file)
@@ -26,7 +26,6 @@
  *
  ******************************************************************************/
 
-#include <linux/version.h>
 #include <linux/net.h>
 #include <linux/delay.h>
 #include <linux/string.h>
index 31e3c652527e0d3999983f022fd1a5627a99ed63..50a480db7a66df3d619e103060ca6c1be301f9b4 100644 (file)
@@ -24,7 +24,6 @@
  *
  ******************************************************************************/
 
-#include <linux/version.h>
 #include <linux/slab.h>
 #include <linux/spinlock.h>
 #include <scsi/scsi.h>
index 5654dc22f7aef0adb2cbedb301057d9e5cc4ca69..3633f6968f85361d6103360faac6456121e64b67 100644 (file)
@@ -19,7 +19,6 @@
 
 #include <linux/module.h>
 #include <linux/moduleparam.h>
-#include <linux/version.h>
 #include <generated/utsrelease.h>
 #include <linux/utsname.h>
 #include <linux/init.h>
index b15879d43e227c734aadfe3ced7d367b86359812..ea30e3fe40247d9003267c50193b556a999b438f 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <linux/module.h>
 #include <linux/moduleparam.h>
-#include <linux/version.h>
 #include <generated/utsrelease.h>
 #include <linux/utsname.h>
 #include <linux/init.h>
index c37f4cd96452e8bf6ab40d99ee45f7df84a49bcb..ea0e7afe7492fd0b77bbf886f3760710a4b5a145 100644 (file)
@@ -28,7 +28,6 @@
 
 #include <linux/module.h>
 #include <linux/moduleparam.h>
-#include <linux/version.h>
 #include <generated/utsrelease.h>
 #include <linux/utsname.h>
 #include <linux/init.h>
index dbb5eaeee39984445e673ee2ea9b8064752b3804..326921385aff973c17ce4f8598ba791c0fa94fc2 100644 (file)
@@ -19,7 +19,6 @@
 
 #include <linux/module.h>
 #include <linux/moduleparam.h>
-#include <linux/version.h>
 #include <generated/utsrelease.h>
 #include <linux/utsname.h>
 #include <linux/init.h>
index 23bc743f2a22f864674750fb2ea4d4f442ca174f..492c14d63e99c2eeb4b50909e6096efe3d02f7ea 100644 (file)
@@ -23,7 +23,7 @@
  *    1 word. If SPI master controller doesn't support sclk frequency change,
  *    then the char need be sent out one by one with some delay
  *
- * 2. Currently only RX available interrrupt is used, no need for waiting TXE
+ * 2. Currently only RX available interrupt is used, no need for waiting TXE
  *    interrupt for a low speed UART device
  */
 
index a06e2c27b43507c8bfb2ba4ed589f541bf1d51b2..ff4d40d77c30338f87043d8b6d4c98870ba1b51b 100644 (file)
@@ -2969,7 +2969,7 @@ static irqreturn_t langwell_irq(int irq, void *_dev)
                handle_port_change(dev);
        }
 
-       /* suspend interrrupt */
+       /* suspend interrupt */
        if (irq_sts & STS_SLI) {
                dev_vdbg(&dev->pdev->dev, "suspend interrupt\n");
                handle_bus_suspend(dev);
index ce1ac2bcb3149ceb227c87474c62160f275fc535..0b3b8d0462db76e5b231dab6bc5259862fe391a1 100644 (file)
@@ -335,7 +335,7 @@ static int queue_dtd(struct mv_ep *ep, struct mv_req *req)
        } else {
                /* Write dQH next pointer and terminate bit to 0 */
                dqh->next_dtd_ptr = req->head->td_dma
-                       & EP_QUEUE_HEAD_NEXT_POINTER_MASK;;
+                       & EP_QUEUE_HEAD_NEXT_POINTER_MASK;
                dqh->size_ioc_int_sts = 0;
 
                /* Ensure that updates to the QH will occur before priming. */
@@ -376,7 +376,7 @@ static int queue_dtd(struct mv_ep *ep, struct mv_req *req)
                }
        }
 done:
-       return retval;;
+       return retval;
 }
 
 static struct mv_dtd *build_dtd(struct mv_req *req, unsigned *length,
index 3dd40b4e675cd50787a04ac0850e8be18f14ca6c..a218a4de5dc90a25205104d8cb7d8de49fc7b773 100644 (file)
@@ -2481,7 +2481,7 @@ static void handle_stat1_irqs (struct net2280 *dev, u32 stat)
        mask = (1 << HIGH_SPEED) | (1 << FULL_SPEED);
 
        /* VBUS disconnect is indicated by VBUS_PIN and VBUS_INTERRUPT set.
-        * Root Port Reset is indicated by ROOT_PORT_RESET_INTERRRUPT set and
+        * Root Port Reset is indicated by ROOT_PORT_RESET_INTERRUPT set and
         * both HIGH_SPEED and FULL_SPEED clear (as ROOT_PORT_RESET_INTERRUPT
         * only indicates a change in the reset state).
         */
index 5b7919460fd2302c1d79ed7c5e5fff42f351d80e..81971fbc7ea59a695ca0f4813e776e983dd66a4a 100644 (file)
@@ -56,6 +56,7 @@ struct uvc_event
 #include <linux/usb.h> /* For usb_endpoint_* */
 #include <linux/usb/gadget.h>
 #include <linux/videodev2.h>
+#include <linux/version.h>
 #include <media/v4l2-fh.h>
 
 #include "uvc_queue.h"
index 52f8f9e513af3032bbd4692af2f5453868bb01ac..cfb58384394d5be53379b0b7cebb295983110de8 100644 (file)
@@ -16,7 +16,6 @@
 #include <linux/errno.h>
 #include <linux/list.h>
 #include <linux/mutex.h>
-#include <linux/version.h>
 #include <linux/videodev2.h>
 #include <linux/vmalloc.h>
 #include <linux/wait.h>
index e81820370d6f9cab155d1fac9ef83d4c8653c723..fe8d14cac4367ff00135d73c134931f8e01aa79a 100644 (file)
@@ -704,7 +704,7 @@ static void rxstate(struct musb *musb, struct musb_request *req)
         * most these gadgets, end of is signified either by a short packet,
         * or filling the last byte of the buffer.  (Sending extra data in
         * that last pckate should trigger an overflow fault.)  But in mode 1,
-        * we don't get DMA completion interrrupt for short packets.
+        * we don't get DMA completion interrupt for short packets.
         *
         * Theoretically, we could enable DMAReq irq (MUSB_RXCSR_DMAMODE = 1),
         * to get endpoint interrupt on every DMA req, but that didn't seem
index 40abedbc5943a26359a60087fdb54cc948cd2e7f..3524a105d042f110a2ec6ce1aa90527c0e71b8ba 100644 (file)
@@ -2006,7 +2006,6 @@ static int mos7720_ioctl(struct tty_struct *tty,
                dbg("%s (%d) TIOCSERGETLSR", __func__,  port->number);
                return get_lsr_info(tty, mos7720_port,
                                        (unsigned int __user *)arg);
-               return 0;
 
        /* FIXME: These should be using the mode methods */
        case TIOCMBIS:
index 7b50aa12275277fb4e9da7e874551d1fbb3380e6..c72abd52498324e061bc2b3256aff77048bf70f1 100644 (file)
@@ -2263,7 +2263,6 @@ static int mos7840_ioctl(struct tty_struct *tty,
        case TIOCSERGETLSR:
                dbg("%s (%d) TIOCSERGETLSR", __func__, port->number);
                return mos7840_get_lsr_info(tty, argp);
-               return 0;
 
        case TIOCGSERIAL:
                dbg("%s (%d) TIOCGSERIAL", __func__, port->number);
index 34adc4b42ceb7b564277e96e89b0869bc5563550..6fd13068481b7f6dab277acbd9760125b78fe42d 100644 (file)
@@ -25,7 +25,6 @@
 #include <linux/kthread.h>
 #include <linux/sched.h>
 #include <linux/kernel.h>
-#include <linux/version.h>
 
 #include <scsi/scsi.h>
 #include <scsi/scsi_cmnd.h>
index 157485c862c0ba1b3f76425f0e0b39a0efb962eb..a7494bf100815279be8420f435786e6d513651fc 100644 (file)
@@ -28,7 +28,6 @@
 #ifndef __UWB_INTERNAL_H__
 #define __UWB_INTERNAL_H__
 
-#include <linux/version.h>
 #include <linux/kernel.h>
 #include <linux/device.h>
 #include <linux/uwb.h>
index 44e17e9c21ae0a16e3c27b6a17e7e5be4bcab4f7..cc0ea9fe5ecf9af0ee79bfcd1b2ecdfdc4ac81da 100644 (file)
@@ -59,12 +59,11 @@ void coda_sysctl_clean(void);
 
 #define CODA_ALLOC(ptr, cast, size) do { \
     if (size < PAGE_SIZE) \
-        ptr = kmalloc((unsigned long) size, GFP_KERNEL); \
+        ptr = kzalloc((unsigned long) size, GFP_KERNEL); \
     else \
-        ptr = (cast)vmalloc((unsigned long) size); \
+        ptr = (cast)vzalloc((unsigned long) size); \
     if (!ptr) \
         printk("kernel malloc returns 0 at %s:%d\n", __FILE__, __LINE__); \
-    else memset( ptr, 0, size ); \
 } while (0)
 
 
index fe047d966dc5d9af1430dbb7596a511ce57131cb..9026fc91fe3bf34f2b8d71fd084dfac3ef1aa05c 100644 (file)
@@ -700,7 +700,7 @@ static const struct file_operations eventpoll_fops = {
        .llseek         = noop_llseek,
 };
 
-/* Fast test to see if the file is an evenpoll file */
+/* Fast test to see if the file is an eventpoll file */
 static inline int is_file_epoll(struct file *f)
 {
        return f->f_op == &eventpoll_fops;
index a159ba5a35e722457f83977bf4a82c1344528fc8..eb711060a6f2b771d4b4e68613ea4890273633dd 100644 (file)
@@ -291,14 +291,13 @@ int reiserfs_allocate_list_bitmaps(struct super_block *sb,
        for (i = 0; i < JOURNAL_NUM_BITMAPS; i++) {
                jb = jb_array + i;
                jb->journal_list = NULL;
-               jb->bitmaps = vmalloc(mem);
+               jb->bitmaps = vzalloc(mem);
                if (!jb->bitmaps) {
                        reiserfs_warning(sb, "clm-2000", "unable to "
                                         "allocate bitmaps for journal lists");
                        failed = 1;
                        break;
                }
-               memset(jb->bitmaps, 0, mem);
        }
        if (failed) {
                free_list_bitmaps(sb, jb_array);
@@ -353,11 +352,10 @@ static struct reiserfs_journal_cnode *allocate_cnodes(int num_cnodes)
        if (num_cnodes <= 0) {
                return NULL;
        }
-       head = vmalloc(num_cnodes * sizeof(struct reiserfs_journal_cnode));
+       head = vzalloc(num_cnodes * sizeof(struct reiserfs_journal_cnode));
        if (!head) {
                return NULL;
        }
-       memset(head, 0, num_cnodes * sizeof(struct reiserfs_journal_cnode));
        head[0].prev = NULL;
        head[0].next = head + 1;
        for (i = 1; i < num_cnodes; i++) {
@@ -2685,14 +2683,13 @@ int journal_init(struct super_block *sb, const char *j_dev_name,
         * dependency inversion warnings.
         */
        reiserfs_write_unlock(sb);
-       journal = SB_JOURNAL(sb) = vmalloc(sizeof(struct reiserfs_journal));
+       journal = SB_JOURNAL(sb) = vzalloc(sizeof(struct reiserfs_journal));
        if (!journal) {
                reiserfs_warning(sb, "journal-1256",
                                 "unable to get memory for journal structure");
                reiserfs_write_lock(sb);
                return 1;
        }
-       memset(journal, 0, sizeof(struct reiserfs_journal));
        INIT_LIST_HEAD(&journal->j_bitmap_nodes);
        INIT_LIST_HEAD(&journal->j_prealloc_list);
        INIT_LIST_HEAD(&journal->j_working_list);
index b6b9b1fe33b057c864ca146af150565c11de585c..7483279b482d351f44073e86e9abf57f66e3731b 100644 (file)
@@ -111,15 +111,13 @@ int reiserfs_resize(struct super_block *s, unsigned long block_count_new)
                /* allocate additional bitmap blocks, reallocate array of bitmap
                 * block pointers */
                bitmap =
-                   vmalloc(sizeof(struct reiserfs_bitmap_info) * bmap_nr_new);
+                   vzalloc(sizeof(struct reiserfs_bitmap_info) * bmap_nr_new);
                if (!bitmap) {
                        /* Journal bitmaps are still supersized, but the memory isn't
                         * leaked, so I guess it's ok */
                        printk("reiserfs_resize: unable to allocate memory.\n");
                        return -ENOMEM;
                }
-               memset(bitmap, 0,
-                      sizeof(struct reiserfs_bitmap_info) * bmap_nr_new);
                for (i = 0; i < bmap_nr; i++)
                        bitmap[i] = old_bitmap[i];
 
index f7c8f7a9ea6d5dab0e86ae3b60daf90931ec5f86..292eff1980309a7c31ea1081650cc170a2c72a0d 100644 (file)
@@ -61,12 +61,7 @@ extern void  kmem_free(const void *);
 
 static inline void *kmem_zalloc_large(size_t size)
 {
-       void *ptr;
-
-       ptr = vmalloc(size);
-       if (ptr)
-               memset(ptr, 0, size);
-       return ptr;
+       return vzalloc(size);
 }
 static inline void kmem_free_large(void *ptr)
 {
index d7adf151d3351c4fb315952231c7768a6e6c9cf7..ca768ae729b44683983c3b478cf5c3a22e1ac253 100644 (file)
@@ -6,7 +6,6 @@
 #include <linux/net.h>
 #include <linux/radix-tree.h>
 #include <linux/uio.h>
-#include <linux/version.h>
 #include <linux/workqueue.h>
 
 #include "types.h"
index 0695431905162cdc1c50aad7b23efa2e5f0810ec..81f52f2c5724c49b3c7029496379f4d9bcf11882 100644 (file)
@@ -28,7 +28,7 @@ enum packet_types {
 #define NL_STRING(pn, pr, member, len) \
        unsigned char member[len]; int member ## _len; \
        int tag_and_len ## member;
-#include "linux/drbd_nl.h"
+#include <linux/drbd_nl.h>
 
 /* declare tag-list-sizes */
 static const int tag_list_sizes[] = {
index 0f19779c463453b83725c9a0599e72218994dcb7..1ed1e616fe33f4be131390ae2348560313695a02 100644 (file)
@@ -53,7 +53,6 @@
  */
 
 #include <linux/types.h>
-#include <linux/version.h>
 
 /* Enumeration of image sizes */
 #define PSZ_SQCIF      0x00
index d5fe7af0de2ee2d5181569775565dc8a767bdaba..4c2843c0043ea205d358d7c65b086f290e09cd68 100644 (file)
@@ -120,7 +120,7 @@ static void async_run_entry_fn(struct work_struct *work)
        struct async_entry *entry =
                container_of(work, struct async_entry, work);
        unsigned long flags;
-       ktime_t calltime, delta, rettime;
+       ktime_t uninitialized_var(calltime), delta, rettime;
 
        /* 1) move self to the running queue */
        spin_lock_irqsave(&async_lock, flags);
@@ -269,7 +269,7 @@ EXPORT_SYMBOL_GPL(async_synchronize_full_domain);
 void async_synchronize_cookie_domain(async_cookie_t cookie,
                                     struct list_head *running)
 {
-       ktime_t starttime, delta, endtime;
+       ktime_t uninitialized_var(starttime), delta, endtime;
 
        if (initcall_debug && system_state == SYSTEM_BOOTING) {
                printk(KERN_DEBUG "async_waiting @ %i\n", task_pid_nr(current));
index 11cbe052b2e8bb571c49fc7ebcf1268866c0a8b4..1511dff0cfd6ff8f7e9d820456b2ac416b56d48d 100644 (file)
@@ -854,7 +854,7 @@ static int wake_futex_pi(u32 __user *uaddr, u32 uval, struct futex_q *this)
 {
        struct task_struct *new_owner;
        struct futex_pi_state *pi_state = this->pi_state;
-       u32 curval, newval;
+       u32 uninitialized_var(curval), newval;
 
        if (!pi_state)
                return -EINVAL;
@@ -916,7 +916,7 @@ static int wake_futex_pi(u32 __user *uaddr, u32 uval, struct futex_q *this)
 
 static int unlock_futex_pi(u32 __user *uaddr, u32 uval)
 {
-       u32 oldval;
+       u32 uninitialized_var(oldval);
 
        /*
         * There is no waiter, so we unlock the futex. The owner died
@@ -1576,7 +1576,7 @@ static int fixup_pi_state_owner(u32 __user *uaddr, struct futex_q *q,
        u32 newtid = task_pid_vnr(newowner) | FUTEX_WAITERS;
        struct futex_pi_state *pi_state = q->pi_state;
        struct task_struct *oldowner = pi_state->owner;
-       u32 uval, curval, newval;
+       u32 uval, uninitialized_var(curval), newval;
        int ret;
 
        /* Owner died? */
@@ -1793,7 +1793,7 @@ static void futex_wait_queue_me(struct futex_hash_bucket *hb, struct futex_q *q,
  *
  * Returns:
  *  0 - uaddr contains val and hb has been locked
- * <1 - -EFAULT or -EWOULDBLOCK (uaddr does not contain val) and hb is unlcoked
+ * <1 - -EFAULT or -EWOULDBLOCK (uaddr does not contain val) and hb is unlocked
  */
 static int futex_wait_setup(u32 __user *uaddr, u32 val, unsigned int flags,
                           struct futex_q *q, struct futex_hash_bucket **hb)
@@ -2481,7 +2481,7 @@ err_unlock:
  */
 int handle_futex_death(u32 __user *uaddr, struct task_struct *curr, int pi)
 {
-       u32 uval, nval, mval;
+       u32 uval, uninitialized_var(nval), mval;
 
 retry:
        if (get_user(uval, uaddr))
index c0cb9c4bc46d661ef5f37fda9ac8faa199a1ca23..d0324986a3b07be0a5fdf93469135b1c4a73a220 100644 (file)
@@ -117,31 +117,31 @@ config DEBUG_SECTION_MISMATCH
        help
          The section mismatch analysis checks if there are illegal
          references from one section to another section.
-         Linux will during link or during runtime drop some sections
-         and any use of code/data previously in these sections will
+         During linktime or runtime, some sections are dropped;
+         any use of code/data previously in these sections would
          most likely result in an oops.
-         In the code functions and variables are annotated with
-         __init, __devinit etc. (see full list in include/linux/init.h)
+         In the code, functions and variables are annotated with
+         __init, __devinit, etc. (see the full list in include/linux/init.h),
          which results in the code/data being placed in specific sections.
-         The section mismatch analysis is always done after a full
-         kernel build but enabling this option will in addition
-         do the following:
-         - Add the option -fno-inline-functions-called-once to gcc
-           When inlining a function annotated __init in a non-init
-           function we would lose the section information and thus
+         The section mismatch analysis is always performed after a full
+         kernel build, and enabling this option causes the following
+         additional steps to occur:
+         - Add the option -fno-inline-functions-called-once to gcc commands.
+           When inlining a function annotated with __init in a non-init
+           function, we would lose the section information and thus
            the analysis would not catch the illegal reference.
-           This option tells gcc to inline less but will also
-           result in a larger kernel.
-         - Run the section mismatch analysis for each module/built-in.o
-           When we run the section mismatch analysis on vmlinux.o we
+           This option tells gcc to inline less (but it does result in
+           a larger kernel).
+         - Run the section mismatch analysis for each module/built-in.o file.
+           When we run the section mismatch analysis on vmlinux.o, we
            lose valueble information about where the mismatch was
            introduced.
            Running the analysis for each module/built-in.o file
-           will tell where the mismatch happens much closer to the
-           source. The drawback is that we will report the same
-           mismatch at least twice.
-         - Enable verbose reporting from modpost to help solving
-           the section mismatches reported.
+           tells where the mismatch happens much closer to the
+           source. The drawback is that the same mismatch is
+           reported at least twice.
+         - Enable verbose reporting from modpost in order to help resolve
+           the section mismatches that are reported.
 
 config DEBUG_KERNEL
        bool "Kernel debugging"
@@ -835,7 +835,7 @@ config DEBUG_CREDENTIALS
 
 #
 # Select this config option from the architecture Kconfig, if it
-# it is preferred to always offer frame pointers as a config
+# is preferred to always offer frame pointers as a config
 # option on the architecture (regardless of KERNEL_DEBUG):
 #
 config ARCH_WANT_FRAME_POINTERS
index 75ca78f3a8c9bc39cb60bcad14535b7978f52e00..79fc20b65e74cce05c643402e33d70fc6add6d52 100644 (file)
@@ -14,7 +14,6 @@
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/kallsyms.h>
-#include <linux/version.h>
 #include <linux/types.h>
 #include <linux/mutex.h>
 #include <linux/proc_fs.h>
index db040ce3fa73a328a118a93097d6e5062c16409d..5acf9bb10968caa97ec123ca464906fff4de42bc 100644 (file)
--- a/lib/idr.c
+++ b/lib/idr.c
@@ -860,7 +860,7 @@ EXPORT_SYMBOL(ida_get_new_above);
  * and go back to the idr_pre_get() call.  If the idr is full, it will
  * return %-ENOSPC.
  *
- * @id returns a value in the range %0 ... %0x7fffffff.
+ * @p_id returns a value in the range %0 ... %0x7fffffff.
  */
 int ida_get_new(struct ida *ida, int *p_id)
 {
index 39d216d535eaed26ff926dbf403de24d744e69a6..6bdc67dbbc28920c36d0511057071d7229f58e39 100644 (file)
@@ -513,11 +513,10 @@ int swap_cgroup_swapon(int type, unsigned long max_pages)
        length = DIV_ROUND_UP(max_pages, SC_PER_PAGE);
        array_size = length * sizeof(void *);
 
-       array = vmalloc(array_size);
+       array = vzalloc(array_size);
        if (!array)
                goto nomem;
 
-       memset(array, 0, array_size);
        ctrl = &swap_cgroup_ctrl[type];
        mutex_lock(&swap_cgroup_mutex);
        ctrl->length = length;
index b55699cd9067c31721866bb3ef4c1660a1177f06..9fdfce7ba4039a19026d39db3bae3c6f0bd18f97 100644 (file)
@@ -1416,7 +1416,7 @@ static inline bool should_reclaim_stall(unsigned long nr_taken,
        if (sc->reclaim_mode & RECLAIM_MODE_SINGLE)
                return false;
 
-       /* If we have relaimed everything on the isolated list, no stall */
+       /* If we have reclaimed everything on the isolated list, no stall */
        if (nr_freed == nr_taken)
                return false;
 
index b0869fe3633b713cbf6327e48b653ae5473c715c..71441b934ffd5c4a3381a10c80de251554852f2e 100644 (file)
@@ -776,12 +776,11 @@ static int xt_jumpstack_alloc(struct xt_table_info *i)
 
        size = sizeof(void **) * nr_cpu_ids;
        if (size > PAGE_SIZE)
-               i->jumpstack = vmalloc(size);
+               i->jumpstack = vzalloc(size);
        else
-               i->jumpstack = kmalloc(size, GFP_KERNEL);
+               i->jumpstack = kzalloc(size, GFP_KERNEL);
        if (i->jumpstack == NULL)
                return -ENOMEM;
-       memset(i->jumpstack, 0, size);
 
        i->stacksize *= xt_jumpstack_multiplier;
        size = sizeof(void *) * i->stacksize;
index cd67026be2d55a709e0965b81d11a5df004303d1..51c868923f64d6a0e92fd741d73cd258fcc78089 100644 (file)
@@ -375,23 +375,21 @@ static int rds_ib_setup_qp(struct rds_connection *conn)
                goto out;
        }
 
-       ic->i_sends = vmalloc_node(ic->i_send_ring.w_nr * sizeof(struct rds_ib_send_work),
+       ic->i_sends = vzalloc_node(ic->i_send_ring.w_nr * sizeof(struct rds_ib_send_work),
                                   ibdev_to_node(dev));
        if (!ic->i_sends) {
                ret = -ENOMEM;
                rdsdebug("send allocation failed\n");
                goto out;
        }
-       memset(ic->i_sends, 0, ic->i_send_ring.w_nr * sizeof(struct rds_ib_send_work));
 
-       ic->i_recvs = vmalloc_node(ic->i_recv_ring.w_nr * sizeof(struct rds_ib_recv_work),
+       ic->i_recvs = vzalloc_node(ic->i_recv_ring.w_nr * sizeof(struct rds_ib_recv_work),
                                   ibdev_to_node(dev));
        if (!ic->i_recvs) {
                ret = -ENOMEM;
                rdsdebug("recv allocation failed\n");
                goto out;
        }
-       memset(ic->i_recvs, 0, ic->i_recv_ring.w_nr * sizeof(struct rds_ib_recv_work));
 
        rds_ib_recv_init_ack(ic);
 
index 3dfc47134e51e9cbee67aab2490360927ff7c0f4..0b3e35c9ef08552b4b67f62479895ad826388523 100755 (executable)
@@ -2932,11 +2932,11 @@ sub process {
                                }
                        }
                        if ($level == 0 && $block =~ /^\s*\{/ && !$allowed) {
-                               my $herectx = $here . "\n";;
+                               my $herectx = $here . "\n";
                                my $cnt = statement_rawlines($block);
 
                                for (my $n = 0; $n < $cnt; $n++) {
-                                       $herectx .= raw_line($linenr, $n) . "\n";;
+                                       $herectx .= raw_line($linenr, $n) . "\n";
                                }
 
                                WARN("BRACES",