From patchwork Thu Nov 3 09:11:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Jihong X-Patchwork-Id: 14772 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp410088wru; Thu, 3 Nov 2022 02:16:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Fz7z8VQJHzjYQjtTTD+PLVqgHOe9oD7U74N1eUThAm337ewSU5a8tOU/ngPCHhJuke5tL X-Received: by 2002:a17:903:494:b0:187:a14:56bd with SMTP id jj20-20020a170903049400b001870a1456bdmr28021345plb.131.1667467004225; Thu, 03 Nov 2022 02:16:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667467004; cv=none; d=google.com; s=arc-20160816; b=TwuVp3a9Wl/fdPdjHJxpeiMqDr86W27N2YvXN9roBFWr7U478CD8oJj+2406JZHavJ DawHEVLcI4iUuCTQDtTuvA0H6EcfU8iATXggUvv/jOKw2wFgQHTciM9uIBEE+jg2cgNR LRIkPAY2Fu/F9l+jZNvwLRlUZkkwlRUszCkjoQZzrxoUoksuB9TBb7eYKjRsAmYR+3N9 64xnRgE/VIyGpylcJOszvPi8noxVFXwMxlwrJO5Vyyp8lCWXyCzNBd4/1ZQ6lM5Wp3w6 wTP+ZsKQdYO7hBAMrB0UI6fAXhstDmfTULLhCsS+0gyL7j9Se41DOBxFlq/dsIxuBLAJ MlLg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t11-20020a63780b000000b0046b3d6b786asi383874pgc.186.2022.11.03.02.16.29; Thu, 03 Nov 2022 02:16:44 -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 + 99 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748197253654602658?= X-GMAIL-MSGID: =?utf-8?q?1748465881198569509?= 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. */