From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A3B6C6153 for ; Wed, 2 Mar 2022 23:38:00 +0000 (UTC) Received: by mail-pl1-f195.google.com with SMTP id z11so2946984pla.7 for ; Wed, 02 Mar 2022 15:38:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=H/ld2l1QfhZw5fycHIZhicQmUAincS/ed7DfQS4GrJo=; b=ViefEvfMbLhz6Ctu96GokkwMfCpWEne+ktDvFtkT3qkLrh7gfDs9PfaXYkJDEYrtui 49WDWIvwvvM6gXpGSZsTB/qPnuPrCIRuQy/XCvrR9PmShSwCO13rPkuZAXJUbvumZUnB AMYP1KPCsbk/ve2rSrCawBXNkTTeUJUizFoGHdL2cdPqwBW37AwuNDjENUvqaQu+AhUl LlPEarJcQ0aawr+1TgicF+xm1Dl3GILQ5WUlRoilbnNUUG2EQIntvKG/NSHEEW8KEOwU MFHmF8y8gkT0DwbMtzKUHTohkZSJ6sIZOd2feeMygKXKIxhVJlI5kFwUybtmuaDB2UEt 9eJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=H/ld2l1QfhZw5fycHIZhicQmUAincS/ed7DfQS4GrJo=; b=uYU/RwKzkh07HzPJ2o4Qz730IjyaSj4bUECL3vy2Q2REwlqQyDT45m2kYTsBxDM8rH lBof7ThbzuvN52O6xm/CSPcmGnEANOJHyFNb2YRPKFwT+KoMpv5B2iRSrilialcqUiGP WxuqdnapuUXhkfFxG0nhg10ay33Yi/aOJR8X5Sy3U8b46DkbOlO/f2vSpcMaL8RDdxdk pBXiHwZ9agEN/D/BzNe5ytQXtYPOdU0UHc5bW4SfzWxlDBvw6OBnp3sNSD+FPpEBNJRH W/WtNt77OuM1281J9sepmIKYkuuogFzljJr103ojVwlKndzFS4s9yOA8vNAHdtxgXuOr I8Qw== X-Gm-Message-State: AOAM533zh4iw1WE4LAxH/5IQCQa52oHiDAnumXYozPWOsvkPKkZTSo4l Cldw0y90knIC+T+/zIoBl2U= X-Google-Smtp-Source: ABdhPJzB/6ywPQ1g5j9dJIjdvx9LpP29jILx7t9+/tzYvRREY7LhT7NAaRPZxLwQNGC4YnwLN9MDHA== X-Received: by 2002:a17:90a:6404:b0:1b9:28a8:935f with SMTP id g4-20020a17090a640400b001b928a8935fmr2231073pjj.197.1646264280108; Wed, 02 Mar 2022 15:38:00 -0800 (PST) Received: from localhost ([2405:201:6014:d0c0:6243:316e:a9e1:adda]) by smtp.gmail.com with ESMTPSA id nk5-20020a17090b194500b001bf01e6e558sm152612pjb.29.2022.03.02.15.37.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 15:37:59 -0800 (PST) Date: Thu, 3 Mar 2022 05:07:57 +0530 From: Kumar Kartikeya Dwivedi To: Nathan Chancellor Cc: Alexei Starovoitov , kernel test robot , bpf , llvm@lists.linux.dev, kbuild-all@lists.01.org, Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Subject: Re: [PATCH bpf-next v1 6/6] selftests/bpf: Add tests for kfunc register offset checks Message-ID: <20220302233757.plavf56gm2uhhneu@apollo.legion> References: <20220301065745.1634848-7-memxor@gmail.com> <202203011937.wMLpkfU3-lkp@intel.com> <20220301115722.jjklznmjsbnkdsf2@apollo.legion> <20220302231401.bvtffkq3oz7g4mxj@apollo.legion> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Mar 03, 2022 at 04:56:37AM IST, Nathan Chancellor wrote: > On Thu, Mar 03, 2022 at 04:44:01AM +0530, Kumar Kartikeya Dwivedi wrote: > > On Thu, Mar 03, 2022 at 04:17:25AM IST, Alexei Starovoitov wrote: > > > On Tue, Mar 1, 2022 at 3:57 AM Kumar Kartikeya Dwivedi wrote: > > > > > > > > On Tue, Mar 01, 2022 at 05:10:31PM IST, kernel test robot wrote: > > > > > Hi Kumar, > > > > > > > > > > Thank you for the patch! Perhaps something to improve: > > > > > > > > > > [auto build test WARNING on bpf-next/master] > > > > > > > > > > url: https://github.com/0day-ci/linux/commits/Kumar-Kartikeya-Dwivedi/Fixes-for-bad-PTR_TO_BTF_ID-offset/20220301-150010 > > > > > base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master > > > > > config: s390-randconfig-r021-20220301 (https://download.01.org/0day-ci/archive/20220301/202203011937.wMLpkfU3-lkp@intel.com/config) > > > > > compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) > > > > > > > > The same warning is emitted on clang for all existing definitions, so I can > > > > respin with a fix for the warning like we do for GCC, otherwise it can also > > > > be a follow up patch. > > > > > > Separate patch is fine. > > > How do you plan on fixing it? > > > What is __diag_ignore equivalent for clang? > > > > Hmm, looks like I'll have to add those in include/linux/compiler-clang.h. Quick > > local testing suggests it will work with _Pragma("clang diagnostic ignored ..."). > > I have a diff that mirrors the GCC infrastructure, which should work for > this, feel free to copy it: > > https://lore.kernel.org/r/20210310225240.4epj2mdmzt4vurr3@archlinux-ax161/ > > If you want to shut up the warning for all supported versions of clang, > switch 130000 for 110000 and __diag_clang_11() for __diag_clang_13(). > That's great, Nathan! I'll add your Signed-off-by to it. > Cheers, > Nathan -- Kartikeya From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============4977664770897834476==" MIME-Version: 1.0 From: Kumar Kartikeya Dwivedi To: kbuild-all@lists.01.org Subject: Re: [PATCH bpf-next v1 6/6] selftests/bpf: Add tests for kfunc register offset checks Date: Thu, 03 Mar 2022 05:07:57 +0530 Message-ID: <20220302233757.plavf56gm2uhhneu@apollo.legion> In-Reply-To: List-Id: --===============4977664770897834476== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Thu, Mar 03, 2022 at 04:56:37AM IST, Nathan Chancellor wrote: > On Thu, Mar 03, 2022 at 04:44:01AM +0530, Kumar Kartikeya Dwivedi wrote: > > On Thu, Mar 03, 2022 at 04:17:25AM IST, Alexei Starovoitov wrote: > > > On Tue, Mar 1, 2022 at 3:57 AM Kumar Kartikeya Dwivedi wrote: > > > > > > > > On Tue, Mar 01, 2022 at 05:10:31PM IST, kernel test robot wrote: > > > > > Hi Kumar, > > > > > > > > > > Thank you for the patch! Perhaps something to improve: > > > > > > > > > > [auto build test WARNING on bpf-next/master] > > > > > > > > > > url: https://github.com/0day-ci/linux/commits/Kumar-Kartikeya-= Dwivedi/Fixes-for-bad-PTR_TO_BTF_ID-offset/20220301-150010 > > > > > base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-n= ext.git master > > > > > config: s390-randconfig-r021-20220301 (https://download.01.org/0d= ay-ci/archive/20220301/202203011937.wMLpkfU3-lkp(a)intel.com/config) > > > > > compiler: clang version 15.0.0 (https://github.com/llvm/llvm-proj= ect d271fc04d5b97b12e6b797c6067d3c96a8d7470e) > > > > > > > > The same warning is emitted on clang for all existing definitions, = so I can > > > > respin with a fix for the warning like we do for GCC, otherwise it = can also > > > > be a follow up patch. > > > > > > Separate patch is fine. > > > How do you plan on fixing it? > > > What is __diag_ignore equivalent for clang? > > > > Hmm, looks like I'll have to add those in include/linux/compiler-clang.= h. Quick > > local testing suggests it will work with _Pragma("clang diagnostic igno= red ..."). > > I have a diff that mirrors the GCC infrastructure, which should work for > this, feel free to copy it: > > https://lore.kernel.org/r/20210310225240.4epj2mdmzt4vurr3(a)archlinux-ax1= 61/ > > If you want to shut up the warning for all supported versions of clang, > switch 130000 for 110000 and __diag_clang_11() for __diag_clang_13(). > That's great, Nathan! I'll add your Signed-off-by to it. > Cheers, > Nathan -- Kartikeya --===============4977664770897834476==--