Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1217846rwi; Thu, 3 Nov 2022 02:35:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6s+bxQs8WASW1WZkQgaUtaRE/f1jQEaDRfXMdld/d5JPj5las3RZYM8OKrSoSrLEmU5TQ1 X-Received: by 2002:a17:90a:db17:b0:216:4466:a1e2 with SMTP id g23-20020a17090adb1700b002164466a1e2mr1093848pjv.216.1667468117572; Thu, 03 Nov 2022 02:35:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667468117; cv=none; d=google.com; s=arc-20160816; b=yZTsaMNf1fT09ifP8q5oYKcYS1tQiCWaW4c/jaT9ZEGcIl8HvjoFIyvMcwgtcW8RZT YE9Ty6mDJ6tgT+XaUyEbPcbzA2qKLItQ2FVcvEQ9Gb3Fdu3a/YDD3s2JKHCPsns933OR JQ50yc7TSe/RcQIkxetbv8C+tdAgSoHZVWwpMRC4vxxKBXSXu3UtylIasDk5la4RL4hG 0N359FHFBuMe1CZpWx2bb/BWCLoCUkaz6ljq1ymeT8QJQ+T6EPEfIG8ktihYNrZO8uCw l686Pm4tKO2dOdZc5w8CEhOW8IU+f5Gsbu6Htex8T05PUZYVvkkPpwpKUaf/w/kLfiKU K+jQ== 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=KSCP+mLQrUfQdu1JUESznLXnY+e5treEZjoK7eEMcYc=; b=GODfY2mdqH7FTkMdQnFJVTEXjW6q+TTrHDPEexsOEkxv4cqixLJa2Hl9CUB1PVDW3D YD6QinIQi20Oyg0+cekCqFOYAKKoaXFP8bgWL0zNg0T9eCvELLpomznhCg6I3g4RG3UD DY3orK+jugRrpSQltyR0/1M/rXGjOqYvP+B94kJ/ZmLln9SmYwoGAx13vpdSJtMLmAVH qcBBbqnYZHdfZzBFzuPnoIL9FBn8Q5zqi8pFX98t0sIofq6pc/n/QWYHQ4jxdAL9Yyah 4LtTr41/pX26f+vW3NpMoLw/9NznEQS/Ag/dnwnyRXevuHaRoxFJYlQMhArEifPtGspQ U3Ew== 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 e1-20020a17090301c100b00176c891c8a0si250238plh.6.2022.11.03.02.35.04; Thu, 03 Nov 2022 02:35:17 -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 S231313AbiKCJPF (ORCPT + 97 others); Thu, 3 Nov 2022 05:15:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230194AbiKCJOY (ORCPT ); Thu, 3 Nov 2022 05:14:24 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA918E019; Thu, 3 Nov 2022 02:14:17 -0700 (PDT) Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4N2ycX64r7zRp1N; Thu, 3 Nov 2022 17:09:16 +0800 (CST) Received: from kwepemm600003.china.huawei.com (7.193.23.202) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 3 Nov 2022 17:14:15 +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; Thu, 3 Nov 2022 17:14:15 +0800 From: Yang Jihong To: , , , , , , , , , CC: Subject: [PATCH net v2] uapi: Add missing linux/stddef.h header file to in.h Date: Thu, 3 Nov 2022 17:11:00 +0800 Message-ID: <20221103091100.246115-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: dggems705-chm.china.huawei.com (10.3.19.182) 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 --- Changes since v1: - 'Fixes' tag separates by the commit message by a blank line - Remove the empty line between 'Fixes' and SoB. - Specify the target tree to "net" in title - Wrap the commit message text to 75 chars per line (except build output) 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