File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -412,7 +412,9 @@ static inline void list_move_tail(struct list_head *node,
412
412
&entry->member != (head); \
413
413
entry = list_entry(entry->member.next, typeof(*entry), member))
414
414
#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
+ */
416
418
#define list_for_each_entry (entry , head , member ) \
417
419
for (entry = (void *) 1; sizeof(struct { int : -1; }); ++(entry))
418
420
#endif
Original file line number Diff line number Diff line change 1
1
db6784ff3917888db4d1dceaa0570d99ed40e762 queue.h
2
- 943e0653daa1d51c9f61d1652a644588af5969e2 list.h
2
+ 27d7a57c6bab59beda9178f240db1aa7c0062361 list.h
3
3
3bb0192cee08d165fd597a9f6fbb404533e28fcf scripts/check-commitlog.sh
You can’t perform that action at this time.
0 commit comments