Linux 3.13.8
Greg KH
maintainerI'm announcing the release of the 3.13.8 kernel.
All users of the 3.13 kernel series must upgrade.
The updated 3.13.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.13.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 arch/arm/mm/init.c | 3 arch/mips/include/asm/syscall.h | 2 arch/powerpc/include/asm/eeh.h | 10 + arch/powerpc/kernel/eeh_driver.c | 150 ++++++++------- arch/powerpc/platforms/powernv/eeh-ioda.c | 283 +++++++----------------------- arch/powerpc/platforms/powernv/pci.c | 226 +++++++++++++++++------ arch/powerpc/platforms/powernv/pci.h | 3 arch/x86/kvm/mmu.c | 12 + arch/x86/kvm/paging_tmpl.h | 8 arch/x86/kvm/vmx.c | 2 arch/x86/net/bpf_jit.S | 2 drivers/clocksource/vf_pit_timer.c | 2 drivers/gpu/drm/i915/i915_gem_stolen.c | 7 drivers/gpu/drm/i915/i915_irq.c | 18 - drivers/gpu/drm/i915/intel_dp.c | 2 drivers/hid/hidraw.c | 4 drivers/input/mouse/elantech.c | 45 ++++ drivers/input/tablet/wacom_sys.c | 23 ++ drivers/input/tablet/wacom_wac.c | 89 +++++++-- drivers/input/tablet/wacom_wac.h | 7 drivers/media/pci/cx18/cx18-driver.c | 5 drivers/media/usb/dvb-usb/cxusb.c | 21 +- drivers/media/usb/dvb-usb/dw2102.c | 52 +++-- drivers/mmc/card/queue.c | 2 drivers/net/ethernet/intel/e100.c | 2 drivers/net/ethernet/sfc/efx.h | 3 drivers/net/ethernet/sfc/ethtool.c | 4 drivers/net/ethernet/ti/davinci_emac.c | 25 ++ drivers/net/wireless/p54/txrx.c | 2 drivers/regulator/core.c | 34 +-- drivers/scsi/scsi_lib.c | 2 drivers/usb/host/xhci-pci.c | 5 fs/nfs/internal.h | 3 fs/nfs/nfs4client.c | 7 fs/nfs/nfs4namespace.c | 12 - fs/proc/proc_devtree.c | 1 include/linux/ceph/messenger.h | 2 include/linux/ceph/osd_client.h | 1 include/linux/ftrace_event.h | 4 include/trace/ftrace.h | 7 kernel/printk/printk.c | 2 kernel/stop_machine.c | 2 kernel/trace/trace_events.c | 6 kernel/trace/trace_export.c | 7 lib/fonts/Kconfig | 6 net/ceph/messenger.c | 7 net/ceph/mon_client.c | 8 net/ceph/osd_client.c | 66 +++++- net/sunrpc/auth_gss/auth_gss.c | 4 scripts/package/builddeb | 13 - sound/core/compress_offload.c | 2 sound/soc/codecs/max98090.c | 1 tools/perf/perf.h | 4 54 files changed, 712 insertions(+), 510 deletions(-)
Alexei Starovoitov (1):
x86: bpf_jit: support negative offsets
Ben Hutchings (3):
sfc: Use the correct maximum TX DMA ring size for SFC9100
deb-pkg: Fix building for MIPS big-endian or ARM OABI
deb-pkg: Fix cross-building linux-headers package
Ben Peddell (1):
ARM: 7941/2: Fix incorrect FDT initrd parameter override
Ben Widawsky (1):
drm/i915: Fix PSR programming
Charles Keepax (1):
ALSA: compress: Pass through return value of open ops callback
Chris Wilson (1):
drm/i915: Disable stolen memory when DMAR is active
Christian Riesch (1):
net: davinci_emac: Replace devm_request_irq with request_irq
Dan Carpenter (4):
media: cxusb: unlock on error in cxusb_i2c_xfer()
media: dw2102: some missing unlocks on error
media: cx18: check for allocation failure in cx18_read_eeprom()
p54: clamp properly instead of just truncating
Daniel Vetter (1):
drm/i915: Don't enable display error interrupts from the start
Dave Jones (1):
fs/proc/proc_devtree.c: remove empty /proc/device-tree when no openfirmware exists.
Fernando Luis Vazquez Cao (1):
HID: hidraw: fix warning destroying hidraw device files after parent
Gavin Shan (4):
powerpc/powernv: Move PHB-diag dump functions around powerpc/eeh: Handle multiple EEH errors powerpc/powernv: Dump PHB diag-data immediately powerpc/powernv: Refactor PHB diag-data dump
Greg Kroah-Hartman (1):
Linux 3.13.8
Guenter Roeck (1):
MIPS: Fix build error seen in some configurations
Hans de Goede (1):
Input: elantech - improve clickpad detection
Helge Deller (1):
partly revert commit 8a10bc9: parisc/sti_console: prefer Linux fonts over built-in ROM fonts
Ilya Dryomov (3):
libceph: rename ceph_msg::front_max to front_alloc_len
libceph: rename front to front_len in get_reply()
libceph: fix preallocation check in get_reply()
Josh Durgin (2):
libceph: block I/O when PAUSE or FULL osd map flags are set
libceph: resend all writes after the osdmap loses the full flag
Linus Torvalds (1):
printk: fix syslog() overflowing user buffer
Marcelo Tosatti (3):
KVM: MMU: handle invalid root_hpa at __direct_map
KVM: x86: handle invalid root_hpa everywhere
KVM: VMX: fix use after free of vmx->loaded_vmcs
Markus Pargmann (1):
regulator: core: Replace direct ops->disable usage
Michele Baldessari (1):
e100: Fix "disabling already-disabled device" warning
Peter Zijlstra (2):
stop_machine: Fix^2 race between stop_two_cpus() and stop_cpus() perf tools: Fix AAAAARGH64 memory barriers
Ping Cheng (3):
Input: wacom - make sure touch_max is set for touch devices
Input: wacom - add support for three new Intuos devices
Input: wacom - add reporting of SW_MUTE_DEVICE events
Russell King (1):
Fix uses of dma_max_pfn() when converting to a limiting address
Sarah Sharp (1):
xhci: Fix resume issues on Renesas chips in Samsung laptops
Stefan Agner (1):
clocksource: vf_pit_timer: use complement for sched_clock reading
Stephen Warren (1):
ASoC: max98090: make REVISION_ID readable
Trond Myklebust (2):
NFSv4: Use the correct net namespace in nfs4_update_server
SUNRPC: Fix a pipe_version reference leak
Vaibhav Nagarnaik (1):
tracing: Fix array size mismatch in format string
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 13 -SUBLEVEL = 7 +SUBLEVEL = 8 EXTRAVERSION = NAME = One Giant Leap for Frogkind
arch/arm/mm/init.c +2 -1
@@ -345,10 +345,11 @@ void __init arm_memblock_init(struct meminfo *mi,#endif #ifdef CONFIG_BLK_DEV_INITRD /* FDT scan will populate initrd_start */ -if (initrd_start) { +if (initrd_start && !phys_initrd_size) { phys_initrd_start =__virt_to_phys (initrd_start); phys_initrd_size = initrd_end - initrd_start; } + initrd_start = initrd_end =0 ;if (phys_initrd_size && !memblock_is_region_memory (phys_initrd_start, phys_initrd_size)) { pr_err("INITRD: 0x%08llx+0x%08lx is not a memory region - disabling initrd\n",
arch/mips/include/asm/syscall.h +1 -1
@@ -29,7 +29,7 @@ static inline long syscall_get_nr(struct task_struct *task,static inline unsigned long mips_get_syscall_arg (unsigned long *arg,struct task_struct *task,struct pt_regs *regs,unsigned int n) { -unsigned long usp = regs->regs[29 ]; +unsigned long usp__maybe_unused = regs->regs[29 ];switch (n) {case 0 :case 1 :case 2 :case 3 :
arch/powerpc/include/asm/eeh.h +10 -0
@@ -117,6 +117,16 @@ static inline struct pci_dev *eeh_dev_to_pci_dev(struct eeh_dev *edev)return edev ? edev->pdev :NULL ; } +/* Return values from eeh_ops::next_error */ +enum { +EEH_NEXT_ERR_NONE =0 , +EEH_NEXT_ERR_INF , +EEH_NEXT_ERR_FROZEN_PE , +EEH_NEXT_ERR_FENCED_PHB , +EEH_NEXT_ERR_DEAD_PHB , +EEH_NEXT_ERR_DEAD_IOC +}; +/* * The struct is used to trace the registered EEH operation * callback functions. Actually, those operation callback
arch/powerpc/kernel/eeh_driver.c +78 -72
162 lines not on this page · raw message
arch/powerpc/platforms/powernv/eeh-ioda.c +67 -216
382 lines not on this page · raw message
arch/powerpc/platforms/powernv/pci.c +168 -58
252 lines not on this page · raw message
arch/powerpc/platforms/powernv/pci.h +3 -0
@@ -177,6 +177,7 @@ struct pnv_phb {unsigned char blob[PNV_PCI_DIAG_BUF_SIZE ];struct OpalIoP7IOCPhbErrorData p7ioc;struct OpalIoP7IOCErrorData hub_diag; +struct OpalIoPhb3ErrorData phb3; } diag; };
@@ -186,6 +187,8 @@ extern struct pci_ops pnv_pci_ops;extern struct pnv_eeh_ops ioda_eeh_ops;#endif +void pnv_pci_dump_phb_diag_data (struct pci_controller *hose, +unsigned char *log_buff);int pnv_pci_cfg_read (struct device_node *dn,int where,int size,u32 *val); int pnv_pci_cfg_write(struct device_node *dn,
arch/x86/kvm/mmu.c +12 -0
@@ -2659,6 +2659,9 @@ static int __direct_map(struct kvm_vcpu *vcpu, gpa_t v, int write,int emulate =0 ;gfn_t pseudo_gfn; +if (!VALID_PAGE (vcpu->arch.mmu.root_hpa)) +return 0 ; +for_each_shadow_entry (vcpu, (u64 )gfn <<PAGE_SHIFT , iterator) {if (iterator.level == level) { mmu_set_spte(vcpu, iterator.sptep, ACC_ALL,
@@ -2829,6 +2832,9 @@ static bool fast_page_fault(struct kvm_vcpu *vcpu, gva_t gva, int level,bool ret = false;u64 spte =0ull ; +if (!VALID_PAGE (vcpu->arch.mmu.root_hpa)) +return false; +if (!page_fault_can_be_fast (error_code))return false;
@@ -3224,6 +3230,9 @@ static u64 walk_shadow_page_get_mmio_spte(struct kvm_vcpu *vcpu, u64 addr)struct kvm_shadow_walk_iterator iterator;u64 spte =0ull ; +if (!VALID_PAGE (vcpu->arch.mmu.root_hpa)) +return spte; +walk_shadow_page_lockless_begin (vcpu);for_each_shadow_entry_lockless (vcpu, addr, iterator, spte)if (!is_shadow_present_pte (spte))
@@ -4510,6 +4519,9 @@ int kvm_mmu_get_spte_hierarchy(struct kvm_vcpu *vcpu, u64 addr, u64 sptes[4])u64 spte;int nr_sptes =0 ; +if (!VALID_PAGE (vcpu->arch.mmu.root_hpa)) +return nr_sptes; +walk_shadow_page_lockless_begin (vcpu);for_each_shadow_entry_lockless (vcpu, addr, iterator, spte) { sptes[iterator.level-1 ] = spte;
arch/x86/kvm/paging_tmpl.h +8 -0
@@ -569,6 +569,9 @@ static int FNAME(fetch)(struct kvm_vcpu *vcpu, gva_t addr,if (FNAME (gpte_changed)(vcpu, gw, top_level)) goto out_gpte_changed; +if (!VALID_PAGE (vcpu->arch.mmu.root_hpa)) + goto out_gpte_changed; +for (shadow_walk_init (&it, vcpu, addr);shadow_walk_okay (&it) && it.level > gw->level;shadow_walk_next (&it)) {
@@ -820,6 +823,11 @@ static void FNAME(invlpg)(struct kvm_vcpu *vcpu, gva_t gva)*/ mmu_topup_memory_caches (vcpu); +if (!VALID_PAGE (vcpu->arch.mmu.root_hpa)) { +WARN_ON (1 ); +return ; + } +spin_lock (&vcpu->kvm->mmu_lock);for_each_shadow_entry (vcpu, gva, iterator) { level = iterator.level;
arch/x86/kvm/vmx.c +1 -1
@@ -7332,8 +7332,8 @@ static void vmx_free_vcpu(struct kvm_vcpu *vcpu)struct vcpu_vmx *vmx =to_vmx (vcpu);free_vpid (vmx); -free_nested (vmx);free_loaded_vmcs (vmx->loaded_vmcs); +free_nested (vmx);kfree (vmx->guest_msrs);kvm_vcpu_uninit (vcpu);kmem_cache_free (kvm_vcpu_cache, vmx);
arch/x86/net/bpf_jit.S +1 -1
@@ -140,7 +140,7 @@ bpf_slow_path_byte_msh: push %r9; \ push SKBDATA; \ /* rsi already has offset */ \ - mov $SIZE,%ecx; /* size */ \ + mov $SIZE,%edx; /* size */ \ call bpf_internal_load_pointer_neg_helper; \ test %rax,%rax; \ pop SKBDATA; \
drivers/clocksource/vf_pit_timer.c +1 -1
@@ -54,7 +54,7 @@ static inline void pit_irq_acknowledge(void)static u64 pit_read_sched_clock (void ) { -return __raw_readl (clksrc_base +PITCVAL ); +return ~__raw_readl (clksrc_base +PITCVAL ); }static int __init pit_clocksource_init (unsigned long rate)
drivers/gpu/drm/i915/i915_gem_stolen.c +7 -0
@@ -201,6 +201,13 @@ int i915_gem_init_stolen(struct drm_device *dev)struct drm_i915_private *dev_priv = dev->dev_private;int bios_reserved =0 ; +#ifdef CONFIG_INTEL_IOMMU +if (intel_iommu_gfx_mapped) { +DRM_INFO ("DMAR active, disabling use of stolen memory\n" ); +return 0 ; + } +#endif +if (dev_priv->gtt.stolen_size ==0 )return 0 ;
drivers/gpu/drm/i915/i915_irq.c +8 -10
@@ -2760,10 +2760,9 @@ static void ibx_irq_postinstall(struct drm_device *dev)return ;if (HAS_PCH_IBX (dev)) { - mask =SDE_GMBUS |SDE_AUX_MASK |SDE_TRANSB_FIFO_UNDER | -SDE_TRANSA_FIFO_UNDER |SDE_POISON ; + mask =SDE_GMBUS |SDE_AUX_MASK |SDE_POISON ; }else { - mask =SDE_GMBUS_CPT |SDE_AUX_MASK_CPT |SDE_ERROR_CPT ; + mask =SDE_GMBUS_CPT |SDE_AUX_MASK_CPT ;I915_WRITE (SERR_INT ,I915_READ (SERR_INT )); }
@@ -2823,20 +2822,19 @@ static int ironlake_irq_postinstall(struct drm_device *dev) display_mask = (DE_MASTER_IRQ_CONTROL |DE_GSE_IVB |DE_PCH_EVENT_IVB |DE_PLANEC_FLIP_DONE_IVB |DE_PLANEB_FLIP_DONE_IVB | -DE_PLANEA_FLIP_DONE_IVB |DE_AUX_CHANNEL_A_IVB | -DE_ERR_INT_IVB ); +DE_PLANEA_FLIP_DONE_IVB |DE_AUX_CHANNEL_A_IVB ); extra_mask = (DE_PIPEC_VBLANK_IVB |DE_PIPEB_VBLANK_IVB | -DE_PIPEA_VBLANK_IVB ); +DE_PIPEA_VBLANK_IVB |DE_ERR_INT_IVB );I915_WRITE (GEN7_ERR_INT ,I915_READ (GEN7_ERR_INT )); }else { display_mask = (DE_MASTER_IRQ_CONTROL |DE_GSE |DE_PCH_EVENT |DE_PLANEA_FLIP_DONE |DE_PLANEB_FLIP_DONE |DE_AUX_CHANNEL_A | -DE_PIPEB_FIFO_UNDERRUN |DE_PIPEA_FIFO_UNDERRUN |DE_PIPEB_CRC_DONE |DE_PIPEA_CRC_DONE |DE_POISON ); - extra_mask =DE_PIPEA_VBLANK |DE_PIPEB_VBLANK |DE_PCU_EVENT ; + extra_mask =DE_PIPEA_VBLANK |DE_PIPEB_VBLANK |DE_PCU_EVENT | +DE_PIPEB_FIFO_UNDERRUN |DE_PIPEA_FIFO_UNDERRUN ; } dev_priv->irq_mask = ~display_mask;
@@ -2952,9 +2950,9 @@ static void gen8_de_irq_postinstall(struct drm_i915_private *dev_priv)struct drm_device *dev = dev_priv->dev;uint32_t de_pipe_masked =GEN8_PIPE_FLIP_DONE |GEN8_PIPE_CDCLK_CRC_DONE | -GEN8_PIPE_FIFO_UNDERRUN |GEN8_DE_PIPE_IRQ_FAULT_ERRORS ; -uint32_t de_pipe_enables = de_pipe_masked |GEN8_PIPE_VBLANK ; +uint32_t de_pipe_enables = de_pipe_masked |GEN8_PIPE_VBLANK | +GEN8_PIPE_FIFO_UNDERRUN ;int pipe; dev_priv->de_irq_mask[PIPE_A ] = ~de_pipe_masked; dev_priv->de_irq_mask[PIPE_B ] = ~de_pipe_masked;
drivers/gpu/drm/i915/intel_dp.c +1 -1
@@ -1634,7 +1634,7 @@ static void intel_edp_psr_enable_source(struct intel_dp *intel_dp) val |=EDP_PSR_LINK_DISABLE ;I915_WRITE (EDP_PSR_CTL (dev), val | -IS_BROADWELL (dev) ?0 : link_entry_time | + (IS_BROADWELL (dev) ?0 : link_entry_time) | max_sleep_time <<EDP_PSR_MAX_SLEEP_TIME_SHIFT | idle_frames <<EDP_PSR_IDLE_FRAME_SHIFT |EDP_PSR_ENABLE );
drivers/hid/hidraw.c +2 -2
@@ -313,13 +313,13 @@ static void drop_ref(struct hidraw *hidraw, int exists_bit)hid_hw_close (hidraw->hid);wake_up_interruptible (&hidraw->wait); } +device_destroy (hidraw_class, +MKDEV (hidraw_major, hidraw->minor)); }else { --hidraw->open; }if (!hidraw->open) {if (!hidraw->exist) { -device_destroy (hidraw_class, -MKDEV (hidraw_major, hidraw->minor)); hidraw_table[hidraw->minor] =NULL ;kfree (hidraw); }else {
drivers/input/mouse/elantech.c +42 -3
69 lines not on this page · raw message
drivers/input/tablet/wacom_sys.c +19 -4
@@ -304,7 +304,7 @@ static int wacom_parse_hid(struct usb_interface *intf,struct usb_device *dev =interface_to_usbdev (intf);char limit =0 ;/* result has to be defined as int for some devices */ -int result =0 ; +int result =0 , touch_max =0 ;int i =0 , usage =WCM_UNDEFINED , finger =0 , pen =0 ;unsigned char *report;
@@ -351,7 +351,8 @@ static int wacom_parse_hid(struct usb_interface *intf,if (usage ==WCM_DESKTOP ) {if (finger) { features->device_type =BTN_TOOL_FINGER ; - +/* touch device at least supports one touch point */ + touch_max =1 ;switch (features->type) {case TABLETPC2FG : features->pktlen =WACOM_PKGLEN_TPC2FG ;
@@ -504,6 +505,8 @@ static int wacom_parse_hid(struct usb_interface *intf, } out: +if (!features->touch_max && touch_max) + features->touch_max = touch_max; result =0 ;kfree (report);return result;
@@ -1194,12 +1197,15 @@ static void wacom_wireless_work(struct work_struct *work) wacom_wac1->features.device_type =BTN_TOOL_PEN ;snprintf (wacom_wac1->name,WACOM_NAME_MAX ,"%s (WL) Pen" , wacom_wac1->features.name); + wacom_wac1->shared->touch_max = wacom_wac1->features.touch_max; + wacom_wac1->shared->type = wacom_wac1->features.type; error =wacom_register_input (wacom1);if (error) goto fail;/* Touch interface */ -if (wacom_wac1->features.touch_max) { +if (wacom_wac1->features.touch_max || + wacom_wac1->features.type ==INTUOSHT ) { wacom_wac2->features = *((struct wacom_features *)id->driver_info); wacom_wac2->features.pktlen =WACOM_PKGLEN_BBTOUCH3 ;
@@ -1214,6 +1220,10 @@ static void wacom_wireless_work(struct work_struct *work) error =wacom_register_input (wacom2);if (error) goto fail; + +if (wacom_wac1->features.type ==INTUOSHT && + wacom_wac1->features.touch_max) + wacom_wac->shared->touch_input = wacom_wac2->input; } error =wacom_initialize_battery (wacom);
@@ -1322,7 +1332,7 @@ static int wacom_probe(struct usb_interface *intf, const struct usb_device_id *i* HID descriptor. If this is the touch interface (wMaxPacketSize * of WACOM_PKGLEN_BBTOUCH3), override the table values. */ -if (features->type >=INTUOS5S && features->type <=INTUOSPL ) { +if (features->type >=INTUOS5S && features->type <=INTUOSHT ) {if (endpoint->wMaxPacketSize ==WACOM_PKGLEN_BBTOUCH3 ) { features->device_type =BTN_TOOL_FINGER ; features->pktlen =WACOM_PKGLEN_BBTOUCH3 ;
@@ -1393,6 +1403,11 @@ static int wacom_probe(struct usb_interface *intf, const struct usb_device_id *i } } +if (wacom_wac->features.type ==INTUOSHT && wacom_wac->features.touch_max) { +if (wacom_wac->features.device_type ==BTN_TOOL_FINGER ) + wacom_wac->shared->touch_input = wacom_wac->input; + } +return 0 ; fail5:wacom_destroy_leds (wacom);
drivers/input/tablet/wacom_wac.c +72 -17
174 lines not on this page · raw message
drivers/input/tablet/wacom_wac.h +7 -0
@@ -54,6 +54,8 @@#define WACOM_REPORT_TPCST 16#define WACOM_REPORT_TPC1FGE 18#define WACOM_REPORT_24HDT 1 +#define WACOM_REPORT_WL 128 +#define WACOM_REPORT_USB 192/* device quirks */ #define WACOM_QUIRK_MULTI_INPUT 0x0001
@@ -81,6 +83,7 @@ enum {INTUOSPS ,INTUOSPM ,INTUOSPL , +INTUOSHT ,WACOM_21UX2 ,WACOM_22HD , DTK,
@@ -129,6 +132,10 @@ struct wacom_features {struct wacom_shared {bool stylus_in_proximity;bool touch_down; +/* for wireless device to access USB interfaces */ +unsigned touch_max; +int type; +struct input_dev *touch_input; };struct wacom_wac {
drivers/media/pci/cx18/cx18-driver.c +4 -1
@@ -327,13 +327,16 @@ void cx18_read_eeprom(struct cx18 *cx, struct tveeprom *tv)struct i2c_client *c;u8 eedata[256 ]; +memset (tv,0 ,sizeof (*tv)); + c =kzalloc (sizeof (*c),GFP_KERNEL ); +if (!c) +return ;strlcpy (c->name,"cx18 tveeprom tmp" ,sizeof (c->name)); c->adapter = &cx->i2c_adap[0 ]; c->addr =0xa0 >>1 ; -memset (tv,0 ,sizeof (*tv));if (tveeprom_read (c, eedata,sizeof (eedata))) goto ret;
drivers/media/usb/dvb-usb/cxusb.c +16 -5
@@ -149,6 +149,7 @@ static int cxusb_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], int num) {struct dvb_usb_device *d =i2c_get_adapdata (adap); +int ret;int i;if (mutex_lock_interruptible (&d->i2c_mutex) <0 )
@@ -173,7 +174,8 @@ static int cxusb_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[],if (1 + msg[i].len >sizeof (ibuf)) {warn ("i2c rd: len=%d is too big!\n" , msg[i].len); -return -EOPNOTSUPP ; + ret = -EOPNOTSUPP ; + goto unlock; } obuf[0 ] =0 ; obuf[1 ] = msg[i].len;
@@ -193,12 +195,14 @@ static int cxusb_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[],if (3 + msg[i].len >sizeof (obuf)) {warn ("i2c wr: len=%d is too big!\n" , msg[i].len); -return -EOPNOTSUPP ; + ret = -EOPNOTSUPP ; + goto unlock; }if (1 + msg[i +1 ].len >sizeof (ibuf)) {warn ("i2c rd: len=%d is too big!\n" , msg[i +1 ].len); -return -EOPNOTSUPP ; + ret = -EOPNOTSUPP ; + goto unlock; } obuf[0 ] = msg[i].len; obuf[1 ] = msg[i+1 ].len;
@@ -223,7 +227,8 @@ static int cxusb_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[],if (2 + msg[i].len >sizeof (obuf)) {warn ("i2c wr: len=%d is too big!\n" , msg[i].len); -return -EOPNOTSUPP ; + ret = -EOPNOTSUPP ; + goto unlock; } obuf[0 ] = msg[i].addr; obuf[1 ] = msg[i].len;
@@ -237,8 +242,14 @@ static int cxusb_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], } } +if (i == num) + ret = num; +else + ret = -EREMOTEIO ; + +unlock:mutex_unlock (&d->i2c_mutex); -return i == num ? num : -EREMOTEIO ; +return ret; }static u32 cxusb_i2c_func (struct i2c_adapter *adapter)
drivers/media/usb/dvb-usb/dw2102.c +36 -16
167 lines not on this page · raw message
drivers/mmc/card/queue.c +1 -1
@@ -197,7 +197,7 @@ int mmc_init_queue(struct mmc_queue *mq, struct mmc_card *card,struct mmc_queue_req *mqrq_prev = &mq->mqrq[1 ];if (mmc_dev (host)->dma_mask && *mmc_dev (host)->dma_mask) - limit =dma_max_pfn (mmc_dev (host)) <<PAGE_SHIFT ; + limit = (u64 )dma_max_pfn (mmc_dev (host)) <<PAGE_SHIFT ; mq->card = card; mq->queue =blk_init_queue (mmc_request_fn, lock);
drivers/net/ethernet/intel/e100.c +1 -1
@@ -3034,7 +3034,7 @@ static void __e100_shutdown(struct pci_dev *pdev, bool *enable_wake) *enable_wake = false; } -pci_disable_device (pdev); +pci_clear_master (pdev); }static int __e100_power_off (struct pci_dev *pdev,bool wake)
drivers/net/ethernet/sfc/efx.h +3 -0
@@ -66,6 +66,9 @@ void efx_schedule_slow_fill(struct efx_rx_queue *rx_queue);#define EFX_RXQ_MIN_ENT 128U#define EFX_TXQ_MIN_ENT (efx) (2 * efx_tx_max_skb_descs(efx)) +#define EFX_TXQ_MAX_ENT (efx) (EFX_WORKAROUND_35388(efx) ? \ + EFX_MAX_DMAQ_SIZE / 2 : EFX_MAX_DMAQ_SIZE) +/* Filters */ /**
drivers/net/ethernet/sfc/ethtool.c +2 -2
@@ -583,7 +583,7 @@ static void efx_ethtool_get_ringparam(struct net_device *net_dev,struct efx_nic *efx =netdev_priv (net_dev); ring->rx_max_pending =EFX_MAX_DMAQ_SIZE ; - ring->tx_max_pending =EFX_MAX_DMAQ_SIZE ; + ring->tx_max_pending =EFX_TXQ_MAX_ENT (efx); ring->rx_pending = efx->rxq_entries; ring->tx_pending = efx->txq_entries; }
@@ -596,7 +596,7 @@ static int efx_ethtool_set_ringparam(struct net_device *net_dev,if (ring->rx_mini_pending || ring->rx_jumbo_pending || ring->rx_pending >EFX_MAX_DMAQ_SIZE || - ring->tx_pending >EFX_MAX_DMAQ_SIZE ) + ring->tx_pending >EFX_TXQ_MAX_ENT (efx))return -EINVAL ;if (ring->rx_pending <EFX_RXQ_MIN_ENT ) {
drivers/net/ethernet/ti/davinci_emac.c +21 -4
@@ -1532,7 +1532,7 @@ static int emac_dev_open(struct net_device *ndev)struct device *emac_dev = &ndev->dev;u32 cnt;struct resource *res; -int ret; +int q, m, ret;int i =0 ;int k =0 ;struct emac_priv *priv =netdev_priv (ndev);
@@ -1567,8 +1567,7 @@ static int emac_dev_open(struct net_device *ndev)while ((res =platform_get_resource (priv->pdev,IORESOURCE_IRQ , k))) {for (i = res->start; i <= res->end; i++) { -if (devm_request_irq (&priv->pdev->dev, i, emac_irq, -0 , ndev->name, ndev)) +if (request_irq (i, emac_irq,0 , ndev->name, ndev)) goto rollback; } k++;
@@ -1641,7 +1640,15 @@ static int emac_dev_open(struct net_device *ndev) rollback: -dev_err (emac_dev,"DaVinci EMAC: devm_request_irq() failed" ); +dev_err (emac_dev,"DaVinci EMAC: request_irq() failed" ); + +for (q = k; k >=0 ; k--) { +for (m = i; m >= res->start; m--) +free_irq (m, ndev); + res =platform_get_resource (priv->pdev,IORESOURCE_IRQ , k-1 ); + m = res->end; + } + ret = -EBUSY ; err:pm_runtime_put (&priv->pdev->dev);
@@ -1659,6 +1666,9 @@ err:*/ static int emac_dev_stop (struct net_device *ndev) { +struct resource *res; +int i =0 ; +int irq_num;struct emac_priv *priv =netdev_priv (ndev);struct device *emac_dev = &ndev->dev;
@@ -1674,6 +1684,13 @@ static int emac_dev_stop(struct net_device *ndev)if (priv->phydev)phy_disconnect (priv->phydev); +/* Free IRQ */ +while ((res =platform_get_resource (priv->pdev,IORESOURCE_IRQ , i))) { +for (irq_num = res->start; irq_num <= res->end; irq_num++) +free_irq (irq_num, priv->ndev); + i++; + } +if (netif_msg_drv (priv))dev_notice (emac_dev,"DaVinci EMAC: %s stopped\n" , ndev->name);
drivers/net/wireless/p54/txrx.c +1 -1
@@ -587,7 +587,7 @@ static void p54_rx_stats(struct p54_common *priv, struct sk_buff *skb) chan = priv->curchan;if (chan) {struct survey_info *survey = &priv->survey[chan->hw_value]; - survey->noise =clamp_t (s8, priv->noise,-128 ,127 ); + survey->noise =clamp (priv->noise,-128 ,127 ); survey->channel_time = priv->survey_raw.active; survey->channel_time_tx = priv->survey_raw.tx; survey->channel_time_busy = priv->survey_raw.tx +
drivers/regulator/core.c +13 -21
@@ -1908,8 +1908,6 @@ static int _regulator_do_disable(struct regulator_dev *rdev)trace_regulator_disable_complete (rdev_get_name (rdev)); -_notifier_call_chain (rdev,REGULATOR_EVENT_DISABLE , -NULL );return 0 ; }
@@ -1933,6 +1931,8 @@ static int _regulator_disable(struct regulator_dev *rdev)rdev_err (rdev,"failed to disable\n" );return ret; } +_notifier_call_chain (rdev,REGULATOR_EVENT_DISABLE , +NULL ); } rdev->use_count =0 ;
@@ -1985,20 +1985,16 @@ static int _regulator_force_disable(struct regulator_dev *rdev) {int ret =0 ; -/* force disable */ -if (rdev->desc->ops->disable) { -/* ah well, who wants to live forever... */ - ret = rdev->desc->ops->disable (rdev); -if (ret <0 ) { -rdev_err (rdev,"failed to force disable\n" ); -return ret; - } -/* notify other consumers that power has been forced off */ -_notifier_call_chain (rdev,REGULATOR_EVENT_FORCE_DISABLE | -REGULATOR_EVENT_DISABLE ,NULL ); + ret =_regulator_do_disable (rdev); +if (ret <0 ) { +rdev_err (rdev,"failed to force disable\n" ); +return ret; } -return ret; +_notifier_call_chain (rdev,REGULATOR_EVENT_FORCE_DISABLE | +REGULATOR_EVENT_DISABLE ,NULL ); + +return 0 ; }/**
@@ -3631,8 +3627,6 @@ int regulator_suspend_finish(void)mutex_lock (®ulator_list_mutex);list_for_each_entry (rdev, ®ulator_list, list) { -struct regulator_ops *ops = rdev->desc->ops; -mutex_lock (&rdev->mutex);if (rdev->use_count >0 || rdev->constraints->always_on) { error =_regulator_do_enable (rdev);
@@ -3641,12 +3635,10 @@ int regulator_suspend_finish(void) }else {if (!have_full_constraints ()) goto unlock; -if (!ops->disable) - goto unlock;if (!_regulator_is_enabled (rdev)) goto unlock; - error = ops->disable (rdev); + error =_regulator_do_disable (rdev);if (error) ret = error; }
@@ -3820,7 +3812,7 @@ static int __init regulator_init_complete(void) ops = rdev->desc->ops; c = rdev->constraints; -if (!ops->disable || (c && c->always_on)) +if (c && c->always_on)continue ;mutex_lock (&rdev->mutex);
@@ -3841,7 +3833,7 @@ static int __init regulator_init_complete(void)/* We log since this may kill the system if it * goes wrong. */ rdev_info (rdev,"disabling\n" ); - ret = ops->disable (rdev); + ret =_regulator_do_disable (rdev);if (ret !=0 ) {rdev_err (rdev,"couldn't disable: %d\n" , ret); }
drivers/scsi/scsi_lib.c +1 -1
@@ -1684,7 +1684,7 @@ u64 scsi_calculate_bounce_limit(struct Scsi_Host *shost) host_dev =scsi_get_device (shost);if (host_dev && host_dev->dma_mask) - bounce_limit =dma_max_pfn (host_dev) <<PAGE_SHIFT ; + bounce_limit = (u64 )dma_max_pfn (host_dev) <<PAGE_SHIFT ;return bounce_limit; }
drivers/usb/host/xhci-pci.c +5 -0
@@ -142,6 +142,11 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) "QUIRK: Resetting on resume"); xhci->quirks |=XHCI_TRUST_TX_LENGTH ; } +if (pdev->vendor ==PCI_VENDOR_ID_RENESAS && + pdev->device ==0x0015 && + pdev->subsystem_vendor ==PCI_VENDOR_ID_SAMSUNG && + pdev->subsystem_device ==0xc0cd ) + xhci->quirks |=XHCI_RESET_ON_RESUME ;if (pdev->vendor ==PCI_VENDOR_ID_VIA ) xhci->quirks |=XHCI_RESET_ON_RESUME ; }
fs/nfs/internal.h +2 -1
@@ -176,7 +176,8 @@ extern struct nfs_server *nfs4_create_server(extern struct nfs_server *nfs4_create_referral_server (struct nfs_clone_mount *,struct nfs_fh *);extern int nfs4_update_server (struct nfs_server *server,const char *hostname, -struct sockaddr *sap,size_t salen); +struct sockaddr *sap,size_t salen, +struct net *net);extern void nfs_free_server (struct nfs_server *server); extern struct nfs_server *nfs_clone_server(struct nfs_server *, struct nfs_fh *,
fs/nfs/nfs4client.c +4 -3
@@ -1133,6 +1133,7 @@ static int nfs_probe_destination(struct nfs_server *server)* @hostname: new end-point's hostname * @sap: new end-point's socket address * @salen: size of "sap" +* @net: net namespace * * The nfs_server must be quiescent before this function is invoked. * Either its session is drained (NFSv4.1+), or its transport is
@@ -1141,13 +1142,13 @@ static int nfs_probe_destination(struct nfs_server *server)* Returns zero on success, or a negative errno value. */ int nfs4_update_server (struct nfs_server *server,const char *hostname, -struct sockaddr *sap,size_t salen) +struct sockaddr *sap,size_t salen,struct net *net) {struct nfs_client *clp = server->nfs_client;struct rpc_clnt *clnt = server->client;struct xprt_create xargs = { .ident = clp->cl_proto, - .net = &init_net, + .net = net, .dstaddr = sap, .addrlen = salen, .servername = hostname,
@@ -1187,7 +1188,7 @@ int nfs4_update_server(struct nfs_server *server, const char *hostname, error =nfs4_set_client (server, hostname, sap, salen, buf, clp->cl_rpcclient->cl_auth->au_flavor, clp->cl_proto, clnt->cl_timeout, - clp->cl_minorversion, clp->cl_net); + clp->cl_minorversion, net);nfs_put_client (clp);if (error !=0 ) {nfs_server_insert_lists (server);
fs/nfs/nfs4namespace.c +6 -6
@@ -121,9 +121,8 @@ static int nfs4_validate_fspath(struct dentry *dentry, }static size_t nfs_parse_server_name (char *string,size_t len, -struct sockaddr *sa,size_t salen,struct nfs_server *server) +struct sockaddr *sa,size_t salen,struct net *net) { -struct net *net =rpc_net_ns (server->client);ssize_t ret; ret =rpc_pton (net, string, len, sa, salen);
@@ -223,6 +222,7 @@ static struct vfsmount *try_location(struct nfs_clone_mount *mountdata, const struct nfs4_fs_location *location) {const size_t addr_bufsize =sizeof (struct sockaddr_storage ); +struct net *net =rpc_net_ns (NFS_SB (mountdata->sb)->client);struct vfsmount *mnt =ERR_PTR (-ENOENT );char *mnt_path;unsigned int maxbuflen;
@@ -248,8 +248,7 @@ static struct vfsmount *try_location(struct nfs_clone_mount *mountdata,continue ; mountdata->addrlen =nfs_parse_server_name (buf->data, buf->len, - mountdata->addr, addr_bufsize, -NFS_SB (mountdata->sb)); + mountdata->addr, addr_bufsize, net);if (mountdata->addrlen ==0 )continue ;
@@ -419,6 +418,7 @@ static int nfs4_try_replacing_one_location(struct nfs_server *server, const struct nfs4_fs_location *location) {const size_t addr_bufsize =sizeof (struct sockaddr_storage ); +struct net *net =rpc_net_ns (server->client);struct sockaddr *sap;unsigned int s;size_t salen;
@@ -440,7 +440,7 @@ static int nfs4_try_replacing_one_location(struct nfs_server *server,continue ; salen =nfs_parse_server_name (buf->data, buf->len, - sap, addr_bufsize, server); + sap, addr_bufsize, net);if (salen ==0 )continue ;rpc_set_port (sap,NFS_PORT );
@@ -450,7 +450,7 @@ static int nfs4_try_replacing_one_location(struct nfs_server *server,if (hostname ==NULL )break ; - error =nfs4_update_server (server, hostname, sap, salen); + error =nfs4_update_server (server, hostname, sap, salen, net);kfree (hostname);if (error ==0 )break ;
fs/proc/proc_devtree.c +1 -0
@@ -232,6 +232,7 @@ void __init proc_device_tree_init(void)return ; root =of_find_node_by_path ("/" );if (root ==NULL ) { +remove_proc_entry ("device-tree" ,NULL );pr_debug ("/proc/device-tree: can't find root\n" );return ; }
include/linux/ceph/messenger.h +1 -1
@@ -157,7 +157,7 @@ struct ceph_msg {bool front_is_vmalloc;bool more_to_follow;bool needs_out_seq; -int front_max; +int front_alloc_len;unsigned long ack_stamp;/* tx: when we were acked */ struct ceph_msgpool *pool;
include/linux/ceph/osd_client.h +1 -0
@@ -138,6 +138,7 @@ struct ceph_osd_request {__le64 *r_request_pool;void *r_request_pgid;__le32 *r_request_attempts; +bool r_paused;struct ceph_eversion *r_request_reassert_version;int r_result;
include/linux/ftrace_event.h +0 -4
@@ -356,10 +356,6 @@ enum { FILTER_TRACE_FN, }; -#define EVENT_STORAGE_SIZE 128 -extern struct mutex event_storage_mutex; -extern char event_storage[EVENT_STORAGE_SIZE ]; -extern int trace_event_raw_init (struct ftrace_event_call *call); extern int trace_define_field(struct ftrace_event_call *call, const char *type, const char *name, int offset, int size,
include/trace/ftrace.h +2 -5
@@ -310,15 +310,12 @@ static struct trace_event_functions ftrace_event_type_funcs_##call = { \#undef __array#define __array (type, item, len) \ do { \ - mutex_lock(&event_storage_mutex); \ + char *type_str = #type"["__stringify(len)"]"; \ BUILD_BUG_ON(len > MAX_FILTER_STR_VAL); \ - snprintf(event_storage, sizeof(event_storage), \ - "%s[%d]", #type, len); \ - ret = trace_define_field(event_call, event_storage, #item, \ + ret = trace_define_field(event_call, type_str, #item, \ offsetof(typeof(field), item), \ sizeof(field.item), \ is_signed_type(type), FILTER_OTHER); \ - mutex_unlock(&event_storage_mutex); \ if (ret) \ return ret; \ } while (0);
kernel/printk/printk.c +0 -2
@@ -1080,7 +1080,6 @@ static int syslog_print_all(char __user *buf, int size, bool clear) next_seq = log_next_seq; len =0 ; - prev =0 ;while (len >=0 && seq < next_seq) {struct printk_log *msg =log_from_idx (idx);int textlen;
@@ -2789,7 +2788,6 @@ bool kmsg_dump_get_buffer(struct kmsg_dumper *dumper, bool syslog, next_idx = idx; l =0 ; - prev =0 ;while (seq < dumper->next_seq) {struct printk_log *msg =log_from_idx (idx);
kernel/stop_machine.c +1 -1
@@ -293,7 +293,7 @@ int stop_two_cpus(unsigned int cpu1, unsigned int cpu2, cpu_stop_fn_t fn, void **/ smp_call_function_single (min (cpu1, cpu2), &irq_cpu_stop_queue_work, - &call_args,0 ); + &call_args,1 );lg_local_unlock (&stop_cpus_lock);preempt_enable ();
kernel/trace/trace_events.c +0 -6
@@ -27,12 +27,6 @@DEFINE_MUTEX (event_mutex); -DEFINE_MUTEX (event_storage_mutex); -EXPORT_SYMBOL_GPL (event_storage_mutex); - -char event_storage[EVENT_STORAGE_SIZE ]; -EXPORT_SYMBOL_GPL (event_storage); -LIST_HEAD (ftrace_events);static LIST_HEAD (ftrace_common_fields);
kernel/trace/trace_export.c +2 -5
@@ -95,15 +95,12 @@ static void __always_unused ____ftrace_check_##name(void) \#undef __array#define __array (type, item, len) \ do { \ + char *type_str = #type"["__stringify(len)"]"; \ BUILD_BUG_ON(len > MAX_FILTER_STR_VAL); \ - mutex_lock(&event_storage_mutex); \ - snprintf(event_storage, sizeof(event_storage), \ - "%s[%d]", #type, len); \ - ret = trace_define_field(event_call, event_storage, #item, \ + ret = trace_define_field(event_call, type_str, #item, \ offsetof(typeof(field), item), \ sizeof(field.item), \ is_signed_type(type), filter_type); \ - mutex_unlock(&event_storage_mutex); \ if (ret) \ return ret; \ } while (0);
lib/fonts/Kconfig +3 -3
@@ -9,7 +9,7 @@ if FONT_SUPPORT config FONTS bool "Select compiled-in fonts" - depends on FRAMEBUFFER_CONSOLE + depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE help Say Y here if you would like to use fonts other than the default your frame buffer console usually use.
@@ -22,7 +22,7 @@ config FONTS config FONT_8x8 bool "VGA 8x8 font" if FONTS - depends on FRAMEBUFFER_CONSOLE + depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE default y if !SPARC && !FONTS help This is the "high resolution" font for the VGA frame buffer (the one
@@ -45,7 +45,7 @@ config FONT_8x16 config FONT_6x11 bool "Mac console 6x11 font (not supported by all drivers)" if FONTS - depends on FRAMEBUFFER_CONSOLE + depends on FRAMEBUFFER_CONSOLE || STI_CONSOLE default y if !SPARC && !FONTS && MAC help Small console font with Macintosh-style high-half glyphs. Some Mac
net/ceph/messenger.c +3 -4
@@ -3126,7 +3126,6 @@ struct ceph_msg *ceph_msg_new(int type, int front_len, gfp_t flags,INIT_LIST_HEAD (&m->data);/* front */ - m->front_max = front_len;if (front_len) {if (front_len >PAGE_CACHE_SIZE ) { m->front.iov_base = __vmalloc(front_len, flags,
@@ -3143,7 +3142,7 @@ struct ceph_msg *ceph_msg_new(int type, int front_len, gfp_t flags, }else { m->front.iov_base =NULL ; } - m->front.iov_len = front_len; + m->front_alloc_len = m->front.iov_len = front_len;dout ("ceph_msg_new %p front %d\n" , m, front_len);return m;
@@ -3301,8 +3300,8 @@ EXPORT_SYMBOL(ceph_msg_last_put);void ceph_msg_dump (struct ceph_msg *msg) { -pr_debug ("msg_dump %p (front_max %d length %zd)\n" , msg, - msg->front_max, msg->data_length); +pr_debug ("msg_dump %p (front_alloc_len %d length %zd)\n" , msg, + msg->front_alloc_len, msg->data_length);print_hex_dump (KERN_DEBUG ,"header: " ,DUMP_PREFIX_OFFSET ,16 ,1 , &msg->hdr,sizeof (msg->hdr), true);
net/ceph/mon_client.c +4 -4
@@ -152,7 +152,7 @@ static int __open_session(struct ceph_mon_client *monc)/* initiatiate authentication handshake */ ret =ceph_auth_build_hello (monc->auth, monc->m_auth->front.iov_base, - monc->m_auth->front_max); + monc->m_auth->front_alloc_len);__send_prepared_auth_request (monc, ret); }else {dout ("open_session mon%d already open\n" , monc->cur_mon);
@@ -196,7 +196,7 @@ static void __send_subscribe(struct ceph_mon_client *monc)int num; p = msg->front.iov_base; - end = p + msg->front_max; + end = p + msg->front_alloc_len; num =1 + !!monc->want_next_osdmap + !!monc->want_mdsmap;ceph_encode_32 (&p, num);
@@ -897,7 +897,7 @@ static void handle_auth_reply(struct ceph_mon_client *monc, ret =ceph_handle_auth_reply (monc->auth, msg->front.iov_base, msg->front.iov_len, monc->m_auth->front.iov_base, - monc->m_auth->front_max); + monc->m_auth->front_alloc_len);if (ret <0 ) { monc->client->auth_err = ret;wake_up_all (&monc->client->auth_wq);
@@ -939,7 +939,7 @@ static int __validate_auth(struct ceph_mon_client *monc)return 0 ; ret =ceph_build_auth (monc->auth, monc->m_auth->front.iov_base, - monc->m_auth->front_max); + monc->m_auth->front_alloc_len);if (ret <=0 )return ret;/* either an error, or no need to authenticate */ __send_prepared_auth_request (monc, ret);
net/ceph/osd_client.c +54 -12
158 lines not on this page · raw message
net/sunrpc/auth_gss/auth_gss.c +3 -1
@@ -500,10 +500,12 @@ gss_alloc_msg(struct gss_auth *gss_auth,default : err =gss_encode_v1_msg (gss_msg, service_name, gss_auth->target_name);if (err) - goto err_free_msg; + goto err_put_pipe_version; };kref_get (&gss_auth->kref);return gss_msg; +err_put_pipe_version: +put_pipe_version (gss_auth->net); err_free_msg:kfree (gss_msg); err:
scripts/package/builddeb +6 -7
@@ -41,9 +41,9 @@ create_package() { parisc*) debarch=hppa ;; mips*) - debarch=mips$(grep -q CPU_LITTLE_ENDIAN=y $KCONFIG_CONFIG && echo el) ;; + debarch=mips$(grep -q CPU_LITTLE_ENDIAN=y $KCONFIG_CONFIG && echo el || true) ;; arm*) - debarch=arm$(grep -q CONFIG_AEABI=y $KCONFIG_CONFIG && echo el) ;; + debarch=arm$(grep -q CONFIG_AEABI=y $KCONFIG_CONFIG && echo el || true) ;; *) echo "" >&2 echo "** ** ** WARNING ** ** **" >&2
@@ -62,7 +62,7 @@ create_package() { fi # Create the package - dpkg-gencontrol -isp $forcearch -p$pname -P"$pdir" + dpkg-gencontrol -isp $forcearch -Vkernel:debarch="${debarch:-$(dpkg --print-architecture)}" -p$pname -P"$pdir" dpkg --build "$pdir" .. }
@@ -288,15 +288,14 @@ mkdir -p "$destdir" (cd $objtree; cp $KCONFIG_CONFIG $destdir/.config) # copy .config manually to be where it's expected to be ln -sf "/usr/src/linux-headers-$version" "$kernel_headers_dir/lib/modules/$version/build" rm -f "$objtree/debian/hdrsrcfiles" "$objtree/debian/hdrobjfiles" -arch=$(dpkg --print-architecture) cat <<EOF >> debian/control Package: $kernel_headers_packagename Provides: linux-headers, linux-headers-2.6 -Architecture: $arch -Description: Linux kernel headers for $KERNELRELEASE on $arch - This package provides kernel header files for $KERNELRELEASE on $arch +Architecture: any +Description: Linux kernel headers for $KERNELRELEASE on \${kernel:debarch} + This package provides kernel header files for $KERNELRELEASE on \${kernel:debarch} . This is useful for people who need to build external modules EOF
sound/core/compress_offload.c +1 -1
@@ -133,7 +133,7 @@ static int snd_compr_open(struct inode *inode, struct file *f)kfree (data); }snd_card_unref (compr->card); -return 0 ; +return ret; }static int snd_compr_free (struct inode *inode,struct file *f)
sound/soc/codecs/max98090.c +1 -0
@@ -336,6 +336,7 @@ static bool max98090_readable_register(struct device *dev, unsigned int reg)case M98090_REG_RECORD_TDM_SLOT :case M98090_REG_SAMPLE_RATE : case M98090_REG_DMIC34_BIQUAD_BASE ... M98090_REG_DMIC34_BIQUAD_BASE + 0x0E: +case M98090_REG_REVISION_ID :return true;default :return false;
tools/perf/perf.h +2 -2
@@ -100,8 +100,8 @@#ifdef __aarch64__#define mb () asm volatile("dmb ish" ::: "memory") -#define wmb () asm volatile("dmb ishld" ::: "memory") -#define rmb () asm volatile("dmb ishst" ::: "memory") +#define wmb () asm volatile("dmb ishst" ::: "memory") +#define rmb () asm volatile("dmb ishld" ::: "memory")#define cpu_relax () asm volatile("yield" ::: "memory")#endif