Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp591251rwi; Mon, 31 Oct 2022 05:26:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4YPkMBHKQ2ZB3ZCK3Is/n6J8mwqH3+vgFlpfoQY2jYmQCjdZztbRDrmCGleoQT/fOzWbrg X-Received: by 2002:a17:906:1ec5:b0:78d:b3d1:183b with SMTP id m5-20020a1709061ec500b0078db3d1183bmr12829236ejj.709.1667219171928; Mon, 31 Oct 2022 05:26:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667219171; cv=none; d=google.com; s=arc-20160816; b=Axxjj29dhVQb0KBvKB9kvsQR2PlavytyPa3FlVOd3Bps4F5HFKGJbVaD66mdx1tKve 3bTBD9sGFXJd5hhPNsl5jLdZPQGN5ZNi2oySqVuB1Q19VW3mCXP4p0v09NDn27KUgXZC o5BNU+9o4UaiYmv5cxh6SCHKRrnYFSNmhWVJTUaao+H4QPICV70Krp3714bE9R7B44Rb J/4MLW3gQmvWbsTSr0vtPlSgxEl62CNmT5yUea2pefG4rR0aatBifdxCp2aefVz4qOOG dJGBx8GEox5UUBb4Tl0reIbJxKsFrp3T9hFvbf1jSFPvGTOcbLStp0FfA6QYzTyXAQM9 rJkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:date:from:dkim-signature; bh=hsqRH+vO+rjaZ62MIoRDwiYLhcjXqUkBqkIdEzd2p0M=; b=tc8ef4x2RJ9xfXlFI0zeYdomD5Rw4YBaw7xBsALHsOk4xxr0xS86k1foIb4qV+TLO1 ogtArLopmXJdzN9/bbT+BZ2nXfInfeGzJ9w45QtW6JLuvhafQ20qha8i4TahW8ynuA3x 1NLo4uF4irxMcwD9LyZm95EwGGTF3OF1/eXRRkrVBgT6l1U+INjafhDeZ3wMGnzn7oOF wlpXk6WQ9tP1z3VjrRnrpdpYVuuxUFGeA4MX0BWV14/Ok3uAVTQRhx9VhnG7H19t0E1Z STtJ0xQ9bZHy2kyRqf6a7dTtut9YHCzjPExcxjp/04Plz9b8KJJNDoEegQOXCODGK5ZI G+Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="E/YrgHrg"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z15-20020a17090655cf00b00782b261ea1asi5658919ejp.67.2022.10.31.05.25.47; Mon, 31 Oct 2022 05:26:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="E/YrgHrg"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231305AbiJaMRX (ORCPT + 98 others); Mon, 31 Oct 2022 08:17:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231276AbiJaMRV (ORCPT ); Mon, 31 Oct 2022 08:17:21 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5468EE23; Mon, 31 Oct 2022 05:17:20 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id z18so12141707edb.9; Mon, 31 Oct 2022 05:17:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=hsqRH+vO+rjaZ62MIoRDwiYLhcjXqUkBqkIdEzd2p0M=; b=E/YrgHrgTe/w6zX/2SRunSlHYpdYElXZLU3AxNYI9hIKs7kK/7v7QXPBv9BO2EV7Kr rk+1HLKp1TJrN85hH3TCVY1ZLiMu2sOon3qSs73rNYAoPgy+dBa9uYSWeeVD/82jcHTw u5r0RB+Pgc+0d6kqyX8CPfF9LGe3syTzl/6UW+tEPOSnGB99mqdb/hVKzqtLA1msNm2M lgQFsVFRq+03z80r6kWF8iWynJxI8u0ywI/mQ42QEo0yo1udMQ10L58I2uJJea8SuJZH kBdAdL/mrqBvDy8Px7IuMzxUoVJy2FAwf1Y2mud6ekY3UOmdqXK+HG3lMbsdrRdifoys PPCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=hsqRH+vO+rjaZ62MIoRDwiYLhcjXqUkBqkIdEzd2p0M=; b=6XDrV8z3m5T4ZuIKyKmfLiBua+YchIbLJ0fj9QwXViYw0JWQ+dUEpYMRxXG+CIYqlU bPDQ3qayD7297kF3epIS6BAv8nuR1Ufh35R2rIRjtU4+4T5gjQGewnVspnLD6Jzx/2Go ef4R2GO9bwQY/ueGqm5OydpuMUdCV0aSsRRZ2fJz/+uWzrgBwqem0R+8tUDUHBf3FLNA Prd17oEz25GZlcIJdO8470uKLObQW9msATKpKwLlSg0ZaihNsNtGkxXiFS+nCgt070zH ozMoqtPwmhOl4aeMcEskUpQaEC4msyl8ZPkV1MByNYlv0yCKIIw0rCkDQxAkivHAawYX R6Bg== X-Gm-Message-State: ACrzQf3QunuTI+DZGeKdtmzfcYdu4sI+9z+dXzgeVlqeaqYxW1QEQLiE UYi/dnRUHm/AA3EpMfKGbfokJCEtHVQ= X-Received: by 2002:a05:6402:1619:b0:462:b059:9655 with SMTP id f25-20020a056402161900b00462b0599655mr13049228edv.316.1667218639338; Mon, 31 Oct 2022 05:17:19 -0700 (PDT) Received: from krava (2001-1ae9-1c2-4c00-726e-c10f-8833-ff22.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:726e:c10f:8833:ff22]) by smtp.gmail.com with ESMTPSA id o17-20020aa7dd51000000b004637489cf08sm723801edw.88.2022.10.31.05.17.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Oct 2022 05:17:18 -0700 (PDT) From: Jiri Olsa X-Google-Original-From: Jiri Olsa Date: Mon, 31 Oct 2022 13:17:16 +0100 To: David Laight Cc: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Peter Zijlstra Subject: Re: Linux 6.1-rc3 build fail in include/linux/bpf.h Message-ID: References: <439d8dc735bb4858875377df67f1b29a@AcuMS.aculab.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <439d8dc735bb4858875377df67f1b29a@AcuMS.aculab.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 31, 2022 at 11:14:31AM +0000, David Laight wrote: > The 6.1-rc3 sources fail to build because bpf.h unconditionally > #define BPF_DISPATCHER_ATTRIBUTES __attribute__((patchable_function_entry(5))) > for X86_64 builds. > > I'm pretty sure that should depend on some other options > since the compiler isn't required to support it. > (The gcc 7.5.0 on my Ubunti 18.04 system certainly doesn't) > > The only other reference to that attribute is in the definition > of 'notrace' in compiler.h. I guess we need to make some __has_attribute check and make all that conditional cc-ing Peter jirka > > David > > - > Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK > Registration No: 1397386 (Wales) >