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 2BB9BC06513 for ; Tue, 2 Jul 2019 17:29:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1437B20989 for ; Tue, 2 Jul 2019 17:29:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726598AbfGBR36 (ORCPT ); Tue, 2 Jul 2019 13:29:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45102 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726193AbfGBR36 (ORCPT ); Tue, 2 Jul 2019 13:29:58 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 00D44882F2; Tue, 2 Jul 2019 17:29:58 +0000 (UTC) Received: from localhost (unknown [10.40.205.84]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3EAD687C4; Tue, 2 Jul 2019 17:29:55 +0000 (UTC) Date: Tue, 2 Jul 2019 19:29:53 +0200 From: Jiri Benc To: Y Song Cc: Song Liu , Networking , bpf , Alexei Starovoitov , Daniel Borkmann , Mathieu Xhonneux Subject: Re: [PATCH bpf] selftests: bpf: fix inlines in test_lwt_seg6local Message-ID: <20190702192953.3fa9ccb5@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.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Tue, 02 Jul 2019 17:29:58 +0000 (UTC) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Mon, 1 Jul 2019 11:39:27 -0700, Y Song wrote: > By default, we have > # define __always_inline inline __attribute__((always_inline)) > > So just use __always_inline should be less verbose in your patch. I'll resubmit, converting everything to __always_inline, targeting bpf-next. > BTW, what compiler did you use have this behavior? clang version 7.0.1 (tags/RELEASE_701/final) LLVM version 7.0.1 > Did you have issues with `static __attribute__((always_inline))`? That seems to work, too. Jiri