Linux 3.16.50
I'm announcing the release of the 3.16.50 kernel.
All users of the 3.16 kernel series should upgrade.
The updated 3.16.y git tree can be found at:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.16.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git
The diff from 3.16.49 is attached to this message.
Ben.
------------
Documentation/video4linux/v4l2-pci-skeleton.c | 2 +- Makefile | 3 +- arch/alpha/include/asm/types.h | 1 - arch/alpha/include/uapi/asm/types.h | 12 +- arch/arm/include/asm/kexec.h | 5 + arch/arm/kernel/iwmmxt.S | 13 + arch/arm/kernel/machine_kexec.c | 11 +- arch/arm/kernel/pj4-cp0.c | 4 + arch/arm/kernel/return_address.c | 4 - arch/arm/mach-cns3xxx/Makefile | 1 + arch/arm/mach-omap2/Kconfig | 3 - arch/arm/mach-pxa/Kconfig | 1 + arch/arm/mm/cache-l2x0.c | 111 ++--- arch/arm/plat-omap/Kconfig | 3 + arch/arm64/kernel/fpsimd.c | 2 + arch/arm64/mm/fault.c | 5 +- arch/mips/boot/elf2ecoff.c | 10 +- arch/mips/dec/int-handler.S | 18 +- arch/mips/include/asm/page.h | 3 +- arch/mips/jz4740/board-qi_lb60.c | 1 + arch/mips/jz4740/gpio.c | 1 + arch/mips/jz4740/irq.h | 2 + arch/mips/kernel/bmips_vec.S | 3 - arch/mips/pci/ops-pmcmsp.c | 12 - arch/mips/pci/ops-tx4927.c | 2 - arch/mips/sgi-ip22/Platform | 2 +- arch/powerpc/boot/Makefile | 16 +- arch/powerpc/kvm/book3s_hv.c | 2 + arch/powerpc/mm/subpage-prot.c | 2 +- arch/powerpc/platforms/pseries/reconfig.c | 1 - arch/x86/boot/compressed/misc.h | 11 +- arch/x86/crypto/sha1_avx2_x86_64_asm.S | 67 +-- arch/x86/crypto/sha1_ssse3_glue.c | 2 +- arch/x86/kernel/acpi/boot.c | 8 + arch/x86/kernel/cpu/perf_event.c | 7 +- arch/x86/kernel/entry_64.S | 2 + arch/x86/kernel/kprobes/core.c | 10 +- arch/x86/kernel/kvm.c | 6 +- arch/x86/xen/mmu.c | 2 +- arch/xtensa/kernel/xtensa_ksyms.c | 2 - arch/xtensa/mm/cache.c | 12 +- block/bio.c | 8 + drivers/ata/libata-scsi.c | 6 +- drivers/ata/pata_hpt366.c | 4 +- drivers/block/drbd/drbd_bitmap.c | 6 + drivers/block/paride/pg.c | 4 +- drivers/clk/clk-efm32gg.c | 6 +- drivers/dma/amba-pl08x.c | 4 +- drivers/gpio/gpio-tegra.c | 6 +- drivers/gpu/drm/drm_gem.c | 6 +- drivers/gpu/drm/i915/i915_debugfs.c | 5 +- drivers/gpu/drm/msm/msm_gem_submit.c | 7 +- drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 2 +- drivers/hid/usbhid/hid-core.c | 12 +- drivers/i2c/busses/i2c-ismt.c | 5 + drivers/i2c/muxes/Kconfig | 2 +- drivers/iio/adc/exynos_adc.c | 2 +- drivers/iio/adc/vf610_adc.c | 2 +- drivers/iio/imu/adis16480.c | 2 +- drivers/iio/light/tsl2563.c | 2 +- drivers/infiniband/core/cma.c | 2 + drivers/infiniband/core/uverbs_cmd.c | 5 +- drivers/infiniband/core/uverbs_main.c | 3 +- drivers/infiniband/hw/cxgb3/iwch_provider.c | 5 +- drivers/infiniband/hw/cxgb4/cq.c | 1 + drivers/infiniband/hw/mlx5/mem.c | 2 +- drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 4 +- drivers/infiniband/ulp/ipoib/ipoib_cm.c | 1 - drivers/infiniband/ulp/ipoib/ipoib_main.c | 3 +- drivers/input/joystick/analog.c | 2 +- drivers/input/mouse/trackpoint.c | 3 +- drivers/input/mouse/trackpoint.h | 3 +- drivers/input/serio/gscps2.c | 2 +- drivers/iommu/amd_iommu_init.c | 2 +- drivers/irqchip/irq-brcmstb-l2.c | 1 + drivers/isdn/hardware/mISDN/mISDNipac.c | 12 +- drivers/isdn/hardware/mISDN/w6692.c | 6 +- drivers/md/dm-bufio.c | 1 + drivers/md/dm.c | 10 - drivers/md/raid5.c | 6 +- drivers/media/platform/davinci/vpfe_capture.c | 22 +- drivers/media/rc/ir-lirc-codec.c | 2 +- drivers/message/i2o/i2o_config.c | 4 +- drivers/mfd/arizona-core.c | 4 +- drivers/mfd/arizona-i2c.c | 5 +- drivers/mfd/arizona-spi.c | 3 +- drivers/mfd/arizona.h | 4 +- drivers/mtd/maps/pmcmsp-flash.c | 4 +- drivers/mtd/maps/rbtx4939-flash.c | 2 - drivers/mtd/nand/nandsim.c | 1 + drivers/net/Kconfig | 3 + drivers/net/ethernet/amd/amd8111e.c | 19 +- drivers/net/ethernet/amd/nmclan_cs.c | 4 +- drivers/net/ethernet/broadcom/b44.c | 1 + drivers/net/ethernet/broadcom/bcmsysport.c | 4 +- drivers/net/ethernet/broadcom/genet/bcmgenet.c | 456 ++++++++++----------- drivers/net/ethernet/broadcom/genet/bcmgenet.h | 9 + drivers/net/ethernet/dec/tulip/tulip_core.c | 9 +- drivers/net/ethernet/dec/tulip/uli526x.c | 2 +- drivers/net/ethernet/dec/tulip/winbond-840.c | 2 +- drivers/net/ethernet/emulex/benet/be_main.c | 1 - drivers/net/ethernet/intel/e1000e/ich8lan.c | 13 +- drivers/net/ethernet/intel/i40e/i40e_debugfs.c | 30 +- drivers/net/ethernet/intel/i40e/i40e_txrx.c | 2 + drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 4 + drivers/net/ethernet/mellanox/mlx4/en_ethtool.c | 15 +- drivers/net/ethernet/mellanox/mlx4/en_netdev.c | 10 +- drivers/net/ethernet/mellanox/mlx4/en_tx.c | 6 +- drivers/net/ethernet/mellanox/mlx4/fw.c | 4 + drivers/net/ethernet/mellanox/mlx4/fw.h | 1 + drivers/net/ethernet/mellanox/mlx4/main.c | 2 + drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 19 +- drivers/net/ethernet/mellanox/mlx5/core/debugfs.c | 6 +- drivers/net/ethernet/neterion/vxge/vxge-main.c | 31 +- drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c | 2 +- drivers/net/ethernet/qlogic/qlge/qlge_dbg.c | 2 +- drivers/net/ethernet/realtek/r8169.c | 5 +- drivers/net/ethernet/ti/cpmac.c | 7 +- drivers/net/ethernet/xilinx/ll_temac_main.c | 2 +- drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c | 2 +- drivers/net/ethernet/xilinx/xilinx_emaclite.c | 2 +- drivers/net/hyperv/netvsc_drv.c | 9 +- drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c | 2 +- .../net/wireless/brcm80211/brcmfmac/wl_cfg80211.c | 18 +- drivers/net/wireless/hostap/hostap_hw.c | 15 +- drivers/net/wireless/iwlegacy/3945.c | 3 +- drivers/net/wireless/iwlwifi/dvm/tx.c | 2 +- drivers/net/wireless/iwlwifi/mvm/sta.c | 3 +- drivers/net/wireless/ti/wl1251/main.c | 1 + drivers/of/device.c | 2 + drivers/parisc/dino.c | 2 +- drivers/pinctrl/sunxi/pinctrl-sun4i-a10.c | 1 + drivers/platform/x86/samsung-laptop.c | 2 +- drivers/power/reset/xgene-reboot.c | 2 +- drivers/s390/net/qeth_l3_main.c | 4 +- drivers/scsi/advansys.c | 3 +- drivers/scsi/aic94xx/aic94xx_sds.c | 5 +- drivers/scsi/be2iscsi/be_main.c | 3 +- drivers/scsi/bfa/bfa_ioc.c | 22 +- drivers/scsi/ips.c | 9 +- drivers/scsi/mvsas/mv_sas.c | 4 +- drivers/scsi/scsi_tgt_if.c | 2 +- drivers/scsi/st.c | 4 +- drivers/spi/spi-atmel.c | 4 +- drivers/spi/spi-pl022.c | 2 +- drivers/spi/spi-rspi.c | 1 - drivers/spmi/spmi.c | 12 + drivers/staging/bcm/Kconfig | 1 + drivers/staging/dgnc/dgnc_tty.c | 16 +- drivers/staging/iio/adc/ad7192.c | 2 +- drivers/staging/iio/resolver/ad2s1210.c | 2 +- drivers/staging/imx-drm/imx-hdmi.c | 2 +- drivers/staging/lustre/lustre/llite/llite_lib.c | 3 +- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 2 + drivers/staging/rtl8192ee/pci.c | 4 +- drivers/staging/rtl8723au/core/rtw_wlan_util.c | 2 +- drivers/staging/vt6655/device_main.c | 10 +- drivers/staging/wlan-ng/prism2fw.c | 33 +- drivers/target/iscsi/iscsi_target.c | 1 + drivers/target/iscsi/iscsi_target_core.h | 1 + drivers/target/iscsi/iscsi_target_login.c | 7 +- drivers/tty/isicom.c | 2 +- drivers/tty/nozomi.c | 2 +- drivers/usb/class/cdc-acm.c | 3 + drivers/usb/core/config.c | 20 +- drivers/usb/core/hcd.c | 2 + drivers/usb/core/hub.c | 10 +- drivers/usb/core/quirks.c | 4 + drivers/usb/host/pci-quirks.c | 71 +++- drivers/usb/host/pci-quirks.h | 2 + drivers/usb/host/xhci-hub.c | 3 + drivers/usb/host/xhci-pci.c | 6 + drivers/usb/host/xhci-ring.c | 11 +- drivers/usb/host/xhci.c | 10 +- drivers/usb/host/xhci.h | 1 + drivers/usb/misc/usbtest.c | 5 +- drivers/usb/renesas_usbhs/common.c | 4 +- drivers/usb/renesas_usbhs/mod_gadget.c | 42 +- drivers/usb/renesas_usbhs/pipe.c | 10 + drivers/usb/renesas_usbhs/pipe.h | 1 + drivers/usb/serial/cp210x.c | 1 + drivers/usb/serial/option.c | 2 + drivers/usb/storage/isd200.c | 5 +- drivers/usb/storage/uas-detect.h | 15 +- drivers/usb/storage/uas.c | 10 +- drivers/usb/storage/unusual_uas.h | 4 +- drivers/video/fbdev/Kconfig | 3 +- fs/cifs/dir.c | 19 +- fs/cifs/smb2pdu.c | 4 +- fs/cifs/smb2pdu.h | 4 +- fs/eventpoll.c | 36 +- fs/ext4/file.c | 3 + fs/ext4/resize.c | 3 +- fs/fuse/file.c | 2 +- fs/gfs2/dir.c | 11 +- fs/nfs/client.c | 1 + fs/nfsd/nfs4xdr.c | 6 +- fs/nilfs2/btree.c | 2 +- fs/nilfs2/recovery.c | 4 +- fs/nilfs2/super.c | 5 +- fs/ocfs2/acl.c | 27 +- fs/xfs/xfs_ialloc.c | 2 +- include/asm-generic/topology.h | 6 +- include/linux/cpumask.h | 6 +- include/linux/device-mapper.h | 70 ++-- include/linux/fs.h | 4 +- include/linux/ftrace_event.h | 2 +- include/linux/gpio/driver.h | 2 +- include/linux/mlx4/device.h | 1 + include/linux/mm_types.h | 31 +- include/linux/module.h | 2 +- include/linux/mtd/map.h | 12 +- include/linux/perf_event.h | 28 +- include/linux/workqueue.h | 4 +- include/net/dst.h | 13 +- include/net/ip6_fib.h | 35 +- include/net/ip6_route.h | 2 +- include/net/ip_fib.h | 10 +- include/net/sch_generic.h | 5 +- include/net/sctp/sctp.h | 4 + include/rdma/ib_addr.h | 6 +- include/trace/ftrace.h | 7 +- include/uapi/linux/usb/ch9.h | 1 + kernel/audit_watch.c | 12 +- kernel/events/core.c | 135 +++--- kernel/fork.c | 2 +- kernel/sched/core.c | 2 +- kernel/trace/trace.c | 1 + kernel/trace/trace_event_perf.c | 4 +- kernel/trace/trace_events_filter.c | 4 + kernel/trace/trace_kprobe.c | 4 +- kernel/trace/trace_syscalls.c | 4 +- kernel/trace/trace_uprobe.c | 2 +- kernel/workqueue.c | 23 +- lib/assoc_array.c | 51 +-- lib/cpumask.c | 74 ++-- mm/hugetlb.c | 12 +- mm/mempolicy.c | 5 - mm/mprotect.c | 4 +- mm/page_alloc.c | 37 +- net/batman-adv/translation-table.c | 57 ++- net/batman-adv/types.h | 2 + net/bridge/br_device.c | 3 +- net/bridge/br_input.c | 3 +- net/bridge/br_netfilter.c | 2 +- net/caif/cfpkt_skbuff.c | 2 +- net/ceph/messenger.c | 6 +- net/core/dev.c | 23 +- net/core/dst.c | 45 +- net/core/pktgen.c | 2 +- net/ipv4/fib_frontend.c | 9 +- net/ipv4/fib_semantics.c | 27 +- net/ipv4/netfilter/ipt_CLUSTERIP.c | 4 +- net/ipv4/netfilter/nft_reject_ipv4.c | 2 + net/ipv4/route.c | 10 +- net/ipv4/udp_offload.c | 2 +- net/ipv6/addrconf.c | 2 +- net/ipv6/ip6_fib.c | 37 +- net/ipv6/ip6_tunnel.c | 2 +- net/ipv6/netfilter/nft_reject_ipv6.c | 2 + net/ipv6/output_core.c | 6 +- net/ipv6/route.c | 26 +- net/ipv6/tcp_ipv6.c | 3 +- net/ipv6/udp_offload.c | 2 +- net/ipv6/xfrm6_policy.c | 6 +- net/key/af_key.c | 48 ++- net/l2tp/l2tp_core.c | 79 ++-- net/l2tp/l2tp_core.h | 18 +- net/l2tp/l2tp_netlink.c | 72 ++-- net/mac80211/key.c | 20 +- net/netfilter/ipvs/ip_vs_xmit.c | 2 +- net/netfilter/nft_compat.c | 6 +- net/netfilter/nft_ct.c | 8 + net/netfilter/nft_reject.c | 2 + net/packet/af_packet.c | 30 +- net/sched/sch_api.c | 2 + net/sched/sch_cbq.c | 10 +- net/sched/sch_fq_codel.c | 4 +- net/sched/sch_hfsc.c | 4 +- net/sched/sch_hhf.c | 11 +- net/sched/sch_htb.c | 5 +- net/sched/sch_mq.c | 10 +- net/sched/sch_mqprio.c | 19 +- net/sched/sch_multiq.c | 9 +- net/sched/sch_netem.c | 4 +- net/sched/sch_sfq.c | 8 +- net/sched/sch_tbf.c | 5 +- net/sctp/ipv6.c | 2 +- net/xfrm/xfrm_user.c | 2 + scripts/mod/modpost.c | 34 +- security/keys/key.c | 10 + security/keys/keyctl.c | 5 + sound/core/control.c | 2 +- sound/core/seq/seq_clientmgr.c | 6 +- sound/core/seq/seq_lock.c | 4 - sound/core/seq/seq_lock.h | 12 - sound/core/seq/seq_ports.c | 7 +- sound/pci/hda/patch_conexant.c | 1 + sound/pci/hda/patch_realtek.c | 1 + sound/soc/codecs/adau1977.c | 2 +- sound/soc/fsl/fsl_sai.c | 3 +- sound/soc/fsl/fsl_ssi.c | 4 +- sound/soc/fsl/imx-audmux.c | 8 +- sound/soc/soc-pcm.c | 4 + sound/usb/card.c | 20 + sound/usb/mixer.c | 14 +- sound/usb/mixer.h | 3 + sound/usb/mixer_quirks.c | 6 + tools/perf/ui/browser.c | 2 +- 309 files changed, 1999 insertions(+), 1318 deletions(-)
A Raghavendra Rao (1):
Staging: wlan-ng: fix sparse warning in prism2fw.c
Aaron Ma (1):
Input: trackpoint - add new trackpoint firmware ID
Akinobu Mita (1):
iio: light: tsl2563: use correct event code
Alan Stern (4):
USB: Check for dropped connection before switching to full speed
USB: uas: fix bug in handling of alternate settings
usb: usbtest: fix NULL pointer dereference
USB: core: fix out-of-bounds access bug in usb_get_bos_descriptor()
Alan Swanson (1):
uas: Add US_FL_IGNORE_RESIDUE for Initio Corporation INIC-3069
Alban Bedel (1):
MIPS: Fix the build on jz4740 after removing the custom gpio.h
Alex Vesker (1):
IB/ipoib: Prevent setting negative values to max_nonsrq_conn_qp
Alexander Potapenko (1):
sctp: don't dereference ptr before leaving _sctp_walk_{params, errors}()
Andrew Morton (1):
MODULE_DEVICE_TABLE: fix some callsites
Andrey Ryabinin (1):
module: fix types of device tables aliases
Andy Lutomirski (1):
x86/asm/64: Clear AC on NMI entries
Andy Shevchenko (1):
platform/x86: samsung-laptop: Initialize loca variable
Aneesh Kumar K.V (1):
powerpc/mm/hash: Free the subpage_prot_table correctly
Anil Gurumurthy (1):
bfa: Fix indentation
Ard Biesheuvel (2):
ARM: 8221/1: PJ4: allow building in Thumb-2 mode
ARM: 8452/3: PJ4: make coprocessor access sequences buildable in Thumb2 mode
Arend Van Spriel (1):
brcmfmac: add length check in brcmf_cfg80211_escan_handler()
Arnd Bergmann (35):
staging:iio:resolver:ad2s1210 fix negative IIO_ANGL_VEL read
ARM: pxa: select both FB and FB_W100 for eseries
qlge: avoid memcpy buffer overflow
gfs2: remove IS_ERR_VALUE abuse
iio: adc: fix building on 64-bit
infiniband: mlx5: avoid a compile-time warning
ata: hpt366: fix constant cast warning
tty: nozomi: avoid a harmless gcc warning tty/isicom: fix big-endian compile warning
i2o: hide unsafe ioctl on 64-bit
dm bufio: hide bogus warning
scsi-tgt: fix type conversion warning
scsi: advansys: remove #warning message
mtd: pmcmsp: use kstrndup instead of kmalloc+strncpy
mlx5: avoid build warnings on 32-bit
mISDN: avoid arch specific __builtin_return_address call
cpmac: remove hopeless #warning
net: caif: fix misleading indentation
net: am2150: fix nmclan_cs.c shared interrupt handling
net: tulip: turn compile-time warning into dev_warn()
net: vxge: avoid unused function warnings
hostap: avoid uninitialized variable use in hfa384x_get_rid
iwlegacy: avoid warning about missing braces
brcmfmac: avoid gcc-5.1 warning
video: mx3fb: always enable BACKLIGHT_LCD_SUPPORT
staging: bcm: add 32-bit host dependency
staging: imx-drm: fix indentation warning
staging: vt6655: fix overly large stack usage
ARM: cns3xxx: shut up frame size warning
ARM: 8296/1: cache-l2x0: clean up aurora cache handling
MIPS: ip22: Fix ip28 build for modern gcc
staging: r8192ee: prorperly format warning message
mtd: cfi: reduce stack size
MIPS: jz4740: fix build error in irq.h net/xen-netback: disable on 64KB page granularity
Atsushi Nemoto (2):
mtd: maps: rbtx4939-flash: delete an unused variable in rbtx4939_flash_remove
MIPS: TXx9: Delete an unused variable in tx4927_pcibios_setup
Banajit Goswami (1):
ASoC: do not close shared backend dailink
Bart Van Assche (2):
IB/cma: Fix a race condition in iboe_addr_get_sgid()
dm: fix printk() rate limiting code
Ben Hutchings (4):
dst: Increase alignment of metrics to allow extra flag on pointers
alpha: uapi: Add support for __SANE_USERSPACE_TYPES__
ALSA: seq: Enable 'use' locking in all configurations Linux 3.16.50
Bjorn Andersson (1):
spmi: Include OF based modalias in device uevent
Bodo Stroesser (1):
scsi: st: fix blk_get_queue usage
Charles Milette (1):
staging: rtl8188eu: add RNX-N150NUB support
Chen Yu (1):
PM/hibernate: touch NMI watchdog when creating snapshot
Chris Gorman (1):
i2c: mux: pinctrl: mention correct module name in Kconfig help text
Chris Wilson (1):
drm: Release driver tracking before making the object available again
Chuck Lever (1):
nfsd: Limit end of page list when decoding NFSv4 WRITE
Chunyu Hu (1):
tracing: Fix kmemleak in instance_rmdir
Colin Ian King (3):
usb: storage: return on error to avoid a null pointer dereference
netxen: fix incorrect loop counter decrement
Staging: iio: adc: fix indent on break statement
Cong Wang (1):
wl1251: add a missing spin_lock_init()
Dan Carpenter (11):
libceph: potential NULL dereference in ceph_msg_data_create()
libata: array underflow in ata_find_dev()
cxgb4: Fix error codes in c4iw_create_cq() IB/cxgb3: Fix error codes in iwch_alloc_mr() RDMA/ocrdma: Fix an error code in ocrdma_alloc_pd() RDMA/ocrdma: Fix error codes in ocrdma_create_srq() drm/msm: fix an integer overflow test
x86/ldt: Fix off by one in get_segment_base()
paride: fix the "verbose" module param
drm/i915: cleanup some indenting
Staging: lustre: missing curly braces in ll_setattr_raw()
Dave Martin (1):
arm64: fpsimd: Prevent registers leaking across exec
David Howells (2):
assoc_array: Fix a buggy node-splitting case
KEYS: don't let add_key() update an uninstantiated key
David Malcolm (1):
drivers/net/ethernet/dec/tulip/uli526x.c: fix misleading indentation in uli526x_timer
David Miller (1):
netfilter: Fix switch statement warnings with recent gcc.
David S. Miller (1):
netfilter; Add some missing default cases to switch statements in nft_reject.
Doug Berger (2):
net: bcmgenet: Fix unmapping of fragments in bcmgenet_xmit()
net: bcmgenet: Free skb after last Tx frag
Dragos Bogdan (1):
iio: imu: adis16480: Fix acceleration scale factor for adis16480
Emmanuel Grumbach (1):
iwlwifi: dvm: prevent an out of bounds access
Eric Biggers (1):
KEYS: prevent KEYCTL_READ on negative key
Eric Dumazet (6):
net: reduce skb_warn_bad_offload() noise
net: skb_needs_check() accepts CHECKSUM_NONE for tx
af_key: do not use GFP_KERNEL in atomic contexts
ipv4: add reference counting to metrics
ipv4: fix NULL dereference in free_fib_info_rcu()
net_sched: fix error recovery at qdisc creation
Feras Daoud (1):
IB/ipoib: Set IPOIB_NEIGH_TBL_FLUSH after flushed completion initialization
Florian Fainelli (12):
net: bcmgenet: check harder for out of memory conditions
net: bcmgenet: fix off-by-one in incrementing read pointer
net: bcmgenet: update ring producer index and buffer count in xmit
b44: Initialize 64-bit stats seqcount
i40e: Initialize 64-bit statistics TX ring seqcount
ixgbe: Initialize 64-bit stats seqcounts
irqchip: brcmstb-l2: Define an irq_pm_shutdown function
net: systemport: Be drop monitor friendly
net: bcmgenet: Be drop monitor friendly
net: systemport: Free DMA coherent descriptors on errors
r8169: Do not increment tx_dropped in TX ring cleaning
r8169: Be drop monitor friendly
Geert Uytterhoeven (2):
Input: gscps2 - fix MODULE_DEVICE_TABLE invocation
spi: rspi: Remove unused variable in rspi_rz_transfer_one()
Gerald Schaefer (1):
mm/hugetlb: improve locking in dissolve_free_huge_pages()
Greg Kroah-Hartman (1):
USB: fix out-of-bounds in usb_set_configuration
Guillaume Nault (8):
l2tp: initialise session's refcount before making it reachable
l2tp: define parameters of l2tp_session_get*() as "const"
l2tp: hold tunnel while looking up sessions in l2tp_netlink
l2tp: hold tunnel while processing genl delete command
l2tp: hold tunnel while handling genl tunnel updates
l2tp: hold tunnel while handling genl TUNNEL_GET commands
l2tp: remove useless duplicate session detection in l2tp_netlink
l2tp: hold tunnel used while creating sessions with netlink
Hannes Reinecke (1):
aic94xx: Skip reading user settings if flash is not found
Hector Martin (1):
USB: serial: option: add D-Link DWM-222 device ID
Icenowy Zheng (1):
pinctrl: sunxi: add a missing function of A10/A20 pinctrl driver
Inbar Karmy (1):
net/mlx4_en: Fix wrong indication of Wake-on-LAN (WoL) support
Ingo Molnar (1):
x86/boot: Add CONFIG_PARAVIRT_SPINLOCKS quirk to arch/x86/boot/compressed/misc.h
Ismail, Mustafa (2):
RDMA/uverbs: Fix the check for port number
RDMA/core: Initialize port_num in qp_attr
Iván Briano (1):
net/packet: Fix Tx queue selection for AF_PACKET
Jaejoong Kim (1):
HID: usbhid: fix out-of-bounds bug
James Bottomley (1):
ips: remove pointless #warning
Jan Kara (3):
ocfs2: don't clear SGID when inheriting ACLs
ext4: fix SEEK_HOLE/SEEK_DATA for blocksize < pagesize
audit: Fix use after free in audit_remove_watch_rule()
Jeff Kirsher (2):
am2150: Update nmclan_cs.c to use update PCMCIA API
e1000e: fix call to do_div() to use u64 arg
Jerry Lee (1):
ext4: fix overflow caused by missing cast in ext4_resize_fs()
Jiahau Chang (1):
xhci: Bad Ethernet performance plugged in ASM1042A host
Jin Yao (1):
perf annotate: Fix broken arrow at row 0 connecting jmp instruction to its target
Jiri Olsa (1):
perf/core: Fix locking for children siblings group read
Joe Perches (2):
dm: convert DM printk macros to pr_<level> macros
i40e: Reduce stack in i40e_dbg_dump_desc
Joerg Roedel (1):
iommu/amd: Fix schedule-while-atomic BUG in initialization code
Johan Hovold (1):
USB: cdc-acm: add device-id for quirky printer
Johannes Berg (1):
mac80211: accept key reinstall without changing anything
Juergen Gross (1):
x86/xen: fix upper bound of pmd loop in xen_cleanhighmap()
Julian Wiedmann (1):
s390/qeth: fix L3 next-hop in xmit qeth hdr
Kai-Heng Feng (1):
usb: quirks: Add no-lpm quirk for Moshi USB to Ethernet Adapter
Kalderon, Michal (1):
IB/cma: Fix reference count leak when no ipv4 addresses are set
Kasin Li (1):
drm/msm: Fix potential buffer overflow issue
Kevin Cernekee (1):
MIPS: BMIPS: Fix ".previous without corresponding .section" warnings
Konrad Zapalowicz (1):
staging: dgnc: Fix frame size is larger than 1024B
Konstantin Khlebnikov (2):
net_sched/sfq: update hierarchical backlog when drop packet
net_sched: fix order of queue length updates in qdisc_replace()
Lars Ellenberg (1):
drbd: avoid redefinition of BITS_PER_PAGE
Laurent Vivier (1):
powerpc/pseries: Fix of_node_put() underflow during reconfig remove
Lee Jones (1):
mfd: arizona: Rid data size incompatibility warn when building for 64bit
Leon Romanovsky (2):
IB/ipoib: Remove double pointer assigning
RDMA/uverbs: Prevent leak of reserved field
Linus Lüssing (1):
batman-adv: fix TT sync flag inconsistencies
Linus Torvalds (2):
Clarify (and fix) MAX_LFS_FILESIZE macros
Disable "frame-address" warning
Linus Walleij (1):
gpio: drop retval check enforcing from gpiochip_remove()
Luis de Bethencourt (2):
mvsas: fix misleading indentation
staging: rtl8723au: core: rtw_wlan_util: fix misleading indentation
Maciej W. Rozycki (1):
MIPS: DEC: Fix an int-handler.S CPU_DADDI_WORKAROUNDS regression
Mahesh Bandewar (1):
ipv4: initialize fib_trie prior to register_netdev_notifier call.
Manuel Schölling (1):
xilinx: Fix compiler warning
Mark Brown (7):
power/reset: xgene-reset: Fix prototype of xgene_restart()
Input: joystick - use get_cycles on ARMv8
dma: pl08x: Use correct specifier for size_t values
ASoC: imx-audmux: Use uintptr_t for port numbers
ASoC: adau1977: Fix truncation warning on 64 bit architectures spi/atmel: Fix pointer to int conversion warnings on 64 bit builds spi/pl022: Explicitly truncate large bitmask
Mark Rutland (2):
arm64: mm: abort uaccess retries upon fatal signal perf/core: Fix group {cpu,task} validation
Martin KaFai Lau (1):
ipv6: Add rt6_get_cookie() function
Masami Hiramatsu (1):
kprobes/x86: Release insn_slot in failure path
Mateusz Jurczyk (1):
fuse: initialize the flock flag in fuse_file on allocation
Mathias Krause (2):
xfrm_user: fix info leak in xfrm_notify_sa()
xfrm_user: fix info leak in build_aevent()
Mathias Nyman (2):
xhci: Fix NULL pointer dereference when cleaning up streams for removed host
xhci: fix 20000ms port resume timeout
Max Filippov (3):
xtensa: fix cache aliasing handling code for WT cache
xtensa: don't limit csum_partial export by CONFIG_NET
xtensa: mm/cache: add missing EXPORT_SYMBOLs
Michael Ellerman (1):
powerpc/boot: Fix 64-bit boot wrapper build with non-biarch compiler
Michael Gugino (1):
staging: rtl8188eu: add TL-WN722N v2 support
Michał Mirosław (1):
gpio: tegra: fix unbalanced chained_irq_enter/exit
Moshe Shemesh (1):
net/mlx5: Fix command bad flow on command entry allocation failure
Nadav Amit (1):
mm: migrate: prevent racy access to tlb_flush_pending
Naftali Goldstein (1):
iwlwifi: mvm: set the RTS_MIMO_PROT bit in flag mask when sending sta to fw
Nicholas Bellinger (1):
iscsi-target: Fix iscsi_np reset hung task during parallel delete
Nicolin Chen (1):
ASoC: fsl_sai: Set SYNC bit of TCR2 to Asynchronous Mode
Nikolay Aleksandrov (9):
net: bridge: fix dest lookup when vlan proto doesn't match
sch_htb: fix crash on init failure
sch_multiq: fix double free on init failure
sch_hhf: fix null pointer dereference on init failure
sch_hfsc: fix null pointer deref and double free on init failure
sch_cbq: fix null pointer dereferences on init failure
sch_fq_codel: avoid double free on init failure
sch_netem: avoid null pointer deref on init failure
sch_tbf: fix two null pointer dereferences on init failure
Nikolay Borisov (1):
ARM: kexec: Make .text R/W in machine_kexec
Ofer Heifetz (1):
md/raid5: add thread_group worker async_tx_issue_pending_all
Oleg Nesterov (1):
epoll: fix race between ep_poll_callback(POLLFREE) and ep_free()/ep_remove()
Oliver O'Halloran (1):
mm/init: fix zone boundary creation
Omar Sandoval (1):
xfs: fix inobt inode allocation search optimization
Paul Burton (1):
net: ti: cpmac: Fix compiler warning due to type confusion
Paul Gortmaker (2):
modpost: expand pattern matching to support substring matches
modpost: don't emit section mismatch warnings for compiler optimizations
Paul Mackerras (1):
KVM: PPC: Book3S HV: Enable TM before accessing TM registers
Pavel Shilovsky (1):
CIFS: Fix maximum SMB2 header size
Peter Zijlstra (1):
perf/core: Invert perf_read_group() loops
Peter Zijlstra (Intel) (1):
perf: Avoid horrible stack usage
Petri Gynther (4):
net: bcmgenet: simplify __bcmgenet_tx_reclaim()
net: bcmgenet: rewrite bcmgenet_rx_refill()
net: bcmgenet: fix dev->stats.tx_bytes accounting
net: bcmgenet: cleanup for bcmgenet_xmit_frag()
Pontus Andersson (1):
i2c: ismt: Separate I2C block read from SMBus block read
Prabhakar Lad (1):
media: platform: davinci: return -EINVAL for VPFE_CMD_S_CCDC_RAW_PARAMS ioctl
Rafael J. Wysocki (1):
USB: hcd: Mark secondary HCD as dead if the primary one died
Ralf Baechle (3):
MIPS: DEC: Avoid la pseudo-instruction in delay slots
MIPS: elf2ecoff: Fix warning due to dead code.
MIPS: elf2ecoff: Ignore PT_MIPS_ABIFLAGS program headers.
Ronnie Sahlberg (2):
cifs: return ENAMETOOLONG for overlong names in cifs_open()/cifs_lookup()
cifs: check MaxPathNameComponentLength != 0 before using it
Russell King (1):
ARM: kexec: fix failure to boot crash kernel
Rusty Russell (1):
cpumask_set_cpu_local_first => cpumask_local_spread, lament
Ryusuke Konishi (1):
nilfs2: fix gcc uninitialized-variable warnings in powerpc build
Sabrina Dubroca (1):
netfilter: ipt_CLUSTERIP: fix use-after-free of proc entry
Sachin Prabhu (1):
cifs: Fix df output for users with quota limits
Sandeep Singh (1):
usb:xhci:Add quirk for Certain failing HP keyboard on reset after resume
Sean Young (1):
media: lirc: LIRC_GET_REC_RESOLUTION should return microseconds
Sergei A. Trusov (1):
ALSA: hda - Fix speaker output from VAIO VPCL14M1R
Sergey Ryazanov (1):
MIPS: MSP71xx: remove odd locking in PCI config space access code
Seunghun Han (1):
x86/acpi: Prevent out of bound access caused by broken ACPI tables
Shu Wang (1):
xhci: fix memleak in xhci_run()
Sinclair Yeh (1):
drm/vmwgfx: Fix gcc-7.1.1 warning
Stefan Triller (1):
USB: serial: cp210x: add support for Qivicon USB ZigBee dongle
Stefan-Gabriel Mirea (1):
iio: adc: vf610_adc: Fix VALT selection value for REFSEL bits
Stefano Brivio (1):
ipv6: accept 64k - 1 packet length in ip6_find_1stfragopt()
Steffen Klassert (1):
ipv6: Fix may be used uninitialized warning in rt6_check
Stephen Boyd (1):
of: device: Export of_device_{get_modalias, uvent_modalias} to modules
Stephen Douthit (2):
i2c: ismt: Don't duplicate the receive length for block reads
i2c: ismt: Return EMSGSIZE for block reads with bogus length
Steve Dickson (1):
mount: copy the port field into the cloned nfs_server structure.
Steve French (1):
CIFS: remove endian related sparse warning
Steven Rostedt (VMware) (1):
tracing: Fix freeing of filter in create_filter() when set_str is false
Takashi Iwai (6):
ALSA: usb-audio: Add mute TLV for playback volumes on C-Media devices
ALSA: core: Fix unexpected error at replacing user TLV
ALSA: hda - Add stereo mic quirk for Lenovo G50-70 (17aa:3978)
ALSA: seq: Fix use-after-free at creating a port
ALSA: usb-audio: Kill stray URB at exiting
ALSA: usb-audio: Check out-of-bounds access by corrupted buffer descriptor
Tejun Heo (3):
workqueue: restore WQ_UNBOUND/max_active==1 to be ordered
workqueue: implicit ordered attribute should be overridable
cpumask: fix spurious cpumask_of_node() on non-NUMA multi-node configs
Thomas Bogendoerfer (1):
parisc: pci memory bar assignment fails with 64bit kernels on dino/cujo
Tim Gardner (1):
be2iscsi: Fix bogus WARN_ON length check
Timur Tabi (1):
ASoC: fsl-ssi: fix do_div build warning in fsl_ssi_set_bclk()
Tony Lindgren (1):
ARM: OMAP: Fix Kconfig warning for omap1
Uwe Kleine-König (3):
mtd: nandsim: remove debugfs entries in error path clk/efm32gg: fix dt init prototype
ARM: 8160/1: drop warning about return_address not using unwind tables
Varka Bhadram (1):
ethernet: amd: fix pci device ids
Vitaly Mayatskikh (1):
fix unbalanced page refcounting in bio_map_user_iov
Wanpeng Li (1):
KVM: async_pf: make rcu irq exit if not triggered from idle task
Wei Wang (3):
ipv6: reset fn->rr_ptr when replacing route
ipv6: add rcu grace period before freeing fib6_node
ipv6: fix sparse warning on rt6i_node
Willem de Bruijn (3):
net: avoid skb_warn_bad_offload false positives on UFO
packet: hold bind lock when rebinding to fanout hook
packet: in packet_do_bind, test fanout with bind_lock held
Xiao Ni (1):
Raid5 should update rdev->sectors after reshape
Xin Long (2):
sctp: fix the check for _sctp_walk_params and _sctp_walk_errors
ipv6: set rt6i_protocol properly in the route when it is installed
Yishai Hadas (1):
IB/uverbs: Fix device cleanup
Yoshihiro Shimoda (4):
usb: renesas_usbhs: gadget: fix re-enabling pipe without re-connecting
usb: renesas_usbhs: gadget: Fix NULL pointer dereference in usbhsg_ep_dequeue()
usb: renesas_usbhs: fix usbhsc_resume() for !USBHSF_RUNTIME_PWCTRL
usb: renesas_usbhs: gadget: disable all eps when the driver stops
Zubair Lutfullah Kakakhel (1):
MIPS: Fix a warning for virt_to_page
françois romieu (1):
net: remove open-coded skb_cow_head.
[email protected] (1):
crypto: x86/sha1 - Fix reads beyond the number of blocks passed
stephen hemminger (1):
netvsc: fix deadlock betwen link status and removal
zhong jiang (1):
mm/mempolicy: fix use after free when calling get_mempolicy
Documentation/video4linux/v4l2-pci-skeleton.c +1 -1
@@ -42,7 +42,6 @@MODULE_DESCRIPTION ("V4L2 PCI Skeleton Driver" );MODULE_AUTHOR ("Hans Verkuil" );MODULE_LICENSE ("GPL v2" ); -MODULE_DEVICE_TABLE (pci, skeleton_pci_tbl);/** * struct skeleton - All internal data for one instance of device
@@ -95,6 +94,7 @@ static const struct pci_device_id skeleton_pci_tbl[] = {/* { PCI_DEVICE(PCI_VENDOR_ID_, PCI_DEVICE_ID_) }, */ { 0, } }; +MODULE_DEVICE_TABLE (pci, skeleton_pci_tbl);/* * HDTV: this structure has the capabilities of the HDTV receiver.
Makefile +2 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 16 -SUBLEVEL = 49 +SUBLEVEL = 50 EXTRAVERSION = NAME = Museum of Fishiegoodies
@@ -616,6 +616,7 @@ all: vmlinux include $(srctree)/arch/$(SRCARCH)/Makefile KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,) +KBUILD_CFLAGS += $(call cc-disable-warning,frame-address,) ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,)
arch/alpha/include/asm/types.h +0 -1
@@ -1,7 +1,6 @@#ifndef _ALPHA_TYPES_H#define _ALPHA_TYPES_H -#include <asm-generic/int-ll64.h> #include <uapi/asm/types.h> #endif /* _ALPHA_TYPES_H */
arch/alpha/include/uapi/asm/types.h +11 -1
@@ -9,8 +9,18 @@* need to be careful to avoid a name clashes. */ -#ifndef __KERNEL__ +/* +* This is here because we used to use l64 for alpha +* and we don't want to impact user mode with our change to ll64 +* in the kernel. +* +* However, some user programs are fine with this. They can +* flag __SANE_USERSPACE_TYPES__ to get int-ll64.h here. +*/ +#if !defined(__SANE_USERSPACE_TYPES__) && !defined(__KERNEL__)#include <asm-generic/int-l64.h> +#else +#include <asm-generic/int-ll64.h> #endif #endif /* _UAPI_ALPHA_TYPES_H */
arch/arm/include/asm/kexec.h +5 -0
@@ -19,6 +19,11 @@#ifndef __ASSEMBLY__ +#define ARCH_HAS_KIMAGE_ARCH +struct kimage_arch { +u32 kernel_r2; +}; +/** * crash_setup_regs() - save registers for the panic kernel * @newregs: registers are saved here
arch/arm/kernel/iwmmxt.S +13 -0
@@ -58,6 +58,7 @@ #define MMX_SIZE (0x98) .text + .arm /* * Lazy switching of Concan coprocessor context
@@ -182,6 +183,8 @@ ENTRY(iwmmxt_task_enable) tmcr wCon, r2 mov pc, lr +ENDPROC(iwmmxt_task_enable) + /* * Back up Concan regs to save area and disable access to them * (mainly for gdb or sleep mode usage)
@@ -232,6 +235,8 @@ ENTRY(iwmmxt_task_disable) 1: msr cpsr_c, ip @ restore interrupt mode ldmfd sp!, {r4, pc} +ENDPROC(iwmmxt_task_disable) + /* * Copy Concan state to given memory address *
@@ -268,6 +273,8 @@ ENTRY(iwmmxt_task_copy) msr cpsr_c, ip @ restore interrupt mode mov pc, r3 +ENDPROC(iwmmxt_task_copy) + /* * Restore Concan state from given memory address *
@@ -304,6 +311,8 @@ ENTRY(iwmmxt_task_restore) msr cpsr_c, ip @ restore interrupt mode mov pc, r3 +ENDPROC(iwmmxt_task_restore) + /* * Concan handling on task switch *
@@ -335,6 +344,8 @@ ENTRY(iwmmxt_task_switch) mrc p15, 0, r1, c2, c0, 0 sub pc, lr, r1, lsr #32 @ cpwait and return +ENDPROC(iwmmxt_task_switch) + /* * Remove Concan ownership of given task *
@@ -353,6 +364,8 @@ ENTRY(iwmmxt_task_release) msr cpsr_c, r2 @ restore interrupts mov pc, lr +ENDPROC(iwmmxt_task_release) + .data concan_owner: .word 0
arch/arm/kernel/machine_kexec.c +6 -5
@@ -40,6 +40,9 @@ int machine_kexec_prepare(struct kimage *image)__be32 header;int i, err; + image->arch.kernel_r2 = image->start -KEXEC_ARM_ZIMAGE_OFFSET + +KEXEC_ARM_ATAGS_OFFSET ; +/* * Validate that if the current HW supports SMP, then the SW supports * and implements CPU hotplug for the current HW. If not, we won't be
@@ -63,8 +66,8 @@ int machine_kexec_prepare(struct kimage *image)if (err)return err; -if (be32_to_cpu (header) ==OF_DT_HEADER ) - kexec_boot_atags = current_segment->mem; +if (header ==cpu_to_be32 (OF_DT_HEADER )) + image->arch.kernel_r2 = current_segment->mem; }return 0 ; }
@@ -166,9 +169,7 @@ void machine_kexec(struct kimage *image) kexec_start_address = image->start; kexec_indirection_page = page_list; kexec_mach_type = machine_arch_type; -if (!kexec_boot_atags) - kexec_boot_atags = image->start -KEXEC_ARM_ZIMAGE_OFFSET +KEXEC_ARM_ATAGS_OFFSET ; - + kexec_boot_atags = image->arch.kernel_r2;/* copy our kernel relocation code to the control code page */ reboot_entry = fncpy(reboot_code_buffer,
arch/arm/kernel/pj4-cp0.c +4 -0
@@ -66,9 +66,13 @@ static void __init pj4_cp_access_write(u32 value) __asm__ __volatile__ ( "mcr p15, 0, %1, c1, c0, 2\n\t" +#ifdef CONFIG_THUMB2_KERNEL + "isb\n\t" +#else"mrc p15, 0, %0, c1, c0, 2\n\t" "mov %0, %0\n\t" "sub pc, pc, #4\n\t" +#endif :"=r" (temp) :"r" (value)); }
arch/arm/kernel/return_address.c +0 -4
@@ -59,10 +59,6 @@ void *return_address(unsigned int level)#else /* if defined(CONFIG_FRAME_POINTER) && !defined(CONFIG_ARM_UNWIND) */ -#if defined(CONFIG_ARM_UNWIND ) -#warning "TODO: return_address should use unwind tables" -#endif -void *return_address (unsigned int level) {return NULL ;
arch/arm/mach-cns3xxx/Makefile +1 -0
@@ -2,4 +2,5 @@ obj-$(CONFIG_ARCH_CNS3XXX) += cns3xxx.o cns3xxx-y += core.o pm.o cns3xxx-$(CONFIG_ATAGS) += devices.o cns3xxx-$(CONFIG_PCI) += pcie.o +CFLAGS_pcie.o += -Wframe-larger-than=1536 # override default 1024, this is safe here cns3xxx-$(CONFIG_MACH_CNS3420VB) += cns3420vb.o
arch/arm/mach-omap2/Kconfig +0 -3
@@ -1,9 +1,6 @@ menu "TI OMAP/AM/DM/DRA Family" depends on ARCH_MULTI_V6 || ARCH_MULTI_V7 -config ARCH_OMAP - bool - config ARCH_OMAP2 bool "TI OMAP2" depends on ARCH_MULTI_V6
arch/arm/mach-pxa/Kconfig +1 -0
@@ -546,6 +546,7 @@ config MACH_ICONTROL config ARCH_PXA_ESERIES bool "PXA based Toshiba e-series PDAs" select FB_W100 + select FB select PXA25x config MACH_E330
arch/arm/mm/cache-l2x0.c +38 -73
140 lines not on this page · raw message
arch/arm/plat-omap/Kconfig +3 -0
@@ -1,3 +1,6 @@ +config ARCH_OMAP + bool + if ARCH_OMAP menu "TI OMAP Common Features"
arch/arm64/kernel/fpsimd.c +2 -0
@@ -156,9 +156,11 @@ void fpsimd_thread_switch(struct task_struct *next)void fpsimd_flush_thread (void ) { +preempt_disable ();memset (¤t->thread.fpsimd_state,0 ,sizeof (struct fpsimd_state ));fpsimd_flush_task_state (current);set_thread_flag (TIF_FOREIGN_FPSTATE ); +preempt_enable (); }/*
arch/arm64/mm/fault.c +4 -1
@@ -252,8 +252,11 @@ static int __kprobes do_page_fault(unsigned long addr, unsigned int esr,* signal first. We do not need to release the mmap_sem because it * would already be released in __lock_page_or_retry in mm/filemap.c. */ -if ((fault &VM_FAULT_RETRY ) &&fatal_signal_pending (current)) +if ((fault &VM_FAULT_RETRY ) &&fatal_signal_pending (current)) { +if (!user_mode (regs)) + goto no_context;return 0 ; + }/* * Major/minor page fault accounting is only done on the initial
arch/mips/boot/elf2ecoff.c +4 -6
@@ -49,7 +49,8 @@/* * Some extra ELF definitions */ -#define PT_MIPS_REGINFO 0x70000000/* Register usage information */ +#define PT_MIPS_REGINFO 0x70000000/* Register usage information */ +#define PT_MIPS_ABIFLAGS 0x70000003/* Records ABI related flags */ /* -------------------------------------------------------------------- */
@@ -267,7 +268,6 @@ int main(int argc, char *argv[])Elf32_Ehdr ex;Elf32_Phdr *ph;Elf32_Shdr *sh; -char *shstrtab;int i, pad;struct sect text, data, bss;struct filehdr efh;
@@ -335,9 +335,6 @@ int main(int argc, char *argv[]) "sh");if (must_convert_endian)convert_elf_shdrs (sh, ex.e_shnum); -/* Read in the section string table. */ - shstrtab =saveRead (infile, sh[ex.e_shstrndx].sh_offset, - sh[ex.e_shstrndx].sh_size,"shstrtab" );/* Figure out if we can cram the program header into an ECOFF header... Basically, we can't handle anything but loadable
@@ -351,7 +348,8 @@ int main(int argc, char *argv[])/* Section types we can ignore... */ if (ph[i].p_type ==PT_NULL || ph[i].p_type ==PT_NOTE || ph[i].p_type ==PT_PHDR - || ph[i].p_type ==PT_MIPS_REGINFO ) + || ph[i].p_type ==PT_MIPS_REGINFO + || ph[i].p_type ==PT_MIPS_ABIFLAGS )continue ;/* Section types we can't handle... */ else if (ph[i].p_type !=PT_LOAD ) {
arch/mips/dec/int-handler.S +16 -2
@@ -146,7 +146,14 @@ /* * Find irq with highest priority */ - PTR_LA t1,cpu_mask_nr_tbl + # open coded PTR_LA t1, cpu_mask_nr_tbl +#if defined(CONFIG_32BIT) || defined(KBUILD_64BIT_SYM32) + # open coded la t1, cpu_mask_nr_tbl + lui t1, %hi(cpu_mask_nr_tbl) + addiu t1, %lo(cpu_mask_nr_tbl) +#else +#error GCC `-msym32' option required for 64-bit DECstation builds +#endif 1: lw t2,(t1) nop and t2,t0
@@ -195,7 +202,14 @@ /* * Find irq with highest priority */ - PTR_LA t1,asic_mask_nr_tbl + # open coded PTR_LA t1,asic_mask_nr_tbl +#if defined(CONFIG_32BIT) || defined(KBUILD_64BIT_SYM32) + # open coded la t1, asic_mask_nr_tbl + lui t1, %hi(asic_mask_nr_tbl) + addiu t1, %lo(asic_mask_nr_tbl) +#else +#error GCC `-msym32' option required for 64-bit DECstation builds +#endif 2: lw t2,(t1) nop and t2,t0
arch/mips/include/asm/page.h +2 -1
@@ -223,7 +223,8 @@ static inline int pfn_valid(unsigned long pfn)#endif -#define virt_to_page (kaddr) pfn_to_page(PFN_DOWN(virt_to_phys(kaddr))) +#define virt_to_page (kaddr) pfn_to_page(PFN_DOWN(virt_to_phys((void *) \ + (kaddr))))extern int __virt_addr_valid (const volatile void *kaddr);#define virt_addr_valid (kaddr) \
arch/mips/jz4740/board-qi_lb60.c +1 -0
@@ -25,6 +25,7 @@#include <linux/power/jz4740-battery.h> #include <linux/power/gpio-charger.h> +#include <asm/mach-jz4740/gpio.h> #include <asm/mach-jz4740/jz4740_fb.h> #include <asm/mach-jz4740/jz4740_mmc.h> #include <asm/mach-jz4740/jz4740_nand.h>
arch/mips/jz4740/gpio.c +1 -0
@@ -27,6 +27,7 @@#include <linux/seq_file.h> #include <asm/mach-jz4740/base.h> +#include <asm/mach-jz4740/gpio.h> #include "irq.h"
arch/mips/jz4740/irq.h +2 -0
@@ -16,7 +16,9 @@#define __MIPS_JZ4740_IRQ_H__#include <linux/irq.h> +#include <asm/mach-jz4740/irq.h> +struct irq_data ;extern void jz4740_irq_suspend (struct irq_data *data);extern void jz4740_irq_resume (struct irq_data *data);
arch/mips/kernel/bmips_vec.S +0 -3
@@ -211,7 +211,6 @@ NESTED(bmips_reset_nmi_vec, PT_SIZE, sp) END(bmips_reset_nmi_vec) .set pop - .previous /*********************************************************************** * CPU1 warm restart vector (used for second and subsequent boots).
@@ -286,5 +285,3 @@ LEAF(bmips_enable_xks01) jr ra END(bmips_enable_xks01) - - .previous
arch/mips/pci/ops-pmcmsp.c +0 -12
@@ -193,8 +193,6 @@ static void pci_proc_init(void) }#endif /* CONFIG_PROC_FS && PCI_COUNTERS */ -static DEFINE_SPINLOCK (bpci_lock); -/***************************************************************************** * * STRUCT: pci_io_resource
@@ -368,7 +366,6 @@ int msp_pcibios_config_access(unsigned char access_type,struct msp_pci_regs *preg = (void *)PCI_BASE_REG ;unsigned char bus_num = bus->number;unsigned char dev_fn = (unsigned char )devfn; -unsigned long flags;unsigned long intr;unsigned long value;static char pciirqflag;
@@ -401,10 +398,7 @@ int msp_pcibios_config_access(unsigned char access_type, }#if defined(CONFIG_PMC_MSP7120_GW ) || defined(CONFIG_PMC_MSP7120_EVAL ) -local_irq_save (flags); vpe_status =dvpe (); -#else -spin_lock_irqsave (&bpci_lock, flags);#endif /*
@@ -457,9 +451,6 @@ int msp_pcibios_config_access(unsigned char access_type,#if defined(CONFIG_PMC_MSP7120_GW ) || defined(CONFIG_PMC_MSP7120_EVAL )evpe (vpe_status); -local_irq_restore (flags); -#else -spin_unlock_irqrestore (&bpci_lock, flags);#endif return -1 ;
@@ -467,9 +458,6 @@ int msp_pcibios_config_access(unsigned char access_type,#if defined(CONFIG_PMC_MSP7120_GW ) || defined(CONFIG_PMC_MSP7120_EVAL )evpe (vpe_status); -local_irq_restore (flags); -#else -spin_unlock_irqrestore (&bpci_lock, flags);#endif return PCIBIOS_SUCCESSFUL ;
arch/mips/pci/ops-tx4927.c +0 -2
@@ -199,8 +199,6 @@ static struct {char *tx4927_pcibios_setup (char *str) { -unsigned long val; -if (!strncmp (str,"trdyto=" ,7 )) {u8 val =0 ;if (kstrtou8 (str +7 ,0 , &val) ==0 )
arch/mips/sgi-ip22/Platform +1 -1
@@ -25,7 +25,7 @@ endif # Simplified: what IP22 does at 128MB+ in ksegN, IP28 does at 512MB+ in xkphys # ifdef CONFIG_SGI_IP28 - ifeq ($(call cc-option-yn,-mr10k-cache-barrier=store), n) + ifeq ($(call cc-option-yn,-march=r10000 -mr10k-cache-barrier=store), n) $(error gcc doesn't support needed option -mr10k-cache-barrier=store) endif endif
arch/powerpc/boot/Makefile +12 -4
@@ -21,11 +21,19 @@ all: $(obj)/zImage BOOTCFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ -fno-strict-aliasing -Os -msoft-float -pipe \ - -fomit-frame-pointer -fno-builtin -fPIC -nostdinc \ - -isystem $(shell $(CROSS32CC) -print-file-name=include) + -fomit-frame-pointer -fno-builtin -fPIC -nostdinc +BOOTCC := $(CC) ifdef CONFIG_PPC64_BOOT_WRAPPER BOOTCFLAGS += -m64 +else +BOOTCFLAGS += -m32 +ifdef CROSS32_COMPILE + BOOTCC := $(CROSS32_COMPILE)gcc +endif endif + +BOOTCFLAGS += -isystem $(shell $(BOOTCC) -print-file-name=include) + ifdef CONFIG_CPU_BIG_ENDIAN BOOTCFLAGS += -mbig-endian else
@@ -165,10 +173,10 @@ clean-files := $(zlib) $(zlibheader) $(zliblinuxheader) \ empty.c zImage.coff.lds zImage.ps3.lds zImage.lds quiet_cmd_bootcc = BOOTCC $@ - cmd_bootcc = $(CROSS32CC) -Wp,-MD,$(depfile) $(BOOTCFLAGS) -c -o $@ $< + cmd_bootcc = $(BOOTCC) -Wp,-MD,$(depfile) $(BOOTCFLAGS) -c -o $@ $< quiet_cmd_bootas = BOOTAS $@ - cmd_bootas = $(CROSS32CC) -Wp,-MD,$(depfile) $(BOOTAFLAGS) -c -o $@ $< + cmd_bootas = $(BOOTCC) -Wp,-MD,$(depfile) $(BOOTAFLAGS) -c -o $@ $< quiet_cmd_bootar = BOOTAR $@ cmd_bootar = $(CROSS32AR) -cr$(KBUILD_ARFLAGS) $@.$$$$ $(filter-out FORCE,$^); mv $@.$$$$ $@
arch/powerpc/kvm/book3s_hv.c +2 -0
@@ -1816,6 +1816,8 @@ static int kvmppc_vcpu_run_hv(struct kvm_run *run, struct kvm_vcpu *vcpu) run->fail_entry.hardware_entry_failure_reason =0 ;return -EINVAL ; } +/* Enable TM so we can read the TM SPRs */ +mtmsr (mfmsr () |MSR_TM ); current->thread.tm_tfhar =mfspr (SPRN_TFHAR ); current->thread.tm_tfiar =mfspr (SPRN_TFIAR ); current->thread.tm_texasr =mfspr (SPRN_TEXASR );
arch/powerpc/mm/subpage-prot.c +1 -1
@@ -36,7 +36,7 @@ void subpage_prot_free(struct mm_struct *mm) } } addr =0 ; -for (i =0 ; i <2 ; ++i) { +for (i =0 ; i < (TASK_SIZE_USER64 >>43 ); ++i) { p = spt->protptrs[i];if (!p)continue ;
arch/powerpc/platforms/pseries/reconfig.c +0 -1
@@ -112,7 +112,6 @@ static int pSeries_reconfig_remove_node(struct device_node *np)of_detach_node (np);of_node_put (parent); -of_node_put (np);/* Must decrement the refcount */ return 0 ; }
arch/x86/boot/compressed/misc.h +5 -6
@@ -2,14 +2,13 @@#define BOOT_COMPRESSED_MISC_H /* -* we have to be careful, because no indirections are allowed here, and -* paravirt_ops is a kind of one. As it will only run in baremetal anyway, -* we just keep it from happening +* Special hack: we have to be careful, because no indirections are allowed here, +* and paravirt_ops is a kind of one. As it will only run in baremetal anyway, +* we just keep it from happening. (This list needs to be extended when new +* paravirt and debugging variants are added.) */ #undef CONFIG_PARAVIRT -#ifdef CONFIG_X86_32 -#define _ASM_X86_DESC_H 1 -#endif +#undef CONFIG_PARAVIRT_SPINLOCKS#include <linux/linkage.h> #include <linux/screen_info.h>
arch/x86/crypto/sha1_avx2_x86_64_asm.S +36 -31
149 lines not on this page · raw message
arch/x86/crypto/sha1_ssse3_glue.c +1 -1
@@ -224,7 +224,7 @@ static bool __init avx_usable(void)#ifdef CONFIG_AS_AVX2 static bool __init avx2_usable (void ) { -if (false &&avx_usable () && cpu_has_avx2 && +if (avx_usable () && cpu_has_avx2 &&boot_cpu_has (X86_FEATURE_BMI1 ) &&boot_cpu_has (X86_FEATURE_BMI2 ))return true;
arch/x86/kernel/acpi/boot.c +8 -0
@@ -909,6 +909,14 @@ void __init mp_override_legacy_irq(u8 bus_irq, u8 polarity, u8 trigger, u32 gsi)int pin;struct mpc_intsrc mp_irq; +/* +* Check bus_irq boundary. +*/ +if (bus_irq >=NR_IRQS_LEGACY ) { +pr_warn ("Invalid bus_irq %u for legacy override\n" , bus_irq); +return ; + } +/* * Convert 'gsi' to 'ioapic.pin'. */
arch/x86/kernel/cpu/perf_event.c +2 -5
@@ -2009,17 +2009,14 @@ static unsigned long get_segment_base(unsigned int segment)if ((segment &SEGMENT_TI_MASK ) ==SEGMENT_LDT ) {struct ldt_struct *ldt; -if (idx >LDT_ENTRIES ) -return 0 ; -/* IRQs are off, so this synchronizes with smp_store_release */ ldt =lockless_dereference (current->active_mm->context.ldt); -if (!ldt || idx > ldt->size) +if (!ldt || idx >= ldt->size)return 0 ; desc = &ldt->entries[idx]; }else { -if (idx >GDT_ENTRIES ) +if (idx >=GDT_ENTRIES )return 0 ; desc =__this_cpu_ptr (&gdt_page.gdt[0 ]) + idx;
arch/x86/kernel/entry_64.S +2 -0
@@ -1476,6 +1476,8 @@ ENTRY(nmi) * other IST entries. */ + ASM_CLAC + /* Use %rdx as out temp variable throughout */ pushq_cfi %rdx CFI_REL_OFFSET rdx, 0
arch/x86/kernel/kprobes/core.c +9 -1
@@ -401,6 +401,8 @@ static int arch_copy_kprobe(struct kprobe *p)int arch_prepare_kprobe (struct kprobe *p) { +int ret; +if (alternatives_text_reserved (p->addr, p->addr))return -EINVAL ;
@@ -411,7 +413,13 @@ int arch_prepare_kprobe(struct kprobe *p)if (!p->ainsn.insn)return -ENOMEM ; -return arch_copy_kprobe (p); + ret =arch_copy_kprobe (p); +if (ret) { +free_insn_slot (p->ainsn.insn,0 ); + p->ainsn.insn =NULL ; + } + +return ret; }void arch_arm_kprobe (struct kprobe *p)
arch/x86/kernel/kvm.c +4 -2
@@ -150,6 +150,8 @@ void kvm_async_pf_task_wait(u32 token)if (hlist_unhashed (&n.link))break ; +rcu_irq_exit (); +if (!n.halted) {local_irq_enable ();schedule ();
@@ -158,11 +160,11 @@ void kvm_async_pf_task_wait(u32 token)/* * We cannot reschedule. So halt. */ -rcu_irq_exit ();native_safe_halt ();local_irq_disable (); -rcu_irq_enter (); } + +rcu_irq_enter (); }if (!n.halted)finish_wait (&n.wq, &wait);
arch/x86/xen/mmu.c +1 -1
@@ -1187,7 +1187,7 @@ static void __init xen_cleanhighmap(unsigned long vaddr,/* NOTE: The loop is more greedy than the cleanup_highmap variant. * We include the PMD passed in on _both_ boundaries. */ -for (; vaddr <= vaddr_end && (pmd < (level2_kernel_pgt +PAGE_SIZE )); +for (; vaddr <= vaddr_end && (pmd < (level2_kernel_pgt +PTRS_PER_PMD )); pmd++, vaddr +=PMD_SIZE ) {if (pmd_none (*pmd))continue ;
arch/xtensa/kernel/xtensa_ksyms.c +0 -2
@@ -94,13 +94,11 @@ unsigned long __sync_fetch_and_or_4(unsigned long *p, unsigned long v) }EXPORT_SYMBOL (__sync_fetch_and_or_4); -#ifdef CONFIG_NET /* * Networking support */ EXPORT_SYMBOL (csum_partial);EXPORT_SYMBOL (csum_partial_copy_generic); -#endif /* CONFIG_NET */ /* * Architecture-specific symbols
arch/xtensa/mm/cache.c +7 -5
@@ -63,7 +63,7 @@#error "HIGHMEM is not supported on cores with aliasing cache."#endif -#if (DCACHE_WAY_SIZE >PAGE_SIZE ) &&XCHAL_DCACHE_IS_WRITEBACK +#if (DCACHE_WAY_SIZE >PAGE_SIZE )/* * Any time the kernel writes to a user page cache page, or it is about to
@@ -116,7 +116,7 @@ void flush_dcache_page(struct page *page)/* There shouldn't be an entry in the cache for this page anymore. */ } - +EXPORT_SYMBOL (flush_dcache_page);/* * For now, flush the whole cache. FIXME??
@@ -128,6 +128,7 @@ void local_flush_cache_range(struct vm_area_struct *vma,__flush_invalidate_dcache_all ();__invalidate_icache_all (); } +EXPORT_SYMBOL (local_flush_cache_range);/* * Remove any entry in the cache for this page.
@@ -147,8 +148,9 @@ void local_flush_cache_page(struct vm_area_struct *vma, unsigned long address,__flush_invalidate_dcache_page_alias (virt, phys); __invalidate_icache_page_alias(virt, phys); } +EXPORT_SYMBOL (local_flush_cache_page); -#endif +#endif /* DCACHE_WAY_SIZE > PAGE_SIZE */ void update_mmu_cache (struct vm_area_struct * vma,unsigned long addr,pte_t *ptep)
@@ -165,7 +167,7 @@ update_mmu_cache(struct vm_area_struct * vma, unsigned long addr, pte_t *ptep)flush_tlb_page (vma, addr); -#if (DCACHE_WAY_SIZE >PAGE_SIZE ) &&XCHAL_DCACHE_IS_WRITEBACK +#if (DCACHE_WAY_SIZE >PAGE_SIZE )if (!PageReserved (page) &&test_bit (PG_arch_1, &page->flags)) {
@@ -197,7 +199,7 @@ update_mmu_cache(struct vm_area_struct * vma, unsigned long addr, pte_t *ptep)* flush_dcache_page() on the page. */ -#if (DCACHE_WAY_SIZE >PAGE_SIZE ) &&XCHAL_DCACHE_IS_WRITEBACK +#if (DCACHE_WAY_SIZE >PAGE_SIZE ) void copy_to_user_page(struct vm_area_struct *vma, struct page *page, unsigned long vaddr, void *dst, const void *src,
block/bio.c +8 -0
@@ -1337,6 +1337,7 @@ static struct bio *__bio_map_user_iov(struct request_queue *q, offset = uaddr & ~PAGE_MASK ;for (j = cur_page; j < page_limit; j++) {unsigned int bytes =PAGE_SIZE - offset; +unsigned short prev_bi_vcnt = bio->bi_vcnt;if (len <=0 )break ;
@@ -1351,6 +1352,13 @@ static struct bio *__bio_map_user_iov(struct request_queue *q, bytes)break ; +/* +* check if vector was merged with previous +* drop page reference if needed +*/ +if (bio->bi_vcnt == prev_bi_vcnt) +put_page (pages[j]); + len -= bytes; offset =0 ; }
drivers/ata/libata-scsi.c +4 -2
@@ -2796,10 +2796,12 @@ static unsigned int atapi_xlat(struct ata_queued_cmd *qc)static struct ata_device *ata_find_dev (struct ata_port *ap,int devno) {if (!sata_pmp_attached (ap)) { -if (likely (devno <ata_link_max_devices (&ap->link))) +if (likely (devno >=0 && + devno <ata_link_max_devices (&ap->link)))return &ap->link.device[devno]; }else { -if (likely (devno < ap->nr_pmp_links)) +if (likely (devno >=0 && + devno < ap->nr_pmp_links))return &ap->pmp_link[devno].device[0 ]; }
drivers/ata/pata_hpt366.c +2 -2
@@ -352,7 +352,7 @@ static int hpt36x_init_one(struct pci_dev *dev, const struct pci_device_id *id) };const struct ata_port_info *ppi[] = { &info_hpt366,NULL }; -void *hpriv =NULL ; +const void *hpriv =NULL ;u32 reg1;int rc;
@@ -383,7 +383,7 @@ static int hpt36x_init_one(struct pci_dev *dev, const struct pci_device_id *id)break ; }/* Now kick off ATA set up */ -return ata_pci_bmdma_init_one (dev, ppi, &hpt36x_sht, hpriv,0 ); +return ata_pci_bmdma_init_one (dev, ppi, &hpt36x_sht, (void *)hpriv,0 ); }#ifdef CONFIG_PM_SLEEP
drivers/block/drbd/drbd_bitmap.c +6 -0
@@ -478,8 +478,14 @@ void drbd_bm_cleanup(struct drbd_device *device)* this masks out the remaining bits. * Returns the number of bits cleared. */ +#ifndef BITS_PER_PAGE #define BITS_PER_PAGE (1UL << (PAGE_SHIFT + 3))#define BITS_PER_PAGE_MASK (BITS_PER_PAGE - 1) +#else +# if BITS_PER_PAGE != (1UL << (PAGE_SHIFT +3 )) +# error "ambiguous BITS_PER_PAGE" +# endif +#endif #define BITS_PER_LONG_MASK (BITS_PER_LONG - 1)static int bm_clear_surplus (struct drbd_bitmap *b) {
drivers/block/paride/pg.c +2 -2
@@ -137,7 +137,7 @@*/ -static bool verbose =0 ; +static int verbose;static int major =PG_MAJOR ;static char *name =PG_NAME ;static int disable =0 ;
@@ -168,7 +168,7 @@ enum {D_PRT, D_PRO, D_UNI, D_MOD, D_SLV, D_DLY};#include <asm/uaccess.h> -module_param (verbose, bool,0644 ); +module_param (verbose, int,0644 );module_param (major, int,0 );module_param (name, charp,0 );module_param_array (drive0, int,NULL ,0 );
drivers/clk/clk-efm32gg.c +3 -3
@@ -22,7 +22,7 @@ static struct clk_onecell_data clk_data = { .clk_num = ARRAY_SIZE(clk), }; -static int __init efm32gg_cmu_init (struct device_node *np) +static void __init efm32gg_cmu_init (struct device_node *np) {int i;void __iomem *base;
@@ -33,7 +33,7 @@ static int __init efm32gg_cmu_init(struct device_node *np) base =of_iomap (np,0 );if (!base) {pr_warn ("Failed to map address range for efm32gg,cmu node\n" ); -return -EADDRNOTAVAIL ; +return ; } clk[clk_HFXO] = clk_register_fixed_rate(NULL, "HFXO", NULL,
@@ -76,6 +76,6 @@ static int __init efm32gg_cmu_init(struct device_node *np) clk[clk_HFPERCLKDAC0] =clk_register_gate (NULL ,"HFPERCLK.DAC0" ,"HFXO" ,0 , base +CMU_HFPERCLKEN0 ,17 ,0 ,NULL ); -return of_clk_add_provider (np, of_clk_src_onecell_get, &clk_data); +of_clk_add_provider (np, of_clk_src_onecell_get, &clk_data); }CLK_OF_DECLARE (efm32ggcmu,"efm32gg,cmu" , efm32gg_cmu_init);
drivers/dma/amba-pl08x.c +2 -2
@@ -1040,7 +1040,7 @@ static int pl08x_fill_llis_for_desc(struct pl08x_driver_data *pl08x,if (early_bytes) {dev_vdbg (&pl08x->adev->dev, -"%s byte width LLIs (remain 0x%08x)\n" , +"%s byte width LLIs (remain 0x%08zx)\n" , __func__, bd.remainder);prep_byte_width_lli (pl08x, &bd, &cctl, early_bytes, num_llis++, &total_bytes);
@@ -1662,7 +1662,7 @@ static struct dma_async_tx_descriptor *pl08x_prep_dma_cyclic(dma_addr_t slave_addr;dev_dbg (&pl08x->adev->dev, -"%s prepare cyclic transaction of %d/%d bytes %s %s\n" , +"%s prepare cyclic transaction of %zd/%zd bytes %s %s\n" , __func__, period_len, buf_len, direction ==DMA_MEM_TO_DEV ?"to" :"from" , plchan->name);
drivers/gpio/gpio-tegra.c +3 -3
@@ -271,7 +271,7 @@ static void tegra_gpio_irq_handler(unsigned int irq, struct irq_desc *desc)struct tegra_gpio_bank *bank;int port;int pin; -int unmasked =0 ; +bool unmasked = false;struct irq_chip *chip =irq_desc_get_chip (desc);chained_irq_enter (chip, desc);
@@ -291,8 +291,8 @@ static void tegra_gpio_irq_handler(unsigned int irq, struct irq_desc *desc)* before executing the hander so that we don't * miss edges */ -if (lvl & (0x100 << pin)) { - unmasked =1 ; +if (!unmasked && lvl & (0x100 << pin)) { + unmasked = true;chained_irq_exit (chip, desc); }
drivers/gpu/drm/drm_gem.c +3 -3
@@ -698,13 +698,13 @@ drm_gem_object_release_handle(int id, void *ptr, void *data)struct drm_gem_object *obj = ptr;struct drm_device *dev = obj->dev; +if (dev->driver->gem_close_object) + dev->driver->gem_close_object (obj, file_priv); +if (drm_core_check_feature (dev,DRIVER_PRIME ))drm_gem_remove_prime_handles (obj, file_priv);drm_vma_node_revoke (&obj->vma_node, file_priv->filp); -if (dev->driver->gem_close_object) - dev->driver->gem_close_object (obj, file_priv); -drm_gem_object_handle_unreference_unlocked (obj);return 0 ;
drivers/gpu/drm/i915/i915_debugfs.c +3 -2
@@ -141,10 +141,11 @@ describe_obj(struct seq_file *m, struct drm_i915_gem_object *obj) obj->madv == I915_MADV_DONTNEED ? " purgeable" : "");if (obj->base.name)seq_printf (m," (name: %d)" , obj->base.name); -list_for_each_entry (vma, &obj->vma_list, vma_link) +list_for_each_entry (vma, &obj->vma_list, vma_link) {if (vma->pin_count >0 ) pin_count++; -seq_printf (m," (pinned x %d)" , pin_count); + } +seq_printf (m," (pinned x %d)" , pin_count);if (obj->pin_display)seq_printf (m," (display)" );if (obj->fence_reg !=I915_FENCE_REG_NONE )
drivers/gpu/drm/msm/msm_gem_submit.c +5 -2
@@ -34,10 +34,13 @@ static inline void __user *to_user_ptr(u64 address) }static struct msm_gem_submit *submit_create (struct drm_device *dev, -struct msm_gpu *gpu,int nr) +struct msm_gpu *gpu,uint32_t nr) {struct msm_gem_submit *submit; -int sz =sizeof (*submit) + (nr *sizeof (submit->bos[0 ])); +uint64_t sz =sizeof (*submit) + ((u64 )nr *sizeof (submit->bos[0 ])); + +if (sz >SIZE_MAX ) +return NULL ; submit =kmalloc (sz,GFP_TEMPORARY | __GFP_NOWARN | __GFP_NORETRY);if (submit) {
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c +1 -1
@@ -285,7 +285,7 @@ static int vmw_cmd_invalid(struct vmw_private *dev_priv,struct vmw_sw_context *sw_context, SVGA3dCmdHeader *header) { - return capable(CAP_SYS_ADMIN) ? : -EINVAL; + return -EINVAL; } static int vmw_cmd_ok(struct vmw_private *dev_priv,
drivers/hid/usbhid/hid-core.c +11 -1
@@ -975,6 +975,8 @@ static int usbhid_parse(struct hid_device *hid)unsigned int rsize =0 ;char *rdesc;int ret, n; +int num_descriptors; +size_t offset = offsetof(struct hid_descriptor , desc); quirks =usbhid_lookup_quirk (le16_to_cpu (dev->descriptor.idVendor),le16_to_cpu (dev->descriptor.idProduct));
@@ -997,10 +999,18 @@ static int usbhid_parse(struct hid_device *hid)return -ENODEV ; } +if (hdesc->bLength <sizeof (struct hid_descriptor )) { +dbg_hid ("hid descriptor is too short\n" ); +return -EINVAL ; + } + hid->version =le16_to_cpu (hdesc->bcdHID); hid->country = hdesc->bCountryCode; -for (n =0 ; n < hdesc->bNumDescriptors; n++) + num_descriptors =min_t (int, hdesc->bNumDescriptors, + (hdesc->bLength - offset) /sizeof (struct hid_class_descriptor )); + +for (n =0 ; n < num_descriptors; n++)if (hdesc->desc[n].bDescriptorType ==HID_DT_REPORT ) rsize =le16_to_cpu (hdesc->desc[n].wDescriptorLength);
drivers/i2c/busses/i2c-ismt.c +5 -0
@@ -343,6 +343,11 @@ static int ismt_process_desc(const struct ismt_desc *desc, data->word = dma_buffer[0 ] | (dma_buffer[1 ] <<8 );break ;case I2C_SMBUS_BLOCK_DATA : +if (desc->rxbytes != dma_buffer[0 ] +1 ) +return -EMSGSIZE ; + +memcpy (data->block, dma_buffer, desc->rxbytes); +break ;case I2C_SMBUS_I2C_BLOCK_DATA :memcpy (&data->block[1 ], dma_buffer, desc->rxbytes); data->block[0 ] = desc->rxbytes;
drivers/i2c/muxes/Kconfig +1 -1
@@ -58,6 +58,6 @@ config I2C_MUX_PINCTRL different sets of pins at run-time. This driver can also be built as a module. If so, the module will be - called pinctrl-i2cmux. + called i2c-mux-pinctrl. endmenu
drivers/iio/adc/exynos_adc.c +1 -1
@@ -109,7 +109,7 @@ static inline unsigned int exynos_adc_get_version(struct platform_device *pdev)const struct of_device_id *match; match =of_match_node (exynos_adc_match, pdev->dev.of_node); -return (unsigned int )match->data; +return (uintptr_t )match->data; }static void exynos_adc_hw_init (struct exynos_adc *info)
drivers/iio/adc/vf610_adc.c +1 -1
@@ -71,7 +71,7 @@#define VF610_ADC_ADSTS_MASK 0x300#define VF610_ADC_ADLPC_EN 0x80#define VF610_ADC_ADHSC_EN 0x400 -#define VF610_ADC_REFSEL_VALT 0x100 +#define VF610_ADC_REFSEL_VALT 0x800#define VF610_ADC_REFSEL_VBG 0x1000#define VF610_ADC_ADTRG_HARD 0x2000#define VF610_ADC_AVGS_8 0x4000
drivers/iio/imu/adis16480.c +1 -1
@@ -724,7 +724,7 @@ static const struct adis16480_chip_info adis16480_chip_info[] = { .gyro_max_val = IIO_RAD_TO_DEGREE(22500), .gyro_max_scale = 450, .accel_max_val = IIO_M_S_2_TO_G(12500), - .accel_max_scale = 5, + .accel_max_scale = 10, }, [ADIS16485] = { .channels = adis16485_channels,
drivers/iio/light/tsl2563.c +1 -1
@@ -626,7 +626,7 @@ static irqreturn_t tsl2563_event_handler(int irq, void *private)struct tsl2563_chip *chip =iio_priv (dev_info); iio_push_event(dev_info, - IIO_UNMOD_EVENT_CODE(IIO_LIGHT, + IIO_UNMOD_EVENT_CODE(IIO_INTENSITY, 0, IIO_EV_TYPE_THRESH, IIO_EV_DIR_EITHER),
drivers/infiniband/core/cma.c +2 -0
@@ -753,6 +753,8 @@ int rdma_init_qp_attr(struct rdma_cm_id *id, struct ib_qp_attr *qp_attr, }else ret =iw_cm_init_qp_attr (id_priv->cm_id.iw, qp_attr, qp_attr_mask); + qp_attr->port_num = id_priv->id.port_num; + *qp_attr_mask |=IB_QP_PORT ;break ;default : ret = -ENOSYS ;
drivers/infiniband/core/uverbs_cmd.c +3 -2
@@ -1303,7 +1303,7 @@ ssize_t ib_uverbs_resize_cq(struct ib_uverbs_file *file, int out_len) {struct ib_uverbs_resize_cq cmd; -struct ib_uverbs_resize_cq_resp resp; +struct ib_uverbs_resize_cq_resp resp = {};struct ib_udata udata;struct ib_cq *cq;int ret = -EINVAL ;
@@ -1915,7 +1915,8 @@ ssize_t ib_uverbs_modify_qp(struct ib_uverbs_file *file, goto out; } -if (!rdma_is_port_valid (qp->device, cmd.port_num)) { +if ((cmd.attr_mask &IB_QP_PORT ) && + !rdma_is_port_valid (qp->device, cmd.port_num)) { ret = -EINVAL ; goto release_qp; }
drivers/infiniband/core/uverbs_main.c +1 -2
@@ -315,6 +315,7 @@ static void ib_uverbs_release_file(struct kref *ref)if (atomic_dec_and_test (&file->device->refcount))ib_uverbs_comp_dev (file->device); +kobject_put (&file->device->kobj);kfree (file); }
@@ -784,7 +785,6 @@ static int ib_uverbs_open(struct inode *inode, struct file *filp)static int ib_uverbs_close (struct inode *inode,struct file *filp) {struct ib_uverbs_file *file = filp->private_data; -struct ib_uverbs_device *dev = file->device;ib_uverbs_cleanup_ucontext (file, file->ucontext);
@@ -792,7 +792,6 @@ static int ib_uverbs_close(struct inode *inode, struct file *filp)kref_put (&file->async_file->ref, ib_uverbs_release_event_file);kref_put (&file->ref, ib_uverbs_release_file); -kobject_put (&dev->kobj);return 0 ; }
drivers/infiniband/hw/cxgb3/iwch_provider.c +3 -2
@@ -794,7 +794,7 @@ static struct ib_mr *iwch_alloc_fast_reg_mr(struct ib_pd *pd, int pbl_depth)struct iwch_mr *mhp;u32 mmid;u32 stag =0 ; -int ret =0 ; +int ret = -ENOMEM ; php =to_iwch_pd (pd); rhp = php->rhp;
@@ -817,7 +817,8 @@ static struct ib_mr *iwch_alloc_fast_reg_mr(struct ib_pd *pd, int pbl_depth) mhp->attr.state =1 ; mmid = (stag) >>8 ; mhp->ibmr.rkey = mhp->ibmr.lkey = stag; -if (insert_handle (rhp, &rhp->mmidr, mhp, mmid)) + ret =insert_handle (rhp, &rhp->mmidr, mhp, mmid); +if (ret) goto err3;PDBG ("%s mmid 0x%x mhp %p stag 0x%x\n" , __func__, mmid, mhp, stag);
drivers/infiniband/hw/cxgb4/cq.c +1 -0
@@ -938,6 +938,7 @@ struct ib_cq *c4iw_create_cq(struct ib_device *ibdev, int entries, goto err2;if (ucontext) { + ret = -ENOMEM ; mm =kmalloc (sizeof *mm,GFP_KERNEL );if (!mm) goto err3;
drivers/infiniband/hw/mlx5/mem.c +1 -1
@@ -68,7 +68,7 @@ void mlx5_ib_cont_pages(struct ib_umem *umem, u64 addr, int *count, int *shift,for (k =0 ; k < len; k++) {if (!(i & mask)) { tmp = (unsigned long )pfn; - m =min (m,find_first_bit (&tmp,sizeof (tmp))); + m = min_t(unsigned long, m, find_first_bit(&tmp, sizeof(tmp))); skip =1 << m; mask = skip -1 ; base = pfn;
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c +3 -1
@@ -565,7 +565,8 @@ struct ib_pd *ocrdma_alloc_pd(struct ib_device *ibdev,if (is_uctx_pd) {ocrdma_release_ucontext_pd (uctx); }else { - status =ocrdma_mbx_dealloc_pd (dev, pd); +if (ocrdma_mbx_dealloc_pd (dev, pd)) +pr_err ("%s: ocrdma_mbx_dealloc_pd() failed\n" , __func__);kfree (pd); } exit:
@@ -1719,6 +1720,7 @@ struct ib_srq *ocrdma_create_srq(struct ib_pd *ibpd, goto err;if (udata ==NULL ) { + status = -ENOMEM ; srq->rqe_wr_id_tbl =kzalloc (sizeof (u64) * srq->rq.max_cnt,GFP_KERNEL );if (srq->rqe_wr_id_tbl ==NULL )
drivers/infiniband/ulp/ipoib/ipoib_cm.c +0 -1
@@ -508,7 +508,6 @@ static int ipoib_cm_rx_handler(struct ib_cm_id *cm_id,case IB_CM_REQ_RECEIVED :return ipoib_cm_req_handler (cm_id, event);case IB_CM_DREQ_RECEIVED : - p = cm_id->context;ib_send_cm_drep (cm_id,NULL ,0 );/* Fall through */ case IB_CM_REJ_RECEIVED :
drivers/infiniband/ulp/ipoib/ipoib_main.c +2 -1
@@ -1235,6 +1235,7 @@ static void ipoib_flush_neighs(struct ipoib_dev_priv *priv)int i, wait_flushed =0 ;init_completion (&priv->ntbl.flushed); +set_bit (IPOIB_NEIGH_TBL_FLUSH , &priv->flags);spin_lock_irqsave (&priv->lock, flags);
@@ -1279,7 +1280,6 @@ static void ipoib_neigh_hash_uninit(struct net_device *dev)ipoib_dbg (priv,"ipoib_neigh_hash_uninit\n" );init_completion (&priv->ntbl.deleted); -set_bit (IPOIB_NEIGH_TBL_FLUSH , &priv->flags);/* Stop GC if called at init fail need to cancel work */ stopped =test_and_set_bit (IPOIB_STOP_NEIGH_GC , &priv->flags);
@@ -1768,6 +1768,7 @@ static int __init ipoib_init_module(void) ipoib_sendq_size =max3 (ipoib_sendq_size,2 *MAX_SEND_CQE ,IPOIB_MIN_QUEUE_SIZE );#ifdef CONFIG_INFINIBAND_IPOIB_CM ipoib_max_conn_qp =min (ipoib_max_conn_qp,IPOIB_CM_MAX_CONN_QP ); + ipoib_max_conn_qp =max (ipoib_max_conn_qp,0 );#endif /*
drivers/input/joystick/analog.c +1 -1
@@ -158,7 +158,7 @@ static unsigned int get_time_pit(void)#define GET_TIME (x) rdtscl(x)#define DELTA (x,y) ((y)-(x))#define TIME_NAME "TSC" -#elif defined(__alpha__) || defined(CONFIG_MN10300 ) || defined(CONFIG_ARM ) || defined(CONFIG_TILE ) +#elif defined(__alpha__) || defined(CONFIG_MN10300 ) || defined(CONFIG_ARM ) || defined(CONFIG_ARM64 ) || defined(CONFIG_TILE )#define GET_TIME (x) do { x = get_cycles(); } while (0)#define DELTA (x,y) ((y)-(x))#define TIME_NAME "get_cycles"
drivers/input/mouse/trackpoint.c +2 -1
@@ -263,7 +263,8 @@ static int trackpoint_start_protocol(struct psmouse *psmouse, unsigned char *firif (ps2_command (&psmouse->ps2dev, param,MAKE_PS2_CMD (0 ,2 ,TP_READ_ID )))return -1 ; -if (param[0 ] !=TP_MAGIC_IDENT ) +/* add new TP ID. */ +if (!(param[0 ] &TP_MAGIC_IDENT ))return -1 ;if (firmware_id)
drivers/input/mouse/trackpoint.h +2 -1
@@ -21,8 +21,9 @@#define TP_COMMAND 0xE2/* Commands start with this */ #define TP_READ_ID 0xE1/* Sent for device identification */ -#define TP_MAGIC_IDENT 0x01/* Sent after a TP_READ_ID followed */ +#define TP_MAGIC_IDENT 0x03/* Sent after a TP_READ_ID followed */ /* by the firmware ID */ +/* Firmware ID includes 0x1, 0x2, 0x3 */ /*
drivers/input/serio/gscps2.c +1 -1
@@ -40,7 +40,6 @@MODULE_AUTHOR ("Laurent Canet <[email protected]>, Thibaut Varene <[email protected]>, Helge Deller <[email protected]>" );MODULE_DESCRIPTION ("HP GSC PS2 port driver" );MODULE_LICENSE ("GPL" ); -MODULE_DEVICE_TABLE (parisc, gscps2_device_tbl);#define PFX "gscps2.c: "
@@ -439,6 +438,7 @@ static struct parisc_device_id gscps2_device_tbl[] = {#endif { 0, } /* 0 terminated list */ }; +MODULE_DEVICE_TABLE (parisc, gscps2_device_tbl);static struct parisc_driver parisc_ps2_driver = { .name ="gsc_ps2" ,
drivers/iommu/amd_iommu_init.c +1 -1
@@ -2027,11 +2027,11 @@ static int __init state_next(void)break ;case IOMMU_ACPI_FINISHED :early_enable_iommus (); -register_syscore_ops (&amd_iommu_syscore_ops); x86_platform.iommu_shutdown = disable_iommus; init_state =IOMMU_ENABLED ;break ;case IOMMU_ENABLED : +register_syscore_ops (&amd_iommu_syscore_ops); ret =amd_iommu_init_pci (); init_state = ret ?IOMMU_INIT_ERROR :IOMMU_PCI_INIT ;enable_iommus_v2 ();
drivers/irqchip/irq-brcmstb-l2.c +1 -0
@@ -176,6 +176,7 @@ int __init brcmstb_l2_intc_of_init(struct device_node *np, ct->chip.irq_suspend = brcmstb_l2_intc_suspend; ct->chip.irq_resume = brcmstb_l2_intc_resume; + ct->chip.irq_pm_shutdown = brcmstb_l2_intc_suspend;if (of_property_read_bool (np,"brcm,irq-can-wake" )) { data->can_wake = true;
drivers/isdn/hardware/mISDN/mISDNipac.c +9 -3
@@ -754,10 +754,10 @@ dbusy_timer_handler(struct isac_hw *isac) }static int -open_dchannel (struct isac_hw *isac,struct channel_req *rq) +open_dchannel_caller (struct isac_hw *isac,struct channel_req *rq,void *caller) {pr_debug ("%s: %s dev(%d) open from %p\n" , isac->name, __func__, - isac->dch.dev.id,__builtin_return_address (1 )); + isac->dch.dev.id, caller);if (rq->protocol !=ISDN_P_TE_S0 )return -EINVAL ;if (rq->adr.channel ==1 )
@@ -771,6 +771,12 @@ open_dchannel(struct isac_hw *isac, struct channel_req *rq)return 0 ; } +static int +open_dchannel (struct isac_hw *isac,struct channel_req *rq) +{ +return open_dchannel_caller (isac, rq,__builtin_return_address (0 )); +} +static const char *ISACVer[] = {"2086/2186 V1.1" ,"2085 B1" ,"2085 B2" ,"2085 V2.3" };
@@ -1547,7 +1553,7 @@ ipac_dctrl(struct mISDNchannel *ch, u32 cmd, void *arg)case OPEN_CHANNEL : rq = arg;if (rq->protocol ==ISDN_P_TE_S0 ) - err =open_dchannel (isac, rq); + err =open_dchannel_caller (isac, rq,__builtin_return_address (0 ));else err =open_bchannel (ipac, rq);if (err)
drivers/isdn/hardware/mISDN/w6692.c +3 -3
@@ -1176,10 +1176,10 @@ w6692_l1callback(struct dchannel *dch, u32 cmd) }static int -open_dchannel (struct w6692_hw *card,struct channel_req *rq) +open_dchannel (struct w6692_hw *card,struct channel_req *rq,void *caller) {pr_debug ("%s: %s dev(%d) open from %p\n" , card->name, __func__, - card->dch.dev.id,__builtin_return_address (1 )); + card->dch.dev.id, caller);if (rq->protocol !=ISDN_P_TE_S0 )return -EINVAL ;if (rq->adr.channel ==1 )
@@ -1207,7 +1207,7 @@ w6692_dctrl(struct mISDNchannel *ch, u32 cmd, void *arg)case OPEN_CHANNEL : rq = arg;if (rq->protocol ==ISDN_P_TE_S0 ) - err =open_dchannel (card, rq); + err =open_dchannel (card, rq,__builtin_return_address (0 ));else err =open_bchannel (card, rq);if (err)
drivers/md/dm-bufio.c +1 -0
@@ -349,6 +349,7 @@ static void *alloc_buffer_data(struct dm_bufio_client *c, gfp_t gfp_mask,* as if GFP_NOIO was specified. */ + noio_flag =0 ;if (gfp_mask & __GFP_NORETRY) noio_flag =memalloc_noio_save ();
drivers/md/dm.c +0 -10
@@ -24,16 +24,6 @@#define DM_MSG_PREFIX "core" -#ifdef CONFIG_PRINTK -/* -* ratelimit state to be used in DMXXX_LIMIT(). -*/ -DEFINE_RATELIMIT_STATE (dm_ratelimit_state, -DEFAULT_RATELIMIT_INTERVAL , -DEFAULT_RATELIMIT_BURST ); -EXPORT_SYMBOL (dm_ratelimit_state); -#endif -/* * Cookies are numeric values sent with CHANGE and REMOVE * uevents while resuming, removing or renaming the device.
drivers/md/raid5.c +3 -3
@@ -5240,6 +5240,8 @@ static void raid5_do_work(struct work_struct *work)pr_debug ("%d stripes handled\n" , handled);spin_unlock_irq (&conf->device_lock); + +async_tx_issue_pending_all ();blk_finish_plug (&plug);pr_debug ("--- raid5worker inactive\n" );
@@ -6741,12 +6743,10 @@ static void end_reshape(struct r5conf *conf) {if (!test_bit (MD_RECOVERY_INTR , &conf->mddev->recovery)) { -struct md_rdev *rdev;spin_lock_irq (&conf->device_lock); conf->previous_raid_disks = conf->raid_disks; -rdev_for_each (rdev, conf->mddev) - rdev->data_offset = rdev->new_data_offset; +md_finish_reshape (conf->mddev);smp_wmb (); conf->reshape_progress = MaxSector;spin_unlock_irq (&conf->device_lock);
drivers/media/platform/davinci/vpfe_capture.c +2 -20
@@ -1708,27 +1708,9 @@ static long vpfe_param_handler(struct file *file, void *priv,switch (cmd) {case VPFE_CMD_S_CCDC_RAW_PARAMS : + ret = -EINVAL ;v4l2_warn (&vpfe_dev->v4l2_dev, -"VPFE_CMD_S_CCDC_RAW_PARAMS: experimental ioctl\n" ); -if (ccdc_dev->hw_ops.set_params) { - ret = ccdc_dev->hw_ops.set_params (param); -if (ret) { -v4l2_dbg (1 , debug, &vpfe_dev->v4l2_dev, -"Error setting parameters in CCDC\n" ); - goto unlock_out; - } - ret =vpfe_get_ccdc_image_format (vpfe_dev, - &vpfe_dev->fmt); -if (ret <0 ) { -v4l2_dbg (1 , debug, &vpfe_dev->v4l2_dev, -"Invalid image format at CCDC\n" ); - goto unlock_out; - } - }else { - ret = -EINVAL ; -v4l2_dbg (1 , debug, &vpfe_dev->v4l2_dev, -"VPFE_CMD_S_CCDC_RAW_PARAMS not supported\n" ); - } +"VPFE_CMD_S_CCDC_RAW_PARAMS not supported\n" );break ;default : ret = -ENOTTY ;
drivers/media/rc/ir-lirc-codec.c +1 -1
@@ -257,7 +257,7 @@ static long ir_lirc_ioctl(struct file *filep, unsigned int cmd,return 0 ;case LIRC_GET_REC_RESOLUTION : - val = dev->rx_resolution; + val = dev->rx_resolution /1000 ;break ;case LIRC_SET_WIDEBAND_RECEIVER :
drivers/message/i2o/i2o_config.c +2 -2
@@ -772,7 +772,7 @@ static long i2o_cfg_compat_ioctl(struct file *file, unsigned cmd,#endif -#ifdef CONFIG_I2O_EXT_ADAPTEC +#if defined(CONFIG_I2O_EXT_ADAPTEC ) && !defined(CONFIG_64BIT )static int i2o_cfg_passthru (unsigned long arg) { struct i2o_cmd_passthru __user *cmd =
@@ -1045,7 +1045,7 @@ static long i2o_cfg_ioctl(struct file *fp, unsigned int cmd, unsigned long arg) ret =i2o_cfg_evt_get (arg, fp);break ; -#ifdef CONFIG_I2O_EXT_ADAPTEC +#if defined(CONFIG_I2O_EXT_ADAPTEC ) && !defined(CONFIG_64BIT )case I2OPASSTHRU : ret =i2o_cfg_passthru (arg);break ;
drivers/mfd/arizona-core.c +2 -2
@@ -497,12 +497,12 @@ const struct dev_pm_ops arizona_pm_ops = {EXPORT_SYMBOL_GPL (arizona_pm_ops);#ifdef CONFIG_OF -int arizona_of_get_type (struct device *dev) +unsigned long arizona_of_get_type (struct device *dev) {const struct of_device_id *id =of_match_device (arizona_of_match, dev);if (id) -return (int )id->data; +return (unsigned long )id->data;else return 0 ; }
drivers/mfd/arizona-i2c.c +3 -2
@@ -24,11 +24,12 @@#include "arizona.h" static int arizona_i2c_probe (struct i2c_client *i2c, -const struct i2c_device_id *id) +const struct i2c_device_id *id) {struct arizona *arizona;const struct regmap_config *regmap_config; -int ret, type; +unsigned long type; +int ret;if (i2c->dev.of_node) type =arizona_of_get_type (&i2c->dev);
drivers/mfd/arizona-spi.c +2 -1
@@ -28,7 +28,8 @@ static int arizona_spi_probe(struct spi_device *spi)const struct spi_device_id *id =spi_get_device_id (spi);struct arizona *arizona;const struct regmap_config *regmap_config; -int ret, type; +unsigned long type; +int ret;if (spi->dev.of_node) type =arizona_of_get_type (&spi->dev);
drivers/mfd/arizona.h +2 -2
@@ -46,9 +46,9 @@ int arizona_irq_init(struct arizona *arizona);int arizona_irq_exit (struct arizona *arizona);#ifdef CONFIG_OF -int arizona_of_get_type (struct device *dev); +unsigned long arizona_of_get_type (struct device *dev);#else -static inline int arizona_of_get_type (struct device *dev) +static inline unsigned long arizona_of_get_type (struct device *dev) {return 0 ; }
drivers/mtd/maps/pmcmsp-flash.c +1 -3
@@ -139,15 +139,13 @@ static int __init init_msp_flash(void) } msp_maps[i].bankwidth =1 ; - msp_maps[i].name =kmalloc (7 ,GFP_KERNEL ); + msp_maps[i].name =kstrndup (flash_name,7 ,GFP_KERNEL );if (!msp_maps[i].name) {iounmap (msp_maps[i].virt);kfree (msp_parts[i]); goto cleanup_loop; } - msp_maps[i].name =strncpy (msp_maps[i].name, flash_name,7 ); -for (j =0 ; j < pcnt; j++) { part_name[5 ] ='0' + i; part_name[7 ] ='0' + j;
drivers/mtd/maps/rbtx4939-flash.c +0 -2
@@ -35,8 +35,6 @@ static int rbtx4939_flash_remove(struct platform_device *dev)return 0 ;if (info->mtd) { -struct rbtx4939_flash_data *pdata =dev_get_platdata (&dev->dev); -mtd_device_unregister (info->mtd);map_destroy (info->mtd); }
drivers/mtd/nand/nandsim.c +1 -0
@@ -2387,6 +2387,7 @@ static int __init ns_init_module(void)return 0 ; err_exit: +nandsim_debugfs_remove (nand);free_nandsim (nand);nand_release (nsmtd);for (i =0 ;i <ARRAY_SIZE (nand->partitions); ++i)
drivers/net/Kconfig +3 -0
@@ -331,6 +331,9 @@ config XEN_NETDEV_FRONTEND config XEN_NETDEV_BACKEND tristate "Xen backend network device" depends on XEN_BACKEND + depends on !(PAGE_SIZE_64KB || ARM64_64K_PAGES || \ + IA64_PAGE_SIZE_64KB || MICROBLAZE_64K_PAGES || \ + PARISC_PAGE_SIZE_64KB || PPC_64K_PAGES) help This driver allows the kernel to act as a Xen network driver domain which exports paravirtual network devices to other
drivers/net/ethernet/amd/amd8111e.c +11 -8
@@ -101,7 +101,6 @@MODULE_AUTHOR ("Advanced Micro Devices, Inc." );MODULE_DESCRIPTION ("AMD8111 based 10/100 Ethernet Controller. Driver Version " MODULE_VERS );MODULE_LICENSE ("GPL" ); -MODULE_DEVICE_TABLE (pci, amd8111e_pci_tbl);module_param_array (speed_duplex, int,NULL ,0 );MODULE_PARM_DESC (speed_duplex,"Set device speed and duplex modes, 0: Auto Negotiate, 1: 10Mbps Half Duplex, 2: 10Mbps Full Duplex, 3: 100Mbps Half Duplex, 4: 100Mbps Full Duplex" );module_param_array (coalesce, bool,NULL ,0 );
@@ -109,13 +108,6 @@ MODULE_PARM_DESC(coalesce, "Enable or Disable interrupt coalescing, 1: Enable, 0module_param_array (dynamic_ipg, bool,NULL ,0 );MODULE_PARM_DESC (dynamic_ipg,"Enable or Disable dynamic IPG, 1: Enable, 0: Disable" ); -static DEFINE_PCI_DEVICE_TABLE (amd8111e_pci_tbl) = { - - {PCI_VENDOR_ID_AMD ,PCI_DEVICE_ID_AMD8111E_7462 , -PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 ,0UL }, - {0 , } - -};/* This function will read the PHY registers. */
@@ -1970,6 +1962,17 @@ static int amd8111e_probe_one(struct pci_dev *pdev, } +static const struct pci_device_id amd8111e_pci_tbl[] = { + { + .vendor =PCI_VENDOR_ID_AMD , + .device =PCI_DEVICE_ID_AMD8111E_7462 , + }, + { + .vendor =0 , + } +}; +MODULE_DEVICE_TABLE (pci, amd8111e_pci_tbl); +static struct pci_driver amd8111e_driver = { .name =MODULE_NAME , .id_table = amd8111e_pci_tbl,
drivers/net/ethernet/amd/nmclan_cs.c +3 -1
@@ -621,7 +621,7 @@ static int nmclan_config(struct pcmcia_device *link) ret =pcmcia_request_io (link);if (ret) goto failed; - ret =pcmcia_request_exclusive_irq (link, mace_interrupt); + ret =pcmcia_request_irq (link, mace_interrupt);if (ret) goto failed; ret =pcmcia_enable_device (link);
@@ -952,6 +952,8 @@ static irqreturn_t mace_interrupt(int irq, void *dev_id) do { /* WARNING: MACE_IR is a READ/CLEAR port! */ status = inb(ioaddr + AM2150_MACE_BASE + MACE_IR); + if (!(status & ~MACE_IMR_DEFAULT) && IntrCnt == MACE_MAX_IR_ITERATIONS) + return IRQ_NONE; pr_debug("mace_interrupt: irq 0x%X status 0x%X.\n", irq, status);
drivers/net/ethernet/broadcom/b44.c +1 -0
@@ -2372,6 +2372,7 @@ static int b44_init_one(struct ssb_device *sdev, bp->msg_enable =netif_msg_init (b44_debug,B44_DEF_MSG_ENABLE );spin_lock_init (&bp->lock); +u64_stats_init (&bp->hw_stats.syncp); bp->rx_pending =B44_DEF_RX_RING_PENDING ; bp->tx_pending =B44_DEF_TX_RING_PENDING ;
drivers/net/ethernet/broadcom/bcmsysport.c +3 -1
@@ -386,7 +386,7 @@ static void bcm_sysport_get_stats(struct net_device *dev,static void bcm_sysport_free_cb (struct bcm_sysport_cb *cb) { -dev_kfree_skb_any (cb->skb); +dev_consume_skb_any (cb->skb); cb->skb =NULL ;dma_unmap_addr_set (cb, dma_addr,0 ); }
@@ -1024,6 +1024,8 @@ static int bcm_sysport_init_tx_ring(struct bcm_sysport_priv *priv, ring->cbs =kzalloc (sizeof (struct bcm_sysport_cb ) * size,GFP_KERNEL );if (!ring->cbs) { +dma_free_coherent (kdev,sizeof (struct dma_desc ), + ring->desc_cpu, ring->desc_dma);netif_err (priv, hw, priv->netdev,"CB allocation failed\n" );return -ENOMEM ; }
drivers/net/ethernet/broadcom/genet/bcmgenet.c +226 -230
638 lines not on this page · raw message
drivers/net/ethernet/broadcom/genet/bcmgenet.h +9 -0
@@ -504,12 +504,21 @@ struct bcmgenet_hw_params {u32 flags; }; +struct bcmgenet_skb_cb { +struct enet_cb *first_cb;/* First control block of SKB */ +struct enet_cb *last_cb;/* Last control block of SKB */ +unsigned int bytes_sent;/* bytes on the wire (no TSB) */ +}; + +#define GENET_CB (skb) ((struct bcmgenet_skb_cb *)((skb)->cb)) +struct bcmgenet_tx_ring {spinlock_t lock;/* ring lock */ unsigned int index;/* ring index */ unsigned int queue;/* queue index */ struct enet_cb *cbs;/* tx ring buffer control block*/ unsigned int size;/* size of each tx ring */ +unsigned int clean_ptr;/* Tx ring clean pointer */ unsigned int c_index;/* last consumer index of each ring*/ unsigned int free_bds;/* # of free bds for each ring */ unsigned int write_ptr;/* Tx ring write pointer SW copy */
drivers/net/ethernet/dec/tulip/tulip_core.c +7 -2
@@ -98,8 +98,7 @@ static int csr0 = 0x01A00000 | 0x4800;#elif defined(__mips__)static int csr0 =0x00200000 |0x4000 ;#else -#warning Processor architecture undefined! -static int csr0 =0x00A00000 |0x4800 ; +static int csr0;#endif /* Operational parameters that usually are not changed. */
@@ -1982,6 +1981,12 @@ static int __init tulip_init (void)pr_info ("%s" , version);#endif +if (!csr0) { +pr_warn ("tulip: unknown CPU architecture, using default csr0\n" ); +/* default to 8 longword cache line alignment */ + csr0 =0x00A00000 |0x4800 ; + } +/* copy module parms into globals */ tulip_rx_copybreak = rx_copybreak; tulip_max_interrupt_work = max_interrupt_work;
drivers/net/ethernet/dec/tulip/uli526x.c +1 -1
@@ -1115,7 +1115,7 @@ static void uli526x_timer(unsigned long data)netif_carrier_off (dev); } } - db->init=0 ; + db->init =0 ;/* Timer active again */ db->timer.expires =ULI526X_TIMER_WUT ;
drivers/net/ethernet/dec/tulip/winbond-840.c +1 -1
@@ -907,7 +907,7 @@ static void init_registers(struct net_device *dev)#elif defined(CONFIG_SPARC ) || defined (CONFIG_PARISC ) i |=0x4800 ;#else -#warning Processor architecture undefined +dev_warn (&dev->dev,"unknown CPU architecture, using default csr0 setting\n" ); i |=0x4800 ;#endif iowrite32 (i, ioaddr + PCIBusCfg);
drivers/net/ethernet/emulex/benet/be_main.c +0 -1
@@ -26,7 +26,6 @@#include <net/vxlan.h> MODULE_VERSION (DRV_VER ); -MODULE_DEVICE_TABLE (pci, be_dev_ids);MODULE_DESCRIPTION (DRV_DESC " " DRV_VER );MODULE_AUTHOR ("Emulex Corporation" );MODULE_LICENSE ("GPL" );
drivers/net/ethernet/intel/e1000e/ich8lan.c +7 -6
@@ -984,7 +984,7 @@ static s32 e1000_platform_pm_pch_lpt(struct e1000_hw *hw, bool link)u16 max_snoop, max_nosnoop;u16 max_ltr_enc;/* max LTR latency encoded */ s64 lat_ns;/* latency (ns) */ -s64 value; +u64 value;u32 rxa;if (!hw->adapter->max_frame_size) {
@@ -1011,12 +1011,13 @@ static s32 e1000_platform_pm_pch_lpt(struct e1000_hw *hw, bool link)*/ lat_ns = ((s64 )rxa *1024 - (2 * (s64 )hw->adapter->max_frame_size)) *8 *1000 ; -if (lat_ns <0 ) - lat_ns =0 ; -else -do_div (lat_ns, speed); +if (lat_ns <0 ) { + value =0 ; + }else { + value = lat_ns; +do_div (value, speed); + } - value = lat_ns;while (value >PCI_LTR_VALUE_MASK ) { scale++; value =DIV_ROUND_UP (value, (1 <<5 ));
drivers/net/ethernet/intel/i40e/i40e_debugfs.c +17 -13
@@ -754,7 +754,7 @@ static void i40e_dbg_dump_desc(int cnt, int vsi_seid, int ring_id, int desc_n, {struct i40e_tx_desc *txd;union i40e_rx_desc *rxd; -struct i40e_ring ring; +struct i40e_ring *ring;struct i40e_vsi *vsi;int i;
@@ -773,29 +773,32 @@ static void i40e_dbg_dump_desc(int cnt, int vsi_seid, int ring_id, int desc_n, vsi_seid);return ; } -if (is_rx_ring) - ring = *vsi->rx_rings[ring_id]; -else - ring = *vsi->tx_rings[ring_id]; + + ring =kmemdup (is_rx_ring + ? vsi->rx_rings[ring_id] : vsi->tx_rings[ring_id], +sizeof (*ring),GFP_KERNEL ); +if (!ring) +return ; +if (cnt ==2 ) {dev_info (&pf->pdev->dev,"vsi = %02i %s ring = %02i\n" , vsi_seid, is_rx_ring ?"rx" :"tx" , ring_id); -for (i =0 ; i < ring.count; i++) { +for (i =0 ; i < ring->count; i++) {if (!is_rx_ring) { - txd =I40E_TX_DESC (&ring, i); + txd =I40E_TX_DESC (ring, i);dev_info (&pf->pdev->dev," d[%03i] = 0x%016llx 0x%016llx\n" , i, txd->buffer_addr, txd->cmd_type_offset_bsz); }else if (sizeof (union i40e_rx_desc ) ==sizeof (union i40e_16byte_rx_desc )) { - rxd =I40E_RX_DESC (&ring, i); + rxd =I40E_RX_DESC (ring, i);dev_info (&pf->pdev->dev," d[%03i] = 0x%016llx 0x%016llx\n" , i, rxd->read.pkt_addr, rxd->read.hdr_addr); }else { - rxd =I40E_RX_DESC (&ring, i); + rxd =I40E_RX_DESC (ring, i); dev_info(&pf->pdev->dev, " d[%03i] = 0x%016llx 0x%016llx 0x%016llx 0x%016llx\n", i, rxd->read.pkt_addr,
@@ -804,26 +807,26 @@ static void i40e_dbg_dump_desc(int cnt, int vsi_seid, int ring_id, int desc_n, } } }else if (cnt ==3 ) { -if (desc_n >= ring.count || desc_n <0 ) { +if (desc_n >= ring->count || desc_n <0 ) {dev_info (&pf->pdev->dev,"descriptor %d not found\n" , desc_n);return ; }if (!is_rx_ring) { - txd =I40E_TX_DESC (&ring, desc_n); + txd =I40E_TX_DESC (ring, desc_n);dev_info (&pf->pdev->dev,"vsi = %02i tx ring = %02i d[%03i] = 0x%016llx 0x%016llx\n" , vsi_seid, ring_id, desc_n, txd->buffer_addr, txd->cmd_type_offset_bsz); }else if (sizeof (union i40e_rx_desc ) ==sizeof (union i40e_16byte_rx_desc )) { - rxd =I40E_RX_DESC (&ring, desc_n); + rxd =I40E_RX_DESC (ring, desc_n);dev_info (&pf->pdev->dev,"vsi = %02i rx ring = %02i d[%03i] = 0x%016llx 0x%016llx\n" , vsi_seid, ring_id, desc_n, rxd->read.pkt_addr, rxd->read.hdr_addr); }else { - rxd =I40E_RX_DESC (&ring, desc_n); + rxd =I40E_RX_DESC (ring, desc_n); dev_info(&pf->pdev->dev, "vsi = %02i rx ring = %02i d[%03i] = 0x%016llx 0x%016llx 0x%016llx 0x%016llx\n", vsi_seid, ring_id, desc_n,
@@ -833,6 +836,7 @@ static void i40e_dbg_dump_desc(int cnt, int vsi_seid, int ring_id, int desc_n, }else {dev_info (&pf->pdev->dev,"dump desc rx/tx <vsi_seid> <ring_id> [<desc_n>]\n" ); } +kfree (ring); }/**
drivers/net/ethernet/intel/i40e/i40e_txrx.c +2 -0
@@ -914,6 +914,8 @@ int i40e_setup_tx_descriptors(struct i40e_ring *tx_ring)if (!tx_ring->tx_bi) goto err; +u64_stats_init (&tx_ring->syncp); +/* round up to nearest 4K */ tx_ring->size = tx_ring->count *sizeof (struct i40e_tx_desc );/* add u32 for head writeback, align after this takes care of
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +4 -0
@@ -2535,6 +2535,8 @@ int ixgbevf_setup_tx_resources(struct ixgbevf_ring *tx_ring)if (!tx_ring->tx_buffer_info) goto err; +u64_stats_init (&tx_ring->syncp); +/* round up to nearest 4K */ tx_ring->size = tx_ring->count *sizeof (union ixgbe_adv_tx_desc ); tx_ring->size =ALIGN (tx_ring->size,4096 );
@@ -2595,6 +2597,8 @@ int ixgbevf_setup_rx_resources(struct ixgbevf_ring *rx_ring)if (!rx_ring->rx_buffer_info) goto err; +u64_stats_init (&rx_ring->syncp); +/* Round up to nearest 4K */ rx_ring->size = rx_ring->count *sizeof (union ixgbe_adv_rx_desc ); rx_ring->size =ALIGN (rx_ring->size,4096 );
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c +8 -7
@@ -142,6 +142,7 @@ static void mlx4_en_get_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) {struct mlx4_en_priv *priv =netdev_priv (netdev); +struct mlx4_caps *caps = &priv->mdev->dev->caps;int err =0 ;u64 config =0 ;u64 mask;
@@ -154,24 +155,24 @@ static void mlx4_en_get_wol(struct net_device *netdev, mask = (priv->port ==1 ) ?MLX4_DEV_CAP_FLAG_WOL_PORT1 :MLX4_DEV_CAP_FLAG_WOL_PORT2 ; -if (!(priv->mdev->dev->caps.flags & mask)) { +if (!(caps->flags & mask)) { wol->supported =0 ; wol->wolopts =0 ;return ; } +if (caps->wol_port[priv->port]) + wol->supported =WAKE_MAGIC ; +else + wol->supported =0 ; + err =mlx4_wol_read (priv->mdev->dev, &config, priv->port);if (err) {en_err (priv,"Failed to get WoL information\n" );return ; } -if (config &MLX4_EN_WOL_MAGIC ) - wol->supported =WAKE_MAGIC ; -else - wol->supported =0 ; - -if (config &MLX4_EN_WOL_ENABLED ) +if ((config &MLX4_EN_WOL_ENABLED ) && (config &MLX4_EN_WOL_MAGIC )) wol->wolopts =WAKE_MAGIC ;else wol->wolopts =0 ;
drivers/net/ethernet/mellanox/mlx4/en_netdev.c +3 -7
@@ -1535,17 +1535,13 @@ static int mlx4_en_init_affinity_hint(struct mlx4_en_priv *priv, int ring_idx) {struct mlx4_en_rx_ring *ring = priv->rx_ring[ring_idx];int numa_node = priv->mdev->dev->numa_node; -int ret =0 ;if (!zalloc_cpumask_var (&ring->affinity_mask,GFP_KERNEL ))return -ENOMEM ; - ret =cpumask_set_cpu_local_first (ring_idx, numa_node, - ring->affinity_mask); -if (ret) -free_cpumask_var (ring->affinity_mask); - -return ret; +cpumask_set_cpu (cpumask_local_spread (ring_idx, numa_node), + ring->affinity_mask); +return 0 ; }static void mlx4_en_free_affinity_hint (struct mlx4_en_priv *priv,int ring_idx)
drivers/net/ethernet/mellanox/mlx4/en_tx.c +3 -3
@@ -133,9 +133,9 @@ int mlx4_en_create_tx_ring(struct mlx4_en_priv *priv, ring->queue_index = queue_index;if (queue_index < priv->num_tx_rings_p_up) -cpumask_set_cpu_local_first (queue_index, - priv->mdev->dev->numa_node, - &ring->affinity_mask); +cpumask_set_cpu (cpumask_local_spread (queue_index, + priv->mdev->dev->numa_node), + &ring->affinity_mask); *pring = ring;return 0 ;
drivers/net/ethernet/mellanox/mlx4/fw.c +4 -0
@@ -532,6 +532,7 @@ int mlx4_QUERY_DEV_CAP(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap)#define QUERY_DEV_CAP_CQ_TS_SUPPORT_OFFSET 0x3e#define QUERY_DEV_CAP_MAX_PKEY_OFFSET 0x3f#define QUERY_DEV_CAP_EXT_FLAGS_OFFSET 0x40 +#define QUERY_DEV_CAP_WOL_OFFSET 0x43#define QUERY_DEV_CAP_FLAGS_OFFSET 0x44#define QUERY_DEV_CAP_RSVD_UAR_OFFSET 0x48#define QUERY_DEV_CAP_UAR_SZ_OFFSET 0x49
@@ -658,6 +659,9 @@ int mlx4_QUERY_DEV_CAP(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap)MLX4_GET (ext_flags, outbox,QUERY_DEV_CAP_EXT_FLAGS_OFFSET );MLX4_GET (flags, outbox,QUERY_DEV_CAP_FLAGS_OFFSET ); dev_cap->flags = flags | (u64 )ext_flags <<32 ; +MLX4_GET (field, outbox,QUERY_DEV_CAP_WOL_OFFSET ); + dev_cap->wol_port[1 ] = !!(field &0x20 ); + dev_cap->wol_port[2 ] = !!(field &0x40 );MLX4_GET (field, outbox,QUERY_DEV_CAP_RSVD_UAR_OFFSET ); dev_cap->reserved_uars = field >>4 ;MLX4_GET (field, outbox,QUERY_DEV_CAP_UAR_SZ_OFFSET );
drivers/net/ethernet/mellanox/mlx4/fw.h +1 -0
@@ -120,6 +120,7 @@ struct mlx4_dev_cap {u8 log_max_macs[MLX4_MAX_PORTS +1 ];u8 log_max_vlans[MLX4_MAX_PORTS +1 ];u32 max_counters; +bool wol_port[MLX4_MAX_PORTS +1 ]; };struct mlx4_func_cap {
drivers/net/ethernet/mellanox/mlx4/main.c +2 -0
@@ -279,6 +279,8 @@ static int mlx4_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap) dev->caps.stat_rate_support = dev_cap->stat_rate_support; dev->caps.max_gso_sz = dev_cap->max_gso_sz; dev->caps.max_rss_tbl_sz = dev_cap->max_rss_tbl_sz; + dev->caps.wol_port[1 ] = dev_cap->wol_port[1 ]; + dev->caps.wol_port[2 ] = dev_cap->wol_port[2 ];/* Sense port always allowed on supported devices for ConnectX-1 and -2 */ if (mlx4_priv (dev)->pci_dev_data &MLX4_PCI_DEV_FORCE_SENSE_PORT )
drivers/net/ethernet/mellanox/mlx5/core/cmd.c +17 -2
@@ -547,6 +547,10 @@ static void cb_timeout_handler(struct work_struct *work)mlx5_cmd_comp_handler (dev,1UL << ent->idx); } +static void free_msg (struct mlx5_core_dev *dev,struct mlx5_cmd_msg *msg); +static void mlx5_free_cmd_msg (struct mlx5_core_dev *dev, +struct mlx5_cmd_msg *msg); +static void cmd_work_handler (struct work_struct *work) { struct mlx5_cmd_work_ent *ent = container_of(work, struct mlx5_cmd_work_ent, work);
@@ -555,16 +559,27 @@ static void cmd_work_handler(struct work_struct *work)unsigned long cb_timeout =msecs_to_jiffies (MLX5_CMD_TIMEOUT_MSEC );struct mlx5_cmd_layout *lay;struct semaphore *sem; +int alloc_ret; sem = ent->page_queue ? &cmd->pages_sem : &cmd->sem;down (sem);if (!ent->page_queue) { - ent->idx =alloc_ent (cmd); -if (ent->idx <0 ) { + alloc_ret =alloc_ent (cmd); +if (alloc_ret <0 ) {mlx5_core_err (dev,"failed to allocate command entry\n" ); +if (ent->callback) { + ent->callback (-EAGAIN , ent->context); +mlx5_free_cmd_msg (dev, ent->out); +free_msg (dev, ent->in); +free_cmd (ent); + }else { + ent->ret = -EAGAIN ; +complete (&ent->done); + }up (sem);return ; } + ent->idx = alloc_ret; }else { ent->idx = cmd->max_reg_cmds; }
drivers/net/ethernet/mellanox/mlx5/core/debugfs.c +3 -3
@@ -300,11 +300,11 @@ static u64 qp_read_field(struct mlx5_core_dev *dev, struct mlx5_core_qp *qp, param = qp->pid;break ;case QP_STATE : - param = (u64 )mlx5_qp_state_str (be32_to_cpu (ctx->flags) >>28 ); + param = (unsigned long )mlx5_qp_state_str (be32_to_cpu (ctx->flags) >>28 ); *is_str =1 ;break ;case QP_XPORT : - param = (u64 )mlx5_qp_type_str ((be32_to_cpu (ctx->flags) >>16 ) &0xff ); + param = (unsigned long )mlx5_qp_type_str ((be32_to_cpu (ctx->flags) >>16 ) &0xff ); *is_str =1 ;break ;case QP_MTU :
@@ -464,7 +464,7 @@ static ssize_t dbg_read(struct file *filp, char __user *buf, size_t count,if (is_str) - ret =snprintf (tbuf,sizeof (tbuf),"%s\n" , (const char *)field); + ret =snprintf (tbuf,sizeof (tbuf),"%s\n" , (const char *)(unsigned long )field);else ret =snprintf (tbuf,sizeof (tbuf),"0x%llx\n" , field);
drivers/net/ethernet/neterion/vxge/vxge-main.c +12 -19
@@ -2224,8 +2224,6 @@ static irqreturn_t vxge_isr_napi(int irq, void *dev_id)return IRQ_NONE ; } -#ifdef CONFIG_PCI_MSI -static irqreturn_t vxge_tx_msix_handle (int irq,void *dev_id) {struct vxge_fifo *fifo = (struct vxge_fifo *)dev_id;
@@ -2443,16 +2441,13 @@ static void vxge_rem_msix_isr(struct vxgedev *vdev)if (vdev->config.intr_type ==MSI_X )pci_disable_msix (vdev->pdev); } -#endif static void vxge_rem_isr (struct vxgedev *vdev) { -#ifdef CONFIG_PCI_MSI -if (vdev->config.intr_type ==MSI_X ) { +if (IS_ENABLED (CONFIG_PCI_MSI ) && + vdev->config.intr_type ==MSI_X ) {vxge_rem_msix_isr (vdev); - } else -#endif -if (vdev->config.intr_type ==INTA ) { + }else if (vdev->config.intr_type ==INTA ) {synchronize_irq (vdev->pdev->irq);free_irq (vdev->pdev->irq, vdev); }
@@ -2461,11 +2456,10 @@ static void vxge_rem_isr(struct vxgedev *vdev)static int vxge_add_isr (struct vxgedev *vdev) {int ret =0 ; -#ifdef CONFIG_PCI_MSI int vp_idx =0 , intr_idx =0 , intr_cnt =0 , msix_idx =0 , irq_req =0 ;int pci_fun =PCI_FUNC (vdev->pdev->devfn); -if (vdev->config.intr_type ==MSI_X ) +if (IS_ENABLED (CONFIG_PCI_MSI ) && vdev->config.intr_type ==MSI_X ) ret =vxge_enable_msix (vdev);if (ret) {
@@ -2476,7 +2470,7 @@ static int vxge_add_isr(struct vxgedev *vdev) vdev->config.intr_type =INTA ; } -if (vdev->config.intr_type ==MSI_X ) { +if (IS_ENABLED (CONFIG_PCI_MSI ) && vdev->config.intr_type ==MSI_X ) {for (intr_idx =0 ; intr_idx < (vdev->no_of_vpath *VXGE_HW_VPATH_MSIX_ACTIVE ); intr_idx++) {
@@ -2577,9 +2571,8 @@ static int vxge_add_isr(struct vxgedev *vdev) vdev->vxge_entries[intr_cnt].in_use =1 ; vdev->vxge_entries[intr_cnt].arg = &vdev->vpaths[0 ]; } -INTA_MODE: -#endif +INTA_MODE:if (vdev->config.intr_type ==INTA ) {snprintf (vdev->desc[0 ],VXGE_INTR_STRLEN ,"%s:vxge:INTA" , vdev->ndev->name);
@@ -3890,12 +3883,12 @@ static void vxge_device_config_init(struct vxge_hw_device_config *device_config,if (max_mac_vpath >VXGE_MAX_MAC_ADDR_COUNT ) max_mac_vpath =VXGE_MAX_MAC_ADDR_COUNT ; -#ifndef CONFIG_PCI_MSI -vxge_debug_init (VXGE_ERR , -"%s: This Kernel does not support " -"MSI-X. Defaulting to INTA" ,VXGE_DRIVER_NAME ); - *intr_type =INTA ; -#endif +if (!IS_ENABLED (CONFIG_PCI_MSI )) { +vxge_debug_init (VXGE_ERR , +"%s: This Kernel does not support " +"MSI-X. Defaulting to INTA" ,VXGE_DRIVER_NAME ); + *intr_type =INTA ; + }/* Configure whether MSI-X or IRQL. */ switch (*intr_type) {
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c +1 -1
@@ -2332,7 +2332,7 @@ netxen_md_rdqueue(struct netxen_adapter *adapter, loop_cnt++) {NX_WR_DUMP_REG (select_addr, adapter->ahw.pci_base0, queue_id); read_addr = queueEntry->read_addr; -for (k =0 ; k < read_cnt; k--) { +for (k =0 ; k < read_cnt; k++) {NX_RD_DUMP_REG (read_addr, adapter->ahw.pci_base0, &read_value); *data_buff++ = read_value;
drivers/net/ethernet/qlogic/qlge/qlge_dbg.c +1 -1
@@ -724,7 +724,7 @@ static void ql_build_coredump_seg_header( seg_hdr->cookie =MPI_COREDUMP_COOKIE ; seg_hdr->segNum = seg_number; seg_hdr->segSize = seg_size; -memcpy (seg_hdr->description, desc, (sizeof (seg_hdr->description)) -1 ); +strncpy (seg_hdr->description, desc, (sizeof (seg_hdr->description)) -1 ); }/*
drivers/net/ethernet/realtek/r8169.c +2 -3
@@ -5860,8 +5860,7 @@ static void rtl8169_tx_clear_range(struct rtl8169_private *tp, u32 start,rtl8169_unmap_tx_skb (&tp->pci_dev->dev, tx_skb, tp->TxDescArray + entry);if (skb) { - tp->dev->stats.tx_dropped++; -dev_kfree_skb_any (skb); +dev_consume_skb_any (skb); tx_skb->skb =NULL ; } }
@@ -6169,7 +6168,7 @@ static void rtl_tx(struct net_device *dev, struct rtl8169_private *tp) tp->tx_stats.packets++; tp->tx_stats.bytes += tx_skb->skb->len;u64_stats_update_end (&tp->tx_stats.syncp); -dev_kfree_skb_any (tx_skb->skb); +dev_consume_skb_any (tx_skb->skb); tx_skb->skb =NULL ; } dirty_tx++;
drivers/net/ethernet/ti/cpmac.c +4 -3
@@ -543,7 +543,8 @@ static int cpmac_poll(struct napi_struct *napi, int budget)static int cpmac_start_xmit (struct sk_buff *skb,struct net_device *dev) { -int queue, len; +int queue; +unsigned int len;struct cpmac_desc *desc;struct cpmac_priv *priv =netdev_priv (dev);
@@ -553,7 +554,7 @@ static int cpmac_start_xmit(struct sk_buff *skb, struct net_device *dev)if (unlikely (skb_padto (skb,ETH_ZLEN )))return NETDEV_TX_OK ; - len =max (skb->len,ETH_ZLEN ); + len = max_t(unsigned int, skb->len, ETH_ZLEN); queue =skb_get_queue_mapping (skb);netif_stop_subqueue (dev, queue);
@@ -1226,7 +1227,7 @@ int cpmac_init(void) goto fail_alloc; } -#warning FIXME: unhardcode gpio&reset bits +/* FIXME: unhardcode gpio&reset bits */ ar7_gpio_disable (26 );ar7_gpio_disable (27 );ar7_device_reset (AR7_RESET_BIT_CPMAC_LO );
drivers/net/ethernet/xilinx/ll_temac_main.c +1 -1
@@ -72,7 +72,7 @@ void temac_iow(struct temac_local *lp, int offset, u32 value)int temac_indirect_busywait (struct temac_local *lp) { -long end = jiffies +2 ; +unsigned long end = jiffies +2 ;while (!(temac_ior (lp,XTE_RDY0_OFFSET ) &XTE_RDY0_HARD_ACS_RDY_MASK )) {if (time_before_eq (end, jiffies)) {
drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c +1 -1
@@ -19,7 +19,7 @@/* Wait till MDIO interface is ready to accept a new transaction.*/ int axienet_mdio_wait_until_ready (struct axienet_local *lp) { -long end = jiffies +2 ; +unsigned long end = jiffies +2 ;while (!(axienet_ior (lp,XAE_MDIO_MCR_OFFSET ) &XAE_MDIO_MCR_READY_MASK )) {if (time_before_eq (end, jiffies)) {
drivers/net/ethernet/xilinx/xilinx_emaclite.c +1 -1
@@ -707,7 +707,7 @@ static irqreturn_t xemaclite_interrupt(int irq, void *dev_id)static int xemaclite_mdio_wait (struct net_local *lp) { -long end = jiffies +2 ; +unsigned long end = jiffies +2 ;/* wait for the MDIO interface to not be busy or timeout after some time.
drivers/net/hyperv/netvsc_drv.c +7 -2
@@ -777,9 +777,14 @@ static void netvsc_link_change(struct work_struct *w)struct rndis_device *rdev;bool notify; -rtnl_lock (); - ndev_ctx = container_of(w, struct net_device_context, dwork.work); + +/* if changes are happening, comeback later */ +if (!rtnl_trylock ()) { +schedule_delayed_work (&ndev_ctx->dwork,2 *HZ ); +return ; + } + net_device =hv_get_drvdata (ndev_ctx->device_ctx); rdev = net_device->extension; net = net_device->ndev;
drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c +1 -1
@@ -607,7 +607,7 @@ static int brcmf_fws_hanger_pushpkt(struct brcmf_fws_hanger *h,return 0 ; } -static int brcmf_fws_hanger_poppkt (struct brcmf_fws_hanger *h, +static inline int brcmf_fws_hanger_poppkt (struct brcmf_fws_hanger *h,u32 slot_id,struct sk_buff **pktout,bool remove_item) {
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c +15 -3
@@ -2692,6 +2692,7 @@ brcmf_cfg80211_escan_handler(struct brcmf_if *ifp,s32 status;s32 err =0 ;struct brcmf_escan_result_le *escan_result_le; +u32 escan_buflen;struct brcmf_bss_info_le *bss_info_le;struct brcmf_bss_info_le *bss =NULL ;u32 bi_length;
@@ -2708,11 +2709,23 @@ brcmf_cfg80211_escan_handler(struct brcmf_if *ifp,if (status ==BRCMF_E_STATUS_PARTIAL ) {brcmf_dbg (SCAN ,"ESCAN Partial result\n" ); +if (e->datalen <sizeof (*escan_result_le)) { +brcmf_err ("invalid event data length\n" ); + goto exit; + } escan_result_le = (struct brcmf_escan_result_le *) data;if (!escan_result_le) {brcmf_err ("Invalid escan result (NULL pointer)\n" ); goto exit; } + escan_buflen =le32_to_cpu (escan_result_le->buflen); +if (escan_buflen >WL_ESCAN_BUF_SIZE || + escan_buflen > e->datalen || + escan_buflen <sizeof (*escan_result_le)) { +brcmf_err ("Invalid escan buffer length: %d\n" , + escan_buflen); + goto exit; + }if (le16_to_cpu (escan_result_le->bss_count) !=1 ) {brcmf_err ("Invalid bss_count %d: ignoring\n" , escan_result_le->bss_count);
@@ -2729,9 +2742,8 @@ brcmf_cfg80211_escan_handler(struct brcmf_if *ifp, } bi_length =le32_to_cpu (bss_info_le->length); -if (bi_length != (le32_to_cpu (escan_result_le->buflen) - -WL_ESCAN_RESULTS_FIXED_SIZE )) { -brcmf_err ("Invalid bss_info length %d: ignoring\n" , +if (bi_length != escan_buflen -WL_ESCAN_RESULTS_FIXED_SIZE ) { +brcmf_err ("Ignoring invalid bss_info length: %d\n" , bi_length); goto exit; }
drivers/net/wireless/hostap/hostap_hw.c +10 -5
@@ -836,25 +836,30 @@ static int hfa384x_get_rid(struct net_device *dev, u16 rid, void *buf, int len,spin_lock_bh (&local->baplock); res =hfa384x_setup_bap (dev,BAP0 , rid,0 ); -if (!res) - res =hfa384x_from_bap (dev,BAP0 , &rec,sizeof (rec)); +if (res) + goto unlock; + + res =hfa384x_from_bap (dev,BAP0 , &rec,sizeof (rec)); +if (res) + goto unlock;if (le16_to_cpu (rec.len) ==0 ) {/* RID not available */ res = -ENODATA ; + goto unlock; } rlen = (le16_to_cpu (rec.len) -1 ) *2 ; -if (!res && exact_len && rlen != len) { +if (exact_len && rlen != len) {printk (KERN_DEBUG "%s: hfa384x_get_rid - RID len mismatch: " "rid=0x%04x, len=%d (expected %d)\n" , dev->name, rid, rlen, len); res = -ENODATA ; } -if (!res) - res =hfa384x_from_bap (dev,BAP0 , buf, len); + res =hfa384x_from_bap (dev,BAP0 , buf, len); +unlock:spin_unlock_bh (&local->baplock);mutex_unlock (&local->rid_bap_mtx);
drivers/net/wireless/iwlegacy/3945.c +2 -1
@@ -1019,12 +1019,13 @@ il3945_hw_txq_ctx_free(struct il_priv *il)int txq_id;/* Tx queues */ -if (il->txq) +if (il->txq) {for (txq_id =0 ; txq_id < il->hw_params.max_txq_num; txq_id++)if (txq_id ==IL39_CMD_QUEUE_NUM )il_cmd_queue_free (il);else il_tx_queue_free (il, txq_id); + }/* free tx queue structure */ il_free_txq_mem (il);
drivers/net/wireless/iwlwifi/dvm/tx.c +1 -1
@@ -1190,11 +1190,11 @@ int iwlagn_rx_reply_tx(struct iwl_priv *priv, struct iwl_rx_cmd_buffer *rxb, next_reclaimed;IWL_DEBUG_TX_REPLY (priv,"Next reclaimed packet:%d\n" , next_reclaimed); +iwlagn_check_ratid_empty (priv, sta_id, tid); }iwl_trans_reclaim (priv->trans, txq_id, ssn, &skbs); -iwlagn_check_ratid_empty (priv, sta_id, tid); freed =0 ;/* process frames */
drivers/net/wireless/iwlwifi/mvm/sta.c +2 -1
@@ -114,7 +114,8 @@ int iwl_mvm_sta_send_to_fw(struct iwl_mvm *mvm, struct ieee80211_sta *sta, add_sta_cmd.add_modify = update ?1 :0 ; add_sta_cmd.station_flags_msk |=cpu_to_le32 (STA_FLG_FAT_EN_MSK | -STA_FLG_MIMO_EN_MSK ); +STA_FLG_MIMO_EN_MSK | +STA_FLG_RTS_MIMO_PROT );switch (sta->bandwidth) {case IEEE80211_STA_RX_BW_160 :
drivers/net/wireless/ti/wl1251/main.c +1 -0
@@ -1571,6 +1571,7 @@ struct ieee80211_hw *wl1251_alloc_hw(void) wl->state =WL1251_STATE_OFF ;mutex_init (&wl->mutex); +spin_lock_init (&wl->wl_lock); wl->tx_mgmt_frm_rate =DEFAULT_HW_GEN_TX_RATE ; wl->tx_mgmt_frm_mod =DEFAULT_HW_GEN_MODULATION_TYPE ;
drivers/of/device.c +2 -0
@@ -128,6 +128,7 @@ ssize_t of_device_get_modalias(struct device *dev, char *str, ssize_t len)return tsize; } +EXPORT_SYMBOL_GPL (of_device_get_modalias);/** * of_device_uevent - Display OF related uevent information
@@ -190,3 +191,4 @@ int of_device_uevent_modalias(struct device *dev, struct kobj_uevent_env *env)return 0 ; } +EXPORT_SYMBOL_GPL (of_device_uevent_modalias);
drivers/parisc/dino.c +1 -1
@@ -954,7 +954,7 @@ static int __init dino_probe(struct parisc_device *dev) dino_dev->hba.dev = dev; dino_dev->hba.base_addr =ioremap_nocache (hpa,4096 ); - dino_dev->hba.lmmio_space_offset =0 ;/* CPU addrs == bus addrs */ + dino_dev->hba.lmmio_space_offset =PCI_F_EXTEND ;spin_lock_init (&dino_dev->dinosaur_pen); dino_dev->hba.iommu =ccio_get_iommu (dev);
drivers/pinctrl/sunxi/pinctrl-sun4i-a10.c +1 -0
@@ -800,6 +800,7 @@ static const struct sunxi_desc_pin sun4i_a10_pins[] = { SUNXI_FUNCTION(0x2, "lcd1"), /* D16 */ SUNXI_FUNCTION(0x3, "pata"), /* ATAD12 */ SUNXI_FUNCTION(0x4, "keypad"), /* IN6 */ + SUNXI_FUNCTION(0x5, "sim"), /* DET */ SUNXI_FUNCTION_IRQ(0x6, 16), /* EINT16 */ SUNXI_FUNCTION(0x7, "csi1")), /* D16 */ SUNXI_PIN(SUNXI_PINCTRL_PIN(H, 17),
drivers/staging/iio/resolver/ad2s1210.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/staging/lustre/lustre/llite/llite_lib.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/staging/rtl8188eu/os_dep/usb_intf.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/staging/rtl8723au/core/rtw_wlan_util.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/target/iscsi/iscsi_target_core.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/target/iscsi/iscsi_target_login.c +5 -2
Lines of this file are not shown. View the raw message.
drivers/usb/host/pci-quirks.c +66 -5
71 lines not on this page · raw message
drivers/usb/renesas_usbhs/mod_gadget.c +34 -8
42 lines not on this page · raw message
include/linux/device-mapper.h +23 -47
70 lines not on this page · raw message
kernel/events/core.c +86 -49
135 lines not on this page · raw message
lib/assoc_array.c +17 -34
51 lines not on this page · raw message
lib/cpumask.c +26 -48
74 lines not on this page · raw message
net/batman-adv/translation-table.c +49 -8
57 lines not on this page · raw message
net/core/dst.c +34 -11
45 lines not on this page · raw message
net/key/af_key.c +26 -22
48 lines not on this page · raw message
net/l2tp/l2tp_core.c +27 -52
79 lines not on this page · raw message
net/l2tp/l2tp_netlink.c +39 -33
72 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.