Sched_ext development
 help / color / mirror / Atom feed
* [PATCH sched_ext/for-7.4 0/2] sched_ext: Clean up -rdynamic and LDFLAGS in Makefiles
@ 2026-09-08 13:47 Cheng-Yang Chou
  2026-09-08 13:47 ` [PATCH 1/2] tools/sched_ext: Drop the no-op -rdynamic from CFLAGS Cheng-Yang Chou
  0 siblings, 1 reply; 6+ messages in thread
From: Cheng-Yang Chou @ 2026-09-08 13:47 UTC (permalink / raw)
  To: sched-ext, Tejun Heo, David Vernet, Andrea Righi, Changwoo Min
  Cc: Ching-Chun Huang, Chia-Ping Tsai, chengyang.chou, Cheng-Yang Chou

Building the demo schedulers and selftests with CC=clang-N fails under
-Werror because CFLAGS passes the link-time flag -rdynamic to compile
steps ($(CC) -c):

    $ make CC=clang-21
    clang-21: error: argument unused during compilation: '-rdynamic'
                     [-Werror,-Wunused-command-line-argument]

Patch 1: Drop the inert -rdynamic from tools/sched_ext. Binaries remain
byte-identical before and after.

Patch 2: Move -rdynamic to LDFLAGS and append with '+=' in selftests.

Thanks,
Cheng-Yang

---

Cheng-Yang Chou (2):
  tools/sched_ext: Drop the no-op -rdynamic from CFLAGS
  selftests/sched_ext: Move -rdynamic to LDFLAGS and append to it

 tools/sched_ext/Makefile                   | 2 +-
 tools/testing/selftests/sched_ext/Makefile | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-09-09 14:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-08 13:47 [PATCH sched_ext/for-7.4 0/2] sched_ext: Clean up -rdynamic and LDFLAGS in Makefiles Cheng-Yang Chou
2026-09-08 13:47 ` [PATCH 1/2] tools/sched_ext: Drop the no-op -rdynamic from CFLAGS Cheng-Yang Chou
2026-09-08 13:47   ` [PATCH 2/2] selftests/sched_ext: Move -rdynamic to LDFLAGS and append to it Cheng-Yang Chou
2026-09-08 17:09     ` Tejun Heo
2026-09-09 14:55       ` Cheng-Yang Chou
2026-09-08 17:09   ` [PATCH 1/2] tools/sched_ext: Drop the no-op -rdynamic from CFLAGS Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox