Message ID | 20241115015344.757567-3-kuba@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 2a0d6c1705c42b81efd927f0bad91e68245dba7f |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | eth: fbnic: cleanup and add a few stats | expand |
On Thu, Nov 14, 2024 at 05:53:41PM -0800, Jakub Kicinski wrote: > While adding the SPDX headers I noticed we're also missing > a header guard. > > Signed-off-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Andrew
On Fri, Nov 15, 2024 at 7:24 AM Jakub Kicinski <kuba@kernel.org> wrote: > > While adding the SPDX headers I noticed we're also missing > a header guard. > > Signed-off-by: Jakub Kicinski <kuba@kernel.org> LGTM, Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
diff --git a/drivers/net/ethernet/meta/fbnic/fbnic_hw_stats.h b/drivers/net/ethernet/meta/fbnic/fbnic_hw_stats.h index a2b6e88fc113..199ad2228ee9 100644 --- a/drivers/net/ethernet/meta/fbnic/fbnic_hw_stats.h +++ b/drivers/net/ethernet/meta/fbnic/fbnic_hw_stats.h @@ -1,6 +1,9 @@ /* SPDX-License-Identifier: GPL-2.0 */ /* Copyright (c) Meta Platforms, Inc. and affiliates. */ +#ifndef _FBNIC_HW_STATS_H_ +#define _FBNIC_HW_STATS_H_ + #include <linux/ethtool.h> #include "fbnic_csr.h" @@ -41,3 +44,5 @@ struct fbnic_hw_stats { u64 fbnic_stat_rd64(struct fbnic_dev *fbd, u32 reg, u32 offset); void fbnic_get_hw_stats(struct fbnic_dev *fbd); + +#endif /* _FBNIC_HW_STATS_H_ */
While adding the SPDX headers I noticed we're also missing a header guard. Signed-off-by: Jakub Kicinski <kuba@kernel.org> --- drivers/net/ethernet/meta/fbnic/fbnic_hw_stats.h | 5 +++++ 1 file changed, 5 insertions(+)