== Series Details == Series: series starting with [1/2] drm/mm: Add an iterator to optimally walk over holes for an allocation URL : https://patchwork.freedesktop.org/series/99597/ State : warning == Summary == $ dim checkpatch origin/drm-tip 737921ca12bb drm/mm: Add an iterator to optimally walk over holes for an allocation -:9: WARNING:TYPO_SPELLING: 'efficently' may be misspelled - perhaps 'efficiently'? #9: size by efficently traversing the rbtree associated with the given ^^^^^^^^^^ -:132: WARNING:TYPO_SPELLING: 'efficently' may be misspelled - perhaps 'efficiently'? #132: FILE: include/drm/drm_mm.h:426: + * appropriate holes within the given range by efficently traversing the ^^^^^^^^^^ -:135: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'pos' - possible side-effects? #135: FILE: include/drm/drm_mm.h:429: +#define drm_mm_for_each_best_hole(pos, mm, range_start, range_end, size, mode) \ + for (pos = drm_mm_first_hole(mm, range_start, range_end, size, mode); \ + pos; \ + pos = mode & DRM_MM_INSERT_ONCE ? \ + NULL : drm_mm_next_hole(mm, hole, size, mode)) -:135: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'mm' - possible side-effects? #135: FILE: include/drm/drm_mm.h:429: +#define drm_mm_for_each_best_hole(pos, mm, range_start, range_end, size, mode) \ + for (pos = drm_mm_first_hole(mm, range_start, range_end, size, mode); \ + pos; \ + pos = mode & DRM_MM_INSERT_ONCE ? \ + NULL : drm_mm_next_hole(mm, hole, size, mode)) -:135: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'size' - possible side-effects? #135: FILE: include/drm/drm_mm.h:429: +#define drm_mm_for_each_best_hole(pos, mm, range_start, range_end, size, mode) \ + for (pos = drm_mm_first_hole(mm, range_start, range_end, size, mode); \ + pos; \ + pos = mode & DRM_MM_INSERT_ONCE ? \ + NULL : drm_mm_next_hole(mm, hole, size, mode)) -:135: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'mode' - possible side-effects? #135: FILE: include/drm/drm_mm.h:429: +#define drm_mm_for_each_best_hole(pos, mm, range_start, range_end, size, mode) \ + for (pos = drm_mm_first_hole(mm, range_start, range_end, size, mode); \ + pos; \ + pos = mode & DRM_MM_INSERT_ONCE ? \ + NULL : drm_mm_next_hole(mm, hole, size, mode)) total: 0 errors, 2 warnings, 4 checks, 109 lines checked 6b91082aa6e9 drm/i915/gem: Don't try to map and fence large scanout buffers (v5)