netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com,
	alexanderduyck@fb.com, Jakub Kicinski <kuba@kernel.org>
Subject: [PATCH net-next 2/5] eth: fbnic: add missing header guards
Date: Thu, 14 Nov 2024 17:53:41 -0800	[thread overview]
Message-ID: <20241115015344.757567-3-kuba@kernel.org> (raw)
In-Reply-To: <20241115015344.757567-1-kuba@kernel.org>

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(+)

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_ */
-- 
2.47.0


  parent reply	other threads:[~2024-11-15  1:53 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-15  1:53 [PATCH net-next 0/5] eth: fbnic: cleanup and add a few stats Jakub Kicinski
2024-11-15  1:53 ` [PATCH net-next 1/5] eth: fbnic: add missing SPDX headers Jakub Kicinski
2024-11-17 20:09   ` Andrew Lunn
2024-11-18  3:55   ` Kalesh Anakkur Purayil
2024-11-15  1:53 ` Jakub Kicinski [this message]
2024-11-17 20:10   ` [PATCH net-next 2/5] eth: fbnic: add missing header guards Andrew Lunn
2024-11-18  3:55   ` Kalesh Anakkur Purayil
2024-11-15  1:53 ` [PATCH net-next 3/5] eth: fbnic: add basic debugfs structure Jakub Kicinski
2024-11-17 20:09   ` Andrew Lunn
2024-11-18  3:56   ` Kalesh Anakkur Purayil
2024-11-15  1:53 ` [PATCH net-next 4/5] eth: fbnic: add PCIe hardware statistics Jakub Kicinski
2024-11-17 20:19   ` Andrew Lunn
2024-11-18 15:35     ` Jakub Kicinski
2024-11-18 15:40       ` Andrew Lunn
2024-11-15  1:53 ` [PATCH net-next 5/5] eth: fbnic: add RPC " Jakub Kicinski
2024-11-17 20:24   ` Andrew Lunn
2024-11-19  3:00 ` [PATCH net-next 0/5] eth: fbnic: cleanup and add a few stats patchwork-bot+netdevbpf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241115015344.757567-3-kuba@kernel.org \
    --to=kuba@kernel.org \
    --cc=alexanderduyck@fb.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).