Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1189018rwi; Thu, 3 Nov 2022 02:09:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4vVUXbfwpf/vP8xycrvBY5ACQeywyA3kFeD4Wg85GkLmGxjIFLNU9DyDPx5iXSon60vTYz X-Received: by 2002:a17:907:31c3:b0:770:852b:71a2 with SMTP id xf3-20020a17090731c300b00770852b71a2mr27742707ejb.557.1667466587193; Thu, 03 Nov 2022 02:09:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667466587; cv=none; d=google.com; s=arc-20160816; b=T8TNh59MKqEPbWCgAFPErSLoe/g1ZuY1rGba6OqZoxS3omuqTmgQwnvuYaXFrlUosy dvmAAy8puGpHvzFMLsK7xJyGGvxzqnDOLtgUap23pvLWbz8hE1AuJqrl//VDKiST3C79 uiE/TkbBVdzaYu4q4sNNhbNCUP+KXNKin/Nf+3ZyzZkmOfOj0jEhExMKnX6rchHpP+Gl txS2JtZ4dL+2DcV1AJNgep+XuIbt1ffApAgOZEtGnMLPz7GEyXk3hmPd6JQKe+Js66Wo xAilO83r7ooRpaQRssNJdHsKQ/yDkGfA7r1RMAfcaor/RX55ma0lJvbDbJ2/lZdPnw6L gH8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject; bh=NazaGQOJAKTycORfe5y7Gau/pp72XsRD8KgDAyPMOdI=; b=t8DWCdgENSkPG1nScEW97Jp6oZrrMWrZ1BZDHADMGMKwwJUxNufF0K59GNciehZGkh NGsNJnOY8D2MuPx2HZFqXoqQSBXxZ/PGHRgh0w8zdPCN5fuaVlCic/nDSswWWGRXRG7Y NMnY5pt0qkutFZgWKM4Siv4m3YFyM8V0BkQRiVT4IB8kZBKZJzBke/7/+LJN36VQt/Cz WJhmWSfCZs7pK9aUX+/2DKZtpV3t71A1cnEh6No7SbJCMcpnIayckDO1Z63qP61G/+LB 71VCVj41HKx94oWPFRFYB8qEzBviRc5nDXg2O/XMCmHYP3KxV4ZztkLAZm2EZs9ORfn7 0P9w== 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 x20-20020a05640226d400b00443e3fe60a0si596119edd.622.2022.11.03.02.09.23; Thu, 03 Nov 2022 02:09:47 -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 S230433AbiKCI7I (ORCPT + 97 others); Thu, 3 Nov 2022 04:59:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229699AbiKCI7H (ORCPT ); Thu, 3 Nov 2022 04:59:07 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FE1B5583; Thu, 3 Nov 2022 01:59:05 -0700 (PDT) Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.55]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4N2yNg19LXz15MLT; Thu, 3 Nov 2022 16:58:59 +0800 (CST) Received: from kwepemm600003.china.huawei.com (7.193.23.202) by dggemv704-chm.china.huawei.com (10.3.19.47) 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 16:59:03 +0800 Received: from [10.67.111.205] (10.67.111.205) 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 16:59:02 +0800 Subject: Re: [PATCH] uapi: Add missing linux/stddef.h header file to in.h To: Paolo Abeni , , , , , , , , , References: <20221031095517.100297-1-yangjihong1@huawei.com> <477a37b80b01d5eaa895effa20df29bcf02f65b6.camel@redhat.com> From: Yang Jihong Message-ID: <300b547d-8ea5-d7d1-f39e-d55df73847cd@huawei.com> Date: Thu, 3 Nov 2022 16:59:02 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <477a37b80b01d5eaa895effa20df29bcf02f65b6.camel@redhat.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.111.205] 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,NICE_REPLY_A, 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 Hello Paolo, On 2022/11/3 16:25, Paolo Abeni wrote: > On Mon, 2022-10-31 at 17:55 +0800, Yang Jihong wrote: >> 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 > > The 'Fixes' tag must be separated by the commit message by a blank > line, and you need to remove the empty line between 'Fixes' and SoB. > > Additionally, on repost, please specify the target tree in the patch > subj, and wrap the commit message text to 75 chars per line (that does > not apply to the build output). > OK, will fix these issues in the next version, thanks for your advice. Thanks, Yang > Thanks, > > Paolo > > > . >