Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp135034pxb; Wed, 22 Sep 2021 18:08:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSTeW1/lFFiTBO8wZWYZokDP0OCkiaWtNRp39RS2+PW+mduZcS425OBMQsqDXbT7UDqx3W X-Received: by 2002:a17:906:c1c9:: with SMTP id bw9mr2265568ejb.3.1632359280515; Wed, 22 Sep 2021 18:08:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632359280; cv=none; d=google.com; s=arc-20160816; b=UTdi5Ulf6KrKH+HUCDIbrgSTwGWHusXz+Bn+C3E0okufrQ0vCNvECPXzQaSIPAnVmE faZ9mPK4/JPP6CQum69n3XM3bHW0QjpHR7bVR0ug80w1VLJLWZrhNXoNEmJN8Ed3kfrl SNRXwH4mCruwl3Vk9Uav0hGZ5xmhtP63CRjPucd2iM4kgZFZInsFrlUWiUuBebQAQXkM uEaYCKwy/vy83Nu1NyB/OORcVW2uZ3bpqV4LlKE7VU9/ELm9SnqMTTAXEjAcdM5kGMDa kwlnBq+HqNZBEcA537a9GNnDZJvmezB00MWRuJO7HgeO8X0yOLW+UFUuSrMaqZ4AgRUs 9c9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=rIbjJ+5yMV0q9zxmYyQdSNTAJUmbtGHdbziCoAlq7Pg=; b=kwJOyaqHPHjJ+REYURTAo+6rk8nwTC482z1RRXRjtpgwm+GxOFiBr4PnfTUP4M6kFF dMXDJaYSg2wYyga/OIeP1id+DrfRJHCosyLvFfXa/sU2/CTz1HIuX6zn8mvNmhsemYtP 6YurCrDc84fSYv6aWKyTl9QuLvafhhsKQZDPWNedeTzkUD7YFcC+8NN+4HvWIt9TiR9L iszLWar5lNt8gMWcHomFPzFqGqGuxUQooxLnijQcen5Fxb1pOfS+FH/4dtY+LCuhjlyj dtCKjDYcLDsyk5AxJ5KaRcnFjKGlRpXVPvZTAdYmN8qyIT9uQz4FhdJfeqRVXNStgtnn RoiQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iodev.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b25si4476510ejl.528.2021.09.22.18.07.37; Wed, 22 Sep 2021 18:08:00 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iodev.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238757AbhIWBHr (ORCPT + 99 others); Wed, 22 Sep 2021 21:07:47 -0400 Received: from iodev.co.uk ([46.30.189.100]:36328 "EHLO iodev.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237852AbhIWBHr (ORCPT ); Wed, 22 Sep 2021 21:07:47 -0400 X-Greylist: delayed 530 seconds by postgrey-1.27 at vger.kernel.org; Wed, 22 Sep 2021 21:07:46 EDT Received: from localhost (188.red-79-147-55.dynamicip.rima-tde.net [79.147.55.188]) by iodev.co.uk (Postfix) with ESMTPSA id 7991C59135; Thu, 23 Sep 2021 02:57:24 +0200 (CEST) From: Ismael Luceno To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu , Ismael Luceno Subject: [PATCH] uapi: Fix undefined __always_inline on non-glibc systems Date: Thu, 23 Sep 2021 02:57:06 +0200 Message-Id: <20210923005706.1368-1-ismael@iodev.co.uk> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This macro is defined by glibc itself, which makes the issue go unnoticed on those systems. On non-glibc systems it causes build failures on several utilities and libraries, like bpftool and objtool. Fixes: 1d509f2a6ebc ("x86/insn: Support big endian cross-compiles") Fixes: 2d7ce0e8a704 ("tools/virtio: more stubs") Fixes: 3fb321fde22d ("selftests/net: ipv6 flowlabel") Fixes: 50b3ed57dee9 ("selftests/bpf: test bpf flow dissection") Fixes: 9cacf81f8161 ("bpf: Remove extra lock_sock for TCP_ZEROCOPY_RECEIVE") Fixes: a4b2061242ec ("tools include uapi: Grab a copy of linux/in.h") Fixes: b12d6ec09730 ("bpf: btf: add btf print functionality") Fixes: c0dd967818a2 ("tools, include: Grab a copy of linux/erspan.h") Fixes: c4b6014e8bb0 ("tools: Add copy of perf_event.h to tools/include/linux/") Signed-off-by: Ismael Luceno --- include/uapi/linux/byteorder/big_endian.h | 1 + include/uapi/linux/byteorder/little_endian.h | 1 + 2 files changed, 2 insertions(+) diff --git a/include/uapi/linux/byteorder/big_endian.h b/include/uapi/linux/byteorder/big_endian.h index 2199adc6a6c2..80aa5c41a763 100644 --- a/include/uapi/linux/byteorder/big_endian.h +++ b/include/uapi/linux/byteorder/big_endian.h @@ -9,6 +9,7 @@ #define __BIG_ENDIAN 4321 #define __BIG_ENDIAN_BITFIELD #endif +#include #include #include diff --git a/include/uapi/linux/byteorder/little_endian.h b/include/uapi/linux/byteorder/little_endian.h index 601c904fd5cd..cd98982e7523 100644 --- a/include/uapi/linux/byteorder/little_endian.h +++ b/include/uapi/linux/byteorder/little_endian.h @@ -9,6 +9,7 @@ #define __LITTLE_ENDIAN 1234 #define __LITTLE_ENDIAN_BITFIELD #endif +#include #include #include -- 2.33.0