Skip to content

Commit 461781b

Browse files
committed
Add comment for the dummy macro compilation guard
Change-Id: I1da359df006f058c3e27a0d4bc91b50c4441a1da
1 parent 00b37f4 commit 461781b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

list.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ static inline void list_move_tail(struct list_head *node,
412412
&entry->member != (head); \
413413
entry = list_entry(entry->member.next, typeof(*entry), member))
414414
#else
415+
// The negative width bit-field makes a compile-time error for use of this.
415416
#define list_for_each_entry(entry, head, member) \
416417
for (entry = (void *) 1; sizeof(struct { int : -1; }); ++(entry))
417418
#endif

scripts/checksums

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
db6784ff3917888db4d1dceaa0570d99ed40e762 queue.h
2-
78828505183bf0444f574c0a33a4a1f5e3231994 list.h
2+
943e0653daa1d51c9f61d1652a644588af5969e2 list.h
33
3bb0192cee08d165fd597a9f6fbb404533e28fcf scripts/check-commitlog.sh

0 commit comments

Comments
 (0)