Home
last modified time | relevance | path

Searched refs:array (Results 1 – 3 of 3) sorted by relevance

/scripts/coccinelle/misc/
Darray_size.cocci2 /// Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element
5 //# where there is a division of sizeof the array by the sizeof its first
/scripts/dtc/
Ddtc-parser.y33 } array; member
68 %type <array> arrayprefix
/scripts/
Dcheckpatch.pl273 my @array = split(/,/, join(',', @$arrayRef));
274 foreach my $word (@array) {
3993 my $array = $1;
3994 …if ($line =~ m@\b(sizeof\s*\(\s*\Q$array\E\s*\)\s*/\s*sizeof\s*\(\s*\Q$array\E\s*\[\s*0\s*\]\s*\))…
3997 "Prefer ARRAY_SIZE($array)\n" . $herecurr) &&
3999 $fixed[$fixlinenr] =~ s/\Q$array_div\E/ARRAY_SIZE($array)/;