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=-0.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS autolearn=unavailable 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 072F0C04AAD for ; Mon, 6 May 2019 21:00:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CC98E2087F for ; Mon, 6 May 2019 21:00:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=netronome-com.20150623.gappssmtp.com header.i=@netronome-com.20150623.gappssmtp.com header.b="A/lSskv2" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726602AbfEFVAb (ORCPT ); Mon, 6 May 2019 17:00:31 -0400 Received: from mail-qt1-f182.google.com ([209.85.160.182]:37334 "EHLO mail-qt1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726118AbfEFVAb (ORCPT ); Mon, 6 May 2019 17:00:31 -0400 Received: by mail-qt1-f182.google.com with SMTP id o7so4598649qtp.4 for ; Mon, 06 May 2019 14:00:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=3wJRQ6VKWRxL27a5QxEQoOQCJUnNTmSip3XDWhvdBaQ=; b=A/lSskv2O+Uy1ln/4WsjLObJSCsYlFzGzAWfWBpCgQp9nJ+T99/ChlO5vaAVXQQYq1 kDaLE662WickGYjmxtVJdcvsq7kbFg4eC4W16FIdZCN7C2VGClGEdQDMahn3ZhHRkxpz xIiZn7TZq4GQZTSQxsdL3I9hj6RlHCaA9RvYcxeBBfDIV/gJAtL4IGK1GyNFw5ACccvr cZ2eUhhH0dV8ZgUOM7Un1kQSqKXNjDsZnpU1zGcN0N71PRXpRelhx4MLGkHG5W9T6Npv y9Wtzcv1SgLUUVHhBJVhRcCciD8eRu8h4dAs/HDyUMOPXIM1H+KtNqfsI1DVDUYMxByn pMyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=3wJRQ6VKWRxL27a5QxEQoOQCJUnNTmSip3XDWhvdBaQ=; b=Vrc/teVSjRetaS4PMRi21LsaPmSFkow19kc8oqrtDJliQ77rHH2AFwFw/90tPiY+6T oOlMXPXTsZhV7gd+u+66fnEiCFnV2o3JXCipoBLltNX7ZwROxAI9ll6ufnMpO1R4S9bW GVzguOyBe8dhLK9N64ivXsoFtcz73gCwFgSwFfA0RGhDxoPwb2nl2BwyVmM0NchhlHS5 X3xR91Hj/80sW22Bxd/gzTEhWBGtgcU3X7S3lmrDpheu9PtCetI/tvKzzxqmG9ysCOoC TmtBI/IumIBenHgwQf4eWIpxntGi51FRzR73E6SIDZz9gBcLlBU4n4iAnXfxUF8Ajtxq LkWA== X-Gm-Message-State: APjAAAUJi1W795YTKENgs794uDvpYG2GvUjFKjnOwpl/mUB+DQXn9yFq kdsH274Qsh7AZHz1Yp054CvNwQ== X-Google-Smtp-Source: APXvYqx/0CijmHQT5nAegd8Iq3bmLEJ/dSOVuelYyGhdUDs4JSPE3rCKI5bh09sk4kBRUcTwpfs8uA== X-Received: by 2002:ac8:743:: with SMTP id k3mr20214481qth.207.1557176430476; Mon, 06 May 2019 14:00:30 -0700 (PDT) Received: from cakuba.hsd1.ca.comcast.net ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id 67sm5934254qtc.29.2019.05.06.14.00.28 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 06 May 2019 14:00:30 -0700 (PDT) Date: Mon, 6 May 2019 14:00:22 -0700 From: Jakub Kicinski To: Oleksandr Natalenko Cc: "David S. Miller" , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Jesper Dangaard Brouer , John Fastabend , netdev@vger.kernel.org, bpf@vger.kernel.org, oss-drivers@netronome.com, linux-kernel@vger.kernel.org, xdp-newbies@vger.kernel.org, valdis@vt.edu Subject: Re: netronome/nfp/bpf/jit.c cannot be build with -O3 Message-ID: <20190506140022.188d2b84@cakuba.hsd1.ca.comcast.net> In-Reply-To: <673b885183fb64f1cbb3ed2387524077@natalenko.name> References: <673b885183fb64f1cbb3ed2387524077@natalenko.name> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Mon, 06 May 2019 21:40:07 +0200, Oleksandr Natalenko wrote: > Hi. > > Obligatory disclaimer: building the kernel with -O3 is a non-standard > thing done via this patch [1], but I've asked people in #kernelnewbies, > and it was suggested that the issue should be still investigated. > > So, with v5.1 kernel release I cannot build the kernel with -O3 anymore. > It fails as shown below: Any chance you could try different compiler versions? The code in question does not look too unusual. Could you try if removing FIELD_FIT() on line 326 makes a difference?