Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp733760pxu; Thu, 15 Oct 2020 15:22:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlICS79eJbkDuiEgLeKaLH+I1aK1AsNXXx2MqCsJbrC0v1lg7OvmeVQDumfmJie2i1BbKf X-Received: by 2002:a17:906:2c41:: with SMTP id f1mr556154ejh.524.1602800560006; Thu, 15 Oct 2020 15:22:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602800560; cv=none; d=google.com; s=arc-20160816; b=JJBJM+4Olrdhe+902EtwAnpOBUxYyJgy6dFRaM5XUQ/h3yqqfY1xR6oCUT0xViyUuo 4hA4VGuvl2eDMcuaIjqX5dDwUQ6zITZ4CYbNE7spHbADYEP3T5Vq8jUfIVM5GLMaFR1v SuS5WGFogzpjOidNiiuYOYF+b1ypLCx+sv/czHYcWq775vvVnRONrTgPV8YVi1ipYE6l JhktUO7XwMUL1xNUFSuRPNPuEzATme/Ac0cAsGsz9UW7FIIGZiwiRpWgVvQtiCBJ0BtI 3Q4k1cxLuxdL5QnfZ1Ok6ZBAu0o7lXjktCqBUfYaXIwR4yC6/YpidS5avnpy74a+fiar 2FrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=MvYGwaz0dlrqO0ToKe8mWTBI06oEobXn3L/dgm3bavc=; b=HMmt5iIUX7fKZ93dKGFX7divtMsqqj6rW0fLTLGZy0g0unUK8bIeMEWB28KrtdI7Mj AlTtVha25T1ZRY0J/pWW0VFbk8sMV0j29QkQuzw8VB5xDZjsHCiEzvh5bl/pzClVMlQn VDWCArYN9gLPLp67DXoPDhpDkBtuy2Iq4Wlj0LLg93bCnfHvwfmNf3vnrPDlB/jkiDEo fO0f/LLMk/R5H2YFa9kOuVRRUiSCNt3EbuqUgFlCMkNxZLEhDbvO4qp9sIo9lSdkYd8b v1sLJkL1uUXRUACGf22zWMLUcKxxKT+SYKTfw+hlhYv1UlqfY0DG+em8c6uxZdZN2tsy L26Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i26si265061ejk.390.2020.10.15.15.22.18; Thu, 15 Oct 2020 15:22:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388549AbgJOUGY (ORCPT + 99 others); Thu, 15 Oct 2020 16:06:24 -0400 Received: from brightrain.aerifal.cx ([216.12.86.13]:34432 "EHLO brightrain.aerifal.cx" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731107AbgJOUGY (ORCPT ); Thu, 15 Oct 2020 16:06:24 -0400 Date: Thu, 15 Oct 2020 16:06:23 -0400 From: Rich Felker To: Petr Vorel Cc: linux-kernel@vger.kernel.org, musl@lists.openwall.com, Peter Korsgaard , Baruch Siach , Florian Weimer , linux-api@vger.kernel.org, libc-alpha@sourceware.org Subject: Re: [musl] [PATCH v3 1/1] uapi: Move constants from to Message-ID: <20201015200622.GY17637@brightrain.aerifal.cx> References: <20201015190013.8901-1-petr.vorel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201015190013.8901-1-petr.vorel@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 15, 2020 at 09:00:13PM +0200, Petr Vorel wrote: > and include in UAPI headers instead of . > > The reason is to avoid indirect include when using > some network headers: or others -> > -> . > > This indirect include causes on MUSL redefinition of struct sysinfo when > included both and some of UAPI headers: > > In file included from x86_64-buildroot-linux-musl/sysroot/usr/include/linux/kernel.h:5, > from x86_64-buildroot-linux-musl/sysroot/usr/include/linux/netlink.h:5, > from ../include/tst_netlink.h:14, > from tst_crypto.c:13: > x86_64-buildroot-linux-musl/sysroot/usr/include/linux/sysinfo.h:8:8: error: redefinition of ‘struct sysinfo’ > struct sysinfo { > ^~~~~~~ > In file included from ../include/tst_safe_macros.h:15, > from ../include/tst_test.h:93, > from tst_crypto.c:11: > x86_64-buildroot-linux-musl/sysroot/usr/include/sys/sysinfo.h:10:8: note: originally defined here > > Suggested-by: Rich Felker > Signed-off-by: Petr Vorel > --- > Changes v2->v3: > * Move things to instead of creating new header > . > > Kind regards, > Petr > > include/uapi/linux/const.h | 5 +++++ > include/uapi/linux/ethtool.h | 2 +- > include/uapi/linux/kernel.h | 9 +-------- > include/uapi/linux/lightnvm.h | 2 +- > include/uapi/linux/mroute6.h | 2 +- > include/uapi/linux/netfilter/x_tables.h | 2 +- > include/uapi/linux/netlink.h | 2 +- > include/uapi/linux/sysctl.h | 2 +- > 8 files changed, 12 insertions(+), 14 deletions(-) Acked-by: Rich Felker