Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1572991rwb; Fri, 28 Jul 2023 11:21:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlG6L0FsQaNu6HibG3WJs8FsB/U7wB8VsSeb8w8zpwB6qlYo9eSaJXcsih36GGa0NbF0uANb X-Received: by 2002:a05:6a20:7492:b0:133:c12a:4d6 with SMTP id p18-20020a056a20749200b00133c12a04d6mr2267041pzd.1.1690568473799; Fri, 28 Jul 2023 11:21:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690568473; cv=none; d=google.com; s=arc-20160816; b=IVQx+2p2Jo8D9h2WgWyhbQmKORaI8lHcrmaxVTVVmY8ocBPcKXfj3VzFI7MR27OfVd vRHvyhD2X9zyFCsiPMh+8uRhx81uGLSxdYvu/s1dxpfq7QCLD6wXGbWYt5ENBtUxYlt6 vVh6TFVLfYvF6BjMO4sgN1o4T6IC+5tE5+XjsOAdDdNvvND4RXKb0hwqLKfm3olrIiLr HugAwddFMooTjiCd9WLrJ7xY5Jy5DQzPInjmcN17C3c25CYjLHW02NH7xSZVt77azGsE GOi3yuBv1Z0wyB6//iHDpBOL5t6cpSXf+zQBIAHaCJXMZu6LFkMZ1Te/Es94WAOIajGU D8lA== 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:date:subject:cc:to:from :dkim-signature; bh=TyD41TjCbmVuD3Q46FNMhjbjisbmz8hDWYj37AkUnHk=; fh=yCidwXy35mqeYY6eogBmAKa0Gqv9iSvC+rHY2Lis5gk=; b=GdIThy5lSjUspAcKXnubyhwtpDdQVfjSUsMRL9gi2SXgZ3kEK4zM681I/YVnFACWwT bVfQaMBQJWFaSwVkNpEIeIuOfs6y2taagF18EyITXLiFPK1oUwFgrom35xZ6TRu981s3 1vEdUGeuMrm0jb5Tnx6m371J5mrd+BGAhpyN3MbE+jazHLJawUOmMSckI0qOIUvfmzKm T991Sv7N8g8wi95DtsXCeGLWPT/CBejh4D6dT1tciW0ULyi30/KaPHTXmTNNZXMkgPGP tVk88KLWaD6V4t9mPDH0kxUDmZ5g4l4X8Q14tyDgv4a9FXBSgmfusJdoa0VrZyo2e5Da Q+6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=hRWim4l1; 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 u33-20020a631421000000b0055337cf6342si3459582pgl.332.2023.07.28.11.21.00; Fri, 28 Jul 2023 11:21:13 -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=hRWim4l1; 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 S234392AbjG1R3w (ORCPT + 99 others); Fri, 28 Jul 2023 13:29:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231667AbjG1R3h (ORCPT ); Fri, 28 Jul 2023 13:29:37 -0400 Received: from mail-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CED435BF for ; Fri, 28 Jul 2023 10:29:32 -0700 (PDT) Received: by mail-il1-x142.google.com with SMTP id e9e14a558f8ab-348dfefd2d6so2041475ab.1 for ; Fri, 28 Jul 2023 10:29:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1690565371; x=1691170171; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TyD41TjCbmVuD3Q46FNMhjbjisbmz8hDWYj37AkUnHk=; b=hRWim4l1+IGA137PJlwexSNurfpuER9flcSAxOm4LsJLdw4LW3UU3afJMVs4uU00D3 1Qt5g/3GnnH930VtMFyQBycmOwkuWCDxTkUfNRg36JNk6CjHSj/4FJQSx52zavvuSDms r8tm/WVlJJnSmLy94GGd+gUn1klK5b8ETym7Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690565371; x=1691170171; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TyD41TjCbmVuD3Q46FNMhjbjisbmz8hDWYj37AkUnHk=; b=hjxyUQfOgngO1cAaJHZz34REFxH8wo4XPDrebTZfxWuu9td7fDmsBRCihbBrnZLIWJ L5dFxhhJp13nTAjLVsMq0qoJAH+986zy3f43lDJAGsma/3eg1g1I3lAgp5hV5dA9mPIR /R3JqjEJMxavySL0dUjLI8JsIl5ukSdT6cunGVSaWdrrYQmsOPAiqAcJ1WMCR4EpgSd1 1r2HHqlS7AKM/bLzWmcN3QqK7cF161gSfNyWpalFDiaztUg8pU2lHH8V5yhApBohliFy SoqpP68ZstXYvm1urtnjV4GmtnEFUrBf/rLv0SdlTplrgK7undpcXgDXoVLS6jCUIEFi AXvg== X-Gm-Message-State: ABy/qLaV0GIfiNbMmExoNzFs0F4y3Frb/r1LKlwoQIGfhNxgAdewIgUm mEPWqgZ5vhO8hCdIhaLvIbSmZg== X-Received: by 2002:a05:6602:2b91:b0:77a:ee79:652 with SMTP id r17-20020a0566022b9100b0077aee790652mr339190iov.1.1690565371630; Fri, 28 Jul 2023 10:29:31 -0700 (PDT) Received: from shuah-tx13.internal ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id b2-20020a029a02000000b0042b37dda71asm1181050jal.136.2023.07.28.10.29.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jul 2023 10:29:30 -0700 (PDT) From: Shuah Khan To: shuah@kernel.org, Liam.Howlett@oracle.com, anjali.k.kulkarni@oracle.com, naresh.kamboju@linaro.org, kuba@kernel.org Cc: Shuah Khan , davem@davemloft.net, lkft-triage@lists.linaro.org, netdev@vger.kernel.org, llvm@lists.linux.dev, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH next 1/3] selftests:connector: Fix Makefile to include KHDR_INCLUDES Date: Fri, 28 Jul 2023 11:29:26 -0600 Message-Id: X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable 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 The test compile fails with following errors. Fix the Makefile CFLAGS to include KHDR_INCLUDES to pull in uapi defines. gcc -Wall proc_filter.c -o ../tools/testing/selftests/connector/proc_filter proc_filter.c: In function ‘send_message’: proc_filter.c:22:33: error: invalid application of ‘sizeof’ to incomplete type ‘struct proc_input’ 22 | sizeof(struct proc_input)) | ^~~~~~ proc_filter.c:42:19: note: in expansion of macro ‘NL_MESSAGE_SIZE’ 42 | char buff[NL_MESSAGE_SIZE]; | ^~~~~~~~~~~~~~~ proc_filter.c:22:33: error: invalid application of ‘sizeof’ to incomplete type ‘struct proc_input’ 22 | sizeof(struct proc_input)) | ^~~~~~ proc_filter.c:48:34: note: in expansion of macro ‘NL_MESSAGE_SIZE’ 48 | hdr->nlmsg_len = NL_MESSAGE_SIZE; | ^~~~~~~~~~~~~~~ ` Reported-by: Naresh Kamboju Link: https://lore.kernel.org/all/CA+G9fYt=6ysz636XcQ=-KJp7vJcMZ=NjbQBrn77v7vnTcfP2cA@mail.gmail.com/ Signed-off-by: Shuah Khan --- tools/testing/selftests/connector/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/connector/Makefile b/tools/testing/selftests/connector/Makefile index 21c9f3a973a0..92188b9bac5c 100644 --- a/tools/testing/selftests/connector/Makefile +++ b/tools/testing/selftests/connector/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -Wall +CFLAGS += -Wall $(KHDR_INCLUDES) TEST_GEN_PROGS = proc_filter -- 2.39.2