Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp689368pxj; Tue, 18 May 2021 11:54:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkSoY6AMMl1Cln1QhRDOShAOMl4uaxqQcG3sECNBn+ylAT+o2vzX+tHnXA+ZBSvU0lXUEN X-Received: by 2002:a50:fb17:: with SMTP id d23mr8488477edq.338.1621364053972; Tue, 18 May 2021 11:54:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621364053; cv=none; d=google.com; s=arc-20160816; b=BWxj5PfxMT+oqGMS87k0EgRuHGNwtuJEbsrH3aepA5Qh/G/anheAz3a42yvDe+KSIA fQzWXSV/8p/Pu3hHTLfXGQVkVRJO9rntrmCluTfLL5IvCPmlmhQX3oEDKynzsdhD9xRe 13/M0fIAWMzk67lxl0mUfVaqxBV7NJN5EJazEpQfJeu0ekTcwOfE05B/PMztfZfFEZQZ fDWTrKsOkIR+9/DNG08AmUIZm527bKL1a5I1jE3yRhUMV5MmA/ChVlhKpeudvjlVRiBy LHQr3gwR4B6hYRv3pGpyXMOpLlaMF0itqV7LkIIHoZBvaicg+tonoNm9woO5ZfWgahNJ uTxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=dQh3WD+V36DcjC0tRHnk3vjCMvP62JeajHSbxzekmLY=; b=M4vuAq0r66uI2Wsn8//mlQN8X96lNnQi7y5G2kFexx8AqfcFF8wlTfObI2jtqalu/h YXZqILvqzJkjQJSn+I36jGxhupSrLnhasonm1oDSiC9pXhemaswV2/oEXjpQP7lSF4Dl CqTlA+uh7OSbLok1OanIUnOVFwXdnwmqZDa4KYBBqMrTVdjthKSRWqMrKKBF3+Q8+0RJ YFLO7kjAbC+6L4oTGxABTSdnffySdSTht1rAVItPfKGZvwuY4t9VvGKKA6Wx+WVGVluN RxRumfPhAgZiSSdwLxk2kQTFi2IOmWIG7mEbRoPlyVRDTWz2Ya9bQKUNcMr4NGSDCpSj xFYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Chnd4Pj2; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bo20si19036306edb.481.2021.05.18.11.53.37; Tue, 18 May 2021 11:54:13 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Chnd4Pj2; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242241AbhEQQRI (ORCPT + 99 others); Mon, 17 May 2021 12:17:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244658AbhEQQCI (ORCPT ); Mon, 17 May 2021 12:02:08 -0400 Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BE33C0467C6; Mon, 17 May 2021 07:45:24 -0700 (PDT) Received: by mail-oi1-x22e.google.com with SMTP id d21so6654049oic.11; Mon, 17 May 2021 07:45:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=dQh3WD+V36DcjC0tRHnk3vjCMvP62JeajHSbxzekmLY=; b=Chnd4Pj2Y8RyVvXPj6M832q/iB/no7+e0YmAxsL/N1cgnjquNf37lXctJQh0LpTK4i S/fL/IIDIZ/vHpz/h7BZX7i5D6j/mipF3o9G/Zm1huxLajcP0lC3cEesQhzKcx5latte ksudygWrQksl2LzfpcmkSFlDBUGw0pJEpVmvs9fGPAJSlV7ife2arQdoXchX+9BgekG8 fmbt1i8U0+nGpAEhrjsL7xNqXZB11aXEpRaZStKTG1E5wl89N9Pn9dtYFp20KP/pIKUN w2i0KliAKI7RZelYlQIlUAua6B7+dLj+yXTa9wQJ9pzcfaa5GmvqcKKysxMcsItXSDvb ZpEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=dQh3WD+V36DcjC0tRHnk3vjCMvP62JeajHSbxzekmLY=; b=t4BNKK95ocgjWONwp0LTP7jLyrRbb+Fhc+CkLNKlQsUeY4/hBaIuARjLdu2t6oyHk0 cDYrHJhLKRoJJRYJh5m9yIZ7VDtdM6cK1IRQg6cXZdxQIXnfO0GXoldXymUW1IGIXXRG 53q3TGRGb4qtcTCur/7Lb8v5x8XbFdm1AINH01c9Mu7NO23OMHMiiXQlX4Sa+euqRP61 d3JCCyCxUrAaV29hOQCBrqD1VNy7csfwxF5wxiF/oGAJhUSJYpThVrtS+PBJOHvsOuxh oTkv+GiWztMg83svClOwxSiiJXeXiN+rqlqneQvh/+U9DwfZKuov1VUl9sCX6LqVE/XI 31bw== X-Gm-Message-State: AOAM533d53bC4+1osFrjTs5BoY1W3xGASWK3IoyF1W/YNsCAQpR1a4Pb mMsOACv3GcRq9BSV6dhY2ks= X-Received: by 2002:aca:3684:: with SMTP id d126mr90498oia.129.1621262723613; Mon, 17 May 2021 07:45:23 -0700 (PDT) Received: from Davids-MacBook-Pro.local ([8.48.134.22]) by smtp.googlemail.com with ESMTPSA id o15sm3096753ota.61.2021.05.17.07.45.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 May 2021 07:45:23 -0700 (PDT) Subject: Re: [PATCH iproute2-next v3] lib/fs: fix issue when {name,open}_to_handle_at() is not implemented To: Heiko Thiery , netdev@vger.kernel.org Cc: petr.vorel@gmail.com, linux-kernel@vger.kernel.org, stephen@networkplumber.org, Dmitry Yakunin References: <20210508064925.8045-1-heiko.thiery@gmail.com> From: David Ahern Message-ID: Date: Mon, 17 May 2021 08:45:22 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210508064925.8045-1-heiko.thiery@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/8/21 12:49 AM, Heiko Thiery wrote: > With commit d5e6ee0dac64 the usage of functions name_to_handle_at() and > open_by_handle_at() are introduced. But these function are not available > e.g. in uclibc-ng < 1.0.35. To have a backward compatibility check for the > availability in the configure script and in case of absence do a direct > syscall. > > Fixes: d5e6ee0dac64 ("ss: introduce cgroup2 cache and helper functions") > Cc: Dmitry Yakunin > Cc: Petr Vorel > Signed-off-by: Heiko Thiery > --- > v3: > - use correct syscall number (thanks to Petr Vorel) > - add #include (thanks to Petr Vorel) > - remove bogus parameters (thanks to Petr Vorel) > - fix #ifdef (thanks to Petr Vorel) > - added Fixes tag (thanks to David Ahern) > - build test with buildroot 2020.08.3 using uclibc 1.0.34 > > v2: > - small correction to subject > - removed IP_CONFIG_HANDLE_AT:=y option since it is not required > - fix indentation in check function > - removed empty lines (thanks to Petr Vorel) > - add #define _GNU_SOURCE in check (thanks to Petr Vorel) > - check only for name_to_handle_at (thanks to Petr Vorel) > > configure | 28 ++++++++++++++++++++++++++++ > lib/fs.c | 25 +++++++++++++++++++++++++ > 2 files changed, 53 insertions(+) > applied to iproute2-next.