Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4481592rwo; Tue, 25 Jul 2023 06:49:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlE9/A2iZK1xKHnlMhYSZVhUteBzexb8muPmLf/v14K0zB7ZtAIXLDryqmZedGLBd1JNZrFP X-Received: by 2002:a17:906:768e:b0:987:16c6:6ff3 with SMTP id o14-20020a170906768e00b0098716c66ff3mr12466112ejm.38.1690292963220; Tue, 25 Jul 2023 06:49:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690292963; cv=none; d=google.com; s=arc-20160816; b=pMSkEzhPkVsmiI2jZnGmbF+vsa4pIkl7Tp47IxPBfLkSySYawvuCGLs97UeEbkg3aL WS585dvC/HHSYAgrJcrKgCBW0o5xcHPdiEhhlJDPJ61o7jZw6NI0zR74mqwbS2TwISn1 iJV/a3O7L7EfEj0qniQ89jx3j/GWrVOpqyq64vUf5c4Cy7TwIml04By2EjdpKQK9Xmjq E9a6/L+0fskv6WvAun5wZmVm9HcKAkysn9JXiHaB+npofOIeU165yfq5nZrzLBs1030b 0IFm1ipAOBzLjEUKGEHf1gR8FSWwnz4e9q6cHnlNUIsdIoGmDku9w+oTOxtzWor7NZ6G vb/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=5tJzMlchMGvZ+T9JwV3tPym5EeZdFxlI9guvrrUmmhk=; fh=PJu6XACrdo9rrEHH1R9KqgQa69+kkvH6kwea++OieUU=; b=TZ6gLySsELV9BTxay1UT7TjtWrqpewB3w6hI+4anGs56WWfBFBSSxH2vvkNU2XDSKt v+AS7oNayltkdGS4xl6YdNAU+TV8rZ62QAQNIEl3tGC53UypK3qxQlZrW8OuqBEFpTMd r2nvnLH1vZl9+CoBTo7h4/p281qm//WHDqJD68+Ln6PR6qCj1vP6GwQ7mVldXGtUd9PV tr1dQf31Qw8HLJbsKe2ghkPFvU5IEp/Y3ORec7oHMYQ0dw6HV0KJ6CK6Vv7iuHF3K22a ZEIJWyvVFaDSj0B6X8eHDhRZhXuiaXvzt/ZnroMcB/pyHlwHaHkGVLmHPCeqZlhV4Cgu YGsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jCFQ6Y4b; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l7-20020a170906a40700b0098874379199si8273051ejz.163.2023.07.25.06.48.58; Tue, 25 Jul 2023 06:49: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=@linaro.org header.s=google header.b=jCFQ6Y4b; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232248AbjGYNFw (ORCPT + 99 others); Tue, 25 Jul 2023 09:05:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229657AbjGYNFv (ORCPT ); Tue, 25 Jul 2023 09:05:51 -0400 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 245B110B for ; Tue, 25 Jul 2023 06:05:50 -0700 (PDT) Received: by mail-yb1-xb35.google.com with SMTP id 3f1490d57ef6-d124309864dso1791696276.3 for ; Tue, 25 Jul 2023 06:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690290349; x=1690895149; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=5tJzMlchMGvZ+T9JwV3tPym5EeZdFxlI9guvrrUmmhk=; b=jCFQ6Y4bYcEDzy/p6qgLw90rtdZ3Hh30FW2hjrlxQUImuaJ3Y26BClVajbvGVC5aEu em4SfOLA8oRLm9cAhXGV13PZnVwZB/Xzk9vBfyG6BiKsLPemx0S5PGa9jEqhJ5lLEpKZ Bgkqc0rAYTVXrwV+KOFqM7TqNWZMoT+hkq5y2eChtoxpwGFnwF0h74dfVzzfrM74Alvx zNqS+aVvR2eJsv85h8Y1S6sJWlYDfkyONrzU7R2OHOTaFrdp62n5a8gO5h27PuDDm8x6 BXytROdQsd1QkhdtMEkePC2HhqZmmrWm+VALKrIRGZpg8iyHWxKMVyRuskWl6jU4geS4 gaKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690290349; x=1690895149; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=5tJzMlchMGvZ+T9JwV3tPym5EeZdFxlI9guvrrUmmhk=; b=MqBOteCWASfplFYIKxFG+0xosc1VUXl8NxJ+tgXzBEz/SylLu1Mpq0FbdayTZVDWCZ gjSi5n2PG3AaYYiR5DRgr2Br9zqWz7cPZeLRF2fOYXeqg4UYMt5ZGWDBY3LLFN3cYdHw p6hil2nfQKVRO4M7cJEEV0uMr/IMrRKNIIcHWVPRotMKK5Mi4/wU9DaMoUN5rO7zupQy R3AKTvoAv4M563SyXzyd7mRaBWsu3jwuaulXBgK6HAcm6ORSs+ulbWPRGnZm/EKElB3w LGGAmxJIQPc6LZEyfjoQKVyI9zJjfIMPbdA8PgWItAqtIoPpwSFIGnmR9Aw26qKZVjdG tsew== X-Gm-Message-State: ABy/qLYBEjdCoq+ASei/Ya+WZsBHkXroAYBhmxf/K6uzAU9RfUH1E1P7 U3lE018NDPlRCYejp1bTpMNFpwYDFYCTbL48xlcxIg== X-Received: by 2002:a25:7489:0:b0:d10:493:f6e7 with SMTP id p131-20020a257489000000b00d100493f6e7mr5172136ybc.24.1690290349182; Tue, 25 Jul 2023 06:05:49 -0700 (PDT) MIME-Version: 1.0 From: Naresh Kamboju Date: Tue, 25 Jul 2023 18:35:34 +0530 Message-ID: Subject: selftests: connector: proc_filter.c:48:20: error: invalid application of 'sizeof' to an incomplete type 'struct proc_input' To: "open list:KERNEL SELFTEST FRAMEWORK" , open list , lkft-triage@lists.linaro.org, Netdev , clang-built-linux Cc: Anjali Kulkarni , Shuah Khan , Anders Roxell , "David S. Miller" , "Liam R. Howlett" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 selftests: connector: proc_filter build failed with clang-16 due to below warnings / errors on Linux next-20230725. Reported-by: Linux Kernel Functional Testing clang --target=aarch64-linux-gnu -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -Werror=option-ignored -Werror=unused-command-line-argument --target=aarch64-linux-gnu -fintegrated-as -Wall proc_filter.c -o /home/tuxbuild/.cache/tuxmake/builds/1/build/kselftest/connector/proc_filter proc_filter.c:42:12: error: invalid application of 'sizeof' to an incomplete type 'struct proc_input' char buff[NL_MESSAGE_SIZE]; ^~~~~~~~~~~~~~~ proc_filter.c:22:5: note: expanded from macro 'NL_MESSAGE_SIZE' sizeof(struct proc_input)) ^ ~~~~~~~~~~~~~~~~~~~ proc_filter.c:42:12: note: forward declaration of 'struct proc_input' proc_filter.c:22:19: note: expanded from macro 'NL_MESSAGE_SIZE' sizeof(struct proc_input)) ^ proc_filter.c:48:20: error: invalid application of 'sizeof' to an incomplete type 'struct proc_input' hdr->nlmsg_len = NL_MESSAGE_SIZE; ^~~~~~~~~~~~~~~ proc_filter.c:22:5: note: expanded from macro 'NL_MESSAGE_SIZE' sizeof(struct proc_input)) ^ ~~~~~~~~~~~~~~~~~~~ proc_filter.c:42:12: note: forward declaration of 'struct proc_input' char buff[NL_MESSAGE_SIZE]; ^ proc_filter.c:22:19: note: expanded from macro 'NL_MESSAGE_SIZE' sizeof(struct proc_input)) ^ proc_filter.c:64:14: error: invalid application of 'sizeof' to an incomplete type 'struct proc_input' msg->len = sizeof(struct proc_input); ^ ~~~~~~~~~~~~~~~~~~~ proc_filter.c:42:12: note: forward declaration of 'struct proc_input' char buff[NL_MESSAGE_SIZE]; ^ proc_filter.c:22:19: note: expanded from macro 'NL_MESSAGE_SIZE' sizeof(struct proc_input)) ^ proc_filter.c:65:35: error: incomplete definition of type 'struct proc_input' ((struct proc_input *)msg->data)->mcast_op = ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ proc_filter.c:42:12: note: forward declaration of 'struct proc_input' char buff[NL_MESSAGE_SIZE]; ^ proc_filter.c:22:19: note: expanded from macro 'NL_MESSAGE_SIZE' sizeof(struct proc_input)) ^ proc_filter.c:66:31: error: incomplete definition of type 'struct proc_input' ((struct proc_input *)pinp)->mcast_op; ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ proc_filter.c:42:12: note: forward declaration of 'struct proc_input' char buff[NL_MESSAGE_SIZE]; ^ proc_filter.c:22:19: note: expanded from macro 'NL_MESSAGE_SIZE' sizeof(struct proc_input)) ^ proc_filter.c:67:35: error: incomplete definition of type 'struct proc_input' ((struct proc_input *)msg->data)->event_type = ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ proc_filter.c:42:12: note: forward declaration of 'struct proc_input' char buff[NL_MESSAGE_SIZE]; ^ proc_filter.c:22:19: note: expanded from macro 'NL_MESSAGE_SIZE' sizeof(struct proc_input)) ^ proc_filter.c:68:31: error: incomplete definition of type 'struct proc_input' ((struct proc_input *)pinp)->event_type; ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ proc_filter.c:42:12: note: forward declaration of 'struct proc_input' char buff[NL_MESSAGE_SIZE]; ^ proc_filter.c:22:19: note: expanded from macro 'NL_MESSAGE_SIZE' sizeof(struct proc_input)) ^ proc_filter.c:245:20: error: variable has incomplete type 'struct proc_input' struct proc_input input; ^ proc_filter.c:245:9: note: forward declaration of 'struct proc_input' struct proc_input input; ^ proc_filter.c:264:22: error: use of undeclared identifier 'PROC_EVENT_NONZERO_EXIT' input.event_type = PROC_EVENT_NONZERO_EXIT; ^ 9 errors generated. make[4]: Leaving directory '/builds/linux/tools/testing/selftests/connector' Links: - https://storage.tuxsuite.com/public/linaro/lkft/builds/2T3676HpK243gMBLYJCp4OXDmWl/ steps to reproduce: - https://storage.tuxsuite.com/public/linaro/lkft/builds/2T3676HpK243gMBLYJCp4OXDmWl/tuxmake_reproducer.sh -- Linaro LKFT https://lkft.linaro.org