
{"id":18590,"date":"2010-12-07T23:59:51","date_gmt":"2010-12-07T18:29:51","guid":{"rendered":"http:\/\/www.froisa.com\/?p=4073"},"modified":"2010-12-07T23:59:51","modified_gmt":"2010-12-07T18:29:51","slug":"kernel-work-log-sound-2","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2010\/12\/07\/kernel-work-log-sound-2\/","title":{"rendered":"coding standard related work for Linux kernel code using checkpatch.pl tool"},"content":{"rendered":"<pre>\n$git fetch origin\n$\n$.\/scripts\/checkpatch.pl --file --terse sound\/sound_core.c | more\nsound\/sound_core.c:71: ERROR: trailing whitespace\nsound\/sound_core.c:83: ERROR: trailing whitespace\nsound\/sound_core.c:85: ERROR: trailing whitespace\nsound\/sound_core.c:115: ERROR: open brace '{' following\nstruct go on the same line\nsound\/sound_core.c:123: WARNING: externs should be avoided in .c files\nsound\/sound_core.c:126: WARNING: externs should be avoided in .c files\nsound\/sound_core.c:155: ERROR: do not initialise statics to 0 or NULL\nsound\/sound_core.c:163: ERROR: that open brace { should be on the\nprevious line\nsound\/sound_core.c:175: WARNING: line over 80 characters\n.\n.\n.\n.\n.\n.\nsound\/sound_core.c:586: ERROR: trailing whitespace\nsound\/sound_core.c:633: ERROR: space required after that ',' (ctx:VxV)\ntotal: 77 errors, 26 warnings, 667 lines checked\n.\n.\n. \n.\n.\n.\ntotal: 73 errors, 26 warnings, 666 lines checked\n\nAs an  alternative to  automatic variables, it  is possible  to define\nvariables that are external to  all functions, that is, variables that\ncan be  accessed by  name by any  function. (This mechanism  is rather\nlike  Fortran COMMON  or Pascal  variables declared  in  the outermost\nblock.) Because  external variables are globally  accessible, they can\nbe  used  instead  of  argument  lists  to  communicate  data  between\nfunctions. Furthermore, because external variables remain in existence\npermanently, rather  than appearing and disappearing  as functions are\ncalled and exited,  they retain their values even  after the functions\nthat set them have returned.\n\n.\n.\n. \n.\ntotal: 28 errors, 23 warnings, 663 lines checked\n\n$.\/scripts\/checkpatch.pl --file --terse sound\/sound_core.c\nsound\/sound_core.c:122: WARNING: externs should be avoided in .c files\nsound\/sound_core.c:125: WARNING: externs should be avoided in .c files\n .\n.\n.\n.\n.\ntotal: 0 errors, 11 warnings, 662 lines checked\n$\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>$git fetch origin $ $.\/scripts\/checkpatch.pl &#8211;file &#8211;terse sound\/sound_core.c | more sound\/sound_core.c:71: ERROR: trailing whitespace sound\/sound_core.c:83: ERROR: trailing whitespace sound\/sound_core.c:85: ERROR: trailing whitespace sound\/sound_core.c:115: ERROR: open brace &#8216;{&#8216; following struct go on the same line sound\/sound_core.c:123: WARNING: externs should be avoided in .c files sound\/sound_core.c:126: WARNING: externs should be avoided in .c files sound\/sound_core.c:155: ERROR: do &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2010\/12\/07\/kernel-work-log-sound-2\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;coding standard related work for Linux kernel code using checkpatch.pl tool&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[83],"tags":[552,774,1507],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/18590"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=18590"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/18590\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=18590"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=18590"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=18590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}