Skip to content

Commit 67b1f6e

Browse files
committed
Fix comment warnings: avoid '/*' sequence in block comments
Replace '/proc/self/ns/*' with '/proc/self/ns/' in comments to avoid -Wcomment warnings about '/*' within block comments. The meaning remains clear as it refers to entries in the /proc/self/ns/ directory. Signed-off-by: irozzo-1A <iacopo@sysdig.com>
1 parent 133d075 commit 67b1f6e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

driver/modern_bpf/helpers/store/auxmap_store_params.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1810,7 +1810,7 @@ static __always_inline void apply_dynamic_snaplen(struct pt_regs *regs,
18101810
#define MAX_TMP_SCRATCH_LEN (AUXILIARY_MAP_SIZE - 8192)
18111811
#define SAFE_TMP_SCRATCH_ACCESS(x) (x) & (MAX_TMP_SCRATCH_LEN - 1)
18121812

1813-
/* namespace filesystem (nsfs) superblock magic number - used for /proc/self/ns/* entries */
1813+
/* namespace filesystem (nsfs) superblock magic number - used for /proc/self/ns/ entries */
18141814
#define NSFS_SUPER_MAGIC 0x6e736673 /* "nsfs" in ASCII */
18151815

18161816
/**
@@ -1847,7 +1847,7 @@ static __always_inline void auxmap__store_d_path_approx(struct auxiliary_map *au
18471847
struct dentry *mnt_root_p = BPF_CORE_READ(vfsmnt, mnt_root);
18481848

18491849
/* Check if this is an nsfs entry (namespace filesystem) by examining the superblock magic.
1850-
* Note: /proc/self/ns/* entries are symlinks in procfs that resolve to nsfs entries.
1850+
* Note: /proc/self/ns/ entries are symlinks in procfs that resolve to nsfs entries.
18511851
* When the symlink is resolved, the dentry points to nsfs, not procfs.
18521852
*/
18531853
struct super_block *sb = BPF_CORE_READ(dentry, d_sb);

0 commit comments

Comments
 (0)