Searched refs:to (Results 1 – 25 of 65) sorted by relevance
123
/scripts/coccinelle/api/ |
D | kstrdup.cocci | 17 expression from,to; 22 - to = kmalloc(strlen(from) + 1,flag); 23 + to = kstrdup(from, flag); 24 ... when != \(from = E1 \| to = E1 \) 25 if (to==NULL || ...) S 26 ... when != \(from = E2 \| to = E2 \) 27 - strcpy(to, from); 30 expression x,from,to; 37 - to = \(kmalloc\|kzalloc\)(x,flag); 38 + to = kstrdup(from, flag); [all …]
|
D | memdup.cocci | 17 expression from,to; 22 to = \(kmalloc@p\|kzalloc@p\)(strlen(from) + 1,flag); 25 expression x,from,to; 32 to = \(kmalloc@p\|kzalloc@p\)(x,flag); 35 expression from,to,size,flag; 40 - to = \(kmalloc@p\|kzalloc@p\)(size,flag); 41 + to = kmemdup(from,size,flag); 42 if (to==NULL || ...) S 43 - memcpy(to, from, size); 46 expression from,to,size,flag; [all …]
|
D | memdup_user.cocci | 2 /// This is a little bit restricted to reduce false positives 18 expression from,to,size,flag; 22 - to = \(kmalloc\|kzalloc\)(size,flag); 23 + to = memdup_user(from,size); 25 - to==NULL 26 + IS_ERR(to) 30 + PTR_ERR(to) 33 - if (copy_from_user(to, from, size) != 0) { 40 expression from,to,size,flag; 45 * to = \(kmalloc@p\|kzalloc@p\)(size,flag); [all …]
|
D | platform_no_drv_owner.cocci | 126 msg = "No need to set .owner here. The core will do it." 133 msg = "No need to set .owner here. The core will do it." 140 msg = "No need to set .owner here. The core will do it." 147 msg = "No need to set .owner here. The core will do it." 156 msg = "No need to set .owner here. The core will do it." 163 msg = "No need to set .owner here. The core will do it." 170 msg = "No need to set .owner here. The core will do it." 177 msg = "No need to set .owner here. The core will do it."
|
D | d_find_alias.cocci | 1 /// Make sure calls to d_find_alias() have a corresponding call to dput(). 60 cocci.print_main("Missing call to dput()",p1) 79 msg = "Missing call to dput() at line %s."
|
D | stream_open.cocci | 5 // them to stream_open. A stream-like file is a file that does not use ppos in 6 // its read and write. Rationale for the conversion is to avoid deadlock in 179 // use mmap and other methods that assume @offset access to file. 225 …"ERROR: %s: .read() can deadlock .write(); change nonseekable_open -> stream_open to fix." % (fops… 232 …"WARNING: %s: .read() and .write() have stream semantic; safe to change nonseekable_open -> stream… 292 …"WARNING: %s: .read() has stream semantic; safe to change nonseekable_open -> stream_open." % (fop… 340 …"WARNING: %s: .write() has stream semantic; safe to change nonseekable_open -> stream_open." % (fo…
|
/scripts/coccinelle/null/ |
D | badzero.cocci | 1 /// Compare pointer-typed values to NULL rather than 0 3 //# This makes an effort to choose between !x and x == NULL. !x is used 4 //# if it has previously been used with the function used to initialize x. 6 //# using the option -all_includes and the option -I to specify an 73 coccilib.org.print_todo(p[0], "WARNING comparing pointer to 0") 79 coccilib.report.print_report(p[0], "WARNING comparing pointer to 0") 119 // This rule may lead to inconsistent path problems, if E is defined in two 171 coccilib.org.print_todo(p[0], "WARNING comparing pointer to 0, suggest !E") 177 coccilib.org.print_todo(p[0], "WARNING comparing pointer to 0") 183 coccilib.report.print_report(p[0], "WARNING comparing pointer to 0, suggest !E") [all …]
|
/scripts/genksyms/ |
D | lex.lex.c_shipped | 35 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, 96 /* C99 requires __STDC__ to be defined as 1. */ 113 /* Promotes a possibly negative, possibly signed char to an unsigned 115 * we want to instead treat it as an 8-bit unsigned char, hence the 120 /* Enter a start condition. This macro really ought to take a parameter, 127 * to BEGIN to return to the state. The YYSTATE alias is for lex 146 /* The state buf must be large enough to hold one state per character in the main buffer. 165 /* Return all but the first "n" matched characters back to the input stream. */ 206 * and can realloc() it to grow it, and should free() it to 212 * if we're using stdio for input, then we want to use getc() [all …]
|
D | parse.tab.c_shipped | 27 Bison output files to be licensed under the GNU General Public 36 /* All symbols defined below should begin with yy or YY, to avoid 39 There are some unavoidable exceptions within include files to 358 to allow for a few compiler-allocated temporary stack slots. */ 405 /* The size of an array large to enough to hold all stacks, each with 413 /* Relocate STACK from its old location to the new one. The 416 stack. Advance YYPTR to a properly aligned location for the next 432 /* Copy COUNT objects from SRC to DST. The source and destination do 465 /* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned 473 /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM [all …]
|
/scripts/ |
D | Kbuild.include | 17 # The temporary file to save gcc -MD generated dependencies must not 41 # filechk is used to check if the content of a generated file is updated. 48 # The rule defined shall write to stdout the content of the new file. 54 # to specify a valid file as first prerequisite (often the kbuild file) 117 # Do not attempt to build with gcc plugins during cc-option tests. 118 # (And this uses delayed resolution so the flags will be up to date.) 148 # Expands to either gcc or clang 238 # if_changed_dep - as if_changed, but uses fixdep to reveal dependencies 252 # Replace >$< with >$$< to preserve $ when reloading the .cmd file 254 # Replace >#< with >$(pound)< to avoid starting a comment in the .cmd file [all …]
|
D | gen_initramfs_list.sh | 21 -u <uid> User ID to map to user ID 0 (root). 23 directory. "squash" forces all files to uid 0. 24 -g <gid> Group ID to map to group ID 0 (root). 26 directory. "squash" forces all files to gid 0. 29 as direct input to initramfs. 35 to reset the root/group mapping.
|
D | config | 22 Set option to "string" 24 Set option to value 38 --file config-file .config file to change (default .config)
|
/scripts/ksymoops/ |
D | README | 1 ksymoops has been removed from the kernel. It was always meant to be a 2 free standing utility, not linked to any particular kernel version. 5 with patches to other utilities in order to give more accurate Oops
|
/scripts/kconfig/ |
D | zconf.lex.c_shipped | 54 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, 116 /* C99 requires __STDC__ to be defined as 1. */ 133 /* Promotes a possibly negative, possibly signed char to an unsigned 135 * we want to instead treat it as an 8-bit unsigned char, hence the 140 /* Enter a start condition. This macro really ought to take a parameter, 147 * to BEGIN to return to the state. The YYSTATE alias is for lex 174 /* The state buf must be large enough to hold one state per character in the main buffer. 193 /* Return all but the first "n" matched characters back to the input stream. */ 234 * and can realloc() it to grow it, and should free() it to 240 * if we're using stdio for input, then we want to use getc() [all …]
|
D | zconf.tab.c_shipped | 27 Bison output files to be licensed under the GNU General Public 36 /* All symbols defined below should begin with yy or YY, to avoid 39 There are some unavoidable exceptions within include files to 281 /* Identity function, used to suppress warnings about constant conditions. */ 335 to allow for a few compiler-allocated temporary stack slots. */ 384 /* The size of an array large to enough to hold all stacks, each with 392 /* Relocate STACK from its old location to the new one. The 395 stack. Advance YYPTR to a properly aligned location for the next 411 /* Copy COUNT objects from SRC to DST. The source and destination do 444 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ [all …]
|
/scripts/coccinelle/misc/ |
D | boolinit.cocci | 136 cocci.print_main("WARNING: Comparison to bool",p) 142 cocci.print_main("WARNING: Comparison of bool to 0/1",p) 148 cocci.print_main("WARNING: Assignment of bool to 0/1",p1) 154 cocci.print_main("ERROR: Assignment of bool to non-0/1 constant",p2) 160 coccilib.report.print_report(p[0],"WARNING: Comparison to bool") 166 coccilib.report.print_report(p[0],"WARNING: Comparison of bool to 0/1") 172 coccilib.report.print_report(p1[0],"WARNING: Assignment of bool to 0/1") 178 coccilib.report.print_report(p2[0],"ERROR: Assignment of bool to non-0/1 constant")
|
D | noderef.cocci | 1 /// sizeof when applied to a pointer typed expression gives the size of 58 cocci.print_main("application of sizeof to pointer",p) 64 msg = "ERROR: application of sizeof to pointer"
|
D | compare_const_fl.cocci | 1 /// Move constants to the right of binary operators. 146 msg = "Move constant to right." 153 msg = "Move constant to right." 162 msg = "Move constant to right." 169 msg = "Move constant to right."
|
D | badty.cocci | 3 //# This makes an effort to find cases where the argument to sizeof is wrong 6 //# to the the memory being allocated. There are false positives in cases the
|
/scripts/dtc/ |
D | dtc-lexer.lex.c_shipped | 36 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, 103 /* Promotes a possibly negative, possibly signed char to an unsigned 105 * we want to instead treat it as an 8-bit unsigned char, hence the 110 /* Enter a start condition. This macro really ought to take a parameter, 117 * to BEGIN to return to the state. The YYSTATE alias is for lex 144 /* The state buf must be large enough to hold one state per character in the main buffer. 169 /* Return all but the first "n" matched characters back to the input stream. */ 205 * and can realloc() it to grow it, and should free() it to 211 * if we're using stdio for input, then we want to use getc() 212 * instead of fread(), to make sure we stop fetching input after [all …]
|
D | dtx_diff | 34 Each DTx is processed by the dtc compiler to produce a sorted dts source 55 the dts source file for include paths to be set properly for '#include' 56 or '/include/' to be processed. 72 add the path of DTx_1 and DTx_2 to the include paths. If DTx_2 includes 282 ERROR: unable to find a 'dtc' program 293 may need to be specified to find 'dtc'. 296 'export KBUILD_OUTPUT=\${dir}' or add \${dir}/scripts/dtc to \$PATH
|
D | dtc-parser.tab.c_shipped | 27 Bison output files to be licensed under the GNU General Public 36 /* All symbols defined below should begin with yy or YY, to avoid 39 There are some unavoidable exceptions within include files to 346 to allow for a few compiler-allocated temporary stack slots. */ 395 /* The size of an array large to enough to hold all stacks, each with 403 /* Relocate STACK from its old location to the new one. The 406 stack. Advance YYPTR to a properly aligned location for the next 422 /* Copy COUNT objects from SRC to DST. The source and destination do 455 /* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned 463 /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM [all …]
|
/scripts/coccinelle/tests/ |
D | doublebitand.cocci | 4 //# such as 0 for | is used to indicate no information, to maintain the 48 cocci.print_main("duplicated argument to & or |",p) 54 coccilib.report.print_report(p[0],"duplicated argument to & or |")
|
/scripts/coccinelle/iterators/ |
D | list_entry_update.cocci | 1 /// list_for_each_entry uses its first argument to get from one element of 2 /// the list to the next, so it is usually not a good idea to reassign it. 4 /// that there is a path from the reassignment back to the top of the loop.
|
/scripts/coccinelle/free/ |
D | devm_free.cocci | 9 /// containing the allocation function. It is thus necessary to make the 11 /// Here this is done using the specific argument text, which is prone to 13 /// request_mem_region variants because this heuristic seems to be a bit
|
123