Searched hist:"296200 d3bb649f9646f60abe6e8ebb9fd8d20f4b" (Results 1 – 2 of 2) sorted by relevance
/linux/fs/orangefs/ |
H A D | orangefs-debug.h | diff 296200d3bb649f9646f60abe6e8ebb9fd8d20f4b Sun Oct 01 21:30:48 CEST 2017 Jérémy Lefaure <jeremy.lefaure@lse.epita.fr> orangefs: use ARRAY_SIZE
Using the ARRAY_SIZE macro improves the readability of the code.
Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E; position p; @@ ( (sizeof(E)@p /sizeof(*E)) | (sizeof(E)@p /sizeof(E[...])) | (sizeof(E)@p /sizeof(T)) )
Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
|
H A D | orangefs-utils.c | diff 296200d3bb649f9646f60abe6e8ebb9fd8d20f4b Sun Oct 01 21:30:48 CEST 2017 Jérémy Lefaure <jeremy.lefaure@lse.epita.fr> orangefs: use ARRAY_SIZE
Using the ARRAY_SIZE macro improves the readability of the code.
Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E; position p; @@ ( (sizeof(E)@p /sizeof(*E)) | (sizeof(E)@p /sizeof(E[...])) | (sizeof(E)@p /sizeof(T)) )
Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
|