Linux 5.15.146
Greg Kroah-Hartman
maintainerDocumentation/devicetree/bindings/nvmem/mxs-ocotp.yaml +6 -4
@@ -14,9 +14,11 @@ allOf: properties: compatible: - enum: - - fsl,imx23-ocotp - - fsl,imx28-ocotp + items: + - enum: + - fsl,imx23-ocotp + - fsl,imx28-ocotp + - const: fsl,ocotp "#address-cells": const: 1
@@ -40,7 +42,7 @@ additionalProperties: false examples: - | ocotp: efuse@8002c000 { - compatible = "fsl,imx28-ocotp"; + compatible = "fsl,imx28-ocotp", "fsl,ocotp"; #address-cells = <1>; #size-cells = <1>; reg = <0x8002c000 0x2000>;
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 15 -SUBLEVEL = 145 +SUBLEVEL = 146 EXTRAVERSION = NAME = Trick or Treat
arch/arm/boot/dts/am33xx.dtsi +1 -0
@@ -349,6 +349,7 @@ usb: target-module@47400000 { <SYSC_IDLE_NO>, <SYSC_IDLE_SMART>, <SYSC_IDLE_SMART_WKUP>; + ti,sysc-delay-us = <2>; clocks = <&l3s_clkctrl AM3_L3S_USB_OTG_HS_CLKCTRL 0>; clock-names = "fck"; #address-cells = <1>;
arch/arm/boot/dts/dra7.dtsi +1 -1
@@ -144,7 +144,7 @@ ocp: ocp { l3-noc@44000000 { compatible = "ti,dra7-l3-noc"; - reg = <0x44000000 0x1000>, + reg = <0x44000000 0x1000000>, <0x45000000 0x1000>; interrupts-extended = <&crossbar_mpu GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>, <&wakeupgen GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
arch/arm/mach-omap2/id.c +5 -0
@@ -793,11 +793,16 @@ void __init omap_soc_device_init(void) soc_dev_attr->machine = soc_name; soc_dev_attr->family =omap_get_family (); +if (!soc_dev_attr->family) { +kfree (soc_dev_attr); +return ; + } soc_dev_attr->revision = soc_rev; soc_dev_attr->custom_attr_group = omap_soc_groups[0 ]; soc_dev =soc_device_register (soc_dev_attr);if (IS_ERR (soc_dev)) { +kfree (soc_dev_attr->family);kfree (soc_dev_attr);return ; }
arch/arm64/kvm/arm.c +1 -1
@@ -356,7 +356,7 @@ void kvm_arch_vcpu_destroy(struct kvm_vcpu *vcpu)kvm_mmu_free_memory_cache (&vcpu->arch.mmu_page_cache);kvm_timer_vcpu_terminate (vcpu);kvm_pmu_vcpu_destroy (vcpu); - +kvm_vgic_vcpu_destroy (vcpu);kvm_arm_vcpu_destroy (vcpu); }
arch/arm64/kvm/vgic/vgic-init.c +4 -1
@@ -363,7 +363,10 @@ void kvm_vgic_vcpu_destroy(struct kvm_vcpu *vcpu)vgic_flush_pending_lpis (vcpu);INIT_LIST_HEAD (&vgic_cpu->ap_list_head); - vgic_cpu->rd_iodev.base_addr =VGIC_ADDR_UNDEF ; +if (vcpu->kvm->arch.vgic.vgic_model ==KVM_DEV_TYPE_ARM_VGIC_V3 ) { +vgic_unregister_redist_iodev (vcpu); + vgic_cpu->rd_iodev.base_addr =VGIC_ADDR_UNDEF ; + } }/* To be called with kvm->lock held */
arch/arm64/kvm/vgic/vgic-mmio-v3.c +1 -1
@@ -744,7 +744,7 @@ int vgic_register_redist_iodev(struct kvm_vcpu *vcpu)return 0 ; } -static void vgic_unregister_redist_iodev (struct kvm_vcpu *vcpu) +void vgic_unregister_redist_iodev (struct kvm_vcpu *vcpu) {struct vgic_io_device *rd_dev = &vcpu->arch.vgic_cpu.rd_iodev;
arch/arm64/kvm/vgic/vgic.h +1 -0
@@ -223,6 +223,7 @@ int vgic_v3_lpi_sync_pending_status(struct kvm *kvm, struct vgic_irq *irq);int vgic_v3_save_pending_tables (struct kvm *kvm);int vgic_v3_set_redist_base (struct kvm *kvm,u32 index,u64 addr,u32 count);int vgic_register_redist_iodev (struct kvm_vcpu *vcpu); +void vgic_unregister_redist_iodev (struct kvm_vcpu *vcpu);bool vgic_v3_check_base (struct kvm *kvm);void vgic_v3_load (struct kvm_vcpu *vcpu);
arch/s390/include/asm/fpu/api.h +1 -1
@@ -78,7 +78,7 @@ static inline int test_fp_ctl(u32 fpc)#define KERNEL_VXR_HIGH (KERNEL_VXR_V16V23|KERNEL_VXR_V24V31)#define KERNEL_VXR (KERNEL_VXR_LOW|KERNEL_VXR_HIGH) -#define KERNEL_FPR (KERNEL_FPC|KERNEL_VXR_V0V7) +#define KERNEL_FPR (KERNEL_FPC|KERNEL_VXR_LOW)struct kernel_fpu ;
arch/x86/kernel/alternative.c +1 -1
@@ -963,8 +963,8 @@ void __init_or_module text_poke_early(void *addr, const void *opcode, }else {local_irq_save (flags);memcpy (addr, opcode, len); -local_irq_restore (flags);sync_core (); +local_irq_restore (flags);/* * Could also do a CLFLUSH here to speed up CPU recovery; but
arch/x86/net/bpf_jit_comp.c +46 -0
49 lines not on this page · raw message
drivers/base/property.c +10 -3
@@ -18,12 +18,19 @@#include <linux/etherdevice.h> #include <linux/phy.h> -struct fwnode_handle *dev_fwnode (struct device *dev) +struct fwnode_handle *__dev_fwnode (struct device *dev) {return IS_ENABLED (CONFIG_OF ) && dev->of_node ?of_fwnode_handle (dev->of_node) : dev->fwnode; } -EXPORT_SYMBOL_GPL (dev_fwnode); +EXPORT_SYMBOL_GPL (__dev_fwnode); + +const struct fwnode_handle *__dev_fwnode_const (const struct device *dev) +{ +return IS_ENABLED (CONFIG_OF ) && dev->of_node ? +of_fwnode_handle (dev->of_node) : dev->fwnode; +} +EXPORT_SYMBOL_GPL (__dev_fwnode_const);/** * device_property_present - check if a property of a device is present
@@ -1281,7 +1288,7 @@ int fwnode_graph_parse_endpoint(const struct fwnode_handle *fwnode, }EXPORT_SYMBOL (fwnode_graph_parse_endpoint); -const void *device_get_match_data (struct device *dev) +const void *device_get_match_data (const struct device *dev) {return fwnode_call_ptr_op (dev_fwnode (dev), device_get_match_data, dev); }
drivers/bus/ti-sysc.c +14 -4
@@ -2104,13 +2104,23 @@ static int sysc_reset(struct sysc *ddata) sysc_val =sysc_read_sysconfig (ddata); sysc_val |= sysc_mask;sysc_write (ddata, sysc_offset, sysc_val); -/* Flush posted write */ + +/* +* Some devices need a delay before reading registers +* after reset. Presumably a srst_udelay is not needed +* for devices that use a rstctrl register reset. +*/ +if (ddata->cfg.srst_udelay) +fsleep (ddata->cfg.srst_udelay); + +/* +* Flush posted write. For devices needing srst_udelay +* this should trigger an interconnect error if the +* srst_udelay value is needed but not configured. +*/ sysc_val =sysc_read_sysconfig (ddata); } -if (ddata->cfg.srst_udelay) -fsleep (ddata->cfg.srst_udelay); -if (ddata->post_reset_quirk) ddata->post_reset_quirk (ddata);
drivers/gpio/gpio-dwapb.c +8 -4
@@ -277,13 +277,15 @@ static void dwapb_irq_enable(struct irq_data *d) {struct gpio_chip *gc =irq_data_get_irq_chip_data (d);struct dwapb_gpio *gpio =to_dwapb_gpio (gc); +irq_hw_number_t hwirq =irqd_to_hwirq (d);unsigned long flags;u32 val;raw_spin_lock_irqsave (&gc->bgpio_lock, flags); - val =dwapb_read (gpio,GPIO_INTEN ); - val |=BIT (irqd_to_hwirq (d)); + val =dwapb_read (gpio,GPIO_INTEN ) |BIT (hwirq);dwapb_write (gpio,GPIO_INTEN , val); + val =dwapb_read (gpio,GPIO_INTMASK ) & ~BIT (hwirq); +dwapb_write (gpio,GPIO_INTMASK , val);raw_spin_unlock_irqrestore (&gc->bgpio_lock, flags); }
@@ -291,12 +293,14 @@ static void dwapb_irq_disable(struct irq_data *d) {struct gpio_chip *gc =irq_data_get_irq_chip_data (d);struct dwapb_gpio *gpio =to_dwapb_gpio (gc); +irq_hw_number_t hwirq =irqd_to_hwirq (d);unsigned long flags;u32 val;raw_spin_lock_irqsave (&gc->bgpio_lock, flags); - val =dwapb_read (gpio,GPIO_INTEN ); - val &= ~BIT (irqd_to_hwirq (d)); + val =dwapb_read (gpio,GPIO_INTMASK ) |BIT (hwirq); +dwapb_write (gpio,GPIO_INTMASK , val); + val =dwapb_read (gpio,GPIO_INTEN ) & ~BIT (hwirq);dwapb_write (gpio,GPIO_INTEN , val);raw_spin_unlock_irqrestore (&gc->bgpio_lock, flags); }
drivers/gpio/gpiolib-cdev.c +12 -4
@@ -2224,10 +2224,7 @@ static int lineinfo_unwatch(struct gpio_chardev_data *cdev, void __user *ip)return 0 ; } -/* -* gpio_ioctl() - ioctl handler for the GPIO chardev -*/ -static long gpio_ioctl (struct file *file,unsigned int cmd,unsigned long arg) +static long gpio_ioctl_unlocked (struct file *file,unsigned int cmd,unsigned long arg) {struct gpio_chardev_data *cdev = file->private_data;struct gpio_device *gdev = cdev->gdev;
@@ -2264,6 +2261,17 @@ static long gpio_ioctl(struct file *file, unsigned int cmd, unsigned long arg) } } +/* +* gpio_ioctl() - ioctl handler for the GPIO chardev +*/ +static long gpio_ioctl (struct file *file,unsigned int cmd,unsigned long arg) +{ +struct gpio_chardev_data *cdev = file->private_data; + +return call_ioctl_locked (file, cmd, arg, cdev->gdev, + gpio_ioctl_unlocked); +} +#ifdef CONFIG_COMPAT static long gpio_ioctl_compat (struct file *file,unsigned int cmd,unsigned long arg)
drivers/gpu/drm/i915/display/intel_atomic.c +1 -192
205 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_atomic.h +0 -4
@@ -54,8 +54,4 @@ struct intel_crtc_state * intel_atomic_get_crtc_state(struct drm_atomic_state *state, struct intel_crtc *crtc); -int intel_atomic_setup_scalers (struct drm_i915_private *dev_priv, -struct intel_crtc *intel_crtc, -struct intel_crtc_state *crtc_state); -#endif /* __INTEL_ATOMIC_H__ */
drivers/gpu/drm/i915/display/skl_scaler.c +257 -0
263 lines not on this page · raw message
drivers/gpu/drm/i915/display/skl_scaler.h +8 -2
@@ -8,17 +8,22 @@#include <linux/types.h> enum drm_scaling_filter ; +enum pipe ;struct drm_i915_private ; +struct intel_crtc ;struct intel_crtc_state ; -struct intel_plane_state ;struct intel_plane ; -enum pipe ; +struct intel_plane_state ;int skl_update_scaler_crtc (struct intel_crtc_state *crtc_state);int skl_update_scaler_plane (struct intel_crtc_state *crtc_state,struct intel_plane_state *plane_state); +int intel_atomic_setup_scalers (struct drm_i915_private *dev_priv, +struct intel_crtc *intel_crtc, +struct intel_crtc_state *crtc_state); +void skl_pfit_enable (const struct intel_crtc_state *crtc_state); void skl_program_plane_scaler(struct intel_plane *plane,
@@ -26,4 +31,5 @@ void skl_program_plane_scaler(struct intel_plane *plane, const struct intel_plane_state *plane_state);void skl_detach_scalers (const struct intel_crtc_state *crtc_state);void skl_scaler_disable (const struct intel_crtc_state *old_crtc_state); +#endif
drivers/i2c/busses/i2c-aspeed.c +32 -16
75 lines not on this page · raw message
drivers/iio/adc/ti_am335x_adc.c +3 -1
@@ -632,8 +632,10 @@ static int tiadc_probe(struct platform_device *pdev)platform_set_drvdata (pdev, indio_dev); err =tiadc_request_dma (pdev, adc_dev); -if (err && err == -EPROBE_DEFER ) +if (err && err != -ENODEV ) { +dev_err_probe (&pdev->dev, err,"DMA request failed\n" ); goto err_dma; + }return 0 ;
drivers/iio/buffer/industrialio-triggered-buffer.c +10 -0
@@ -44,6 +44,16 @@ int iio_triggered_buffer_setup_ext(struct iio_dev *indio_dev,struct iio_buffer *buffer;int ret; +/* +* iio_triggered_buffer_cleanup() assumes that the buffer allocated here +* is assigned to indio_dev->buffer but this is only the case if this +* function is the first caller to iio_device_attach_buffer(). If +* indio_dev->buffer is already set then we can't proceed otherwise the +* cleanup function will try to free a buffer that was not allocated here. +*/ +if (indio_dev->buffer) +return -EADDRINUSE ; + buffer =iio_kfifo_allocate ();if (!buffer) { ret = -ENOMEM ;
drivers/iio/common/ms_sensors/ms_sensors_i2c.c +2 -2
@@ -15,8 +15,8 @@/* Conversion times in us */ static const u16 ms_sensors_ht_t_conversion_time[] = {50000 ,25000 ,13000 ,7000 }; -static const u16 ms_sensors_ht_h_conversion_time[] = {16000 ,3000 , -5000 ,8000 }; +static const u16 ms_sensors_ht_h_conversion_time[] = {16000 ,5000 , +3000 ,8000 };static const u16 ms_sensors_tp_conversion_time[] = {500 ,1100 ,2100 ,4100 ,8220 ,16440 };
drivers/iio/imu/adis16475.c +72 -45
141 lines not on this page · raw message
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c +2 -2
@@ -727,13 +727,13 @@ inv_mpu6050_read_raw(struct iio_dev *indio_dev, ret =inv_mpu6050_sensor_show (st, st->reg->gyro_offset, chan->channel2, val);mutex_unlock (&st->lock); -return IIO_VAL_INT ; +return ret;case IIO_ACCEL :mutex_lock (&st->lock); ret =inv_mpu6050_sensor_show (st, st->reg->accl_offset, chan->channel2, val);mutex_unlock (&st->lock); -return IIO_VAL_INT ; +return ret;default :return -EINVAL ;
drivers/input/keyboard/ipaq-micro-keys.c +3 -0
@@ -105,6 +105,9 @@ static int micro_key_probe(struct platform_device *pdev) keys->codes =devm_kmemdup (&pdev->dev, micro_keycodes, keys->input->keycodesize * keys->input->keycodemax,GFP_KERNEL ); +if (!keys->codes) +return -ENOMEM ; + keys->input->keycode = keys->codes;__set_bit (EV_KEY , keys->input->evbit);
drivers/input/misc/soc_button_array.c +5 -0
@@ -299,6 +299,11 @@ static int soc_button_parse_btn_desc(struct device *dev, info->name ="power" ; info->event_code =KEY_POWER ; info->wakeup = true; + }else if (upage ==0x01 && usage ==0xc6 ) { + info->name ="airplane mode switch" ; + info->event_type =EV_SW ; + info->event_code =SW_RFKILL_ALL ; + info->active_low = false; }else if (upage ==0x01 && usage ==0xca ) { info->name ="rotation lock switch" ; info->event_type =EV_SW ;
drivers/interconnect/core.c +3 -0
@@ -382,6 +382,9 @@ struct icc_node_data *of_icc_get_from_provider(struct of_phandle_args *spec) }mutex_unlock (&icc_lock); +if (!node) +return ERR_PTR (-EINVAL ); +if (IS_ERR (node))return ERR_CAST (node);
drivers/md/dm-integrity.c +6 -5
@@ -1762,11 +1762,12 @@ static void integrity_metadata(struct work_struct *w) sectors_to_process = dio->range.n_sectors;__bio_for_each_segment (bv, bio, iter, dio->bio_details.bi_iter) { +struct bio_vec bv_copy = bv;unsigned pos;char *mem, *checksums_ptr; again: - mem = (char *)kmap_atomic (bv.bv_page) + bv.bv_offset; + mem = (char *)kmap_atomic (bv_copy.bv_page) + bv_copy.bv_offset; pos =0 ; checksums_ptr = checksums; do {
@@ -1775,7 +1776,7 @@ static void integrity_metadata(struct work_struct *w) sectors_to_process -= ic->sectors_per_block; pos += ic->sectors_per_block <<SECTOR_SHIFT ; sector += ic->sectors_per_block; - }while (pos < bv.bv_len && sectors_to_process && checksums != checksums_onstack); + }while (pos < bv_copy.bv_len && sectors_to_process && checksums != checksums_onstack);kunmap_atomic (mem); r = dm_integrity_rw_tag(ic, checksums, &dio->metadata_block, &dio->metadata_offset,
@@ -1796,9 +1797,9 @@ static void integrity_metadata(struct work_struct *w)if (!sectors_to_process)break ; -if (unlikely (pos < bv.bv_len)) { - bv.bv_offset += pos; - bv.bv_len -= pos; +if (unlikely (pos < bv_copy.bv_len)) { + bv_copy.bv_offset += pos; + bv_copy.bv_len -= pos; goto again; } }
drivers/net/ethernet/actions/owl-emac.c +1 -1
@@ -342,7 +342,7 @@ static u32 owl_emac_dma_cmd_stop(struct owl_emac_priv *priv)static void owl_emac_set_hw_mac_addr (struct net_device *netdev) {struct owl_emac_priv *priv =netdev_priv (netdev); -u8 *mac_addr = netdev->dev_addr; +const u8 *mac_addr = netdev->dev_addr;u32 addr_high, addr_low; addr_high = mac_addr[0 ] <<8 | mac_addr[1 ];
drivers/net/ethernet/adaptec/starfire.c +5 -5
@@ -955,7 +955,7 @@ static int netdev_open(struct net_device *dev)writew (0 , ioaddr + PerfFilterTable +4 );writew (0 , ioaddr + PerfFilterTable +8 );for (i =1 ; i <16 ; i++) { -__be16 *eaddrs = (__be16 *)dev->dev_addr; +const __be16 *eaddrs = (const __be16 *)dev->dev_addr;void __iomem *setup_frm = ioaddr + PerfFilterTable + i *16 ;writew (be16_to_cpu (eaddrs[2 ]), setup_frm); setup_frm +=4 ;writew (be16_to_cpu (eaddrs[1 ]), setup_frm); setup_frm +=4 ;
@@ -1787,14 +1787,14 @@ static void set_rx_mode(struct net_device *dev) }else if (netdev_mc_count (dev) <=14 ) {/* Use the 16 element perfect filter, skip first two entries. */ void __iomem *filter_addr = ioaddr + PerfFilterTable +2 *16 ; -__be16 *eaddrs; +const __be16 *eaddrs;netdev_for_each_mc_addr (ha, dev) { eaddrs = (__be16 *) ha->addr;writew (be16_to_cpu (eaddrs[2 ]), filter_addr); filter_addr +=4 ;writew (be16_to_cpu (eaddrs[1 ]), filter_addr); filter_addr +=4 ;writew (be16_to_cpu (eaddrs[0 ]), filter_addr); filter_addr +=8 ; } - eaddrs = (__be16 *)dev->dev_addr; + eaddrs = (const __be16 *)dev->dev_addr; i =netdev_mc_count (dev) +2 ;while (i++ <16 ) {writew (be16_to_cpu (eaddrs[0 ]), filter_addr); filter_addr +=4 ;
@@ -1805,7 +1805,7 @@ static void set_rx_mode(struct net_device *dev) }else {/* Must use a multicast hash table. */ void __iomem *filter_addr; -__be16 *eaddrs; +const __be16 *eaddrs; __le16 mc_filter[32] __attribute__ ((aligned(sizeof(long)))); /* Multicast hash filter */memset (mc_filter,0 ,sizeof (mc_filter));
@@ -1819,7 +1819,7 @@ static void set_rx_mode(struct net_device *dev) }/* Clear the perfect filter list, skip first two entries. */ filter_addr = ioaddr + PerfFilterTable +2 *16 ; - eaddrs = (__be16 *)dev->dev_addr; + eaddrs = (const __be16 *)dev->dev_addr;for (i =2 ; i <16 ; i++) {writew (be16_to_cpu (eaddrs[0 ]), filter_addr); filter_addr +=4 ;writew (be16_to_cpu (eaddrs[1 ]), filter_addr); filter_addr +=4 ;
drivers/net/ethernet/alacritech/slicoss.c +1 -1
@@ -1008,7 +1008,7 @@ static void slic_set_link_autoneg(struct slic_device *sdev)static void slic_set_mac_address (struct slic_device *sdev) { -u8 *addr = sdev->netdev->dev_addr; +const u8 *addr = sdev->netdev->dev_addr;u32 val; val = addr[5 ] | addr[4 ] <<8 | addr[3 ] <<16 | addr[2 ] <<24 ;
drivers/net/ethernet/alteon/acenic.c +2 -2
@@ -2712,7 +2712,7 @@ static int ace_set_mac_addr(struct net_device *dev, void *p)struct ace_private *ap =netdev_priv (dev);struct ace_regs __iomem *regs = ap->regs;struct sockaddr *addr=p; -u8 *da; +const u8 *da;struct cmd cmd;if (netif_running (dev))
@@ -2720,7 +2720,7 @@ static int ace_set_mac_addr(struct net_device *dev, void *p)memcpy (dev->dev_addr, addr->sa_data,dev->addr_len); - da = (u8 *)dev->dev_addr; + da = (const u8 *)dev->dev_addr;writel (da[0 ] <<8 | da[1 ], ®s->MacAddrHi); writel((da[2] << 24) | (da[3] << 16) | (da[4] << 8) | da[5],
drivers/net/ethernet/altera/altera_tse_main.c +1 -1
@@ -853,7 +853,7 @@ static int init_phy(struct net_device *dev)return 0 ; } -static void tse_update_mac_addr (struct altera_tse_private *priv,u8 *addr) +static void tse_update_mac_addr (struct altera_tse_private *priv,const u8 *addr) {u32 msb;u32 lsb;
drivers/net/ethernet/amd/nmclan_cs.c +2 -1
@@ -529,7 +529,8 @@ static void mace_write(mace_private *lp, unsigned int ioaddr, int reg,mace_init Resets the MACE chip. ---------------------------------------------------------------------------- */ -static int mace_init (mace_private *lp,unsigned int ioaddr,char *enet_addr) +static int mace_init (mace_private *lp,unsigned int ioaddr, +const char *enet_addr) {int i;int ct =0 ;
drivers/net/ethernet/amd/xgbe/xgbe-dev.c +1 -1
@@ -1087,7 +1087,7 @@ static int xgbe_add_mac_addresses(struct xgbe_prv_data *pdata)return 0 ; } -static int xgbe_set_mac_address (struct xgbe_prv_data *pdata,u8 *addr) +static int xgbe_set_mac_address (struct xgbe_prv_data *pdata,const u8 *addr) {unsigned int mac_addr_hi, mac_addr_lo;
drivers/net/ethernet/amd/xgbe/xgbe.h +1 -1
@@ -730,7 +730,7 @@ struct xgbe_ext_stats {struct xgbe_hw_if {int (*tx_complete)(struct xgbe_ring_desc *); -int (*set_mac_address)(struct xgbe_prv_data *,u8 *addr); +int (*set_mac_address)(struct xgbe_prv_data *,const u8 *addr);int (*config_rx_mode)(struct xgbe_prv_data *);int (*enable_rx_csum)(struct xgbe_prv_data *);
drivers/net/ethernet/apm/xgene-v2/mac.c +1 -1
@@ -65,7 +65,7 @@ void xge_mac_set_speed(struct xge_pdata *pdata)void xge_mac_set_station_addr (struct xge_pdata *pdata) { -u8 *dev_addr = pdata->ndev->dev_addr; +const u8 *dev_addr = pdata->ndev->dev_addr;u32 addr0, addr1; addr0 = (dev_addr[3] << 24) | (dev_addr[2] << 16) |
drivers/net/ethernet/apm/xgene/xgene_enet_hw.c +1 -1
@@ -378,8 +378,8 @@ u32 xgene_enet_rd_stat(struct xgene_enet_pdata *pdata, u32 rd_addr)static void xgene_gmac_set_mac_addr (struct xgene_enet_pdata *pdata) { +const u8 *dev_addr = pdata->ndev->dev_addr;u32 addr0, addr1; -u8 *dev_addr = pdata->ndev->dev_addr; addr0 = (dev_addr[3 ] <<24 ) | (dev_addr[2 ] <<16 ) | (dev_addr[1 ] <<8 ) | dev_addr[0 ];
drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c +1 -1
@@ -165,8 +165,8 @@ static void xgene_sgmac_reset(struct xgene_enet_pdata *p)static void xgene_sgmac_set_mac_addr (struct xgene_enet_pdata *p) { +const u8 *dev_addr = p->ndev->dev_addr;u32 addr0, addr1; -u8 *dev_addr = p->ndev->dev_addr; addr0 = (dev_addr[3 ] <<24 ) | (dev_addr[2 ] <<16 ) | (dev_addr[1 ] <<8 ) | dev_addr[0 ];
drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c +1 -1
@@ -207,8 +207,8 @@ static void xgene_pcs_reset(struct xgene_enet_pdata *pdata)static void xgene_xgmac_set_mac_addr (struct xgene_enet_pdata *pdata) { +const u8 *dev_addr = pdata->ndev->dev_addr;u32 addr0, addr1; -u8 *dev_addr = pdata->ndev->dev_addr; addr0 = (dev_addr[3 ] <<24 ) | (dev_addr[2 ] <<16 ) | (dev_addr[1 ] <<8 ) | dev_addr[0 ];
drivers/net/ethernet/apple/bmac.c +4 -4
@@ -308,7 +308,7 @@ bmac_init_registers(struct net_device *dev) {struct bmac_data *bp =netdev_priv (dev);volatile unsigned short regValue; -unsigned short *pWord16; +const unsigned short *pWord16;int i;/* XXDEBUG(("bmac: enter init_registers\n")); */
@@ -371,7 +371,7 @@ bmac_init_registers(struct net_device *dev)bmwrite (dev,BHASH1 , bp->hash_table_mask[2 ]);/* bits 47 - 32 */ bmwrite (dev,BHASH0 , bp->hash_table_mask[3 ]);/* bits 63 - 48 */ - pWord16 = (unsigned short *)dev->dev_addr; + pWord16 = (const unsigned short *)dev->dev_addr;bmwrite (dev,MADD0 , *pWord16++);bmwrite (dev,MADD1 , *pWord16++);bmwrite (dev,MADD2 , *pWord16);
@@ -522,7 +522,7 @@ static int bmac_set_address(struct net_device *dev, void *addr) {struct bmac_data *bp =netdev_priv (dev);unsigned char *p = addr; -unsigned short *pWord16; +const unsigned short *pWord16;unsigned long flags;int i;
@@ -533,7 +533,7 @@ static int bmac_set_address(struct net_device *dev, void *addr) dev->dev_addr[i] = p[i]; }/* load up the hardware address */ - pWord16 = (unsigned short *)dev->dev_addr; + pWord16 = (const unsigned short *)dev->dev_addr;bmwrite (dev,MADD0 , *pWord16++);bmwrite (dev,MADD1 , *pWord16++);bmwrite (dev,MADD2 , *pWord16);
drivers/net/ethernet/aquantia/atlantic/aq_hw.h +3 -3
@@ -219,7 +219,7 @@ struct aq_hw_ops {int (*hw_ring_tx_head_update)(struct aq_hw_s *self,struct aq_ring_s *aq_ring); -int (*hw_set_mac_address)(struct aq_hw_s *self,u8 *mac_addr); +int (*hw_set_mac_address)(struct aq_hw_s *self,const u8 *mac_addr);int (*hw_soft_reset)(struct aq_hw_s *self);
@@ -228,7 +228,7 @@ struct aq_hw_ops {int (*hw_reset)(struct aq_hw_s *self); -int (*hw_init)(struct aq_hw_s *self,u8 *mac_addr); +int (*hw_init)(struct aq_hw_s *self,const u8 *mac_addr);int (*hw_start)(struct aq_hw_s *self);
@@ -375,7 +375,7 @@ struct aq_fw_ops {int (*set_phyloopback)(struct aq_hw_s *self,u32 mode,bool enable);int (*set_power)(struct aq_hw_s *self,unsigned int power_state, -u8 *mac); +const u8 *mac); int (*send_fw_request)(struct aq_hw_s *self, const struct hw_fw_request_iface *fw_req,
drivers/net/ethernet/aquantia/atlantic/aq_macsec.c +1 -1
@@ -35,7 +35,7 @@ static int aq_apply_macsec_cfg(struct aq_nic_s *nic);static int aq_apply_secy_cfg (struct aq_nic_s *nic,const struct macsec_secy *secy); -static void aq_ether_addr_to_mac (u32 mac[2 ],unsigned char *emac) +static void aq_ether_addr_to_mac (u32 mac[2 ],const unsigned char *emac) {u32 tmp[2 ] = {0 };
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c +2 -2
@@ -322,7 +322,7 @@ static int hw_atl_a0_hw_init_rx_path(struct aq_hw_s *self)return aq_hw_err_from_flags (self); } -static int hw_atl_a0_hw_mac_addr_set (struct aq_hw_s *self,u8 *mac_addr) +static int hw_atl_a0_hw_mac_addr_set (struct aq_hw_s *self,const u8 *mac_addr) {unsigned int h =0U ;unsigned int l =0U ;
@@ -348,7 +348,7 @@ static int hw_atl_a0_hw_mac_addr_set(struct aq_hw_s *self, u8 *mac_addr)return err; } -static int hw_atl_a0_hw_init (struct aq_hw_s *self,u8 *mac_addr) +static int hw_atl_a0_hw_init (struct aq_hw_s *self,const u8 *mac_addr) {static u32 aq_hw_atl_igcr_table_[4 ][2 ] = { [AQ_HW_IRQ_INVALID ] = {0x20000000U ,0x20000000U },
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c +2 -2
@@ -533,7 +533,7 @@ static int hw_atl_b0_hw_init_rx_path(struct aq_hw_s *self)return aq_hw_err_from_flags (self); } -int hw_atl_b0_hw_mac_addr_set (struct aq_hw_s *self,u8 *mac_addr) +int hw_atl_b0_hw_mac_addr_set (struct aq_hw_s *self,const u8 *mac_addr) {unsigned int h =0U ;unsigned int l =0U ;
@@ -558,7 +558,7 @@ int hw_atl_b0_hw_mac_addr_set(struct aq_hw_s *self, u8 *mac_addr)return err; } -static int hw_atl_b0_hw_init (struct aq_hw_s *self,u8 *mac_addr) +static int hw_atl_b0_hw_init (struct aq_hw_s *self,const u8 *mac_addr) {static u32 aq_hw_atl_igcr_table_[4 ][2 ] = { [AQ_HW_IRQ_INVALID ] = {0x20000000U ,0x20000000U },
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.h +1 -1
@@ -58,7 +58,7 @@ int hw_atl_b0_hw_ring_rx_stop(struct aq_hw_s *self, struct aq_ring_s *ring);void hw_atl_b0_hw_init_rx_rss_ctrl1 (struct aq_hw_s *self); -int hw_atl_b0_hw_mac_addr_set (struct aq_hw_s *self,u8 *mac_addr); +int hw_atl_b0_hw_mac_addr_set (struct aq_hw_s *self,const u8 *mac_addr);int hw_atl_b0_set_fc (struct aq_hw_s *self,u32 fc,u32 tc);int hw_atl_b0_set_loopback (struct aq_hw_s *self,u32 mode,bool enable);
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c +2 -2
@@ -965,7 +965,7 @@ u32 hw_atl_utils_get_fw_version(struct aq_hw_s *self) }static int aq_fw1x_set_wake_magic (struct aq_hw_s *self,bool wol_enabled, -u8 *mac) +const u8 *mac) {struct hw_atl_utils_fw_rpc *prpc =NULL ;unsigned int rpc_size =0U ;
@@ -1008,7 +1008,7 @@ static int aq_fw1x_set_wake_magic(struct aq_hw_s *self, bool wol_enabled, }static int aq_fw1x_set_power (struct aq_hw_s *self,unsigned int power_state, -u8 *mac) +const u8 *mac) {struct hw_atl_utils_fw_rpc *prpc =NULL ;unsigned int rpc_size =0U ;
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c +2 -2
@@ -355,7 +355,7 @@ static int aq_fw2x_get_phy_temp(struct aq_hw_s *self, int *temp)return 0 ; } -static int aq_fw2x_set_wol (struct aq_hw_s *self,u8 *mac) +static int aq_fw2x_set_wol (struct aq_hw_s *self,const u8 *mac) {struct hw_atl_utils_fw_rpc *rpc =NULL ;struct offload_info *info =NULL ;
@@ -401,7 +401,7 @@ static int aq_fw2x_set_wol(struct aq_hw_s *self, u8 *mac) }static int aq_fw2x_set_power (struct aq_hw_s *self,unsigned int power_state, -u8 *mac) +const u8 *mac) {int err =0 ;
drivers/net/ethernet/aquantia/atlantic/hw_atl2/hw_atl2.c +1 -1
@@ -530,7 +530,7 @@ static int hw_atl2_hw_init_rx_path(struct aq_hw_s *self)return aq_hw_err_from_flags (self); } -static int hw_atl2_hw_init (struct aq_hw_s *self,u8 *mac_addr) +static int hw_atl2_hw_init (struct aq_hw_s *self,const u8 *mac_addr) {static u32 aq_hw_atl2_igcr_table_[4 ][2 ] = { [AQ_HW_IRQ_INVALID ] = {0x20000000U ,0x20000000U },
drivers/net/ethernet/atheros/atl1e/atl1e_main.c +4 -1
@@ -866,10 +866,13 @@ static int atl1e_setup_ring_resources(struct atl1e_adapter *adapter)netdev_err (adapter->netdev,"offset(%d) > ring size(%d) !!\n" , offset, adapter->ring_size); err =-1 ; - goto failed; + goto free_buffer; }return 0 ; +free_buffer: +kfree (tx_ring->tx_buffer); + tx_ring->tx_buffer =NULL ; failed:if (adapter->ring_vir_addr !=NULL ) { dma_free_coherent(&pdev->dev, adapter->ring_size,
drivers/net/ethernet/broadcom/b44.c +4 -2
@@ -218,7 +218,8 @@ static inline void __b44_cam_read(struct b44 *bp, unsigned char *data, int index data[1 ] = (val >>0 ) &0xFF ; } -static inline void __b44_cam_write (struct b44 *bp,unsigned char *data,int index) +static inline void __b44_cam_write (struct b44 *bp, +const unsigned char *data,int index) {u32 val;
@@ -1507,7 +1508,8 @@ static void bwfilter_table(struct b44 *bp, u8 *pp, u32 bytes, u32 table_offset) } } -static int b44_magic_pattern (u8 *macaddr,u8 *ppattern,u8 *pmask,int offset) +static int b44_magic_pattern (const u8 *macaddr,u8 *ppattern,u8 *pmask, +int offset) {int magicsync =6 ;int k, j, len = offset;
drivers/net/ethernet/broadcom/bcmsysport.c +1 -1
@@ -1820,7 +1820,7 @@ static inline void umac_reset(struct bcm_sysport_priv *priv) }static void umac_set_hw_addr (struct bcm_sysport_priv *priv, -unsigned char *addr) +const unsigned char *addr) {u32 mac0 = (addr[0 ] <<24 ) | (addr[1 ] <<16 ) | (addr[2 ] <<8 ) | addr[3 ];
drivers/net/ethernet/broadcom/bgmac.c +1 -1
@@ -768,7 +768,7 @@ static void bgmac_umac_cmd_maskset(struct bgmac *bgmac, u32 mask, u32 set,udelay (2 ); } -static void bgmac_write_mac_address (struct bgmac *bgmac,u8 *addr) +static void bgmac_write_mac_address (struct bgmac *bgmac,const u8 *addr) {u32 tmp;
drivers/net/ethernet/broadcom/bnx2.c +1 -1
@@ -2704,7 +2704,7 @@ bnx2_alloc_bad_rbuf(struct bnx2 *bp) }static void -bnx2_set_mac_addr (struct bnx2 *bp,u8 *mac_addr,u32 pos) +bnx2_set_mac_addr (struct bnx2 *bp,const u8 *mac_addr,u32 pos) {u32 val;
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h +1 -1
@@ -2002,7 +2002,7 @@ int bnx2x_idle_chk(struct bnx2x *bp);* operation has been successfully scheduled and a negative - if a requested * operations has failed. */ -int bnx2x_set_mac_one (struct bnx2x *bp,u8 *mac, +int bnx2x_set_mac_one (struct bnx2x *bp,const u8 *mac,struct bnx2x_vlan_mac_obj *obj,bool set,int mac_type,unsigned long *ramrod_flags);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +2 -2
@@ -8428,7 +8428,7 @@ int bnx2x_alloc_mem(struct bnx2x *bp)* Init service functions */ -int bnx2x_set_mac_one (struct bnx2x *bp,u8 *mac, +int bnx2x_set_mac_one (struct bnx2x *bp,const u8 *mac,struct bnx2x_vlan_mac_obj *obj,bool set,int mac_type,unsigned long *ramrod_flags) {
@@ -9157,7 +9157,7 @@ u32 bnx2x_send_unload_req(struct bnx2x *bp, int unload_mode)else if (bp->wol) {u32 emac_base = port ?GRCBASE_EMAC1 :GRCBASE_EMAC0 ; -u8 *mac_addr = bp->dev->dev_addr; +const u8 *mac_addr = bp->dev->dev_addr;struct pci_dev *pdev = bp->pdev;u32 val;u16 pmc;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h +2 -1
@@ -508,7 +508,8 @@ int bnx2x_vfpf_init(struct bnx2x *bp);void bnx2x_vfpf_close_vf (struct bnx2x *bp);int bnx2x_vfpf_setup_q (struct bnx2x *bp,struct bnx2x_fastpath *fp,bool is_leading); -int bnx2x_vfpf_config_mac (struct bnx2x *bp,u8 *addr,u8 vf_qid,bool set); +int bnx2x_vfpf_config_mac (struct bnx2x *bp,const u8 *addr,u8 vf_qid, +bool set);int bnx2x_vfpf_config_rss (struct bnx2x *bp,struct bnx2x_config_rss_params *params);int bnx2x_vfpf_set_mcast (struct net_device *dev);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c +1 -1
@@ -722,7 +722,7 @@ static int bnx2x_vfpf_teardown_queue(struct bnx2x *bp, int qidx) }/* request pf to add a mac for the vf */ -int bnx2x_vfpf_config_mac (struct bnx2x *bp,u8 *addr,u8 vf_qid,bool set) +int bnx2x_vfpf_config_mac (struct bnx2x *bp,const u8 *addr,u8 vf_qid,bool set) {struct vfpf_set_q_filters_tlv *req = &bp->vf2pf_mbox->req.set_q_filters;struct pfvf_general_resp_tlv *resp = &bp->vf2pf_mbox->resp.general_resp;
drivers/net/ethernet/broadcom/bnxt/bnxt.c +1 -1
@@ -4882,7 +4882,7 @@ static int bnxt_hwrm_cfa_ntuple_filter_alloc(struct bnxt *bp,#endif static int bnxt_hwrm_set_vnic_filter (struct bnxt *bp,u16 vnic_id,u16 idx, -u8 *mac_addr) +const u8 *mac_addr) {struct hwrm_cfa_l2_filter_alloc_output *resp;struct hwrm_cfa_l2_filter_alloc_input *req;
drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c +2 -2
@@ -1151,7 +1151,7 @@ void bnxt_hwrm_exec_fwd_req(struct bnxt *bp) } } -int bnxt_approve_mac (struct bnxt *bp,u8 *mac,bool strict) +int bnxt_approve_mac (struct bnxt *bp,const u8 *mac,bool strict) {struct hwrm_func_vf_cfg_input *req;int rc =0 ;
@@ -1246,7 +1246,7 @@ void bnxt_update_vf_mac(struct bnxt *bp) { } -int bnxt_approve_mac (struct bnxt *bp,u8 *mac,bool strict) +int bnxt_approve_mac (struct bnxt *bp,const u8 *mac,bool strict) {return 0 ; }
drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.h +1 -1
@@ -41,5 +41,5 @@ int bnxt_cfg_hw_sriov(struct bnxt *bp, int *num_vfs, bool reset);void bnxt_sriov_disable (struct bnxt *);void bnxt_hwrm_exec_fwd_req (struct bnxt *);void bnxt_update_vf_mac (struct bnxt *); -int bnxt_approve_mac (struct bnxt *,u8 *,bool ); +int bnxt_approve_mac (struct bnxt *,const u8 *,bool );#endif
drivers/net/ethernet/broadcom/genet/bcmgenet.c +2 -2
@@ -3239,7 +3239,7 @@ static void bcmgenet_umac_reset(struct bcmgenet_priv *priv) }static void bcmgenet_set_hw_addr (struct bcmgenet_priv *priv, -unsigned char *addr) +const unsigned char *addr) {bcmgenet_umac_writel (priv,get_unaligned_be32 (&addr[0 ]),UMAC_MAC0 );bcmgenet_umac_writel (priv,get_unaligned_be16 (&addr[4 ]),UMAC_MAC1 );
@@ -3537,7 +3537,7 @@ static void bcmgenet_timeout(struct net_device *dev, unsigned int txqueue)#define MAX_MDF_FILTER 17static inline void bcmgenet_set_mdf_addr (struct bcmgenet_priv *priv, -unsigned char *addr, +const unsigned char *addr,int *i) { bcmgenet_umac_writel(priv, addr[0] << 8 | addr[1],
drivers/net/ethernet/calxeda/xgmac.c +1 -1
@@ -607,7 +607,7 @@ static inline void xgmac_mac_disable(void __iomem *ioaddr)writel (value, ioaddr +XGMAC_CONTROL ); } -static void xgmac_set_mac_addr (void __iomem *ioaddr,unsigned char *addr, +static void xgmac_set_mac_addr (void __iomem *ioaddr,const unsigned char *addr,int num) {u32 data;
drivers/net/ethernet/chelsio/cxgb/gmac.h +1 -1
@@ -117,7 +117,7 @@ struct cmac_ops {const struct cmac_statistics *(*statistics_update)(struct cmac *,int );int (*macaddress_get)(struct cmac *,u8 mac_addr[6 ]); -int (*macaddress_set)(struct cmac *,u8 mac_addr[6 ]); +int (*macaddress_set)(struct cmac *,const u8 mac_addr[6 ]); };typedef struct _cmac_instance cmac_instance ;
drivers/net/ethernet/chelsio/cxgb/pm3393.c +1 -1
@@ -496,7 +496,7 @@ static int pm3393_macaddress_get(struct cmac *cmac, u8 mac_addr[6])return 0 ; } -static int pm3393_macaddress_set (struct cmac *cmac,u8 ma[6 ]) +static int pm3393_macaddress_set (struct cmac *cmac,const u8 ma[6 ]) {u32 val, lo, mid, hi, enabled = cmac->instance->enabled;
drivers/net/ethernet/chelsio/cxgb/vsc7326.c +1 -1
@@ -379,7 +379,7 @@ static int mac_intr_clear(struct cmac *mac) }/* Expect MAC address to be in network byte order. */ -static int mac_set_address (struct cmac * mac,u8 addr[6 ]) +static int mac_set_address (struct cmac * mac,const u8 addr[6 ]) {u32 val;int port = mac->instance->index;
drivers/net/ethernet/chelsio/cxgb3/common.h +1 -1
@@ -710,7 +710,7 @@ int t3_mac_enable(struct cmac *mac, int which);int t3_mac_disable (struct cmac *mac,int which);int t3_mac_set_mtu (struct cmac *mac,unsigned int mtu);int t3_mac_set_rx_mode (struct cmac *mac,struct net_device *dev); -int t3_mac_set_address (struct cmac *mac,unsigned int idx,u8 addr[6 ]); +int t3_mac_set_address (struct cmac *mac,unsigned int idx,const u8 addr[6 ]);int t3_mac_set_num_ucast (struct cmac *mac,int n);const struct mac_stats *t3_mac_update_stats (struct cmac *mac);int t3_mac_set_speed_duplex_fc (struct cmac *mac,int speed,int duplex,int fc);
drivers/net/ethernet/chelsio/cxgb3/xgmac.c +1 -1
@@ -240,7 +240,7 @@ static void set_addr_filter(struct cmac *mac, int idx, const u8 * addr) }/* Set one of the station's unicast MAC addresses. */ -int t3_mac_set_address (struct cmac *mac,unsigned int idx,u8 addr[6 ]) +int t3_mac_set_address (struct cmac *mac,unsigned int idx,const u8 addr[6 ]) {if (idx >= mac->nucast)return -EINVAL ;
drivers/net/ethernet/cisco/enic/enic_pp.c +1 -1
@@ -73,9 +73,9 @@ static int enic_set_port_profile(struct enic *enic, int vf)struct vic_provinfo *vp;const u8 oui[3 ] =VIC_PROVINFO_CISCO_OUI ;const __be16 os_type =htons (VIC_GENERIC_PROV_OS_TYPE_LINUX ); +const u8 *client_mac;char uuid_str[38 ];char client_mac_str[18 ]; -u8 *client_mac;int err;ENIC_PP_BY_INDEX (enic, vf, pp, &err);
drivers/net/ethernet/dlink/dl2k.c +1 -1
@@ -567,7 +567,7 @@ static void rio_hw_init(struct net_device *dev)*/ for (i =0 ; i <3 ; i++)dw16 (StationAddr0 +2 * i, -cpu_to_le16 (((u16 *)dev->dev_addr)[i])); +cpu_to_le16 (((const u16 *)dev->dev_addr)[i]));set_multicast (dev);if (np->coalesce) {
drivers/net/ethernet/dnet.c +3 -3
@@ -60,11 +60,11 @@ static void __dnet_set_hwaddr(struct dnet *bp) {u16 tmp; - tmp =be16_to_cpup ((__be16 *)bp->dev->dev_addr); + tmp =be16_to_cpup ((const __be16 *)bp->dev->dev_addr);dnet_writew_mac (bp,DNET_INTERNAL_MAC_ADDR_0_REG , tmp); - tmp =be16_to_cpup ((__be16 *)(bp->dev->dev_addr +2 )); + tmp =be16_to_cpup ((const __be16 *)(bp->dev->dev_addr +2 ));dnet_writew_mac (bp,DNET_INTERNAL_MAC_ADDR_1_REG , tmp); - tmp =be16_to_cpup ((__be16 *)(bp->dev->dev_addr +4 )); + tmp =be16_to_cpup ((const __be16 *)(bp->dev->dev_addr +4 ));dnet_writew_mac (bp,DNET_INTERNAL_MAC_ADDR_2_REG , tmp); }
drivers/net/ethernet/emulex/benet/be_cmds.c +1 -1
@@ -1080,7 +1080,7 @@ int be_cmd_mac_addr_query(struct be_adapter *adapter, u8 *mac_addr, }/* Uses synchronous MCCQ */ -int be_cmd_pmac_add (struct be_adapter *adapter,u8 *mac_addr, +int be_cmd_pmac_add (struct be_adapter *adapter,const u8 *mac_addr,u32 if_id,u32 *pmac_id,u32 domain) {struct be_mcc_wrb *wrb;
drivers/net/ethernet/emulex/benet/be_cmds.h +1 -1
@@ -2385,7 +2385,7 @@ int be_pci_fnum_get(struct be_adapter *adapter);int be_fw_wait_ready (struct be_adapter *adapter);int be_cmd_mac_addr_query (struct be_adapter *adapter,u8 *mac_addr,bool permanent,u32 if_handle,u32 pmac_id); -int be_cmd_pmac_add (struct be_adapter *adapter,u8 *mac_addr,u32 if_id, +int be_cmd_pmac_add (struct be_adapter *adapter,const u8 *mac_addr,u32 if_id,u32 *pmac_id,u32 domain);int be_cmd_pmac_del (struct be_adapter *adapter,u32 if_id,int pmac_id,u32 domain);
drivers/net/ethernet/emulex/benet/be_main.c +1 -1
@@ -272,7 +272,7 @@ void be_cq_notify(struct be_adapter *adapter, u16 qid, bool arm, u16 num_popped)iowrite32 (val, adapter->db +DB_CQ_OFFSET ); } -static int be_dev_mac_add (struct be_adapter *adapter,u8 *mac) +static int be_dev_mac_add (struct be_adapter *adapter,const u8 *mac) {int i;
drivers/net/ethernet/ethoc.c +1 -1
@@ -806,8 +806,8 @@ static int ethoc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)static void ethoc_do_set_mac_address (struct net_device *dev) { +const unsigned char *mac = dev->dev_addr;struct ethoc *priv =netdev_priv (dev); -unsigned char *mac = dev->dev_addr;ethoc_write (priv,MAC_ADDR0 , (mac[2 ] <<24 ) | (mac[3 ] <<16 ) | (mac[4 ] <<8 ) | (mac[5 ] <<0 ));
drivers/net/ethernet/fealnx.c +1 -1
@@ -827,7 +827,7 @@ static int netdev_open(struct net_device *dev)return -EAGAIN ;for (i =0 ; i <3 ; i++) -iowrite16 (((unsigned short *)dev->dev_addr)[i], +iowrite16 (((const unsigned short *)dev->dev_addr)[i], ioaddr +PAR0 + i*2 );init_ring (dev);
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c +2 -2
@@ -272,7 +272,7 @@ static int dpaa_netdev_init(struct net_device *net_dev, }else {eth_hw_addr_random (net_dev); err = priv->mac_dev->change_addr (priv->mac_dev->fman_mac, - (enet_addr_t *)net_dev->dev_addr); + (const enet_addr_t *)net_dev->dev_addr);if (err) {dev_err (dev,"Failed to set random MAC address\n" );return -EINVAL ;
@@ -452,7 +452,7 @@ static int dpaa_set_mac_address(struct net_device *net_dev, void *addr) mac_dev = priv->mac_dev; err = mac_dev->change_addr (mac_dev->fman_mac, - (enet_addr_t *)net_dev->dev_addr); + (const enet_addr_t *)net_dev->dev_addr);if (err <0 ) {netif_err (priv, drv, net_dev,"mac_dev->change_addr() = %d\n" , err);
drivers/net/ethernet/freescale/fman/fman_dtsec.c +4 -4
@@ -366,7 +366,7 @@ static void set_dflts(struct dtsec_cfg *cfg) cfg->maximum_frame =DEFAULT_MAXIMUM_FRAME ; } -static void set_mac_address (struct dtsec_regs __iomem *regs,u8 *adr) +static void set_mac_address (struct dtsec_regs __iomem *regs,const u8 *adr) {u32 tmp;
@@ -516,7 +516,7 @@ static int init(struct dtsec_regs __iomem *regs, struct dtsec_cfg *cfg,if (addr) {MAKE_ENET_ADDR_FROM_UINT64 (addr, eth_addr); -set_mac_address (regs, (u8 *)eth_addr); +set_mac_address (regs, (const u8 *)eth_addr); }/* HASH */
@@ -1022,7 +1022,7 @@ int dtsec_accept_rx_pause_frames(struct fman_mac *dtsec, bool en)return 0 ; } -int dtsec_modify_mac_address (struct fman_mac *dtsec,enet_addr_t *enet_addr) +int dtsec_modify_mac_address (struct fman_mac *dtsec,const enet_addr_t *enet_addr) {struct dtsec_regs __iomem *regs = dtsec->regs;enum comm_mode mode =COMM_MODE_NONE ;
@@ -1041,7 +1041,7 @@ int dtsec_modify_mac_address(struct fman_mac *dtsec, enet_addr_t *enet_addr)* Station address have to be swapped (big endian to little endian */ dtsec->addr =ENET_ADDR_TO_UINT64 (*enet_addr); -set_mac_address (dtsec->regs, (u8 *)(*enet_addr)); +set_mac_address (dtsec->regs, (const u8 *)(*enet_addr));graceful_start (dtsec, mode);
drivers/net/ethernet/freescale/fman/fman_dtsec.h +1 -1
@@ -37,7 +37,7 @@struct fman_mac *dtsec_config (struct fman_mac_params *params);int dtsec_set_promiscuous (struct fman_mac *dtsec,bool new_val); -int dtsec_modify_mac_address (struct fman_mac *dtsec,enet_addr_t *enet_addr); +int dtsec_modify_mac_address (struct fman_mac *dtsec,const enet_addr_t *enet_addr);int dtsec_adjust_link (struct fman_mac *dtsec,u16 speed);int dtsec_restart_autoneg (struct fman_mac *dtsec);
drivers/net/ethernet/freescale/fman/fman_memac.c +4 -4
@@ -354,7 +354,7 @@ struct fman_mac {bool allmulti_enabled; }; -static void add_addr_in_paddr (struct memac_regs __iomem *regs,u8 *adr, +static void add_addr_in_paddr (struct memac_regs __iomem *regs,const u8 *adr,u8 paddr_num) {u32 tmp0, tmp1;
@@ -897,12 +897,12 @@ int memac_accept_rx_pause_frames(struct fman_mac *memac, bool en)return 0 ; } -int memac_modify_mac_address (struct fman_mac *memac,enet_addr_t *enet_addr) +int memac_modify_mac_address (struct fman_mac *memac,const enet_addr_t *enet_addr) {if (!is_init_done (memac->memac_drv_param))return -EINVAL ; -add_addr_in_paddr (memac->regs, (u8 *)(*enet_addr),0 ); +add_addr_in_paddr (memac->regs, (const u8 *)(*enet_addr),0 );return 0 ; }
@@ -1058,7 +1058,7 @@ int memac_init(struct fman_mac *memac)/* MAC Address */ if (memac->addr !=0 ) {MAKE_ENET_ADDR_FROM_UINT64 (memac->addr, eth_addr); -add_addr_in_paddr (memac->regs, (u8 *)eth_addr,0 ); +add_addr_in_paddr (memac->regs, (const u8 *)eth_addr,0 ); } fixed_link = memac_drv_param->fixed_link;
drivers/net/ethernet/freescale/fman/fman_memac.h +1 -1
@@ -40,7 +40,7 @@struct fman_mac *memac_config (struct fman_mac_params *params);int memac_set_promiscuous (struct fman_mac *memac,bool new_val); -int memac_modify_mac_address (struct fman_mac *memac,enet_addr_t *enet_addr); +int memac_modify_mac_address (struct fman_mac *memac,const enet_addr_t *enet_addr);int memac_adjust_link (struct fman_mac *memac,u16 speed);int memac_cfg_max_frame_len (struct fman_mac *memac,u16 new_val);int memac_cfg_reset_on_init (struct fman_mac *memac,bool enable);
drivers/net/ethernet/freescale/fman/fman_tgec.c +4 -4
@@ -221,7 +221,7 @@ struct fman_mac {bool allmulti_enabled; }; -static void set_mac_address (struct tgec_regs __iomem *regs,u8 *adr) +static void set_mac_address (struct tgec_regs __iomem *regs,const u8 *adr) {u32 tmp0, tmp1;
@@ -514,13 +514,13 @@ int tgec_accept_rx_pause_frames(struct fman_mac *tgec, bool en)return 0 ; } -int tgec_modify_mac_address (struct fman_mac *tgec,enet_addr_t *p_enet_addr) +int tgec_modify_mac_address (struct fman_mac *tgec,const enet_addr_t *p_enet_addr) {if (!is_init_done (tgec->cfg))return -EINVAL ; tgec->addr =ENET_ADDR_TO_UINT64 (*p_enet_addr); -set_mac_address (tgec->regs, (u8 *)(*p_enet_addr)); +set_mac_address (tgec->regs, (const u8 *)(*p_enet_addr));return 0 ; }
@@ -704,7 +704,7 @@ int tgec_init(struct fman_mac *tgec)if (tgec->addr) {MAKE_ENET_ADDR_FROM_UINT64 (tgec->addr, eth_addr); -set_mac_address (tgec->regs, (u8 *)eth_addr); +set_mac_address (tgec->regs, (const u8 *)eth_addr); }/* interrupts */
drivers/net/ethernet/freescale/fman/fman_tgec.h +1 -1
@@ -37,7 +37,7 @@struct fman_mac *tgec_config (struct fman_mac_params *params);int tgec_set_promiscuous (struct fman_mac *tgec,bool new_val); -int tgec_modify_mac_address (struct fman_mac *tgec,enet_addr_t *enet_addr); +int tgec_modify_mac_address (struct fman_mac *tgec,const enet_addr_t *enet_addr);int tgec_cfg_max_frame_len (struct fman_mac *tgec,u16 new_val);int tgec_enable (struct fman_mac *tgec,enum comm_mode mode);int tgec_disable (struct fman_mac *tgec,enum comm_mode mode);
drivers/net/ethernet/freescale/fman/mac.h +1 -1
@@ -66,7 +66,7 @@ struct mac_device {int (*stop)(struct mac_device *mac_dev);void (*adjust_link)(struct mac_device *mac_dev);int (*set_promisc)(struct fman_mac *mac_dev,bool enable); -int (*change_addr)(struct fman_mac *mac_dev,enet_addr_t *enet_addr); +int (*change_addr)(struct fman_mac *mac_dev,const enet_addr_t *enet_addr);int (*set_allmulti)(struct fman_mac *mac_dev,bool enable);int (*set_tstamp)(struct fman_mac *mac_dev,bool enable); int (*set_multi)(struct net_device *net_dev,
drivers/net/ethernet/hisilicon/hisi_femac.c +1 -1
@@ -427,7 +427,7 @@ static void hisi_femac_free_skb_rings(struct hisi_femac_priv *priv) }static int hisi_femac_set_hw_mac_addr (struct hisi_femac_priv *priv, -unsigned char *mac) +const unsigned char *mac) {u32 reg;
drivers/net/ethernet/hisilicon/hix5hd2_gmac.c +1 -1
@@ -429,7 +429,7 @@ static void hix5hd2_port_disable(struct hix5hd2_priv *priv)static void hix5hd2_hw_set_mac_addr (struct net_device *dev) {struct hix5hd2_priv *priv =netdev_priv (dev); -unsigned char *mac = dev->dev_addr; +const unsigned char *mac = dev->dev_addr;u32 val; val = mac[1 ] | (mac[0 ] <<8 );
drivers/net/ethernet/hisilicon/hns/hnae.h +1 -1
@@ -499,7 +499,7 @@ struct hnae_ae_ops { u32 *tx_usecs_high, u32 *rx_usecs_high);void (*set_promisc_mode)(struct hnae_handle *handle,u32 en);int (*get_mac_addr)(struct hnae_handle *handle,void **p); -int (*set_mac_addr)(struct hnae_handle *handle,void *p); +int (*set_mac_addr)(struct hnae_handle *handle,const void *p);int (*add_uc_addr)(struct hnae_handle *handle,const unsigned char *addr); int (*rm_uc_addr)(struct hnae_handle *handle,
drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c +1 -1
@@ -207,7 +207,7 @@ static void hns_ae_fini_queue(struct hnae_queue *q)hns_rcb_reset_ring_hw (q); } -static int hns_ae_set_mac_address (struct hnae_handle *handle,void *p) +static int hns_ae_set_mac_address (struct hnae_handle *handle,const void *p) {int ret;struct hns_mac_cb *mac_cb =hns_get_mac_cb (handle);
drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c +1 -1
@@ -450,7 +450,7 @@ static void hns_gmac_update_stats(void *mac_drv) += dsaf_read_dev(drv, GMAC_TX_PAUSE_FRAMES_REG); } -static void hns_gmac_set_mac_addr (void *mac_drv,char *mac_addr) +static void hns_gmac_set_mac_addr (void *mac_drv,const char *mac_addr) {struct mac_driver *drv = (struct mac_driver *)mac_drv;
drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c +1 -1
@@ -269,7 +269,7 @@ int hns_mac_get_inner_port_num(struct hns_mac_cb *mac_cb, u8 vmid, u8 *port_num)*@addr:mac address */ int hns_mac_change_vf_addr (struct hns_mac_cb *mac_cb, -u32 vmid,char *addr) +u32 vmid,const char *addr) {int ret;struct mac_driver *mac_ctrl_drv =hns_mac_get_drv (mac_cb);
drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h +3 -2
@@ -348,7 +348,7 @@ struct mac_driver {/*disable mac when disable nic or dsaf*/ void (*mac_disable)(void *mac_drv,enum mac_commom_mode mode);/* config mac address*/ -void (*set_mac_addr)(void *mac_drv,char *mac_addr); +void (*set_mac_addr)(void *mac_drv,const char *mac_addr);/*adjust mac mode of port,include speed and duplex*/ int (*adjust_link)(void *mac_drv,enum mac_speed speed,u32 full_duplex);
@@ -425,7 +425,8 @@ int hns_mac_init(struct dsaf_device *dsaf_dev);void mac_adjust_link (struct net_device *net_dev);bool hns_mac_need_adjust_link (struct hns_mac_cb *mac_cb,int speed,int duplex);void hns_mac_get_link_status (struct hns_mac_cb *mac_cb,u32 *link_status); -int hns_mac_change_vf_addr (struct hns_mac_cb *mac_cb,u32 vmid,char *addr); +int hns_mac_change_vf_addr (struct hns_mac_cb *mac_cb,u32 vmid, +const char *addr);int hns_mac_set_multi (struct hns_mac_cb *mac_cb,u32 port_num,char *addr,bool enable);int hns_mac_vm_config_bc_en (struct hns_mac_cb *mac_cb,u32 vm,bool enable);
drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c +1 -1
@@ -255,7 +255,7 @@ static void hns_xgmac_pausefrm_cfg(void *mac_drv, u32 rx_en, u32 tx_en)dsaf_write_dev (drv,XGMAC_MAC_PAUSE_CTRL_REG , origin); } -static void hns_xgmac_set_pausefrm_mac_addr (void *mac_drv,char *mac_addr) +static void hns_xgmac_set_pausefrm_mac_addr (void *mac_drv,const char *mac_addr) {struct mac_driver *drv = (struct mac_driver *)mac_drv;
drivers/net/ethernet/hisilicon/hns3/hnae3.h +1 -1
@@ -590,7 +590,7 @@ struct hnae3_ae_ops { u32 *tx_usecs_high, u32 *rx_usecs_high);void (*get_mac_addr)(struct hnae3_handle *handle,u8 *p); -int (*set_mac_addr)(struct hnae3_handle *handle,void *p, +int (*set_mac_addr)(struct hnae3_handle *handle,const void *p,bool is_first);int (*do_ioctl)(struct hnae3_handle *handle,struct ifreq *ifr,int cmd);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +1 -1
@@ -9444,7 +9444,7 @@ int hclge_update_mac_node_for_dev_addr(struct hclge_vport *vport,return 0 ; } -static int hclge_set_mac_addr (struct hnae3_handle *handle,void *p, +static int hclge_set_mac_addr (struct hnae3_handle *handle,const void *p,bool is_first) {const unsigned char *new_addr = (const unsigned char *)p;
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c +1 -1
@@ -1349,7 +1349,7 @@ static void hclgevf_get_mac_addr(struct hnae3_handle *handle, u8 *p)ether_addr_copy (p, hdev->hw.mac.mac_addr); } -static int hclgevf_set_mac_addr (struct hnae3_handle *handle,void *p, +static int hclgevf_set_mac_addr (struct hnae3_handle *handle,const void *p,bool is_first) {struct hclgevf_dev *hdev =hclgevf_ae_get_hdev (handle);
drivers/net/ethernet/i825xx/sun3_82586.c +1 -1
@@ -461,7 +461,7 @@ static int init586(struct net_device *dev) ias_cmd->cmd_cmd =swab16 (CMD_IASETUP |CMD_LAST ); ias_cmd->cmd_link =0xffff ; -memcpy ((char *)&ias_cmd->iaddr,(char *) dev->dev_addr,ETH_ALEN ); +memcpy ((char *)&ias_cmd->iaddr,(const char *) dev->dev_addr,ETH_ALEN ); p->scb->cbl_offset =make16 (ias_cmd);
drivers/net/ethernet/intel/i40e/i40e.h +1 -1
@@ -437,7 +437,7 @@ static inline bool i40e_is_channel_macvlan(struct i40e_channel *ch)return !!ch->fwd; } -static inline u8 *i40e_channel_mac (struct i40e_channel *ch) +static inline const u8 *i40e_channel_mac (struct i40e_channel *ch) {if (i40e_is_channel_macvlan (ch))return ch->fwd->netdev->dev_addr;
drivers/net/ethernet/intel/ixgb/ixgb_hw.c +1 -1
@@ -549,7 +549,7 @@ ixgb_mta_set(struct ixgb_hw *hw,*****************************************************************************/ void ixgb_rar_set (struct ixgb_hw *hw, -u8 *addr, +const u8 *addr,u32 index) {u32 rar_low, rar_high;
drivers/net/ethernet/intel/ixgb/ixgb_hw.h +1 -1
@@ -740,7 +740,7 @@ bool ixgb_adapter_start(struct ixgb_hw *hw);void ixgb_check_for_link (struct ixgb_hw *hw);bool ixgb_check_for_bad_link (struct ixgb_hw *hw); -void ixgb_rar_set (struct ixgb_hw *hw,u8 *addr,u32 index); +void ixgb_rar_set (struct ixgb_hw *hw,const u8 *addr,u32 index);/* Filters (multicast, vlan, receive) */ void ixgb_mc_addr_list_update(struct ixgb_hw *hw, u8 *mc_addr_list,
drivers/net/ethernet/marvell/mv643xx_eth.c +1 -1
@@ -1770,7 +1770,7 @@ static void uc_addr_get(struct mv643xx_eth_private *mp, unsigned char *addr) addr[5 ] = mac_l &0xff ; } -static void uc_addr_set (struct mv643xx_eth_private *mp,unsigned char *addr) +static void uc_addr_set (struct mv643xx_eth_private *mp,const u8 *addr) {wrlp (mp,MAC_ADDR_HIGH , (addr[0 ] <<24 ) | (addr[1 ] <<16 ) | (addr[2 ] <<8 ) | addr[3 ]);
drivers/net/ethernet/marvell/mvneta.c +2 -2
@@ -1623,8 +1623,8 @@ static void mvneta_set_ucast_addr(struct mvneta_port *pp, u8 last_nibble, }/* Set mac address */ -static void mvneta_mac_addr_set (struct mvneta_port *pp,unsigned char *addr, -int queue) +static void mvneta_mac_addr_set (struct mvneta_port *pp, +const unsigned char *addr,int queue) {unsigned int mac_h;unsigned int mac_l;
drivers/net/ethernet/marvell/pxa168_eth.c +3 -3
@@ -389,7 +389,7 @@ static void inverse_every_nibble(unsigned char *mac_addr)* Outputs * return the calculated entry. */ -static u32 hash_function (unsigned char *mac_addr_orig) +static u32 hash_function (const unsigned char *mac_addr_orig) {u32 hash_result;u32 addr0;
@@ -434,7 +434,7 @@ static u32 hash_function(unsigned char *mac_addr_orig)* -ENOSPC if table full */ static int add_del_hash_entry (struct pxa168_eth_private *pep, -unsigned char *mac_addr, +const unsigned char *mac_addr,u32 rd,u32 skip,int del) {struct addr_table_entry *entry, *start;
@@ -521,7 +521,7 @@ static int add_del_hash_entry(struct pxa168_eth_private *pep,*/ static void update_hash_table_mac_address (struct pxa168_eth_private *pep,unsigned char *oaddr, -unsigned char *addr) +const unsigned char *addr) {/* Delete old entry */ if (oaddr)
drivers/net/ethernet/mediatek/mtk_star_emac.c +1 -1
@@ -522,7 +522,7 @@ static void mtk_star_dma_resume_tx(struct mtk_star_priv *priv)static void mtk_star_set_mac_addr (struct net_device *ndev) {struct mtk_star_priv *priv =netdev_priv (ndev); -u8 *mac_addr = ndev->dev_addr; +const u8 *mac_addr = ndev->dev_addr;unsigned int high, low; high = mac_addr[0 ] <<8 | mac_addr[1 ] <<0 ;
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c +1 -1
@@ -691,7 +691,7 @@ static void mlx5_fw_tracer_handle_traces(struct work_struct *work)while (block_timestamp > tracer->last_timestamp) {/* Check block override if it's not the first block */ -if (!tracer->last_timestamp) { +if (tracer->last_timestamp) {u64 *ts_event;/* To avoid block override be the HW in case of buffer * wraparound, the time stamp of the previous block
drivers/net/ethernet/mellanox/mlx5/core/en/fs_tt_redirect.c +1 -0
@@ -156,6 +156,7 @@ static int fs_udp_create_groups(struct mlx5e_flow_table *ft, enum fs_udp_type ty in =kvzalloc (inlen,GFP_KERNEL );if (!in || !ft->g) {kfree (ft->g); + ft->g =NULL ;kvfree (in);return -ENOMEM ; }
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c +16 -14
@@ -294,6 +294,9 @@ int mlx5e_tc_tun_create_header_ipv4(struct mlx5e_priv *priv,if (err) goto destroy_neigh_entry; + e->encap_size = ipv4_encap_size; + e->encap_header = encap_header; +if (!(nud_state &NUD_VALID )) {neigh_event_send (attr.n,NULL );/* the encap entry will be made valid on neigh update event
@@ -313,8 +316,6 @@ int mlx5e_tc_tun_create_header_ipv4(struct mlx5e_priv *priv, goto destroy_neigh_entry; } - e->encap_size = ipv4_encap_size; - e->encap_header = encap_header; e->flags |=MLX5_ENCAP_ENTRY_VALID ;mlx5e_rep_queue_neigh_stats_work (netdev_priv (attr.out_dev));mlx5e_route_lookup_ipv4_put (&attr);
@@ -397,12 +398,16 @@ int mlx5e_tc_tun_update_header_ipv4(struct mlx5e_priv *priv,if (err) goto free_encap; + e->encap_size = ipv4_encap_size; +kfree (e->encap_header); + e->encap_header = encap_header; +if (!(nud_state &NUD_VALID )) {neigh_event_send (attr.n,NULL );/* the encap entry will be made valid on neigh update event * and not used before that. */ - goto free_encap; + goto release_neigh; }memset (&reformat_params,0 ,sizeof (reformat_params));
@@ -416,10 +421,6 @@ int mlx5e_tc_tun_update_header_ipv4(struct mlx5e_priv *priv, goto free_encap; } - e->encap_size = ipv4_encap_size; -kfree (e->encap_header); - e->encap_header = encap_header; - e->flags |=MLX5_ENCAP_ENTRY_VALID ;mlx5e_rep_queue_neigh_stats_work (netdev_priv (attr.out_dev));mlx5e_route_lookup_ipv4_put (&attr);
@@ -558,6 +559,9 @@ int mlx5e_tc_tun_create_header_ipv6(struct mlx5e_priv *priv,if (err) goto destroy_neigh_entry; + e->encap_size = ipv6_encap_size; + e->encap_header = encap_header; +if (!(nud_state &NUD_VALID )) {neigh_event_send (attr.n,NULL );/* the encap entry will be made valid on neigh update event
@@ -577,8 +581,6 @@ int mlx5e_tc_tun_create_header_ipv6(struct mlx5e_priv *priv, goto destroy_neigh_entry; } - e->encap_size = ipv6_encap_size; - e->encap_header = encap_header; e->flags |=MLX5_ENCAP_ENTRY_VALID ;mlx5e_rep_queue_neigh_stats_work (netdev_priv (attr.out_dev));mlx5e_route_lookup_ipv6_put (&attr);
@@ -660,12 +662,16 @@ int mlx5e_tc_tun_update_header_ipv6(struct mlx5e_priv *priv,if (err) goto free_encap; + e->encap_size = ipv6_encap_size; +kfree (e->encap_header); + e->encap_header = encap_header; +if (!(nud_state &NUD_VALID )) {neigh_event_send (attr.n,NULL );/* the encap entry will be made valid on neigh update event * and not used before that. */ - goto free_encap; + goto release_neigh; }memset (&reformat_params,0 ,sizeof (reformat_params));
@@ -679,10 +685,6 @@ int mlx5e_tc_tun_update_header_ipv6(struct mlx5e_priv *priv, goto free_encap; } - e->encap_size = ipv6_encap_size; -kfree (e->encap_header); - e->encap_header = encap_header; - e->flags |=MLX5_ENCAP_ENTRY_VALID ;mlx5e_rep_queue_neigh_stats_work (netdev_priv (attr.out_dev));mlx5e_route_lookup_ipv6_put (&attr);
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c +2 -2
@@ -71,12 +71,12 @@ struct mlx5e_l2_hash_node {bool mpfs; }; -static inline int mlx5e_hash_l2 (u8 *addr) +static inline int mlx5e_hash_l2 (const u8 *addr) {return addr[5 ]; } -static void mlx5e_add_l2_to_hash (struct hlist_head *hash,u8 *addr) +static void mlx5e_add_l2_to_hash (struct hlist_head *hash,const u8 *addr) {struct mlx5e_l2_hash_node *hn;int ix =mlx5e_hash_l2 (addr);
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +1 -1
@@ -73,7 +73,7 @@ static void mlx5e_rep_get_drvinfo(struct net_device *dev, count =snprintf (drvinfo->fw_version,sizeof (drvinfo->fw_version),"%d.%d.%04d (%.16s)" ,fw_rev_maj (mdev),fw_rev_min (mdev),fw_rev_sub (mdev), mdev->board_id); -if (count ==sizeof (drvinfo->fw_version)) +if (count >=sizeof (drvinfo->fw_version))snprintf (drvinfo->fw_version,sizeof (drvinfo->fw_version),"%d.%d.%04d" ,fw_rev_maj (mdev),fw_rev_min (mdev),fw_rev_sub (mdev));
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c +1 -1
@@ -223,7 +223,7 @@ void mlx5i_uninit_underlay_qp(struct mlx5e_priv *priv)int mlx5i_create_underlay_qp (struct mlx5e_priv *priv) { -unsigned char *dev_addr = priv->netdev->dev_addr; +const unsigned char *dev_addr = priv->netdev->dev_addr;u32 out[MLX5_ST_SZ_DW (create_qp_out)] = {};u32 in[MLX5_ST_SZ_DW (create_qp_in)] = {};struct mlx5i_priv *ipriv = priv->ppriv;
drivers/net/ethernet/mellanox/mlx5/core/vport.c +1 -1
@@ -277,7 +277,7 @@ int mlx5_query_nic_vport_mac_list(struct mlx5_core_dev *dev, req_list_size = max_list_size; } - out_sz =MLX5_ST_SZ_BYTES (query_nic_vport_context_in) + + out_sz =MLX5_ST_SZ_BYTES (query_nic_vport_context_out) + req_list_size *MLX5_ST_SZ_BYTES (mac_address_layout); out =kzalloc (out_sz,GFP_KERNEL );
drivers/net/ethernet/micrel/ks8842.c +1 -1
@@ -380,7 +380,7 @@ static void ks8842_read_mac_addr(struct ks8842_adapter *adapter, u8 *dest) } } -static void ks8842_write_mac_addr (struct ks8842_adapter *adapter,u8 *mac) +static void ks8842_write_mac_addr (struct ks8842_adapter *adapter,const u8 *mac) {unsigned long flags;unsigned i;
drivers/net/ethernet/micrel/ks8851.h +3 -0
@@ -350,6 +350,8 @@ union ks8851_tx_hdr {* @rxd: Space for receiving SPI data, in DMA-able space. * @txd: Space for transmitting SPI data, in DMA-able space. * @msg_enable: The message flags controlling driver output (see ethtool). +* @tx_space: Free space in the hardware TX buffer (cached copy of KS_TXMIR). +* @queued_len: Space required in hardware TX buffer for queued packets in txq. * @fid: Incrementing frame id tag. * @rc_ier: Cached copy of KS_IER. * @rc_ccr: Cached copy of KS_CCR.
@@ -399,6 +401,7 @@ struct ks8851_net {struct work_struct rxctrl_work;struct sk_buff_head txq; +unsigned int queued_len;struct eeprom_93cx6 eeprom;struct regulator *vdd_reg;
drivers/net/ethernet/micrel/ks8851_common.c +10 -10
@@ -361,16 +361,18 @@ static irqreturn_t ks8851_irq(int irq, void *_ks) handled |=IRQ_RXPSI ;if (status &IRQ_TXI ) { - handled |=IRQ_TXI ; +unsigned short tx_space =ks8851_rdreg16 (ks,KS_TXMIR ); -/* no lock here, tx queue should have been stopped */ +netif_dbg (ks, intr, ks->netdev, +"%s: txspace %d\n" , __func__, tx_space); -/* update our idea of how much tx space is available to the -* system */ - ks->tx_space =ks8851_rdreg16 (ks,KS_TXMIR ); +spin_lock (&ks->statelock); + ks->tx_space = tx_space; +if (netif_queue_stopped (ks->netdev)) +netif_wake_queue (ks->netdev); +spin_unlock (&ks->statelock); -netif_dbg (ks, intr, ks->netdev, -"%s: txspace %d\n" , __func__, ks->tx_space); + handled |=IRQ_TXI ; }if (status &IRQ_RXI )
@@ -413,9 +415,6 @@ static irqreturn_t ks8851_irq(int irq, void *_ks)if (status &IRQ_LCI )mii_check_link (&ks->mii); -if (status &IRQ_TXI ) -netif_wake_queue (ks->netdev); -return IRQ_HANDLED ; }
@@ -499,6 +498,7 @@ static int ks8851_net_open(struct net_device *dev)ks8851_wrreg16 (ks,KS_ISR , ks->rc_ier);ks8851_wrreg16 (ks,KS_IER , ks->rc_ier); + ks->queued_len =0 ;netif_start_queue (ks->netdev);netif_dbg (ks, ifup, ks->netdev,"network device up\n" );
drivers/net/ethernet/micrel/ks8851_spi.c +27 -15
86 lines not on this page · raw message
drivers/net/ethernet/micrel/ksz884x.c +2 -2
@@ -4033,7 +4033,7 @@ static void hw_set_add_addr(struct ksz_hw *hw) } } -static int hw_add_addr (struct ksz_hw *hw,u8 *mac_addr) +static int hw_add_addr (struct ksz_hw *hw,const u8 *mac_addr) {int i;int j =ADDITIONAL_ENTRIES ;
@@ -4054,7 +4054,7 @@ static int hw_add_addr(struct ksz_hw *hw, u8 *mac_addr)return -1 ; } -static int hw_del_addr (struct ksz_hw *hw,u8 *mac_addr) +static int hw_del_addr (struct ksz_hw *hw,const u8 *mac_addr) {int i;
drivers/net/ethernet/microsoft/Kconfig +1 -0
@@ -19,6 +19,7 @@ config MICROSOFT_MANA tristate "Microsoft Azure Network Adapter (MANA) support" depends on PCI_MSI && X86_64 depends on PCI_HYPERV + select PAGE_POOL help This driver supports Microsoft Azure Network Adapter (MANA). So far, the driver is only supported on X86_64.
drivers/net/ethernet/myricom/myri10ge/myri10ge.c +2 -1
@@ -796,7 +796,8 @@ static int myri10ge_load_firmware(struct myri10ge_priv *mgp, int adopt)return status; } -static int myri10ge_update_mac_address (struct myri10ge_priv *mgp,u8 * addr) +static int myri10ge_update_mac_address (struct myri10ge_priv *mgp, +const u8 * addr) {struct myri10ge_cmd cmd;int status;
drivers/net/ethernet/neterion/s2io.c +1 -1
@@ -5217,7 +5217,7 @@ static int s2io_set_mac_addr(struct net_device *dev, void *p)* as defined in errno.h file on failure. */ -static int do_s2io_prog_unicast (struct net_device *dev,u8 *addr) +static int do_s2io_prog_unicast (struct net_device *dev,const u8 *addr) {struct s2io_nic *sp =netdev_priv (dev); registeru64 mac_addr =0 , perm_addr =0 ;
drivers/net/ethernet/neterion/s2io.h +1 -1
@@ -1073,7 +1073,7 @@ static void s2io_reset(struct s2io_nic * sp);static int s2io_poll_msix (struct napi_struct *napi,int budget);static int s2io_poll_inta (struct napi_struct *napi,int budget);static void s2io_init_pci (struct s2io_nic * sp); -static int do_s2io_prog_unicast (struct net_device *dev,u8 *addr); +static int do_s2io_prog_unicast (struct net_device *dev,const u8 *addr);static void s2io_alarm_handle (struct timer_list *t);static irqreturn_t s2io_msix_ring_handle (int irq,void *dev_id);
drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c +3 -3
@@ -837,7 +837,7 @@ nfp_tunnel_put_ipv6_off(struct nfp_app *app, struct nfp_ipv6_addr_entry *entry) }static int -__nfp_tunnel_offload_mac (struct nfp_app *app,u8 *mac,u16 idx,bool del) +__nfp_tunnel_offload_mac (struct nfp_app *app,const u8 *mac,u16 idx,bool del) {struct nfp_tun_mac_addr_offload payload;
@@ -886,7 +886,7 @@ static bool nfp_tunnel_is_mac_idx_global(u16 nfp_mac_idx) }static struct nfp_tun_offloaded_mac * -nfp_tunnel_lookup_offloaded_macs (struct nfp_app *app,u8 *mac) +nfp_tunnel_lookup_offloaded_macs (struct nfp_app *app,const u8 *mac) {struct nfp_flower_priv *priv = app->priv;
@@ -1005,7 +1005,7 @@ nfp_tunnel_add_shared_mac(struct nfp_app *app, struct net_device *netdev,static int nfp_tunnel_del_shared_mac (struct nfp_app *app,struct net_device *netdev, -u8 *mac,bool mod) +const u8 *mac,bool mod) {struct nfp_flower_priv *priv = app->priv;struct nfp_flower_repr_priv *repr_priv;
drivers/net/ethernet/nxp/lpc_eth.c +1 -1
@@ -419,7 +419,7 @@ struct netdata_local {/* * MAC support functions */ -static void __lpc_set_mac (struct netdata_local *pldat,u8 *mac) +static void __lpc_set_mac (struct netdata_local *pldat,const u8 *mac) {u32 tmp;
drivers/net/ethernet/qlogic/qed/qed_dev.c +1 -1
@@ -951,7 +951,7 @@ qed_llh_remove_filter(struct qed_hwfn *p_hwfn, }int qed_llh_add_mac_filter (struct qed_dev *cdev, -u8 ppfid,u8 mac_addr[ETH_ALEN ]) +u8 ppfid,const u8 mac_addr[ETH_ALEN ]) {struct qed_hwfn *p_hwfn =QED_LEADING_HWFN (cdev);struct qed_ptt *p_ptt =qed_ptt_acquire (p_hwfn);
drivers/net/ethernet/qlogic/qed/qed_dev_api.h +1 -1
@@ -381,7 +381,7 @@ int qed_llh_set_roce_affinity(struct qed_dev *cdev, enum qed_eng eng);* Return: Int. */ int qed_llh_add_mac_filter (struct qed_dev *cdev, -u8 ppfid,u8 mac_addr[ETH_ALEN ]); +u8 ppfid,const u8 mac_addr[ETH_ALEN ]);/** * qed_llh_remove_mac_filter(): Remove a LLH MAC filter from the given
drivers/net/ethernet/qlogic/qed/qed_l2.c +1 -1
@@ -2857,7 +2857,7 @@ static int qed_fp_cqe_completion(struct qed_dev *dev, cqe); } -static int qed_req_bulletin_update_mac (struct qed_dev *cdev,u8 *mac) +static int qed_req_bulletin_update_mac (struct qed_dev *cdev,const u8 *mac) {int i, ret;
drivers/net/ethernet/qlogic/qed/qed_main.c +1 -1
@@ -2892,7 +2892,7 @@ static int qed_update_drv_state(struct qed_dev *cdev, bool active)return status; } -static int qed_update_mac (struct qed_dev *cdev,u8 *mac) +static int qed_update_mac (struct qed_dev *cdev,const u8 *mac) {struct qed_hwfn *hwfn =QED_LEADING_HWFN (cdev);struct qed_ptt *ptt;
drivers/net/ethernet/qlogic/qed/qed_mcp.c +1 -1
@@ -2854,7 +2854,7 @@ int qed_mcp_ov_update_mtu(struct qed_hwfn *p_hwfn, }int qed_mcp_ov_update_mac (struct qed_hwfn *p_hwfn, -struct qed_ptt *p_ptt,u8 *mac) +struct qed_ptt *p_ptt,const u8 *mac) {struct qed_mcp_mb_params mb_params;u32 mfw_mac[2 ];
drivers/net/ethernet/qlogic/qed/qed_mcp.h +1 -1
@@ -536,7 +536,7 @@ int qed_mcp_ov_update_mtu(struct qed_hwfn *p_hwfn,* Return: Int - 0 - Operation was successul. */ int qed_mcp_ov_update_mac (struct qed_hwfn *p_hwfn, -struct qed_ptt *p_ptt,u8 *mac); +struct qed_ptt *p_ptt,const u8 *mac);/** * qed_mcp_ov_update_wol(): Send WOL mode to MFW.
drivers/net/ethernet/qlogic/qed/qed_rdma.c +1 -1
@@ -1966,7 +1966,7 @@ static void qed_rdma_remove_user(void *rdma_cxt, u16 dpi)static int qed_roce_ll2_set_mac_filter (struct qed_dev *cdev,u8 *old_mac_address, -u8 *new_mac_address) +const u8 *new_mac_address) {int rc =0 ;
drivers/net/ethernet/qlogic/qed/qed_vf.c +1 -1
@@ -1379,7 +1379,7 @@ int qed_vf_pf_get_coalesce(struct qed_hwfn *p_hwfn,int qed_vf_pf_bulletin_update_mac (struct qed_hwfn *p_hwfn, -u8 *p_mac) +const u8 *p_mac) {struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info;struct vfpf_bulletin_update_mac_tlv *p_req;
drivers/net/ethernet/qlogic/qed/qed_vf.h +2 -2
@@ -1070,7 +1070,7 @@ u32 qed_vf_hw_bar_size(struct qed_hwfn *p_hwfn, enum BAR_ID bar_id);* * Return: Int. */ -int qed_vf_pf_bulletin_update_mac (struct qed_hwfn *p_hwfn,u8 *p_mac); +int qed_vf_pf_bulletin_update_mac (struct qed_hwfn *p_hwfn,const u8 *p_mac);#else static inline void qed_vf_get_link_params(struct qed_hwfn *p_hwfn,
@@ -1259,7 +1259,7 @@ static inline int qed_vf_pf_tunnel_param_update(struct qed_hwfn *p_hwfn, }static inline int qed_vf_pf_bulletin_update_mac (struct qed_hwfn *p_hwfn, -u8 *p_mac) +const u8 *p_mac) {return -EINVAL ; }
drivers/net/ethernet/qlogic/qede/qede_filter.c +1 -1
@@ -617,7 +617,7 @@ void qede_fill_rss_params(struct qede_dev *edev,static int qede_set_ucast_rx_mac (struct qede_dev *edev,enum qed_filter_xcast_params_type opcode, -unsigned char mac[ETH_ALEN ]) +const unsigned char mac[ETH_ALEN ]) {struct qed_filter_ucast_params ucast;
drivers/net/ethernet/qualcomm/emac/emac-mac.c +1 -1
@@ -420,7 +420,7 @@ static void emac_mac_dma_config(struct emac_adapter *adpt) }/* set MAC address */ -static void emac_set_mac_address (struct emac_adapter *adpt,u8 *addr) +static void emac_set_mac_address (struct emac_adapter *adpt,const u8 *addr) {u32 sta;
drivers/net/ethernet/rdc/r6040.c +6 -6
@@ -453,7 +453,7 @@ static void r6040_down(struct net_device *dev) {struct r6040_private *lp =netdev_priv (dev);void __iomem *ioaddr = lp->base; -u16 *adrp; +const u16 *adrp;/* Stop MAC */ iowrite16 (MSK_INT , ioaddr +MIER );/* Mask Off Interrupt */
@@ -462,7 +462,7 @@ static void r6040_down(struct net_device *dev)r6040_reset_mac (lp);/* Restore MAC Address to MIDx */ - adrp = (u16 *) dev->dev_addr; + adrp = (const u16 *) dev->dev_addr;iowrite16 (adrp[0 ], ioaddr +MID_0L );iowrite16 (adrp[1 ], ioaddr +MID_0M );iowrite16 (adrp[2 ], ioaddr +MID_0H );
@@ -731,13 +731,13 @@ static void r6040_mac_address(struct net_device *dev) {struct r6040_private *lp =netdev_priv (dev);void __iomem *ioaddr = lp->base; -u16 *adrp; +const u16 *adrp;/* Reset MAC */ r6040_reset_mac (lp);/* Restore MAC Address */ - adrp = (u16 *) dev->dev_addr; + adrp = (const u16 *) dev->dev_addr;iowrite16 (adrp[0 ], ioaddr +MID_0L );iowrite16 (adrp[1 ], ioaddr +MID_0M );iowrite16 (adrp[2 ], ioaddr +MID_0H );
@@ -849,13 +849,13 @@ static void r6040_multicast_list(struct net_device *dev)unsigned long flags;struct netdev_hw_addr *ha;int i; -u16 *adrp; +const u16 *adrp;u16 hash_table[4 ] = {0 };spin_lock_irqsave (&lp->lock, flags);/* Keep our MAC Address */ - adrp = (u16 *)dev->dev_addr; + adrp = (const u16 *)dev->dev_addr;iowrite16 (adrp[0 ], ioaddr +MID_0L );iowrite16 (adrp[1 ], ioaddr +MID_0M );iowrite16 (adrp[2 ], ioaddr +MID_0H );
drivers/net/ethernet/samsung/sxgbe/sxgbe_common.h +1 -1
@@ -329,7 +329,7 @@ struct sxgbe_core_ops {/* Set power management mode (e.g. magic frame) */ void (*pmt)(void __iomem *ioaddr,unsigned long mode);/* Set/Get Unicast MAC addresses */ -void (*set_umac_addr)(void __iomem *ioaddr,unsigned char *addr, +void (*set_umac_addr)(void __iomem *ioaddr,const unsigned char *addr,unsigned int reg_n);void (*get_umac_addr)(void __iomem *ioaddr,unsigned char *addr,unsigned int reg_n);
drivers/net/ethernet/samsung/sxgbe/sxgbe_core.c +2 -1
@@ -85,7 +85,8 @@ static void sxgbe_core_pmt(void __iomem *ioaddr, unsigned long mode) }/* Set/Get Unicast MAC addresses */ -static void sxgbe_core_set_umac_addr (void __iomem *ioaddr,unsigned char *addr, +static void sxgbe_core_set_umac_addr (void __iomem *ioaddr, +const unsigned char *addr,unsigned int reg_n) {u32 high_word, low_word;
drivers/net/ethernet/sfc/ef10.c +2 -2
@@ -1038,7 +1038,7 @@ int efx_ef10_vadaptor_free(struct efx_nic *efx, unsigned int port_id) }int efx_ef10_vport_add_mac (struct efx_nic *efx, -unsigned int port_id,u8 *mac) +unsigned int port_id,const u8 *mac) {MCDI_DECLARE_BUF (inbuf,MC_CMD_VPORT_ADD_MAC_ADDRESS_IN_LEN );
@@ -1050,7 +1050,7 @@ int efx_ef10_vport_add_mac(struct efx_nic *efx, }int efx_ef10_vport_del_mac (struct efx_nic *efx, -unsigned int port_id,u8 *mac) +unsigned int port_id,const u8 *mac) {MCDI_DECLARE_BUF (inbuf,MC_CMD_VPORT_DEL_MAC_ADDRESS_IN_LEN );
drivers/net/ethernet/sfc/ef10_sriov.c +1 -1
@@ -484,7 +484,7 @@ static int efx_ef10_vport_del_vf_mac(struct efx_nic *efx, unsigned int port_id,return rc; } -int efx_ef10_sriov_set_vf_mac (struct efx_nic *efx,int vf_i,u8 *mac) +int efx_ef10_sriov_set_vf_mac (struct efx_nic *efx,int vf_i,const u8 *mac) {struct efx_ef10_nic_data *nic_data = efx->nic_data;struct ef10_vf *vf;
drivers/net/ethernet/sfc/ef10_sriov.h +3 -3
@@ -39,7 +39,7 @@ static inline void efx_ef10_sriov_reset(struct efx_nic *efx) {}void efx_ef10_sriov_fini (struct efx_nic *efx);static inline void efx_ef10_sriov_flr (struct efx_nic *efx,unsigned vf_i) {} -int efx_ef10_sriov_set_vf_mac (struct efx_nic *efx,int vf,u8 *mac); +int efx_ef10_sriov_set_vf_mac (struct efx_nic *efx,int vf,const u8 *mac);int efx_ef10_sriov_set_vf_vlan (struct efx_nic *efx,int vf_i,u16 vlan,u8 qos);
@@ -60,9 +60,9 @@ int efx_ef10_vswitching_restore_vf(struct efx_nic *efx);void efx_ef10_vswitching_remove_pf (struct efx_nic *efx);void efx_ef10_vswitching_remove_vf (struct efx_nic *efx);int efx_ef10_vport_add_mac (struct efx_nic *efx, -unsigned int port_id,u8 *mac); +unsigned int port_id,const u8 *mac);int efx_ef10_vport_del_mac (struct efx_nic *efx, -unsigned int port_id,u8 *mac); +unsigned int port_id,const u8 *mac);int efx_ef10_vadaptor_alloc (struct efx_nic *efx,unsigned int port_id); int efx_ef10_vadaptor_query(struct efx_nic *efx, unsigned int port_id, u32 *port_flags, u32 *vadaptor_flags,
drivers/net/ethernet/sfc/net_driver.h +1 -1
@@ -1482,7 +1482,7 @@ struct efx_nic_type {bool (*sriov_wanted)(struct efx_nic *efx);void (*sriov_reset)(struct efx_nic *efx);void (*sriov_flr)(struct efx_nic *efx,unsigned vf_i); -int (*sriov_set_vf_mac)(struct efx_nic *efx,int vf_i,u8 *mac); +int (*sriov_set_vf_mac)(struct efx_nic *efx,int vf_i,const u8 *mac);int (*sriov_set_vf_vlan)(struct efx_nic *efx,int vf_i,u16 vlan,u8 qos); int (*sriov_set_vf_spoofchk)(struct efx_nic *efx, int vf_i,
drivers/net/ethernet/sfc/siena_sriov.c +1 -1
@@ -1591,7 +1591,7 @@ void efx_fini_sriov(void)destroy_workqueue (vfdi_workqueue); } -int efx_siena_sriov_set_vf_mac (struct efx_nic *efx,int vf_i,u8 *mac) +int efx_siena_sriov_set_vf_mac (struct efx_nic *efx,int vf_i,const u8 *mac) {struct siena_nic_data *nic_data = efx->nic_data;struct siena_vf *vf;
drivers/net/ethernet/sfc/siena_sriov.h +1 -1
@@ -46,7 +46,7 @@ bool efx_siena_sriov_wanted(struct efx_nic *efx);void efx_siena_sriov_reset (struct efx_nic *efx);void efx_siena_sriov_flr (struct efx_nic *efx,unsigned flr); -int efx_siena_sriov_set_vf_mac (struct efx_nic *efx,int vf,u8 *mac); +int efx_siena_sriov_set_vf_mac (struct efx_nic *efx,int vf,const u8 *mac);int efx_siena_sriov_set_vf_vlan (struct efx_nic *efx,int vf,u16 vlan,u8 qos); int efx_siena_sriov_set_vf_spoofchk(struct efx_nic *efx, int vf,
drivers/net/ethernet/sis/sis900.c +1 -1
@@ -1098,7 +1098,7 @@ sis900_init_rxfilter (struct net_device * net_dev)/* load MAC addr to filter data register */ for (i =0 ; i <3 ; i++) { -u32 w = (u32) *((u16 *)(net_dev->dev_addr)+i); +u32 w = (u32) *((const u16 *)(net_dev->dev_addr)+i);sw32 (rfcr, i << RFADDR_shift);sw32 (rfdr, w);
drivers/net/ethernet/smsc/smsc911x.c +1 -1
@@ -1508,7 +1508,7 @@ static int smsc911x_soft_reset(struct smsc911x_data *pdata)/* Sets the device MAC address to dev_addr, called with mac_lock held */ static void -smsc911x_set_hw_mac_address (struct smsc911x_data *pdata,u8 dev_addr[6 ]) +smsc911x_set_hw_mac_address (struct smsc911x_data *pdata,const u8 dev_addr[6 ]) {u32 mac_high16 = (dev_addr[5 ] <<8 ) | dev_addr[4 ]; u32 mac_low32 = (dev_addr[3] << 24) | (dev_addr[2] << 16) |
drivers/net/ethernet/smsc/smsc9420.c +1 -1
@@ -404,7 +404,7 @@ static const struct ethtool_ops smsc9420_ethtool_ops = {static void smsc9420_set_mac_address (struct net_device *dev) {struct smsc9420_pdata *pd =netdev_priv (dev); -u8 *dev_addr = dev->dev_addr; +const u8 *dev_addr = dev->dev_addr;u32 mac_high16 = (dev_addr[5 ] <<8 ) | dev_addr[4 ];u32 mac_low32 = (dev_addr[3 ] <<24 ) | (dev_addr[2 ] <<16 ) | (dev_addr[1 ] <<8 ) | dev_addr[0 ];
drivers/net/ethernet/stmicro/stmmac/common.h +2 -2
@@ -545,13 +545,13 @@ int dwmac4_setup(struct stmmac_priv *priv);int dwxgmac2_setup (struct stmmac_priv *priv);int dwxlgmac2_setup (struct stmmac_priv *priv); -void stmmac_set_mac_addr (void __iomem *ioaddr,u8 addr[6 ], +void stmmac_set_mac_addr (void __iomem *ioaddr,const u8 addr[6 ],unsigned int high,unsigned int low);void stmmac_get_mac_addr (void __iomem *ioaddr,unsigned char *addr,unsigned int high,unsigned int low);void stmmac_set_mac (void __iomem *ioaddr,bool enable); -void stmmac_dwmac4_set_mac_addr (void __iomem *ioaddr,u8 addr[6 ], +void stmmac_dwmac4_set_mac_addr (void __iomem *ioaddr,const u8 addr[6 ],unsigned int high,unsigned int low);void stmmac_dwmac4_get_mac_addr (void __iomem *ioaddr,unsigned char *addr,unsigned int high,unsigned int low);
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c +1 -1
@@ -634,7 +634,7 @@ static void sun8i_dwmac_set_mac(void __iomem *ioaddr, bool enable)* If addr is NULL, clear the slot */ static void sun8i_dwmac_set_umac_addr (struct mac_device_info *hw, -unsigned char *addr, +const unsigned char *addr,unsigned int reg_n) {void __iomem *ioaddr = hw->pcsr;
drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c +1 -1
@@ -104,7 +104,7 @@ static void dwmac1000_dump_regs(struct mac_device_info *hw, u32 *reg_space) }static void dwmac1000_set_umac_addr (struct mac_device_info *hw, -unsigned char *addr, +const unsigned char *addr,unsigned int reg_n) {void __iomem *ioaddr = hw->pcsr;
drivers/net/ethernet/stmicro/stmmac/dwmac100_core.c +1 -1
@@ -68,7 +68,7 @@ static int dwmac100_irq_status(struct mac_device_info *hw, }static void dwmac100_set_umac_addr (struct mac_device_info *hw, -unsigned char *addr, +const unsigned char *addr,unsigned int reg_n) {void __iomem *ioaddr = hw->pcsr;
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c +1 -1
@@ -334,7 +334,7 @@ static void dwmac4_pmt(struct mac_device_info *hw, unsigned long mode) }static void dwmac4_set_umac_addr (struct mac_device_info *hw, -unsigned char *addr,unsigned int reg_n) +const unsigned char *addr,unsigned int reg_n) {void __iomem *ioaddr = hw->pcsr;
drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c +1 -1
@@ -187,7 +187,7 @@ int dwmac4_dma_interrupt(void __iomem *ioaddr,return ret; } -void stmmac_dwmac4_set_mac_addr (void __iomem *ioaddr,u8 addr[6 ], +void stmmac_dwmac4_set_mac_addr (void __iomem *ioaddr,const u8 addr[6 ],unsigned int high,unsigned int low) {unsigned long data;
drivers/net/ethernet/stmicro/stmmac/dwmac_lib.c +1 -1
@@ -239,7 +239,7 @@ void dwmac_dma_flush_tx_fifo(void __iomem *ioaddr)do {}while ((readl (ioaddr +DMA_CONTROL ) &DMA_CONTROL_FTF )); } -void stmmac_set_mac_addr (void __iomem *ioaddr,u8 addr[6 ], +void stmmac_set_mac_addr (void __iomem *ioaddr,const u8 addr[6 ],unsigned int high,unsigned int low) {unsigned long data;
drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c +2 -1
@@ -335,7 +335,8 @@ static void dwxgmac2_pmt(struct mac_device_info *hw, unsigned long mode) }static void dwxgmac2_set_umac_addr (struct mac_device_info *hw, -unsigned char *addr,unsigned int reg_n) +const unsigned char *addr, +unsigned int reg_n) {void __iomem *ioaddr = hw->pcsr;u32 value;
drivers/net/ethernet/stmicro/stmmac/hwif.h +2 -1
@@ -330,7 +330,8 @@ struct stmmac_ops {/* Set power management mode (e.g. magic frame) */ void (*pmt)(struct mac_device_info *hw,unsigned long mode);/* Set/Get Unicast MAC addresses */ -void (*set_umac_addr)(struct mac_device_info *hw,unsigned char *addr, +void (*set_umac_addr)(struct mac_device_info *hw, +const unsigned char *addr,unsigned int reg_n);void (*get_umac_addr)(struct mac_device_info *hw,unsigned char *addr,unsigned int reg_n);
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c +2 -2
@@ -36,7 +36,7 @@ struct stmmac_packet_attrs {int vlan_id_in;int vlan_id_out;unsigned char *src; -unsigned char *dst; +const unsigned char *dst;u32 ip_src;u32 ip_dst;int tcp;
@@ -249,8 +249,8 @@ static int stmmac_test_loopback_validate(struct sk_buff *skb, struct net_device *orig_ndev) {struct stmmac_test_priv *tpriv = pt->af_packet_priv; +const unsigned char *dst = tpriv->packet->dst;unsigned char *src = tpriv->packet->src; -unsigned char *dst = tpriv->packet->dst;struct stmmachdr *shdr;struct ethhdr *ehdr;struct udphdr *uhdr;
drivers/net/ethernet/sun/sunbmac.c +1 -1
@@ -623,7 +623,7 @@ static int bigmac_init_hw(struct bigmac *bp, bool non_blocking)void __iomem *cregs = bp->creg;void __iomem *bregs = bp->bregs;__u32 bblk_dvma = (__u32 )bp->bblock_dvma; -unsigned char *e = &bp->dev->dev_addr[0 ]; +const unsigned char *e = &bp->dev->dev_addr[0 ];/* Latch current counters into statistics. */ bigmac_get_counters (bp, bregs);
drivers/net/ethernet/sun/sunqe.c +1 -1
@@ -144,7 +144,7 @@ static int qe_init(struct sunqe *qep, int from_irq)void __iomem *cregs = qep->qcregs;void __iomem *mregs = qep->mregs;void __iomem *gregs = qecp->gregs; -unsigned char *e = &qep->dev->dev_addr[0 ]; +const unsigned char *e = &qep->dev->dev_addr[0 ];__u32 qblk_dvma = (__u32 )qep->qblock_dvma;u32 tmp;int i;
drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c +1 -1
@@ -57,7 +57,7 @@ static int xlgmac_enable_rx_csum(struct xlgmac_pdata *pdata)return 0 ; } -static int xlgmac_set_mac_address (struct xlgmac_pdata *pdata,u8 *addr) +static int xlgmac_set_mac_address (struct xlgmac_pdata *pdata,const u8 *addr) {unsigned int mac_addr_hi, mac_addr_lo;
drivers/net/ethernet/synopsys/dwc-xlgmac.h +1 -1
@@ -410,7 +410,7 @@ struct xlgmac_hw_ops {void (*dev_xmit)(struct xlgmac_channel *channel);int (*dev_read)(struct xlgmac_channel *channel); -int (*set_mac_address)(struct xlgmac_pdata *pdata,u8 *addr); +int (*set_mac_address)(struct xlgmac_pdata *pdata,const u8 *addr);int (*config_rx_mode)(struct xlgmac_pdata *pdata);int (*enable_rx_csum)(struct xlgmac_pdata *pdata);int (*disable_rx_csum)(struct xlgmac_pdata *pdata);
drivers/net/ethernet/ti/tlan.c +2 -2
@@ -184,7 +184,7 @@ static void tlan_print_list(struct tlan_list *, char *, int);static void tlan_read_and_clear_stats (struct net_device *,int );static void tlan_reset_adapter (struct net_device *);static void tlan_finish_reset (struct net_device *); -static void tlan_set_mac (struct net_device *,int areg,char *mac); +static void tlan_set_mac (struct net_device *,int areg,const char *mac);static void __tlan_phy_print (struct net_device *);static void tlan_phy_print (struct net_device *);
@@ -2346,7 +2346,7 @@ tlan_finish_reset(struct net_device *dev)* **************************************************************/ -static void tlan_set_mac (struct net_device *dev,int areg,char *mac) +static void tlan_set_mac (struct net_device *dev,int areg,const char *mac) {int i;
drivers/net/ethernet/toshiba/tc35815.c +2 -1
@@ -1859,7 +1859,8 @@ static struct net_device_stats *tc35815_get_stats(struct net_device *dev)return &dev->stats; } -static void tc35815_set_cam_entry (struct net_device *dev,int index,unsigned char *addr) +static void tc35815_set_cam_entry (struct net_device *dev,int index, +const unsigned char *addr) {struct tc35815_local *lp =netdev_priv (dev); struct tc35815_regs __iomem *tr =
drivers/net/ethernet/xilinx/xilinx_emaclite.c +4 -3
@@ -206,12 +206,13 @@ static void xemaclite_disable_interrupts(struct net_local *drvdata)* This function writes data from a 16-bit aligned buffer to a 32-bit aligned * address in the EmacLite device. */ -static void xemaclite_aligned_write (void *src_ptr,u32 *dest_ptr, +static void xemaclite_aligned_write (const void *src_ptr,u32 *dest_ptr,unsigned length) { +const u16 *from_u16_ptr;u32 align_buffer;u32 *to_u32_ptr; -u16 *from_u16_ptr, *to_u16_ptr; +u16 *to_u16_ptr; to_u32_ptr = dest_ptr; from_u16_ptr = src_ptr;
@@ -470,7 +471,7 @@ static u16 xemaclite_recv_data(struct net_local *drvdata, u8 *data, int maxlen)* buffers (if configured). */ static void xemaclite_update_address (struct net_local *drvdata, -u8 *address_ptr) +const u8 *address_ptr) {void __iomem *addr;u32 reg_data;
drivers/net/ethernet/xircom/xirc2ps_cs.c +1 -1
@@ -1276,7 +1276,7 @@ struct set_address_info {unsigned int ioaddr; }; -static void set_address (struct set_address_info *sa_info,char *addr) +static void set_address (struct set_address_info *sa_info,const char *addr) {unsigned int ioaddr = sa_info->ioaddr;int i;
drivers/net/phy/mscc/mscc_main.c +1 -1
@@ -273,12 +273,12 @@ static int vsc85xx_downshift_set(struct phy_device *phydev, u8 count)static int vsc85xx_wol_set (struct phy_device *phydev,struct ethtool_wolinfo *wol) { +const u8 *mac_addr = phydev->attached_dev->dev_addr;int rc;u16 reg_val;u8 i;u16 pwd[3 ] = {0 ,0 ,0 };struct ethtool_wolinfo *wol_conf = wol; -u8 *mac_addr = phydev->attached_dev->dev_addr;mutex_lock (&phydev->lock); rc =phy_select_page (phydev,MSCC_PHY_PAGE_EXTENDED_2 );
drivers/net/usb/aqc111.c +1 -1
@@ -119,7 +119,7 @@ static int aqc111_write_cmd_nopm(struct usbnet *dev, u8 cmd, u16 value, }static int aqc111_write_cmd (struct usbnet *dev,u8 cmd,u16 value, -u16 index,u16 size,void *data) +u16 index,u16 size,const void *data) {int ret;
drivers/net/usb/ax88179_178a.c +108 -116
191 lines not on this page · raw message
drivers/net/wireless/intel/iwlwifi/pcie/trans.c +2 -2
Lines of this file are not shown. View the raw message.
fs/afs/cell.c +33 -34
67 lines not on this page · raw message
fs/afs/volume.c +36 -11
47 lines not on this page · raw message
fs/fuse/inode.c +72 -3
75 lines not on this page · raw message
fs/ksmbd/oplock.c +103 -12
115 lines not on this page · raw message
fs/ksmbd/smb2pdu.c +34 -27
61 lines not on this page · raw message
kernel/bpf/arraymap.c +10 -48
58 lines not on this page · raw message
kernel/trace/ring_buffer.c +44 -92
136 lines not on this page · raw message
net/wireless/certs/wens.hex new file +87 -0
87 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.
Greg Kroah-Hartman
maintainerI'm announcing the release of the 5.15.146 kernel.
All users of the 5.15 kernel series must upgrade.
The updated 5.15.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.15.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;a=summary
thanks,
greg k-h
------------
Documentation/devicetree/bindings/nvmem/mxs-ocotp.yaml | 10 Makefile | 2 arch/arm/boot/dts/am33xx.dtsi | 1 arch/arm/boot/dts/dra7.dtsi | 2 arch/arm/mach-omap2/id.c | 5 arch/arm64/kvm/arm.c | 2 arch/arm64/kvm/vgic/vgic-init.c | 5 arch/arm64/kvm/vgic/vgic-mmio-v3.c | 2 arch/arm64/kvm/vgic/vgic.h | 1 arch/s390/include/asm/fpu/api.h | 2 arch/x86/kernel/alternative.c | 2 arch/x86/net/bpf_jit_comp.c | 46 + drivers/base/property.c | 13 drivers/bus/ti-sysc.c | 18 drivers/gpio/gpio-dwapb.c | 12 drivers/gpio/gpiolib-cdev.c | 16 drivers/gpu/drm/i915/display/intel_atomic.c | 193 ------- drivers/gpu/drm/i915/display/intel_atomic.h | 4 drivers/gpu/drm/i915/display/skl_scaler.c | 257 ++++++++++ drivers/gpu/drm/i915/display/skl_scaler.h | 10 drivers/i2c/busses/i2c-aspeed.c | 48 + drivers/iio/adc/ti_am335x_adc.c | 4 drivers/iio/buffer/industrialio-triggered-buffer.c | 10 drivers/iio/common/ms_sensors/ms_sensors_i2c.c | 4 drivers/iio/imu/adis16475.c | 117 ++-- drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 4 drivers/input/keyboard/ipaq-micro-keys.c | 3 drivers/input/misc/soc_button_array.c | 5 drivers/interconnect/core.c | 3 drivers/md/dm-integrity.c | 11 drivers/net/ethernet/actions/owl-emac.c | 2 drivers/net/ethernet/adaptec/starfire.c | 10 drivers/net/ethernet/alacritech/slicoss.c | 2 drivers/net/ethernet/alteon/acenic.c | 4 drivers/net/ethernet/altera/altera_tse_main.c | 2 drivers/net/ethernet/amd/nmclan_cs.c | 3 drivers/net/ethernet/amd/xgbe/xgbe-dev.c | 2 drivers/net/ethernet/amd/xgbe/xgbe.h | 2 drivers/net/ethernet/apm/xgene-v2/mac.c | 2 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c | 2 drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c | 2 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c | 2 drivers/net/ethernet/apple/bmac.c | 8 drivers/net/ethernet/aquantia/atlantic/aq_hw.h | 6 drivers/net/ethernet/aquantia/atlantic/aq_macsec.c | 2 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c | 4 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c | 4 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.h | 2 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c | 4 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c | 4 drivers/net/ethernet/aquantia/atlantic/hw_atl2/hw_atl2.c | 2 drivers/net/ethernet/atheros/atl1e/atl1e_main.c | 5 drivers/net/ethernet/broadcom/b44.c | 6 drivers/net/ethernet/broadcom/bcmsysport.c | 2 drivers/net/ethernet/broadcom/bgmac.c | 2 drivers/net/ethernet/broadcom/bnx2.c | 2 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | 2 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 4 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h | 3 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c | 2 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c | 4 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.h | 2 drivers/net/ethernet/broadcom/genet/bcmgenet.c | 4 drivers/net/ethernet/calxeda/xgmac.c | 2 drivers/net/ethernet/chelsio/cxgb/gmac.h | 2 drivers/net/ethernet/chelsio/cxgb/pm3393.c | 2 drivers/net/ethernet/chelsio/cxgb/vsc7326.c | 2 drivers/net/ethernet/chelsio/cxgb3/common.h | 2 drivers/net/ethernet/chelsio/cxgb3/xgmac.c | 2 drivers/net/ethernet/cisco/enic/enic_pp.c | 2 drivers/net/ethernet/dlink/dl2k.c | 2 drivers/net/ethernet/dnet.c | 6 drivers/net/ethernet/emulex/benet/be_cmds.c | 2 drivers/net/ethernet/emulex/benet/be_cmds.h | 2 drivers/net/ethernet/emulex/benet/be_main.c | 2 drivers/net/ethernet/ethoc.c | 2 drivers/net/ethernet/fealnx.c | 2 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 4 drivers/net/ethernet/freescale/fman/fman_dtsec.c | 8 drivers/net/ethernet/freescale/fman/fman_dtsec.h | 2 drivers/net/ethernet/freescale/fman/fman_memac.c | 8 drivers/net/ethernet/freescale/fman/fman_memac.h | 2 drivers/net/ethernet/freescale/fman/fman_tgec.c | 8 drivers/net/ethernet/freescale/fman/fman_tgec.h | 2 drivers/net/ethernet/freescale/fman/mac.h | 2 drivers/net/ethernet/hisilicon/hisi_femac.c | 2 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c | 2 drivers/net/ethernet/hisilicon/hns/hnae.h | 2 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 2 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 2 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c | 2 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h | 5 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c | 2 drivers/net/ethernet/hisilicon/hns3/hnae3.h | 2 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 2 drivers/net/ethernet/i825xx/sun3_82586.c | 2 drivers/net/ethernet/intel/i40e/i40e.h | 2 drivers/net/ethernet/intel/ixgb/ixgb_hw.c | 2 drivers/net/ethernet/intel/ixgb/ixgb_hw.h | 2 drivers/net/ethernet/marvell/mv643xx_eth.c | 2 drivers/net/ethernet/marvell/mvneta.c | 4 drivers/net/ethernet/marvell/pxa168_eth.c | 6 drivers/net/ethernet/mediatek/mtk_star_emac.c | 2 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c | 2 drivers/net/ethernet/mellanox/mlx5/core/en/fs_tt_redirect.c | 1 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c | 30 - drivers/net/ethernet/mellanox/mlx5/core/en_fs.c | 4 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 2 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c | 2 drivers/net/ethernet/mellanox/mlx5/core/vport.c | 2 drivers/net/ethernet/micrel/ks8842.c | 2 drivers/net/ethernet/micrel/ks8851.h | 3 drivers/net/ethernet/micrel/ks8851_common.c | 20 drivers/net/ethernet/micrel/ks8851_spi.c | 42 + drivers/net/ethernet/micrel/ksz884x.c | 4 drivers/net/ethernet/microsoft/Kconfig | 1 drivers/net/ethernet/myricom/myri10ge/myri10ge.c | 3 drivers/net/ethernet/neterion/s2io.c | 2 drivers/net/ethernet/neterion/s2io.h | 2 drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c | 6 drivers/net/ethernet/nxp/lpc_eth.c | 2 drivers/net/ethernet/qlogic/qed/qed_dev.c | 2 drivers/net/ethernet/qlogic/qed/qed_dev_api.h | 2 drivers/net/ethernet/qlogic/qed/qed_l2.c | 2 drivers/net/ethernet/qlogic/qed/qed_main.c | 2 drivers/net/ethernet/qlogic/qed/qed_mcp.c | 2 drivers/net/ethernet/qlogic/qed/qed_mcp.h | 2 drivers/net/ethernet/qlogic/qed/qed_rdma.c | 2 drivers/net/ethernet/qlogic/qed/qed_vf.c | 2 drivers/net/ethernet/qlogic/qed/qed_vf.h | 4 drivers/net/ethernet/qlogic/qede/qede_filter.c | 2 drivers/net/ethernet/qualcomm/emac/emac-mac.c | 2 drivers/net/ethernet/rdc/r6040.c | 12 drivers/net/ethernet/samsung/sxgbe/sxgbe_common.h | 2 drivers/net/ethernet/samsung/sxgbe/sxgbe_core.c | 3 drivers/net/ethernet/sfc/ef10.c | 4 drivers/net/ethernet/sfc/ef10_sriov.c | 2 drivers/net/ethernet/sfc/ef10_sriov.h | 6 drivers/net/ethernet/sfc/net_driver.h | 2 drivers/net/ethernet/sfc/siena_sriov.c | 2 drivers/net/ethernet/sfc/siena_sriov.h | 2 drivers/net/ethernet/sis/sis900.c | 2 drivers/net/ethernet/smsc/smsc911x.c | 2 drivers/net/ethernet/smsc/smsc9420.c | 2 drivers/net/ethernet/stmicro/stmmac/common.h | 4 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 2 drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c | 2 drivers/net/ethernet/stmicro/stmmac/dwmac100_core.c | 2 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c | 2 drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c | 2 drivers/net/ethernet/stmicro/stmmac/dwmac_lib.c | 2 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c | 3 drivers/net/ethernet/stmicro/stmmac/hwif.h | 3 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c | 4 drivers/net/ethernet/sun/sunbmac.c | 2 drivers/net/ethernet/sun/sunqe.c | 2 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c | 2 drivers/net/ethernet/synopsys/dwc-xlgmac.h | 2 drivers/net/ethernet/ti/tlan.c | 4 drivers/net/ethernet/toshiba/tc35815.c | 3 drivers/net/ethernet/xilinx/xilinx_emaclite.c | 7 drivers/net/ethernet/xircom/xirc2ps_cs.c | 2 drivers/net/phy/mscc/mscc_main.c | 2 drivers/net/usb/aqc111.c | 2 drivers/net/usb/ax88179_178a.c | 224 ++++---- drivers/net/usb/catc.c | 2 drivers/net/usb/dm9601.c | 3 drivers/net/usb/mcs7830.c | 3 drivers/net/usb/sr9700.c | 3 drivers/net/wireless/intel/iwlwifi/pcie/trans.c | 4 drivers/pinctrl/pinctrl-at91-pio4.c | 8 drivers/reset/core.c | 8 drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 9 drivers/scsi/scsi_error.c | 2 drivers/spi/spi.c | 12 drivers/usb/host/fotg210-hcd.c | 3 drivers/usb/serial/ftdi_sio.c | 6 drivers/usb/serial/ftdi_sio_ids.h | 6 drivers/usb/serial/option.c | 5 fs/Kconfig | 4 fs/afs/cell.c | 67 +- fs/afs/cmservice.c | 2 fs/afs/dynroot.c | 31 - fs/afs/internal.h | 18 fs/afs/proc.c | 6 fs/afs/rxrpc.c | 26 - fs/afs/server.c | 40 - fs/afs/vl_list.c | 19 fs/afs/volume.c | 47 + fs/cifs/misc.c | 4 fs/cifs/smb2misc.c | 26 - fs/cifs/smb2ops.c | 26 - fs/cifs/smb2pdu.c | 29 - fs/cifs/smb2pdu.h | 2 fs/fuse/fuse_i.h | 15 fs/fuse/inode.c | 75 ++ fs/ksmbd/oplock.c | 115 ++++ fs/ksmbd/oplock.h | 8 fs/ksmbd/smb2misc.c | 15 fs/ksmbd/smb2ops.c | 9 fs/ksmbd/smb2pdu.c | 61 +- fs/ksmbd/smb2pdu.h | 1 fs/ksmbd/vfs.c | 3 fs/ksmbd/vfs_cache.c | 13 fs/ksmbd/vfs_cache.h | 3 include/linux/bpf.h | 3 include/linux/key-type.h | 1 include/linux/property.h | 9 include/linux/qed/qed_eth_if.h | 2 include/linux/qed/qed_if.h | 2 include/linux/qed/qed_rdma_if.h | 3 include/linux/spi/spi.h | 3 include/net/bluetooth/hci_core.h | 5 include/trace/events/afs.h | 26 - kernel/bpf/arraymap.c | 58 -- kernel/trace/ring_buffer.c | 136 +---- kernel/trace/synth_event_gen_test.c | 11 kernel/trace/trace.c | 20 lib/vsprintf.c | 11 mm/filemap.c | 9 net/8021q/vlan_core.c | 9 net/9p/protocol.c | 17 net/bluetooth/af_bluetooth.c | 7 net/bluetooth/hci_event.c | 3 net/bluetooth/l2cap_core.c | 21 net/bluetooth/mgmt.c | 25 net/bluetooth/smp.c | 7 net/core/dev.c | 3 net/dns_resolver/dns_key.c | 10 net/ife/ife.c | 1 net/mac80211/mesh_plink.c | 10 net/netfilter/nf_tables_api.c | 2 net/rfkill/rfkill-gpio.c | 8 net/rose/af_rose.c | 39 + net/wireless/certs/wens.hex | 87 +++ security/keys/gc.c | 31 - security/keys/internal.h | 11 security/keys/key.c | 15 security/keys/proc.c | 2 sound/soc/codecs/hdmi-codec.c | 12 sound/usb/quirks.c | 4 243 files changed, 1795 insertions(+), 1078 deletions(-)
Alexander Atanasov (1):
scsi: core: Always send batch on reset or error handling command
Alexis Lothoré (1):
pinctrl: at91-pio4: use dedicated lock class for IRQ
Alper Ak (1):
USB: serial: option: add Quectel EG912Y module support
Andrew Davis (1):
ARM: dts: dra7: Fix DRA7 L3 NoC node register size
Andy Shevchenko (3):
device property: Add const qualifier to device_get_match_data() parameter
spi: Introduce spi_get_device_match_data() helper
device property: Allow const parameter to dev_fwnode()
Baokun Li (1):
mm/filemap: avoid buffered read/write race to read inconsistent data
Chen-Yu Tsai (1):
wifi: cfg80211: Add my certificate
Christoffer Sandberg (1):
Input: soc_button_array - add mapping for airplane mode button
Dan Carpenter (1):
usb: fotg210-hcd: delete an incorrect bounds test
David Howells (6):
afs: Fix the dynamic root's d_delete to always delete unused dentries
afs: Fix dynamic root lookup DNS check
keys, dns: Allow key types (eg. DNS) to be reclaimed immediately on expiry
afs: Fix overwriting of result of DNS query
afs: Use refcount_t rather than atomic_t
afs: Fix use-after-free due to get/remove race in volume tree
David Lechner (1):
iio: triggered-buffer: prevent possible freeing of wrong buffer
Dinghao Liu (1):
net/mlx5e: fix a potential double-free in fs_udp_create_groups
Eric Dumazet (3):
net: sched: ife: fix potential use-after-free net/rose: fix races in rose_kill_by_device()
net: check dev->gso_max_size in gso_features_check()
Fabio Estevam (1):
dt-bindings: nvmem: mxs-ocotp: Document fsl,ocotp
Fedor Pchelkin (1):
net: 9p: avoid freeing uninit memory in p9pdu_vreadf
Frédéric Danis (1):
Bluetooth: L2CAP: Send reject on command corrupted request
Geert Uytterhoeven (1):
reset: Fix crash when freeing non-existent optional resets
Greg Kroah-Hartman (1):
Linux 5.15.146
Haoran Liu (1):
Input: ipaq-micro-keys - add error handling for devm_kmemdup
Heiko Carstens (1):
s390/vx: fix save/restore of fpu kernel context
Herve Codina (1):
lib/vsprintf: Fix %pfwf when current node refcount == 0
Hyunwoo Kim (1):
Bluetooth: af_bluetooth: Fix Use-After-Free in bt_sock_recvmsg
Jakub Kicinski (1):
ethernet: constify references to netdev->dev_addr in drivers
Javier Carrasco (1):
iio: common: ms_sensors: ms_sensors_i2c: fix humidity conversion time table
Jeremie Knuesel (1):
ALSA: usb-audio: Increase delay in MOTU M quirk
Jerome Brunet (1):
ASoC: hdmi-codec: fix missing report for jack initial status
Jiri Olsa (1):
bpf: Fix prog_array_map_poke_run map poke update
Johannes Berg (3):
wifi: iwlwifi: pcie: add another missing bh-disable for rxq->lock
wifi: mac80211: mesh_plink: fix matches_local logic
wifi: cfg80211: fix certs build to not depend on file order
Jose Ignacio Tornos Martinez (1):
net: usb: ax88179_178a: avoid failed operations when device is disconnected
Justin Chen (2):
net: usb: ax88179_178a: clean up pm calls
net: usb: ax88179_178a: wol optimizationsKent Gibson (1):
gpiolib: cdev: add gpio_device locking wrapper around gpio_ioctl()
Krister Johansen (1):
fuse: share lookup state between submount and its parent
Kunwu Chan (1):
ARM: OMAP2+: Fix null pointer dereference and memory leak in omap_soc_device_init
Liu Jian (1):
net: check vlan filter feature in vlan_vids_add_by_dev() and vlan_vids_del_by_dev()
Luca Coelho (1):
drm/i915/mtl: limit second scaler vertical scaling in ver >= 14
Luiz Augusto von Dentz (1):
Bluetooth: hci_event: Fix not checking if HCI_OP_INQUIRY has been sent
Marc Zyngier (1):
KVM: arm64: vgic: Force vcpu vgic teardown on vcpu destroy
Mark Glover (1):
USB: serial: ftdi_sio: update Actisense PIDs constant names
Mike Tipton (1):
interconnect: Treat xlate() returning NULL node as an error
Mikulas Patocka (1):
dm-integrity: don't modify bio's immutable bio_vec in integrity_metadata()
Moshe Shemesh (1):
net/mlx5: Fix fw tracer first block check
Namjae Jeon (10):
ksmbd: fix wrong name of SMB2_CREATE_ALLOCATION_SIZE
ksmbd: have a dependency on cifs ARC4
ksmbd: set epoch in create context v2 lease
ksmbd: set v2 lease capability
ksmbd: downgrade RWH lease caching state to RH for directory
ksmbd: send v2 lease break notification for directory
ksmbd: lazy v2 lease break on smb2_write()
ksmbd: avoid duplicate opinfo_put() call on error of smb21_lease_break_ack()
ksmbd: fix wrong allocation size update in smb2_open()
ksmbd: fix slab-out-of-bounds in smb_strndup_from_utf16()
Nuno Sa (1):
iio: imu: adis16475: add spi_device_id table
Pablo Neira Ayuso (1):
netfilter: nf_tables: skip set commit for deleted/destroyed sets
Paulo Alcantara (4):
smb: client: fix NULL deref in asn1_ber_decoder()
smb: client: fix OOB in smb2_query_reparse_point()
smb: client: fix OOB in SMB2_query_info_init()
smb: client: fix OOB in smbCalcSize()
Quan Nguyen (1):
i2c: aspeed: Handle the coalesced stop conditions with the start conditions.
Rahul Rameshbabu (1):
net/mlx5e: Correct snprintf truncation handling for fw_version buffer used by representors
Reinhard Speyerer (1):
USB: serial: option: add Quectel RM500Q R13 firmware support
Ronald Wahl (1):
net: ks8851: Fix TX stall caused by TX buffer overrun
Rouven Czerwinski (1):
net: rfkill: gpio: set GPIO direction
Shifeng Li (1):
net/mlx5e: Fix slab-out-of-bounds in mlx5_query_nic_vport_mac_list()
Slark Xiao (1):
USB: serial: option: add Foxconn T99W265 with new baseline
Steven Rostedt (Google) (5):
tracing / synthetic: Disable events after testing in synth_event_gen_test_init()
ring-buffer: Fix wake ups when buffer_percent is set to 100
tracing: Fix blocked reader of snapshot buffer
ring-buffer: Remove useless update to write_stamp in rb_try_to_discard()
ring-buffer: Fix slowpath of interrupted event
Su Hui (1):
iio: imu: inv_mpu6050: fix an error code problem in inv_mpu6050_read_raw
Thomas Gleixner (1):
x86/alternatives: Sync core before enabling interrupts
Tony Lindgren (2):
bus: ti-sysc: Flush posted write only after srst_udelay
ARM: dts: Fix occasional boot hang for am3 usb
Ville Syrjälä (2):
drm/i915: Relocate intel_atomic_setup_scalers() drm/i915: Fix intel_atomic_setup_scalers() plane_state handling
Vlad Buslov (2):
Revert "net/mlx5e: fix double free of encap_header in update funcs" Revert "net/mlx5e: fix double free of encap_header"
Wadim Egorov (1):
iio: adc: ti_am335x_adc: Fix return value check of tiadc_request_dma()
Wei Yongjun (1):
scsi: bnx2fc: Fix skb double free in bnx2fc_rcv()
Xiao Yao (1):
Bluetooth: MGMT/SMP: Fix address type when using SMP over BREDR/LE
Yury Norov (1):
net: mana: select PAGE_POOL
Zhipeng Lu (1):
ethernet: atheros: fix a memleak in atl1e_setup_ring_resources
xiongxin (1):
gpio: dwapb: mask/unmask IRQ when disable/enale it