From: Petr Vorel <pvorel@suse.cz>
To: Daniel Kiper <daniel.kiper@oracle.com>
Cc: grub-devel@gnu.org, Michael Chang <mchang@suse.com>,
Mike Gilbert <floppym@gentoo.org>, Jeff Mahoney <jeffm@suse.com>
Subject: Re: [PATCH 1/2] osdep: Introduce major.h and use it
Date: Wed, 14 Jul 2021 16:42:59 +0200 [thread overview]
Message-ID: <YO738x/0yjIirdl0@pevik> (raw)
In-Reply-To: <20210714125500.b6ncgaldn2rxck2z@tomti.i.net-space.pl>
Hi Daniel,
> On Wed, Jul 14, 2021 at 08:54:29AM +0200, Petr Vorel wrote:
> > Hi Daniel,
> > > > On Thu, Jul 08, 2021 at 05:55:57PM +0200, Petr Vorel wrote:
> > > > > Signed-off-by: Petr Vorel <pvorel@suse.cz>
> > > > > ---
> > > > > grub-core/osdep/devmapper/getroot.c | 7 +------
> > > > > grub-core/osdep/devmapper/hostdisk.c | 7 +------
> > > > > grub-core/osdep/linux/getroot.c | 7 +------
> > > > > grub-core/osdep/unix/getroot.c | 7 +------
> > > > > include/grub/osdep/major.h | 30 ++++++++++++++++++++++++++++
> > > > > 5 files changed, 34 insertions(+), 24 deletions(-)
> > > > > create mode 100644 include/grub/osdep/major.h
> > > > May I ask you to explain in the commit message why this patch is needed?
> > > It's just a small cleanup. If you're not against it, sure, I can mention it in
> > > the commit message.
> I am OK with the cleanup.
thx for ack!
> > Ah, you probably mean to put the description from major.h also to the commit
> > message.
> To some extent. I think it should be phrased a bit better in the commit message.
sure.
> > Kind regards,
> > Petr
> > +/*
> > + * Fix for glibc 2.25 is deprecating the namespace pollution of sys/types.h
> > + * injecting major(), minor(), and makedev() into the compilation environment.
> > + * See configure.ac.
> It seems to me "See configure.ac." is not relevant in the GRUB source.
> So, probably it should be replaced with some text from glibc configure.ac.
I didn't know how to link AC_HEADER_MAJOR with include/grub/osdep/major.h.
Because in the future when glibc 2.25 is old enough the header will be removed
and AC_HEADER_MAJOR might be left in configure.ac (name is different from
MAJOR_IN_{MKDEV,SYSMACROS}). But I can note this in commit message instead.
Kind regards,
Petr
> Daniel
next prev parent reply other threads:[~2021-07-14 14:43 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-08 15:55 [PATCH 0/2] linux: use stat instead of udevadm for partition lookup + cleanup Petr Vorel
2021-07-08 15:55 ` [PATCH 1/2] osdep: Introduce major.h and use it Petr Vorel
2021-07-13 17:36 ` Daniel Kiper
2021-07-13 19:07 ` Petr Vorel
2021-07-14 6:54 ` Petr Vorel
2021-07-14 12:55 ` Daniel Kiper
2021-07-14 14:42 ` Petr Vorel [this message]
2021-07-14 14:47 ` Petr Vorel
2021-07-08 15:55 ` [PATCH 2/2] grub2: use stat instead of udevadm for partition lookup Petr Vorel
2021-07-13 9:25 ` Paul Menzel
2021-07-13 10:52 ` Petr Vorel
2021-07-14 6:24 ` Michael Chang
2021-07-14 6:45 ` Petr Vorel
2021-07-14 4:16 ` Michael Chang
2021-07-13 17:48 ` Daniel Kiper
2021-07-13 18:03 ` Jeff Mahoney
2021-07-13 19:10 ` Petr Vorel
2021-07-14 13:00 ` Daniel Kiper
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=YO738x/0yjIirdl0@pevik \
--to=pvorel@suse.cz \
--cc=daniel.kiper@oracle.com \
--cc=floppym@gentoo.org \
--cc=grub-devel@gnu.org \
--cc=jeffm@suse.com \
--cc=mchang@suse.com \
/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.