15 Jan, 2009

6 commits

  • * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (29 commits)
    powerpc/83xx: Move mcu_mpc8349emitx driver out of drivers/i2c/chips/
    powerpc/83xx: Make serial ports work on MPC8315E-RDB w/ FSL U-Boots
    powerpc/e500mc: Doorbells need to be taken w/exceptions disabled
    powerpc: Enable PS3 options and QPACE in ppc64_defconfig
    powerpc/powermac: Fix occasional SMP boot failure
    powerpc/cacheinfo: Rename cache_dir per-cpu variable
    hvc_console: Use kzalloc() instead of kmalloc() + memset()
    hvc_console: Do not set low_latency when using interrupts
    hvc_console: Call free_irq() only if request_irq() was successful
    hvc_console: Change an mb() to smp_mb() and add some comments
    powerpc: Cleanup from l64 to ll64 change: drivers/net
    powerpc: Cleanup from l64 to ll64 change: drivers/char
    powerpc: Cleanup from l64 to ll64 change: arch code
    powerpc: Change u64/s64 to a long long integer type
    powerpc/kexec: Check crash_base for relocatable kernel
    powerpc: Make dummy section a valid note header
    Xilinx: SPI: updated driver for device tree
    drivers/of: Add the of_find_i2c_device_by_node function.
    powerpc/xsysace: add compatible string for non-ipcore instance
    powerpc/mpc52xx: remove dead code from GPIO driver
    ...

    Linus Torvalds
     
  • * 'syscalls' of git://git390.osdl.marist.edu/pub/scm/linux-2.6: (44 commits)
    [CVE-2009-0029] s390 specific system call wrappers
    [CVE-2009-0029] System call wrappers part 33
    [CVE-2009-0029] System call wrappers part 32
    [CVE-2009-0029] System call wrappers part 31
    [CVE-2009-0029] System call wrappers part 30
    [CVE-2009-0029] System call wrappers part 29
    [CVE-2009-0029] System call wrappers part 28
    [CVE-2009-0029] System call wrappers part 27
    [CVE-2009-0029] System call wrappers part 26
    [CVE-2009-0029] System call wrappers part 25
    [CVE-2009-0029] System call wrappers part 24
    [CVE-2009-0029] System call wrappers part 23
    [CVE-2009-0029] System call wrappers part 22
    [CVE-2009-0029] System call wrappers part 21
    [CVE-2009-0029] System call wrappers part 20
    [CVE-2009-0029] System call wrappers part 19
    [CVE-2009-0029] System call wrappers part 18
    [CVE-2009-0029] System call wrappers part 17
    [CVE-2009-0029] System call wrappers part 16
    [CVE-2009-0029] System call wrappers part 15
    ...

    Linus Torvalds
     
  • Add swab.h to kbuild.asm and remove the individual entries from
    each arch, mark as unifdef as some arches have some kernel-only
    bits inside.

    Signed-off-by: Harvey Harrison
    Signed-off-by: Linus Torvalds

    Harvey Harrison
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6:
    IDE: fix sparse signed-ness errors with host->host_busy
    ide: fix suspend regression
    tx4938ide: Fix build error due to read_sff_dma_status moving
    ide: remove unused CONFIG_BLK_DEV_IDE_AU1XXX_SEQTS_PER_RQ
    sl82c105: remove dead code
    via82cxxx: fix cable warning message
    ide: can't use SSD/non-rotational queue flag for all CFA devices
    it821x.c: use dev->revision instead of pci_read_config_byte
    it821x: Add ultra_mask quirk for Vortex86SX
    ide: fix accidental LOCKDEP breakage caused by local_irq_set() removal

    Linus Torvalds
     
  • The host_busy field in struct ide_host defaults to a
    signed-long, where most arch's test_and_set_bit_*
    macros use an unsigned long.

    Change to using an unsigned long, which on ARM removes
    the following sparse errors:

    drivers/ide/ide-io.c:681:8: warning: incorrect type in argument 2 (different signedness)
    drivers/ide/ide-io.c:681:8: expected unsigned long volatile *p
    drivers/ide/ide-io.c:681:8: got long volatile *
    drivers/ide/ide-io.c:681:8: warning: incorrect type in argument 2 (different signedness)
    drivers/ide/ide-io.c:681:8: expected unsigned long volatile *p
    drivers/ide/ide-io.c:681:8: got long volatile *
    drivers/ide/ide-io.c:695:3: warning: incorrect type in argument 2 (different signedness)
    drivers/ide/ide-io.c:695:3: expected unsigned long volatile *p
    drivers/ide/ide-io.c:695:3: got long volatile *
    drivers/ide/ide-io.c:695:3: warning: incorrect type in argument 2 (different signedness)
    drivers/ide/ide-io.c:695:3: expected unsigned long volatile *p
    drivers/ide/ide-io.c:695:3: got long volatile *
    drivers/ide/ide-io.c:695:3: warning: incorrect type in argument 2 (different signedness)
    drivers/ide/ide-io.c:695:3: expected unsigned long volatile *p
    drivers/ide/ide-io.c:695:3: got long volatile *
    drivers/ide/ide-io.c:695:3: warning: incorrect type in argument 2 (different signedness)
    drivers/ide/ide-io.c:695:3: expected unsigned long volatile *p
    drivers/ide/ide-io.c:695:3: got long volatile *
    drivers/ide/ide-io.c:695:3: warning: incorrect type in argument 2 (different signedness)
    drivers/ide/ide-io.c:695:3: expected unsigned long volatile *p
    drivers/ide/ide-io.c:695:3: got long volatile *
    drivers/ide/ide-io.c:695:3: warning: incorrect type in argument 2 (different signedness)
    drivers/ide/ide-io.c:695:3: expected unsigned long volatile *p
    drivers/ide/ide-io.c:695:3: got long volatile *
    drivers/ide/ide-io.c:695:3: warning: incorrect type in argument 2 (different signedness)
    drivers/ide/ide-io.c:695:3: expected unsigned long volatile *p
    drivers/ide/ide-io.c:695:3: got long volatile *
    drivers/ide/ide-io.c:695:3: warning: incorrect type in argument 2 (different signedness)
    drivers/ide/ide-io.c:695:3: expected unsigned long volatile *p
    drivers/ide/ide-io.c:695:3: got long volatile *

    Signed-off-by: Ben Dooks
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Ben Dooks
     
  • On Vortex86SX with IDE controller revision 0x11 ultra DMA must be
    disabled. This patch was tested by DMP and seems to work.

    It is a cleaned up version of their older Kernel patch:
    http://www.dmp.com.tw/tech/vortex86sx/patch-2.6.24-DMP.gz

    Tested-by: Shawn Lin
    Signed-off-by: Brandon Philips
    Cc: Alan Cox
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Brandon Philips
     

14 Jan, 2009

9 commits


13 Jan, 2009

8 commits

  • Benjamin Herrenschmidt
     
  • …/git/tip/linux-2.6-tip

    * 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    sparc64: Fix cpumask related build failure
    smp_call_function_single(): be slightly less stupid, fix
    smp_call_function_single(): be slightly less stupid
    rcu: fix bug in rcutorture system-shutdown code

    Linus Torvalds
     
  • * 'for-next' of git://git.o-hand.com/linux-mfd:
    mfd: Fix twl4030-core build
    mfd: Ensure sm501 GPIO pin mode is GPIO when configured
    mfd: dm355 evm MMC/SD card detection
    regulator: PCF50633 pmic driver
    input: PCF50633 input driver
    power_supply: PCF50633 battery charger driver
    rtc: PCF50633 rtc driver
    mfd: PCF50633 gpio support
    mfd: PCF50633 adc driver
    mfd: PCF50633 core driver

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (37 commits)
    ucc_geth: use correct UCCE macros
    net_dma: acquire/release dma channels on ifup/ifdown
    cxgb3: Keep LRO off if disabled when interface is down
    sfc: SFT9001: Fix condition for LNPGA power-off
    dccp ccid-3: Fix RFC reference
    smsc911x: register irq with device name, not driver name
    smsc911x: fix smsc911x_reg_read compiler warning
    forcedeth: napi schedule lock fix
    net: fix section mismatch warnings in dccp/ccids/lib/tfrc.c
    forcedeth: remove mgmt unit for mcp79 chipset
    qlge: Remove dynamic alloc of rx ring control blocks.
    qlge: Fix schedule while atomic issue.
    qlge: Remove support for device ID 8000.
    qlge: Get rid of split addresses in hardware control blocks.
    qlge: Get rid of volatile usage for shadow register.
    forcedeth: version bump and copyright
    forcedeth: xmit lock fix
    netdev: missing validate_address hooks
    netdev: add missing set_mac_address hook
    netdev: gianfar: add MII ioctl handler
    ...

    Linus Torvalds
     
  • * 'for_2.6.29' of git://git.kernel.org/pub/scm/linux/kernel/git/kkeil/ISDN-2.6:
    Fix small typo
    misdn: indentation and braces disagree - add braces
    misdn: one handmade ARRAY_SIZE converted
    drivers/isdn/hardware/mISDN: move a dereference below a NULL test
    indentation & braces disagree - add braces
    Make parameter debug writable
    BUGFIX: used NULL pointer at ioctl(sk,IMGETDEVINFO,&devinfo) when devinfo.id not registered

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k: (30 commits)
    m68k: Fix --build-id breakage for sun3
    m68k: Wire up sys_restart_syscall
    fbdev: Kill Atari vblank cursor blinking
    m68k: zorro - Use %pR to print resources
    m68k: dio - Kill resource_size_t format warnings
    m68k: dmasound - Kill warn_unused_result warnings
    m68k: zorro - Kill warn_unused_result warnings
    m68k: dio - Kill warn_unused_result warnings
    m68k: atafb - Kill warn_unused_result warnings
    m68k: amiserial - Kill warn_unused_result warnings
    m68k: ser_a2232 - Kill warn_unused_result warnings
    m68k: vme_scc - Kill warn_unused_result warnings
    m68k: sun3 core - Kill warn_unused_result warnings
    m68k: mvme147 core - Kill warn_unused_result warnings
    m68k: mac core - Kill warn_unused_result warnings
    m68k: hp300 core - Kill warn_unused_result warnings
    m68k: atari core - Kill warn_unused_result warnings
    m68k: apollo core - Kill warn_unused_result warnings
    m68k: amiga core - Kill warn_unused_result warnings
    m68k: Kill several external declarations in source files
    ...

    Linus Torvalds
     
  • Make restart blocks working, required for proper syscall restarting.

    Signed-off-by: Andreas Schwab
    Signed-off-by: Geert Uytterhoeven

    Andreas Schwab
     
  • warning: ignoring return value of 'device_register', declared with attribute
    warn_unused_result
    warning: ignoring return value of 'device_create_file', declared with
    attribute warn_unused_result

    Signed-off-by: Geert Uytterhoeven

    Geert Uytterhoeven
     

12 Jan, 2009

2 commits

  • Takashi Iwai
     
  • daxtar example # modprobe hfcsusb
    daxtar example # modprobe mISDN_l1loop
    daxtar example # ./misdnportinfo
    Found 3 devices
    id: 0
    Dprotocols: 00000006
    Bprotocols: 0000000e
    protocol: 0
    nrbchan: 2
    name: HFC-S_USB.1
    id: 1
    Dprotocols: 00000006
    Bprotocols: 0000000e
    protocol: 0
    nrbchan: 2
    name: mISDN_l1loop.1
    id: 2
    Dprotocols: 00000006
    Bprotocols: 0000000e
    protocol: 0
    nrbchan: 2
    name: mISDN_l1loop.2
    daxtar example # rmmod hfcsusb
    daxtar example # ./misdnportinfo
    Found 2 devices
    *Segmentation* *fault*

    dmesg:

    [ 9914.939718] BUG: unable to handle kernel NULL pointer dereference at 000000d4
    [ 9914.939721] IP: [] :mISDN_core:get_mdevice+0x19/0x22
    [ 9914.939729] *pde = 00000000
    [ 9914.939732] Oops: 0000 [#14] PREEMPT SMP
    [ 9914.939734] Modules linked in: mISDN_l1loop mISDN_core vmnet vmblock vmci vmmon coretemp w83627ehf hwmon_vid rfcomm l2cap blue
    tooth usbhid snd_usb_audio snd_usb_lib snd_rawmidi snd_hwdep fuse nvidia(P) uhci_hcd i2c_i801 ehci_hcd snd_hda_intel atl1 usbcore i2c_core parport_seria
    l [last unloaded: hfcsusb]
    [ 9914.939751] Pid: 29618, comm: misdnportinfo Tainted: P D (2.6.27.3 #5)
    [ 9914.939753] EIP: 0060:[] EFLAGS: 00210246 CPU: 0
    [ 9914.939758] EIP is at get_mdevice+0x19/0x22 [mISDN_core]
    [ 9914.939760] EAX: 00000000 EBX: f8fa791c ECX: f6afaa58 EDX: f7960cf4
    [ 9914.939762] ESI: 80044944 EDI: bfc2e62c EBP: bfc2e62c ESP: f5adbef4
    [ 9914.939763] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
    [ 9914.939765] Process misdnportinfo (pid: 29618, ti=f5ada000 task=f6bec430 task.ti=f5ada000)
    [ 9914.939767] Stack: f8f9f4e0 00000000 f8f9f867 bfc2e62c 0000000a c02461e8 00200246 c042dde8
    [ 9914.939771] 00000003 c042dde4 00000000 00000001 00200082 c0114775 00000000 00000000
    [ 9914.939775] 00000003 f7088010 00200282 f8fa791c 80044944 bfc2e62c bfc2e62c c02f6615
    [ 9914.939780] Call Trace:
    [ 9914.939782] [] _get_mdevice+0x0/0x18 [mISDN_core]
    [ 9914.939789] [] base_sock_ioctl+0x7a/0x129 [mISDN_core]
    [ 9914.939789] [] opost+0x171/0x182
    [ 9914.939789] [] __wake_up+0x29/0x39
    [ 9914.939789] [] sock_ioctl+0x1b5/0x1d9
    [ 9914.939789] [] sock_ioctl+0x0/0x1d9
    [ 9914.939789] [] vfs_ioctl+0x1c/0x5d
    [ 9914.939789] [] do_vfs_ioctl+0x23e/0x24e
    [ 9914.939789] [] sys_ioctl+0x2c/0x45
    [ 9914.939789] [] sysenter_do_call+0x12/0x21
    [ 9914.939789] [] pci_fixup_i450gx+0x4e/0x56
    [ 9914.939789] =======================
    [ 9914.939789] Code: 00 68 02 f0 f9 f8 e8 ae b4 2c c7 8b 44 24 04 5a 59 c3 83 ec 04 31 d2 89 04 24 89 e1 b8 ac df fa f8 68 e0 f4
    f9 f8 e8 4a b5 2c c7 80 d4 00 00 00 5a 59 c3 53 89 cb 8d 90 9c 00 00 00 89 c8 e8
    [ 9914.939789] EIP: [] get_mdevice+0x19/0x22 [mISDN_core] SS:ESP 0068:f5adbef4
    [ 9914.939858] ---[ end trace 50e18a715b019424 ]---

    Signed-off-by: Martin Bachem
    Signed-off-by: Karsten Keil

    Martin Bachem
     

11 Jan, 2009

9 commits

  • The recent dmaengine rework removed the capability to remove dma device
    driver modules while net_dma is active. Rather than notify
    dmaengine-clients that channels are trying to be removed, we now rely on
    clients to notify dmaengine when they no longer have a need for
    channels. Teach net_dma to release channels by taking dmaengine
    references at netdevice open and dropping references at netdevice close.

    Acked-by: Maciej Sosnowski
    Signed-off-by: Dan Williams
    Signed-off-by: David S. Miller

    Dan Williams
     
  • The kernel-doc was referring to member @debufs_dentry instead of
    @debugfs_dentry.

    Reported by Randy Dunlap http://marc.info/?l=linux-netdev&m=123147942302885&w=2

    As well, escape the colon in the field's text description, as it is
    causing the generated text to be erraticly broken up (with paragraphs
    moved down). Could not find a reason why it is happening so, even when
    other field descriptions use colons and work as expected.

    Signed-off-by: Inaky Perez-Gonzalez
    Signed-off-by: David S. Miller

    Inaky Perez-Gonzalez
     
  • If you do

    smp_call_function_single(expression-with-side-effects, ...)

    then expression-with-side-effects never gets evaluated on UP builds.

    As always, implementing it in C is the correct thing to do.

    While we're there, uninline it for size and possible header dependency
    reasons.

    And create a new kernel/up.c, as a place in which to put
    uniprocessor-specific code and storage. It should mirror kernel/smp.c.

    Signed-off-by: Andrew Morton
    Signed-off-by: Ingo Molnar

    Andrew Morton
     
  • Changes from V1:
    - Removed support for suspend_enable & suspend_disable functions.

    Signed-off-by: Balaji Rao
    Cc: Andy Green
    Cc: Liam Girdwood
    Acked-by: Mark Brown
    Signed-off-by: Samuel Ortiz

    Balaji Rao
     
  • Signed-off-by: Balaji Rao
    Cc: Andy Green
    Cc: David Woodhouse
    Acked-by: Anton Vorontsov
    Signed-off-by: Samuel Ortiz

    Balaji Rao
     
  • What the PCF05633 calls as a 'GPIO' is much more than the GPIO in the linux
    sense and there are only 4 of them - which means, the gpiolib is not used
    here.

    Signed-off-by: Balaji Rao
    Cc: Andy Green
    Signed-off-by: Samuel Ortiz

    Balaji Rao
     
  • This patch adds basic support for the PCF50633 ADC. The subtractive mode
    is not supported yet.

    Since we don't have adc subsystem, it currently lives in drivers/mfd.

    Signed-off-by: Balaji Rao
    Cc: Andy Green
    Acked-by: Jonathan Cameron
    Signed-off-by: Samuel Ortiz

    Balaji Rao
     
  • This patch implements the core of the PCF50633 driver. This core driver has
    generic register read/write functions and does interrupt management for its
    sub devices.

    Signed-off-by: Balaji Rao
    Cc: Andy Green
    Signed-off-by: Samuel Ortiz

    Balaji Rao
     
  • This patch adds a per host flag that allows drivers to opt in into
    having its busses scanned in parallel.

    Drivers that do not set this flag get their ports scanned in
    the "original" sequence.

    Signed-off-by: Arjan van de Ven
    Signed-off-by: Linus Torvalds

    Arjan van de Ven
     

10 Jan, 2009

6 commits

  • * 'cpus4096-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    [IA64] fix typo in cpumask_of_pcibus()
    x86: fix x86_32 builds for summit and es7000 arch's
    cpumask: use work_on_cpu in acpi-cpufreq.c for read_measured_perf_ctrs
    cpumask: use work_on_cpu in acpi-cpufreq.c for drv_read and drv_write
    cpumask: use cpumask_var_t in acpi-cpufreq.c
    cpumask: use work_on_cpu in acpi/cstate.c
    cpumask: convert struct cpufreq_policy to cpumask_var_t
    cpumask: replace CPUMASK_ALLOC etc with cpumask_var_t
    x86: cleanup remaining cpumask_t ops in smpboot code
    cpumask: update pci_bus_show_cpuaffinity to use new cpumask API
    cpumask: update local_cpus_show to use new cpumask API
    ia64: cpumask fix for is_affinity_mask_valid()

    Linus Torvalds
     
  • The 'rb_first()', 'rb_last()', 'rb_next()' and 'rb_prev()' calls
    take a pointer to an RB node or RB root. They do not change the
    pointed objects, so add a 'const' qualifier in order to make life
    of the users of these functions easier.

    Indeed, if I have my own constant pointer &const struct my_type *p,
    and I call 'rb_next(&p->rb)', I get a GCC warning:

    warning: passing argument 1 of ‘rb_next’ discards qualifiers from pointer target type

    Signed-off-by: Artem Bityutskiy
    Signed-off-by: David Woodhouse
    Signed-off-by: Linus Torvalds

    Artem Bityutskiy
     
  • The ioctls for the generic freeze feature are below.
    o Freeze the filesystem
    int ioctl(int fd, int FIFREEZE, arg)
    fd: The file descriptor of the mountpoint
    FIFREEZE: request code for the freeze
    arg: Ignored
    Return value: 0 if the operation succeeds. Otherwise, -1

    o Unfreeze the filesystem
    int ioctl(int fd, int FITHAW, arg)
    fd: The file descriptor of the mountpoint
    FITHAW: request code for unfreeze
    arg: Ignored
    Return value: 0 if the operation succeeds. Otherwise, -1
    Error number: If the filesystem has already been unfrozen,
    errno is set to EINVAL.

    [akpm@linux-foundation.org: fix CONFIG_BLOCK=n]
    Signed-off-by: Takashi Sato
    Signed-off-by: Masayuki Hamaguchi
    Cc:
    Cc:
    Cc: Christoph Hellwig
    Cc: Dave Kleikamp
    Cc: Dave Chinner
    Cc: Alasdair G Kergon
    Cc: Al Viro
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Takashi Sato
     
  • Currently, ext3 in mainline Linux doesn't have the freeze feature which
    suspends write requests. So, we cannot take a backup which keeps the
    filesystem's consistency with the storage device's features (snapshot and
    replication) while it is mounted.

    In many case, a commercial filesystem (e.g. VxFS) has the freeze feature
    and it would be used to get the consistent backup.

    If Linux's standard filesystem ext3 has the freeze feature, we can do it
    without a commercial filesystem.

    So I have implemented the ioctls of the freeze feature.
    I think we can take the consistent backup with the following steps.
    1. Freeze the filesystem with the freeze ioctl.
    2. Separate the replication volume or create the snapshot
    with the storage device's feature.
    3. Unfreeze the filesystem with the unfreeze ioctl.
    4. Take the backup from the separated replication volume
    or the snapshot.

    This patch:

    VFS:
    Changed the type of write_super_lockfs and unlockfs from "void"
    to "int" so that they can return an error.
    Rename write_super_lockfs and unlockfs of the super block operation
    freeze_fs and unfreeze_fs to avoid a confusion.

    ext3, ext4, xfs, gfs2, jfs:
    Changed the type of write_super_lockfs and unlockfs from "void"
    to "int" so that write_super_lockfs returns an error if needed,
    and unlockfs always returns 0.

    reiserfs:
    Changed the type of write_super_lockfs and unlockfs from "void"
    to "int" so that they always return 0 (success) to keep a current behavior.

    Signed-off-by: Takashi Sato
    Signed-off-by: Masayuki Hamaguchi
    Cc:
    Cc:
    Cc: Christoph Hellwig
    Cc: Dave Kleikamp
    Cc: Dave Chinner
    Cc: Alasdair G Kergon
    Cc: Al Viro
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Takashi Sato
     
  • The code was shifting the endianness appropriately everywhere, annotate
    the structs to avoid the sparse warnings when assigning the endian types
    to the struct members, or passing them to be[16|32]_to_cpu:

    drivers/memstick/core/mspro_block.c:331:4: warning: cast to restricted __be16
    drivers/memstick/core/mspro_block.c:333:4: warning: cast to restricted __be16
    drivers/memstick/core/mspro_block.c:335:4: warning: cast to restricted __be16
    drivers/memstick/core/mspro_block.c:337:4: warning: cast to restricted __be16
    drivers/memstick/core/mspro_block.c:341:4: warning: cast to restricted __be16
    drivers/memstick/core/mspro_block.c:347:4: warning: cast to restricted __be32
    drivers/memstick/core/mspro_block.c:356:4: warning: cast to restricted __be16
    drivers/memstick/core/mspro_block.c:358:4: warning: cast to restricted __be16
    drivers/memstick/core/mspro_block.c:364:4: warning: cast to restricted __be16
    drivers/memstick/core/mspro_block.c:367:4: warning: cast to restricted __be16
    drivers/memstick/core/mspro_block.c:369:4: warning: cast to restricted __be16
    drivers/memstick/core/mspro_block.c:371:4: warning: cast to restricted __be16
    drivers/memstick/core/mspro_block.c:377:4: warning: cast to restricted __be16
    drivers/memstick/core/mspro_block.c:478:4: warning: cast to restricted __be16
    drivers/memstick/core/mspro_block.c:480:4: warning: cast to restricted __be16
    drivers/memstick/core/mspro_block.c:482:4: warning: cast to restricted __be16
    drivers/memstick/core/mspro_block.c:484:4: warning: cast to restricted __be16
    drivers/memstick/core/mspro_block.c:486:4: warning: cast to restricted __be16
    drivers/memstick/core/mspro_block.c:689:22: expected unsigned int [unsigned] [assigned] data_address
    drivers/memstick/core/mspro_block.c:689:22: got restricted __be32 [usertype]
    drivers/memstick/core/mspro_block.c:697:3: warning: cast to restricted __be32
    drivers/memstick/core/mspro_block.c:960:17: warning: incorrect type in initializer (different base types)
    drivers/memstick/core/mspro_block.c:960:17: expected unsigned short [unsigned] data_count
    drivers/memstick/core/mspro_block.c:960:17: got restricted __be16 [usertype]
    drivers/memstick/core/mspro_block.c:993:6: warning: cast to restricted __be16
    drivers/memstick/core/mspro_block.c:995:28: warning: cast to restricted __be16

    Signed-off-by: Harvey Harrison
    Cc: Alex Dubov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Harvey Harrison
     
  • Requested by C. Lameter

    Signed-off-by: Andi Kleen
    Cc: Christoph Lameter
    Cc: Andi Kleen
    Cc: Rusty Russell
    Cc: Stephen Rothwell
    Cc: Mike Travis
    Cc: Ingo Molnar
    Cc: Richard Henderson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andi Kleen