Public bug reported:

SRU Justification

[ Impact ]

While compile on AMD64 platform, the following error happens:

drivers/net/ethernet/mellanox/mlx5/core/health.c: In function 
‘mlx5_health_get_crr’:
drivers/net/ethernet/mellanox/mlx5/core/health.c:101:33: error: 
‘MLX5_CRR_BIT_OFFSET’ undeclared (first use in this function); did you mean 
‘MLX5_RFR_BIT_OFFSET’?
  101 |         return (rfr_severity >> MLX5_CRR_BIT_OFFSET) & 0x01;
      |                                 ^~~~~~~~~~~~~~~~~~~
      |                                 MLX5_RFR_BIT_OFFSET
drivers/net/ethernet/mellanox/mlx5/core/health.c:101:33: note: each undeclared 
identifier is reported only once for each function it appears in
drivers/net/ethernet/mellanox/mlx5/core/health.c: In function ‘hsynd_str’:
drivers/net/ethernet/mellanox/mlx5/core/health.c:383:14: error: 
‘MLX5_INITIAL_SEG_HEALTH_SYNDROME_TRUST_LOCKDOWN_ERR’ undeclared (first use in 
this function); did you mean ‘MLX5_INITIAL_SEG_HEALTH_SYNDROME_EQ_IN_ERR’?
  383 |         case MLX5_INITIAL_SEG_HEALTH_SYNDROME_TRUST_LOCKDOWN_ERR:
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |              MLX5_INITIAL_SEG_HEALTH_SYNDROME_EQ_IN_ERR
drivers/net/ethernet/mellanox/mlx5/core/health.c: In function 
‘mlx5_health_get_crr’:
drivers/net/ethernet/mellanox/mlx5/core/health.c:102:1: error: control reaches 
end of non-void function [-Werror=return-type]
  102 | }
      | ^

[ Fix ]

To fix this, the suggestion has been to import the following patchset

https://lore.kernel.org/all/[email protected]/

[ Test plan ]

Compile test only

[ Potential regressions ]


The patch introduces a new macro and the scope is quite small, no regressions 
are expected.

** Affects: linux-bluefield (Ubuntu)
     Importance: Undecided
     Assignee: Alessio Faina (alessiofaina)
         Status: New

** Affects: linux-bluefield (Ubuntu Noble)
     Importance: Undecided
     Assignee: Alessio Faina (alessiofaina)
         Status: New

** Also affects: linux-bluefield (Ubuntu Noble)
   Importance: Undecided
       Status: New

** Changed in: linux-bluefield (Ubuntu)
     Assignee: (unassigned) => Alessio Faina (alessiofaina)

** Changed in: linux-bluefield (Ubuntu Noble)
     Assignee: (unassigned) => Alessio Faina (alessiofaina)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2135124

Title:
  AMD64 compilation fails in
  drivers/net/ethernet/mellanox/mlx5/core/health.c

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-bluefield/+bug/2135124/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to