[PATCH 0/4] sched_ext: Standardize preprocessor comment markers

Cheng-Yang Chou posted 4 patches 4 months ago
kernel/sched/ext.c      | 26 +-------------------------
kernel/sched/ext.h      |  2 +-
kernel/sched/ext_idle.c | 25 +------------------------
kernel/sched/ext_idle.h | 10 ----------
4 files changed, 3 insertions(+), 60 deletions(-)
[PATCH 0/4] sched_ext: Standardize preprocessor comment markers
Posted by Cheng-Yang Chou 4 months ago
This series standardizes `#if/#else/#endif` comment markers in the
`sched/ext*.{c,h}` files for consistency and readability.

It follows the direction of Ingo Molnar's recent cleanup
("[PATCH 00/43] sched: Use the SMP scheduler on UP too"), which reduced
`CONFIG_SMP` complexity and removed many `#ifdef` blocks across the scheduler.

No functional change.

Thanks.

-chengyang

---
Cheng-Yang Chou (4):
  sched_ext: Clean up and standardize #if/#else/#endif markers in
    sched/ext.c
  sched_ext: Clean up and standardize #if/#else/#endif markers in
    sched/ext.h
  sched_ext: Clean up and standardize #if/#else/#endif markers in
    sched/ext_idle.c
  sched_ext: Clean up and standardize #if/#else/#endif markers in
    sched/ext_idle.h

 kernel/sched/ext.c      | 26 +-------------------------
 kernel/sched/ext.h      |  2 +-
 kernel/sched/ext_idle.c | 25 +------------------------
 kernel/sched/ext_idle.h | 10 ----------
 4 files changed, 3 insertions(+), 60 deletions(-)

-- 
2.43.0
Re: [PATCH 0/4] sched_ext: Standardize preprocessor comment markers
Posted by Tejun Heo 3 months, 4 weeks ago
On Wed, Jun 11, 2025 at 09:54:00PM +0800, Cheng-Yang Chou wrote:
> Cheng-Yang Chou (4):
>   sched_ext: Clean up and standardize #if/#else/#endif markers in
>     sched/ext.c
>   sched_ext: Clean up and standardize #if/#else/#endif markers in
>     sched/ext.h
>   sched_ext: Clean up and standardize #if/#else/#endif markers in
>     sched/ext_idle.c
>   sched_ext: Clean up and standardize #if/#else/#endif markers in
>     sched/ext_idle.h

Applied with subject line update. Patch 3 left a stray #else block causing a
build failure. Will post the updated patch as a reply to the patch. For this
sort of changes, please at least do build testing.

Thanks.

-- 
tejun
Re: [PATCH 0/4] sched_ext: Standardize preprocessor comment markers
Posted by Cheng-Yang Chou 3 months, 4 weeks ago
On Fri, Jun 13, 2025 at 02:42:06PM -1000, Tejun Heo wrote:
> Applied with subject line update. Patch 3 left a stray #else block causing a
> build failure. Will post the updated patch as a reply to the patch. For this
> sort of changes, please at least do build testing.

Thanks for pointing that out and for fixing it.

-chengyang