)]}'
{"src/helper/list.h":[{"author":{"_account_id":1000438,"name":"R. Diez","email":"rdiez-2006@rd10.de","username":"rdiez"},"change_message_id":"a30bf1634052deebee5a9d98ec48f928c8375f72","unresolved":false,"context_lines":[{"line_number":2,"context_line":""},{"line_number":3,"context_line":"/*"},{"line_number":4,"context_line":" * The content of this file is mainly copied/inspired from Linux kernel"},{"line_number":5,"context_line":" * code in include/linux/list.h, include/linux/types.h"},{"line_number":6,"context_line":" */"},{"line_number":7,"context_line":""},{"line_number":8,"context_line":"#ifndef OPENOCD_HELPER_LIST_H"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"aedf27f1_782210a4","line":5,"updated":"2021-05-26 14:16:21.000000000","message":"The following commit comments actually belong inside the source file, at this point, for the next time that someone needs to align the file again:\n- Last aligned with Linux v5.12.\n- Skip the functions hlist_unhashed_lockless() and __list_del_clearprev() that are relevant only in kernel.\n- Remove non-standard GCC extension \"omitted conditional operand\" from list_prepare_entry.","commit_id":"9997004f52b6aff805f03043eb2d834ee4fed955"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"b8d76c2ec79ab9c24bf362da509bc63c72b04fb2","unresolved":false,"context_lines":[{"line_number":2,"context_line":""},{"line_number":3,"context_line":"/*"},{"line_number":4,"context_line":" * The content of this file is mainly copied/inspired from Linux kernel"},{"line_number":5,"context_line":" * code in include/linux/list.h, include/linux/types.h"},{"line_number":6,"context_line":" */"},{"line_number":7,"context_line":""},{"line_number":8,"context_line":"#ifndef OPENOCD_HELPER_LIST_H"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"aedf27f1_7849b069","line":5,"in_reply_to":"aedf27f1_782210a4","updated":"2021-05-26 14:39:44.000000000","message":"Yes, it makes sense!","commit_id":"9997004f52b6aff805f03043eb2d834ee4fed955"},{"author":{"_account_id":1000438,"name":"R. Diez","email":"rdiez-2006@rd10.de","username":"rdiez"},"change_message_id":"a30bf1634052deebee5a9d98ec48f928c8375f72","unresolved":false,"context_lines":[{"line_number":11,"context_line":"/* begin local changes */"},{"line_number":12,"context_line":"#include \u003chelper/types.h\u003e"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"#define LIST_POISON1 NULL"},{"line_number":15,"context_line":"#define LIST_POISON2 NULL"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"struct list_head {"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"aedf27f1_381c886a","line":14,"updated":"2021-05-26 14:16:21.000000000","message":"Wouldn\u0027t it be better to temporarily define WRITE_ONCE for this file, in order to reduce the number of changes against the Linux original?","commit_id":"9997004f52b6aff805f03043eb2d834ee4fed955"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"2191ec0b90b18d7f05b177acb413119fb4db17c0","unresolved":false,"context_lines":[{"line_number":11,"context_line":"/* begin local changes */"},{"line_number":12,"context_line":"#include \u003chelper/types.h\u003e"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"#define LIST_POISON1 NULL"},{"line_number":15,"context_line":"#define LIST_POISON2 NULL"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"struct list_head {"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"aedf27f1_d843fc41","line":14,"in_reply_to":"aedf27f1_183ae4c0","updated":"2021-05-26 15:14:40.000000000","message":"no c++ for me, thanks\n\nThe delta wrt kernel file is mainly on the comments. We use doxygen and we need to align all the parameters otherwise doxygen build gets incorrect.\nOnce you remove that, the delta is really irrelevant.","commit_id":"9997004f52b6aff805f03043eb2d834ee4fed955"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"b8d76c2ec79ab9c24bf362da509bc63c72b04fb2","unresolved":false,"context_lines":[{"line_number":11,"context_line":"/* begin local changes */"},{"line_number":12,"context_line":"#include \u003chelper/types.h\u003e"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"#define LIST_POISON1 NULL"},{"line_number":15,"context_line":"#define LIST_POISON2 NULL"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"struct list_head {"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"aedf27f1_984ed471","line":14,"in_reply_to":"aedf27f1_381c886a","updated":"2021-05-26 14:39:44.000000000","message":"I thought for long time what to do with READ_ONCE() and WRITE_ONCE(). But also with smp_store_release() and smp_load_acquire().\nThe documentation of this file is already not that great (see https://sourceforge.net/p/openocd/mailman/message/37289876/ and its thread) and these macros make the code even less readable.\nSo I decided to remove all of them.\n\nAlso one of the two function skipped, once replaced READ_ONCE it becomes equal to another function. It just makes this file less readable.","commit_id":"9997004f52b6aff805f03043eb2d834ee4fed955"},{"author":{"_account_id":1000438,"name":"R. Diez","email":"rdiez-2006@rd10.de","username":"rdiez"},"change_message_id":"da6b69e8dc28b3bfbe36618f4de3a8943146844d","unresolved":false,"context_lines":[{"line_number":11,"context_line":"/* begin local changes */"},{"line_number":12,"context_line":"#include \u003chelper/types.h\u003e"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"#define LIST_POISON1 NULL"},{"line_number":15,"context_line":"#define LIST_POISON2 NULL"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"struct list_head {"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"aedf27f1_183ae4c0","line":14,"in_reply_to":"aedf27f1_984ed471","updated":"2021-05-26 14:52:45.000000000","message":"I wouldn\u0027t try to make the Linux code more readable, but just use it as it is with as few changes as possible. But I do not really mind. One day we\u0027ll grow up and switch to C++ anyway. 8-)","commit_id":"9997004f52b6aff805f03043eb2d834ee4fed955"},{"author":{"_account_id":1000863,"name":"Tarek BOCHKATI","email":"tarek.bouchkati@gmail.com","username":"BouchkatiTarek"},"change_message_id":"7542323d9e67279e40146bb27d732ee4096dc1b6","unresolved":false,"context_lines":[{"line_number":57,"context_line":""},{"line_number":58,"context_line":"#ifdef CONFIG_DEBUG_LIST"},{"line_number":59,"context_line":"extern bool __list_add_valid(struct list_head *new,"},{"line_number":60,"context_line":"\t\t\t      struct list_head *prev,"},{"line_number":61,"context_line":"\t\t\t      struct list_head *next);"},{"line_number":62,"context_line":"extern bool __list_del_entry_valid(struct list_head *entry);"},{"line_number":63,"context_line":"#else"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"aedf27f1_f835a0d8","line":60,"range":{"start_line":60,"start_character":0,"end_line":60,"end_character":9},"updated":"2021-05-26 14:15:46.000000000","message":"I feel like indent in linux coding style is 8, and these extra whitespaces are just to align arguments vertically.\n\nbut since in our coding style the tab size is 4, do we intend to align multi-line arguments vertically as it\u0027s done in linux ?","commit_id":"9997004f52b6aff805f03043eb2d834ee4fed955"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"b8d76c2ec79ab9c24bf362da509bc63c72b04fb2","unresolved":false,"context_lines":[{"line_number":57,"context_line":""},{"line_number":58,"context_line":"#ifdef CONFIG_DEBUG_LIST"},{"line_number":59,"context_line":"extern bool __list_add_valid(struct list_head *new,"},{"line_number":60,"context_line":"\t\t\t      struct list_head *prev,"},{"line_number":61,"context_line":"\t\t\t      struct list_head *next);"},{"line_number":62,"context_line":"extern bool __list_del_entry_valid(struct list_head *entry);"},{"line_number":63,"context_line":"#else"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"aedf27f1_d82c5c92","line":60,"range":{"start_line":60,"start_character":0,"end_line":60,"end_character":9},"in_reply_to":"aedf27f1_f835a0d8","updated":"2021-05-26 14:39:44.000000000","message":"Correct, these lines are copy-paste from the original Linux file to minimize the delta. We do not have anything in our coding style about alignment of argument in function prototype, so I have left them here.","commit_id":"9997004f52b6aff805f03043eb2d834ee4fed955"},{"author":{"_account_id":1000438,"name":"R. Diez","email":"rdiez-2006@rd10.de","username":"rdiez"},"change_message_id":"a30bf1634052deebee5a9d98ec48f928c8375f72","unresolved":false,"context_lines":[{"line_number":965,"context_line":"\told-\u003efirst \u003d NULL;"},{"line_number":966,"context_line":"}"},{"line_number":967,"context_line":""},{"line_number":968,"context_line":"#define hlist_entry(ptr, type, member) container_of(ptr, type, member)"},{"line_number":969,"context_line":""},{"line_number":970,"context_line":"#define hlist_for_each(pos, head) \\"},{"line_number":971,"context_line":"\tfor (pos \u003d (head)-\u003efirst; pos ; pos \u003d pos-\u003enext)"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"aedf27f1_58214c99","line":968,"updated":"2021-05-26 14:16:21.000000000","message":"I am getting an \"only white-space differences\" here and in other places when comparing to the Linux original. But I guess that does not matter much.","commit_id":"9997004f52b6aff805f03043eb2d834ee4fed955"},{"author":{"_account_id":1000438,"name":"R. Diez","email":"rdiez-2006@rd10.de","username":"rdiez"},"change_message_id":"da6b69e8dc28b3bfbe36618f4de3a8943146844d","unresolved":false,"context_lines":[{"line_number":965,"context_line":"\told-\u003efirst \u003d NULL;"},{"line_number":966,"context_line":"}"},{"line_number":967,"context_line":""},{"line_number":968,"context_line":"#define hlist_entry(ptr, type, member) container_of(ptr, type, member)"},{"line_number":969,"context_line":""},{"line_number":970,"context_line":"#define hlist_for_each(pos, head) \\"},{"line_number":971,"context_line":"\tfor (pos \u003d (head)-\u003efirst; pos ; pos \u003d pos-\u003enext)"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"aedf27f1_f83cc0be","line":968,"in_reply_to":"aedf27f1_3853281c","updated":"2021-05-26 14:52:45.000000000","message":"Personally, I would rather minimise the delta than enforce \"our\" rules to that extent. In my opinion, cases like this are a reminder that code style should be mostly an optional matter. But I wouldn\u0027t waste any more time on this, it\u0027s fine the way it is now.","commit_id":"9997004f52b6aff805f03043eb2d834ee4fed955"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"b8d76c2ec79ab9c24bf362da509bc63c72b04fb2","unresolved":false,"context_lines":[{"line_number":965,"context_line":"\told-\u003efirst \u003d NULL;"},{"line_number":966,"context_line":"}"},{"line_number":967,"context_line":""},{"line_number":968,"context_line":"#define hlist_entry(ptr, type, member) container_of(ptr, type, member)"},{"line_number":969,"context_line":""},{"line_number":970,"context_line":"#define hlist_for_each(pos, head) \\"},{"line_number":971,"context_line":"\tfor (pos \u003d (head)-\u003efirst; pos ; pos \u003d pos-\u003enext)"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"aedf27f1_3853281c","line":968,"in_reply_to":"aedf27f1_58214c99","updated":"2021-05-26 14:39:44.000000000","message":"It matters for checkpatch!\nHere is for the new checkpatch, the other \"space before tab\" are not accepted by current checkpatch.","commit_id":"9997004f52b6aff805f03043eb2d834ee4fed955"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"2191ec0b90b18d7f05b177acb413119fb4db17c0","unresolved":false,"context_lines":[{"line_number":965,"context_line":"\told-\u003efirst \u003d NULL;"},{"line_number":966,"context_line":"}"},{"line_number":967,"context_line":""},{"line_number":968,"context_line":"#define hlist_entry(ptr, type, member) container_of(ptr, type, member)"},{"line_number":969,"context_line":""},{"line_number":970,"context_line":"#define hlist_for_each(pos, head) \\"},{"line_number":971,"context_line":"\tfor (pos \u003d (head)-\u003efirst; pos ; pos \u003d pos-\u003enext)"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"aedf27f1_7870d0a3","line":968,"in_reply_to":"aedf27f1_f83cc0be","updated":"2021-05-26 15:14:40.000000000","message":"Actually this file is broken wrt kernel style. It should be fixed there, starting removing these incorrect spaces.\nBut it\u0027s also fully disaligned for the way the macros are written.\nI\u0027m not going to do this job on mainline kernel, too much for the time I have.\nSo let\u0027s do the bare minimum here to upload it on our gerrit/","commit_id":"9997004f52b6aff805f03043eb2d834ee4fed955"},{"author":{"_account_id":1000005,"name":"Andreas Fritiofson","email":"andreas.fritiofson@gmail.com","username":"Nattgris"},"change_message_id":"be90fd2c10aab6e87f27baff115259ff85e1ce40","unresolved":false,"context_lines":[{"line_number":6,"context_line":" * Last aligned with kernel v5.12:"},{"line_number":7,"context_line":" * - skip the functions hlist_unhashed_lockless() and __list_del_clearprev()"},{"line_number":8,"context_line":" *   that are relevant only in kernel;"},{"line_number":9,"context_line":" * - Remove non-standard GCC extension \"omitted conditional operand\" from"},{"line_number":10,"context_line":" *   list_prepare_entry;"},{"line_number":11,"context_line":" * - expand READ_ONCE, WRITE_ONCE, smp_load_acquire, smp_store_release;"},{"line_number":12,"context_line":" * - make comments compatible with doxygen."},{"line_number":13,"context_line":" */"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"aedf27f1_38ac8884","line":10,"range":{"start_line":9,"start_character":0,"end_line":10,"end_character":24},"updated":"2021-05-27 08:49:44.000000000","message":"Pointless exercise considering the entire idea of this file is totally dependent on another GCC extension (typeof).","commit_id":"92696ac836b8886b23fb3410a9b64d78b4fb01b1"},{"author":{"_account_id":1000438,"name":"R. Diez","email":"rdiez-2006@rd10.de","username":"rdiez"},"change_message_id":"9bcc511e5a1ddb5d8c7eafbd44e99efd439bfb70","unresolved":false,"context_lines":[{"line_number":6,"context_line":" * Last aligned with kernel v5.12:"},{"line_number":7,"context_line":" * - skip the functions hlist_unhashed_lockless() and __list_del_clearprev()"},{"line_number":8,"context_line":" *   that are relevant only in kernel;"},{"line_number":9,"context_line":" * - Remove non-standard GCC extension \"omitted conditional operand\" from"},{"line_number":10,"context_line":" *   list_prepare_entry;"},{"line_number":11,"context_line":" * - expand READ_ONCE, WRITE_ONCE, smp_load_acquire, smp_store_release;"},{"line_number":12,"context_line":" * - make comments compatible with doxygen."},{"line_number":13,"context_line":" */"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"aedf27f1_f8c5a042","line":10,"range":{"start_line":9,"start_character":0,"end_line":10,"end_character":24},"in_reply_to":"aedf27f1_38ac8884","updated":"2021-05-27 09:01:33.000000000","message":"There is a user-reported issue about the \"omitted conditional operand\" extension:\nhttps://sourceforge.net/p/openocd/tickets/257/\nI do not know why that bothered him particularly. Maybe his choice of compiler warnings. Or there is some compiler that implements typeof but not the other extension. We could ask him.\nWe could also state in some requirements document that we need the same compiler extensions that the Linux Kernel relies upon. And then let the user know that we won\u0027t be fixing his issue.","commit_id":"92696ac836b8886b23fb3410a9b64d78b4fb01b1"}]}
