Skip to content

Commit e211e84

Browse files
committed
Refine comment for dummy macro compilation guard
Change-Id: I85c21c24bbd5856a5a22cbd983f5150a56c13345
1 parent 461781b commit e211e84

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

list.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,9 @@ 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.
415+
/* The negative width bit-field makes a compile-time error for use of this. It
416+
* works in the same way as BUILD_BUG_ON_ZERO macro of Linux kernel.
417+
*/
416418
#define list_for_each_entry(entry, head, member) \
417419
for (entry = (void *) 1; sizeof(struct { int : -1; }); ++(entry))
418420
#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-
943e0653daa1d51c9f61d1652a644588af5969e2 list.h
2+
27d7a57c6bab59beda9178f240db1aa7c0062361 list.h
33
3bb0192cee08d165fd597a9f6fbb404533e28fcf scripts/check-commitlog.sh

0 commit comments

Comments
 (0)