From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD701C06510 for ; Mon, 1 Jul 2019 08:12:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C078A208C4 for ; Mon, 1 Jul 2019 08:12:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727853AbfGAIMo (ORCPT ); Mon, 1 Jul 2019 04:12:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53772 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726967AbfGAIMo (ORCPT ); Mon, 1 Jul 2019 04:12:44 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 403A7C01F278; Mon, 1 Jul 2019 08:12:44 +0000 (UTC) Received: from localhost (unknown [10.40.205.84]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 976B61001B29; Mon, 1 Jul 2019 08:12:42 +0000 (UTC) Date: Mon, 1 Jul 2019 10:12:39 +0200 From: Jiri Benc To: Song Liu Cc: Networking , bpf , Alexei Starovoitov , Daniel Borkmann , Mathieu Xhonneux Subject: Re: [PATCH bpf] selftests: bpf: fix inlines in test_lwt_seg6local Message-ID: <20190701101239.1ad534bd@redhat.com> In-Reply-To: References: <4fdda0547f90e96bd2ef5d5533ee286b02dd4ce2.1561819374.git.jbenc@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Mon, 01 Jul 2019 08:12:44 +0000 (UTC) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Sat, 29 Jun 2019 11:04:54 -0700, Song Liu wrote: > > Maybe use "__always_inline" as most other tests do? > > I meant "static __always_inline". Sure, I can do that. It doesn't seem to be as consistent as you suggest, though. There are three different forms used in selftests/bpf/progs: static __always_inline static inline __attribute__((__always_inline__)) static inline __attribute__((always_inline)) As this is a bug causing selftests to fail (at least for some clang/llvm versions), how about applying this to bpf.git as a minimal fix and unifying the progs in bpf-next? Thanks, Jiri