Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1576793rwb; Fri, 28 Jul 2023 11:25:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlGwydtxsDlAC/JzXEing5Xluevy4FgY0kAYEn7Yf7AilBxg1QfejTjSZFzJLEyIIU4QMpSb X-Received: by 2002:a17:902:bb8d:b0:1b8:b436:c006 with SMTP id m13-20020a170902bb8d00b001b8b436c006mr2241359pls.12.1690568723647; Fri, 28 Jul 2023 11:25:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690568723; cv=none; d=google.com; s=arc-20160816; b=UNw3xj1ILedM09AcItOIgnSnygYUZ68sgXbGLWA+gLHpHTasFv/2EVD1lK7IHtXsKT irXk3KBiFgpx/xsFszGeXmdZOE59ue6Ldy1yGm67gfk9ujvmAkR8ygjEJ8VUqO5vOMB+ KwF8rIfPHl9E940nCqAx6Pkp0a04LZqm05f7KuSgoR65dKn2Xoc1ud9pommlUzh9Meap 3Ee0xnkHSZTISKLfyyZ3mFg09ZpFVr4q0/gmPFyI1Pa/TonBf1uyYFZZU0StRDSbTmPP 5XdycsSkZzwIWtVhvU8IPspopNWvriqu7ZyucdBXb7dfk169TfPKRmLGb5Ysq5/ZMzbP FP0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=JJok0QwvQYR36IKSjL8u59VRoTv1ncFddhWzUUY4CBU=; fh=yezkxCkiqpBPr8yBRZrDQi+teCYyTP8ee6f0p0Ng5l0=; b=Q3w9QG0Znv1RksI4sEmx0CqLZmcGwHahFgnUZe8sAqM209RG2g3tBp4OUO97eb7OEi LLDuONauYR/ndxWVoVa7J7EP8dRD+csMrt4OpjCJaHTh3ARCnUd95GkErPl2w7VFkHqn FaCPzu5BcquxVICo9tKCWPMf5vN8w7gW6JFPK8665GZOh+lmreNIvPa+MYOgtfJqLCbE 2uC389+q7s4RxuhttOHJ2iowHowm2OVHuQlj7vQhRFaNsYLguzwESYCYitpx28P1p7Au Gew4TjXxwH24LN4wgzFdf/odey6W1E8TGdNVEHx5ePS+8cQUdMKJfqgBEgGUsQdNrimr SXrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=XtTBKKi+; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d4-20020a170903230400b001b890417a0bsi3409713plh.410.2023.07.28.11.25.08; Fri, 28 Jul 2023 11:25:23 -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=@linuxfoundation.org header.s=google header.b=XtTBKKi+; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232904AbjG1ReX (ORCPT + 99 others); Fri, 28 Jul 2023 13:34:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjG1ReW (ORCPT ); Fri, 28 Jul 2023 13:34:22 -0400 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54D4D3A9B for ; Fri, 28 Jul 2023 10:34:19 -0700 (PDT) Received: by mail-io1-xd29.google.com with SMTP id ca18e2360f4ac-77dcff76e35so29412839f.1 for ; Fri, 28 Jul 2023 10:34:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1690565658; x=1691170458; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=JJok0QwvQYR36IKSjL8u59VRoTv1ncFddhWzUUY4CBU=; b=XtTBKKi+apn2fenZceCkRVw6TxyPthsMizJvUJrPqjkPN2XI4pbqgSDa4uDCTSd/FZ Luwhkl++4arII4ixaGEnK+WoPSnFplB1+9+0uYlYuXC3ax638pDV07ieqSvgaYshQcyp rzWhvpVh7VgJH0aZBOO0gZz5olNyXWLlSAzTQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690565658; x=1691170458; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JJok0QwvQYR36IKSjL8u59VRoTv1ncFddhWzUUY4CBU=; b=FLqCtFg7faSv6KhvOpGQob1CYDbkoAuw0Q2Cv6Gh3r4CZqqvOzjiYTN5O949M8lU7r lplrlfzBir61MP/Hl9+8rAyqQq9tkp32IsktuFweNLBsv4UdBH8FN0dTzMYC6q7h94N9 OtU6xKdXW/rBAMNh5GSeQSrLRfW/2w3jK1J/VROVF7jLoZ/fKa2GddS1Fls6jpsIIDGL Bvpq6WIyCsSB04P+icMWj7nuyiudCn6lQv1LTtRWAPsme3uftwKboNLLeU1hMEFQTTKH w5Erwy30s72NZfxIAzNgeDp7jJ3mKyczYzg+mLjMIEa6ALefD7wVP5z6QaNQNpvwVmkn 7fhQ== X-Gm-Message-State: ABy/qLazxPSOhGs6Q/fka2cbQjdTV0RfdH4Ncro9hCVt/dMyE48qqteK Y0NgYxBGo/0b++A8LWHHCaUWBA== X-Received: by 2002:a6b:3b09:0:b0:780:cb36:6f24 with SMTP id i9-20020a6b3b09000000b00780cb366f24mr199256ioa.2.1690565658763; Fri, 28 Jul 2023 10:34:18 -0700 (PDT) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id a10-20020a056638018a00b0042b599b224bsm1244019jaq.121.2023.07.28.10.34.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Jul 2023 10:34:18 -0700 (PDT) Message-ID: Date: Fri, 28 Jul 2023 11:34:17 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: selftests: connector: proc_filter.c:48:20: error: invalid application of 'sizeof' to an incomplete type 'struct proc_input' Content-Language: en-US To: Anjali Kulkarni , Jakub Kicinski Cc: Naresh Kamboju , "open list:KERNEL SELFTEST FRAMEWORK" , open list , "lkft-triage@lists.linaro.org" , Netdev , clang-built-linux , Shuah Khan , Anders Roxell , "David S. Miller" , Liam Howlett , Shuah Khan References: <799d6088-e28f-f386-6a00-2291304171a2@linuxfoundation.org> <20230727194311.6a51f285@kernel.org> <5844361F-E776-4C52-BA8F-7E13D6B4EDE1@oracle.com> From: Shuah Khan In-Reply-To: <5844361F-E776-4C52-BA8F-7E13D6B4EDE1@oracle.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 7/28/23 10:46, Anjali Kulkarni wrote: > > >> On Jul 27, 2023, at 7:43 PM, Jakub Kicinski wrote: >> >> On Fri, 28 Jul 2023 01:38:40 +0000 Anjali Kulkarni wrote: >>> Jakub, >>> Do I need to revert the -f runtime filter option back to compile time >>> and commit with that disabled so the selftest compiles on a kernel on >>> which the new options are not defined? >> >> I'm not 100% sure myself on what's the expectations for building >> selftests against uAPI headers is.. >> >> I _think_ that you're supposed to add an -I$something to >> the CFLAGS in your Makefile. KHDR_INCLUDES maybe? So that the uAPI >> headers from the build get used (rendered by make headers). >> >> Take a look at Documentation/dev-tools/kselftest.rst, I hope >> the answer is somewhere there. > Ok thanks, I will look into your suggestions. > Anjali > I sent a 3 patch series with the fix to this problem and a couple of others I found during testing. thanks, -- Shuah