Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp650485rwb; Thu, 27 Jul 2023 19:52:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlGzeccevlsMYemp0+JkIKoCx1/u193unNHZ33cZy9wuxJMOqdgBDI/oIeW0RflyN53UsAH6 X-Received: by 2002:a05:6a00:1414:b0:679:c1c9:1d34 with SMTP id l20-20020a056a00141400b00679c1c91d34mr469642pfu.18.1690512735402; Thu, 27 Jul 2023 19:52:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690512735; cv=none; d=google.com; s=arc-20160816; b=OONfLEW7TOaQLhLUrZYih0bYpL2S4BFI2Sdv2xfBMuJtn7QR02C/uifoZqZLJOEBPJ HkQ9Y8SoFjOtvvS9b0c0J8drgRRfCVZfHkbUzRBf7R8cc9JcwE3GwmTiEfCqQBrzJ1YH 6740O9S9AJiyDnJg6FgkV9dBQtVBT8pk2JvIiAA/dimiSC8DVESBZCq3hgDt9GYswtX5 c0KLZSLEaJFLHNSobb47gWbmtMIIatocDoaIrleS0BLWX7oOMk5l9D/h56dAEnYCGNFk ennFuyVsBcdLO4gXTIi36MFKMl7hi6CPxW3TFbwb/sZTHUxXsbgFaLZgnPEa5j8pvbyg 330A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=pm8EEJ3QVFbZRsnnFWhbHs7DxRk67vj7nVk7xzm5K6A=; fh=YmUtUSJgbWJgV7w1JMyXa0yq9Hgvda0X3KMmiSH1G54=; b=ML136SrWoKq41ZG1ey5P3GNeq2dilXedGUPTaoiRtO4UpRfpRQkFf/u9jjcMLirSbS WBzzLaXkeIFVzb/L1wBX7lCW7oj81ietEjDZDd5d0cRw2pnn4QDb+VE0YTVNEhkqzyOq IdKpjmkFchKk9idjnzuOUFTXAVkxFJp+39yUP7fcyGC9dI7Z7lJihZ8fAvWUWswE80Ka AUKKOZah35BVSyII/5AmK3ao3xHrWw1FCxKeg6pwPCkgBAFRvJy7/MlzsNvbkcIXQkMY CTkJFZy/tLNMG5LXbo3pEaAJSARowsfYluP4btYVbw1iUdxBeckribrho2qdPEwl/FTt gNcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JY3PNodb; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i12-20020a636d0c000000b0055b0dcca8bbsi2225338pgc.21.2023.07.27.19.52.03; Thu, 27 Jul 2023 19:52:15 -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=@kernel.org header.s=k20201202 header.b=JY3PNodb; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230349AbjG1CoC (ORCPT + 99 others); Thu, 27 Jul 2023 22:44:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229786AbjG1CoA (ORCPT ); Thu, 27 Jul 2023 22:44:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6570C35B0; Thu, 27 Jul 2023 19:43:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 598D561FB2; Fri, 28 Jul 2023 02:43:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35AECC433C9; Fri, 28 Jul 2023 02:43:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690512192; bh=pm8EEJ3QVFbZRsnnFWhbHs7DxRk67vj7nVk7xzm5K6A=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JY3PNodbQLvsX/IukNSn5Vy8hxvOWmgmZbr57BdemunG/lL+U0h/YWYpcQqnNiRqs mxnwR/BO7w1OkCYLZx2dQtDyjf5FdlCcRWeHJLR3PL56T00W16VIjBaQiDOjdkh9/m aRtXi96h3XHUh1AXrzpgggQa2nBFAsKoUCLjV8crWrW8ThqmXF2PUbJb0vv40fCCkL BjGH0CVYHb7/4fpBAM3VQyp3+5BAQlznyNuwDqjJHO1CSxxiezQygfHrsqRDYgipl5 Q+q38AFIpg3yybJUMpQaNW9jr5Jf2KT5UKwvNtjrIv1+Atw0zGmyxs3vDU3tsyopi6 TE658BcOcHnzA== Date: Thu, 27 Jul 2023 19:43:11 -0700 From: Jakub Kicinski To: Anjali Kulkarni Cc: Shuah Khan , 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 Subject: Re: selftests: connector: proc_filter.c:48:20: error: invalid application of 'sizeof' to an incomplete type 'struct proc_input' Message-ID: <20230727194311.6a51f285@kernel.org> In-Reply-To: References: <799d6088-e28f-f386-6a00-2291304171a2@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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.