All of lore.kernel.org
 help / color / mirror / Atom feed
From: mtkaczyk@kernel.org
To: linux-raid@vger.kernel.org
Cc: Mariusz Tkaczyk <mtkaczyk@kernel.org>, Xiao Ni <xni@redhat.com>,
	Nigel Croxon <ncroxon@redhat.com>, Song Liu <song@kernel.org>,
	Yu Kuai <yukuai@kernel.org>
Subject: [PATCH v0 0/3] mdadm: Use kernel raid headers
Date: Wed, 19 Mar 2025 18:10:55 +0100	[thread overview]
Message-ID: <20250319171058.20052-1-mtkaczyk@kernel.org> (raw)

From: Mariusz Tkaczyk <mtkaczyk@kernel.org>

Sending on ML for wider audience. I would like to confirm that there
are no objections to remove klibc support.

Kernel is exporting md_p.h and md_u.h which were newer used by mdadm. This
patchset integrates them with mdadm. There are some missing defines in kernel
headers, so they are redefined in ifndef blocks.

md_p.h includes asm/byteorder.h and it provides endianess casting functions.
These functions are also provided by klibc. To fix this, I removed klibc
support because I determined that mdadm is not compiling with klibc
for at least 3 years.

I also removed uclibc because it is not actively maintained, on other hand we
are working to enable musl:
https://github.com/md-raid-utilities/mdadm/issues/76

Thanks for review and feedback.

CC: Xiao Ni <xni@redhat.com>
CC: Nigel Croxon <ncroxon@redhat.com>
CC: Song Liu <song@kernel.org>
CC: Yu Kuai <yukuai@kernel.org>
Link: https://github.com/md-raid-utilities/mdadm/pull/149

Mariusz Tkaczyk (3):
  mdadm: Remove klibc and uclibc support
  mdadm: include asm/byteorder.h
  mdadm: use kernel raid headers

 Create.c    |   2 -
 Detail.c    |   2 -
 Examine.c   |   2 -
 Grow.c      |   6 ---
 Kill.c      |   2 -
 Makefile    |  34 ++------------
 Manage.c    |   2 -
 Query.c     |   2 -
 README.md   |   3 --
 mdadm.h     | 108 +++++++-------------------------------------
 mdmonitor.c |   2 -
 super1.c    | 126 ++--------------------------------------------------
 udev.c      |   2 -
 13 files changed, 22 insertions(+), 271 deletions(-)

-- 
2.43.0


             reply	other threads:[~2025-03-19 17:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-19 17:10 mtkaczyk [this message]
2025-03-19 17:10 ` [PATCH v0 1/3] mdadm: Remove klibc and uclibc support mtkaczyk
2025-03-19 17:10 ` [PATCH v0 2/3] mdadm: include asm/byteorder.h mtkaczyk
2025-03-19 17:10 ` [PATCH v0 3/3] mdadm: use kernel raid headers mtkaczyk
2025-03-20  5:45 ` [PATCH v0 0/3] mdadm: Use " Xiao Ni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250319171058.20052-1-mtkaczyk@kernel.org \
    --to=mtkaczyk@kernel.org \
    --cc=linux-raid@vger.kernel.org \
    --cc=ncroxon@redhat.com \
    --cc=song@kernel.org \
    --cc=xni@redhat.com \
    --cc=yukuai@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.