Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 15 Jan 2016 01:04:19 +0000 (17:04 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 15 Jan 2016 01:04:19 +0000 (17:04 -0800)
Pull trivial tree updates from Jiri Kosina.

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial:
  floppy: make local variable non-static
  exynos: fixes an incorrect header guard
  dt-bindings: fixes some incorrect header guards
  cpufreq-dt: correct dead link in documentation
  cpufreq: ARM big LITTLE: correct dead link in documentation
  treewide: Fix typos in printk
  Documentation: filesystem: Fix typo in fs/eventfd.c
  fs/super.c: use && instead of & for warn_on condition
  Documentation: fix sysfs-ptp
  lib: scatterlist: fix Kconfig description

1  2 
Documentation/sysctl/vm.txt
drivers/gpu/drm/exynos/exynos_drm_fb.h
drivers/infiniband/hw/cxgb4/cm.c
drivers/media/common/saa7146/saa7146_video.c
drivers/media/dvb-frontends/si2165.c
drivers/media/pci/netup_unidvb/netup_unidvb_core.c
drivers/net/ethernet/intel/i40evf/i40evf_main.c
fs/super.c

Simple merge
Simple merge
Simple merge
index a0bbb6b9f5aa460d104bbbd6ca876c32b4ee193c,6b84c0d7f1207e74b7e58cd291fdb18c8c268a97..94da913b151da615f751d287b33a65de92d95829
@@@ -1239,72 -1229,38 +1239,72 @@@ static int i40evf_config_rss_aq(struct 
  
        if (adapter->current_op != I40E_VIRTCHNL_OP_UNKNOWN) {
                /* bail because we already have a command pending */
-               dev_err(&adapter->pdev->dev, "Cannot confiure RSS, command %d pending\n",
+               dev_err(&adapter->pdev->dev, "Cannot configure RSS, command %d pending\n",
                        adapter->current_op);
 -              return;
 +              return -EBUSY;
        }
  
 -      memset(&rss_key, 0, sizeof(rss_key));
 -      memcpy(&rss_key, seed, sizeof(rss_key));
 +      if (seed) {
 +              struct i40e_aqc_get_set_rss_key_data *rss_key =
 +                      (struct i40e_aqc_get_set_rss_key_data *)seed;
 +              ret = i40evf_aq_set_rss_key(hw, vsi->id, rss_key);
 +              if (ret) {
 +                      dev_err(&adapter->pdev->dev, "Cannot set RSS key, err %s aq_err %s\n",
 +                              i40evf_stat_str(hw, ret),
 +                              i40evf_aq_str(hw, hw->aq.asq_last_status));
 +                      return ret;
 +              }
 +      }
  
 -      rss_lut = kzalloc(((I40E_VFQF_HLUT_MAX_INDEX + 1) * 4), GFP_KERNEL);
 -      if (!rss_lut)
 -              return;
 +      if (lut) {
 +              ret = i40evf_aq_set_rss_lut(hw, vsi->id, false, lut, lut_size);
 +              if (ret) {
 +                      dev_err(&adapter->pdev->dev,
 +                              "Cannot set RSS lut, err %s aq_err %s\n",
 +                              i40evf_stat_str(hw, ret),
 +                              i40evf_aq_str(hw, hw->aq.asq_last_status));
 +                      return ret;
 +              }
 +      }
  
 -      /* Populate the LUT with max no. PF queues in round robin fashion */
 -      for (i = 0; i <= (I40E_VFQF_HLUT_MAX_INDEX * 4); i++)
 -              rss_lut[i] = i % adapter->num_active_queues;
 +      return ret;
 +}
  
 -      ret = i40evf_aq_set_rss_key(hw, vsi->id, &rss_key);
 -      if (ret) {
 -              dev_err(&adapter->pdev->dev,
 -                      "Cannot set RSS key, err %s aq_err %s\n",
 -                      i40evf_stat_str(hw, ret),
 -                      i40evf_aq_str(hw, hw->aq.asq_last_status));
 -              return;
 +/**
 + * i40evf_config_rss_reg - Configure RSS keys and lut by writing registers
 + * @vsi: Pointer to vsi structure
 + * @seed: RSS hash seed
 + * @lut: Lookup table
 + * @lut_size: Lookup table size
 + *
 + * Returns 0 on success, negative on failure
 + **/
 +static int i40evf_config_rss_reg(struct i40e_vsi *vsi, const u8 *seed,
 +                               const u8 *lut, u16 lut_size)
 +{
 +      struct i40evf_adapter *adapter = vsi->back;
 +      struct i40e_hw *hw = &adapter->hw;
 +      u16 i;
 +
 +      if (seed) {
 +              u32 *seed_dw = (u32 *)seed;
 +
 +              for (i = 0; i <= I40E_VFQF_HKEY_MAX_INDEX; i++)
 +                      wr32(hw, I40E_VFQF_HKEY(i), seed_dw[i]);
        }
  
 -      ret = i40evf_aq_set_rss_lut(hw, vsi->id, false, rss_lut,
 -                                  (I40E_VFQF_HLUT_MAX_INDEX + 1) * 4);
 -      if (ret)
 -              dev_err(&adapter->pdev->dev,
 -                      "Cannot set RSS lut, err %s aq_err %s\n",
 -                      i40evf_stat_str(hw, ret),
 -                      i40evf_aq_str(hw, hw->aq.asq_last_status));
 +      if (lut) {
 +              u32 *lut_dw = (u32 *)lut;
 +
 +              if (lut_size != I40EVF_HLUT_ARRAY_SIZE)
 +                      return -EINVAL;
 +
 +              for (i = 0; i <= I40E_VFQF_HLUT_MAX_INDEX; i++)
 +                      wr32(hw, I40E_VFQF_HLUT(i), lut_dw[i]);
 +      }
 +      i40e_flush(hw);
 +
 +      return 0;
  }
  
  /**
diff --cc fs/super.c
Simple merge