Commit 74fd4f3
checkpatch: improve the embedded function name test for patch contexts
The current test works only for a single patch context as it is done in
the foreach ($rawlines) loop that precedes the loop where the actual
$context_function variable is used.
Move the set of $context_function into the foreach (@lines) loop where
it is useful for each patch context.
Link: http://lkml.kernel.org/r/6c675a31c74fbfad4fc45b9f462303d60ca2a283.1493486091.git.joe@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent 75ad8c5 commit 74fd4f3
1 file changed
Lines changed: 8 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2213 | 2213 | | |
2214 | 2214 | | |
2215 | 2215 | | |
2216 | | - | |
2217 | | - | |
| 2216 | + | |
2218 | 2217 | | |
2219 | 2218 | | |
2220 | 2219 | | |
| |||
2223 | 2222 | | |
2224 | 2223 | | |
2225 | 2224 | | |
2226 | | - | |
2227 | | - | |
2228 | | - | |
2229 | | - | |
2230 | | - | |
2231 | | - | |
2232 | 2225 | | |
2233 | 2226 | | |
2234 | 2227 | | |
| |||
2299 | 2292 | | |
2300 | 2293 | | |
2301 | 2294 | | |
2302 | | - | |
| 2295 | + | |
| 2296 | + | |
2303 | 2297 | | |
2304 | 2298 | | |
2305 | 2299 | | |
| |||
2315 | 2309 | | |
2316 | 2310 | | |
2317 | 2311 | | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
2318 | 2317 | | |
2319 | 2318 | | |
2320 | 2319 | | |
| |||
0 commit comments