Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1m3g6Q-0002xn-Fp for mharc-grub-devel@gnu.org; Wed, 14 Jul 2021 10:43:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44884) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3g6P-0002wf-B9 for grub-devel@gnu.org; Wed, 14 Jul 2021 10:43:09 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:52626) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m3g6K-0003gO-HD for grub-devel@gnu.org; Wed, 14 Jul 2021 10:43:08 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id C13CA202BC; Wed, 14 Jul 2021 14:43:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1626273781; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4cj7c8GtpMj3XaQbYMPqh0+SNPOrUe2fpMeeB9NY+lg=; b=QgG+aHF9LUFxrPFsGs3e+m4mGV8ekGJf36F2UEUUb1jff7Mn2mNJgHa6OX0UU9o1vHXfFJ Yhgy1Ek58twfrtbSZOdylMe8MF2VpRBmxEw9dkjkiybh0vFEbLRLTezgzv2vmn34zBTHOq USuiKwhKwlmfPJ7ZmzwPDvkMK3DAClQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1626273781; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4cj7c8GtpMj3XaQbYMPqh0+SNPOrUe2fpMeeB9NY+lg=; b=gsuHh6jebud+cVfmAYgvYNPliXeV1TRvrnvJ5EsKFy/e82dERVD1yBpeANGkGbDJ/RKWav bVuQQhlgocKkFsDQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 8851F13C04; Wed, 14 Jul 2021 14:43:01 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id USLMHvX37mBefQAAMHmgww (envelope-from ); Wed, 14 Jul 2021 14:43:01 +0000 Date: Wed, 14 Jul 2021 16:42:59 +0200 From: Petr Vorel To: Daniel Kiper Cc: grub-devel@gnu.org, Michael Chang , Mike Gilbert , Jeff Mahoney Subject: Re: [PATCH 1/2] osdep: Introduce major.h and use it Message-ID: Reply-To: Petr Vorel References: <20210708155558.26466-1-pvorel@suse.cz> <20210708155558.26466-2-pvorel@suse.cz> <20210713173658.fc23yio5tqfwkozi@tomti.i.net-space.pl> <20210714125500.b6ncgaldn2rxck2z@tomti.i.net-space.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210714125500.b6ncgaldn2rxck2z@tomti.i.net-space.pl> Received-SPF: pass client-ip=195.135.220.29; envelope-from=pvorel@suse.cz; helo=smtp-out2.suse.de X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jul 2021 14:43:09 -0000 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 > > > > > --- > > > > > 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