Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp460694rwi; Mon, 31 Oct 2022 03:51:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4eMIepgmPR8cINse08SvQgHARB2p3x2gZ2Tlq9vRcTMe16vC0m2GPaZz5I6n4SRnUbkvEf X-Received: by 2002:a17:90b:128a:b0:213:26c2:2c06 with SMTP id fw10-20020a17090b128a00b0021326c22c06mr30655132pjb.26.1667213481047; Mon, 31 Oct 2022 03:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667213481; cv=none; d=google.com; s=arc-20160816; b=DL+eh7SjKav95DdYaL8Y21P2ijwsUExRBWJcBEURiXPWGWYtZTfvzceQXt2Ec9uWND j8XvN1fWZPfdB7oD1/sMKM3VGwa4d4+lnwmgVI1J0CY0i8oWVL1UnmpcdK4iCYuj4ont 6bwKJ7WYgxEpU1p9r9AfkNhBeQUSsxK57EBjIvqQO8043r81y2D5KmmGA/ccfVL8p5Sh HcW/kBBB7V8PM051H03IQuLrLZUIuc2pcCWXWpuU0URGwXgMfxZ5gvXehZfCVvaxeeMI 5RsmY8fNpBOEKmbgIs+jOW8m0QpDeRfOLwORsurX0iff8+7ua2tYqhOm+5thtDxE/vQz Iakg== 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 :message-id:date:subject:cc:to:from; bh=UhA4M1JNMJ4Sjo6rW62SnuoirJyZeTBEupkmU3WUWtU=; b=rDyAvgX+PPwtZXLv/4Mm9xbITNs6UcNSw+EfxOU2/EAffN3oDaB9Y5ZilUndTu3pzH w18NgZ42tKawdiXuGfWOEpe7CD7Ra7LcsU3v0XzQ1CsgQXs/E+4rhvM12h02rrnN89Vj JKBS1AqVk9u1jtKKwPXtx+uD8vighGp1hL1+zLHE6ODkxo+QSLZqBz3vd7e9hPZ9hwt5 fTcTxupmswuTGyqJzxxXRjQKnU97jKpSPQqYWO9KYlDNjJqAU5sutdKoLJHFC29DTzJ+ skm1PXQ5a1qHtQa2643dnnfGNCXlIQ2LiSkPla6zhfxlcNAbl78S/kxJyl0NvKlOtODd 4g5Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s8-20020a655848000000b0041c506dde92si8407123pgr.636.2022.10.31.03.51.07; Mon, 31 Oct 2022 03:51:21 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230098AbiJaJ6k (ORCPT + 99 others); Mon, 31 Oct 2022 05:58:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229785AbiJaJ6h (ORCPT ); Mon, 31 Oct 2022 05:58:37 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D6427662; Mon, 31 Oct 2022 02:58:36 -0700 (PDT) Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4N17l83dwDzVjKs; Mon, 31 Oct 2022 17:53:40 +0800 (CST) Received: from kwepemm600003.china.huawei.com (7.193.23.202) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 31 Oct 2022 17:58:35 +0800 Received: from ubuntu1804.huawei.com (10.67.174.61) by kwepemm600003.china.huawei.com (7.193.23.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 31 Oct 2022 17:58:34 +0800 From: Yang Jihong To: , , , , , , , , , CC: Subject: [PATCH] uapi: Add missing linux/stddef.h header file to in.h Date: Mon, 31 Oct 2022 17:55:17 +0800 Message-ID: <20221031095517.100297-1-yangjihong1@huawei.com> X-Mailer: git-send-email 2.30.GIT MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.174.61] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600003.china.huawei.com (7.193.23.202) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 commit 5854a09b4957 ("net/ipv4: Use __DECLARE_FLEX_ARRAY() helper") does not include "linux/stddef.h" header file, and tools headers update linux/in.h copy, BPF prog fails to be compiled: CLNG-BPF [test_maps] bpf_flow.bpf.o CLNG-BPF [test_maps] cgroup_skb_sk_lookup_kern.bpf.o In file included from progs/cgroup_skb_sk_lookup_kern.c:9: /root/linux/tools/include/uapi/linux/in.h:199:3: error: type name requires a specifier or qualifier __DECLARE_FLEX_ARRAY(__be32, imsf_slist_flex); ^ /root/linux/tools/include/uapi/linux/in.h:199:32: error: type specifier missing, defaults to 'int' [-Werror,-Wimplicit-int] __DECLARE_FLEX_ARRAY(__be32, imsf_slist_flex); ^ 2 errors generated. To maintain consistency, add missing header file to kernel. Fixes: 5854a09b4957 ("net/ipv4: Use __DECLARE_FLEX_ARRAY() helper") Signed-off-by: Yang Jihong --- include/uapi/linux/in.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/in.h b/include/uapi/linux/in.h index f243ce665f74..79015665daf1 100644 --- a/include/uapi/linux/in.h +++ b/include/uapi/linux/in.h @@ -22,6 +22,7 @@ #include #include #include +#include #if __UAPI_DEF_IN_IPPROTO /* Standard well-defined IP protocols. */ -- 2.30.GIT