1. 05 Oct, 2023 4 commits
    • Jakub Kicinski's avatar
      Merge branch '40GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue · 397f70e3
      Jakub Kicinski authored
      Tony Nguyen says:
      
      ====================
      Intel Wired LAN Driver Updates 2023-10-03 (i40e, iavf)
      
      This series contains updates to i40e and iavf drivers.
      
      Yajun Deng aligns reporting of buffer exhaustion statistics to follow
      documentation for i40e.
      
      Jake removes undesired 'inline' from functions in iavf.
      
      * '40GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue:
        iavf: remove "inline" functions from iavf_txrx.c
        i40e: Add rx_missed_errors for buffer exhaustion
      ====================
      
      Link: https://lore.kernel.org/r/20231003223610.2004976-1-anthony.l.nguyen@intel.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      397f70e3
    • Jakub Kicinski's avatar
      Merge branch... · b4ac75a3
      Jakub Kicinski authored
      Merge branch 'fix-a-couple-recent-instances-of-wincompatible-function-pointer-types-strict-from-mode_get-implementations'
      
      Nathan Chancellor says:
      
      ====================
      Fix a couple recent instances of -Wincompatible-function-pointer-types-strict from ->mode_get() implementations
      
      This series fixes a couple of instances of
      -Wincompatible-function-pointer-types-strict that were introduced by a
      recent series that added a new type of ops, struct dpll_device_ops,
      along with implementations of the callback ->mode_get() that had a
      mismatched mode type.
      
      This warning is not currently enabled for any build but I am planning on
      submitting a patch to add it to W=1 to prevent new instances of the
      warning from popping up while we try and fix the existing instances in
      other drivers.
      
      This series is based on current net-next but if they need to go into
      individual maintainer trees, please feel free to take the patches
      individually.
      ====================
      
      Link: https://lore.kernel.org/r/20231002-net-wifpts-dpll_mode_get-v1-0-a356a16413cf@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      b4ac75a3
    • Nathan Chancellor's avatar
      mlx5: Fix type of mode parameter in mlx5_dpll_device_mode_get() · f4ecb3d4
      Nathan Chancellor authored
      When building with -Wincompatible-function-pointer-types-strict, a
      warning designed to catch potential kCFI failures at build time rather
      than run time due to incorrect function pointer types, there is a
      warning due to a mismatch between the type of the mode parameter in
      mlx5_dpll_device_mode_get() vs. what the function pointer prototype for
      ->mode_get() in 'struct dpll_device_ops' expects.
      
        drivers/net/ethernet/mellanox/mlx5/core/dpll.c:141:14: error: incompatible function pointer types initializing 'int (*)(const struct dpll_device *, void *, enum dpll_mode *, struct netlink_ext_ack *)' with an expression of type 'int (const struct dpll_device *, void *, u32 *, struct netlink_ext_ack *)' (aka 'int (const struct dpll_device *, void *, unsigned int *, struct netlink_ext_ack *)') [-Werror,-Wincompatible-function-pointer-types-strict]
          141 |         .mode_get = mlx5_dpll_device_mode_get,
              |                     ^~~~~~~~~~~~~~~~~~~~~~~~~
        1 error generated.
      
      Change the type of the mode parameter in mlx5_dpll_device_mode_get() to
      clear up the warning and avoid kCFI failures at run time.
      
      Fixes: 496fd0a2 ("mlx5: Implement SyncE support using DPLL infrastructure")
      Signed-off-by: default avatarNathan Chancellor <nathan@kernel.org>
      Reviewed-by: default avatarSimon Horman <horms@kernel.org>
      Link: https://lore.kernel.org/r/20231002-net-wifpts-dpll_mode_get-v1-2-a356a16413cf@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      f4ecb3d4
    • Nathan Chancellor's avatar
      ptp: Fix type of mode parameter in ptp_ocp_dpll_mode_get() · 26cc115d
      Nathan Chancellor authored
      When building with -Wincompatible-function-pointer-types-strict, a
      warning designed to catch potential kCFI failures at build time rather
      than run time due to incorrect function pointer types, there is a
      warning due to a mismatch between the type of the mode parameter in
      ptp_ocp_dpll_mode_get() vs. what the function pointer prototype for
      ->mode_get() in 'struct dpll_device_ops' expects.
      
        drivers/ptp/ptp_ocp.c:4353:14: error: incompatible function pointer types initializing 'int (*)(const struct dpll_device *, void *, enum dpll_mode *, struct netlink_ext_ack *)' with an expression of type 'int (const struct dpll_device *, void *, u32 *, struct netlink_ext_ack *)' (aka 'int (const struct dpll_device *, void *, unsigned int *, struct netlink_ext_ack *)') [-Werror,-Wincompatible-function-pointer-types-strict]
         4353 |         .mode_get = ptp_ocp_dpll_mode_get,
              |                     ^~~~~~~~~~~~~~~~~~~~~
        1 error generated.
      
      Change the type of the mode parameter in ptp_ocp_dpll_mode_get() to
      clear up the warning and avoid kCFI failures at run time.
      
      Fixes: 09eeb3ae ("ptp_ocp: implement DPLL ops")
      Signed-off-by: default avatarNathan Chancellor <nathan@kernel.org>
      Reviewed-by: default avatarSimon Horman <horms@kernel.org>
      Link: https://lore.kernel.org/r/20231002-net-wifpts-dpll_mode_get-v1-1-a356a16413cf@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      26cc115d
  2. 04 Oct, 2023 28 commits
  3. 03 Oct, 2023 8 commits