Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp553959pxj; Thu, 10 Jun 2021 07:16:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynsngwGyej/47o7JLSFtx3Xbp+D8EQ/e8y11u7ZTM8Vu1cJwdJH9L+AEsexZcwq+PnW1Nf X-Received: by 2002:aa7:dc51:: with SMTP id g17mr5039149edu.43.1623334586097; Thu, 10 Jun 2021 07:16:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623334586; cv=none; d=google.com; s=arc-20160816; b=hIsJTvqpe7buqKvkY1+BtyRztvXB99ciExwk2+VkY9cLdE9UPS699R2HTUz4+a/gvN XG29r5jhRr+Hn7O8GID2wcWvg5dLXd1Skg2Muk2N/ACtgukvOBRQ30BIKCv5k86qktHQ nxJqzKvEopO8aM9DMX8Bn2XCzA/xO+l/ByfW8iZSlFWe4NVZ5ty2QANr1UIu2VycavPn aXRj+C8+Q80IIJlMCU+YhaFqPYv1beNIoRBszyam6MnAorcTYAkZZgbBCltkoHXJdfg6 PXgFSsXmgpIAc0iQ7OYJAs8zLekwV9Yl9Wuq/o04mscz06aoKPVQ/flfZj1RL4B2dDV6 1lSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :mime-version:user-agent:date:message-id:subject:from:to :dmarc-filter:sender:dkim-signature; bh=00SuqU+Eq9YKOpZC5zCFS/rhtMr0RUQILFGaVCLOp3s=; b=tSCaDsIfn+xjyUWyXrIid33MnqYYKRAHvADLTqrfCsMq++8CgbRvSdEob7Pl+CInen yl7oMJKgiyvcKSs/DYCAG7z4jqxPnENsXv55PtdS8JRTwGmK+y2t+5+vvK9/iwMWwPjz M5gcbNKWxcB2qAVt+Jg6kY9ED2iAmtHx68reDVc3zh0RNAQIUKUupb5deusU8a0c+um+ c2HW8VR1Sz4FnPz2I1cv+yK6VwdpPButfgoaJXibMb9U1lVd1HIZXfBZ1wlVP2xMVIzs omSnb8fu3sh2LuOmuLYqTGkJUEibcGzVGnJgMAoi2DaGmf3cqpnrUx98a/RUGqx7wAGP 1tYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=eVVDzKM+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g12si2493983edp.364.2021.06.10.07.16.01; Thu, 10 Jun 2021 07:16:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=eVVDzKM+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230477AbhFJOPE (ORCPT + 99 others); Thu, 10 Jun 2021 10:15:04 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:25298 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230153AbhFJOPE (ORCPT ); Thu, 10 Jun 2021 10:15:04 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1623334388; h=Content-Transfer-Encoding: Content-Type: MIME-Version: Date: Message-ID: Subject: From: To: Sender; bh=00SuqU+Eq9YKOpZC5zCFS/rhtMr0RUQILFGaVCLOp3s=; b=eVVDzKM+wmcN7Z6KBkbQPQzGzo+IcfRVisJk9zTv6+IrAWlVoOU+TD1hB7uWDq2qwvOoRgSJ OEU21uLnvCcoxTMXhzd9DkpJ12COXCsDocIEKCD/5uJ1W9bF4cu2wUUbkyof6enMotISeXqv xwjl3YBnwkcl9Y2+0FW7WyvxKSo= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n07.prod.us-west-2.postgun.com with SMTP id 60c21de2b6ccaab753df316a (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 10 Jun 2021 14:12:50 GMT Sender: mojha=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id B46F1C433D3; Thu, 10 Jun 2021 14:12:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.0.108] (unknown [103.38.130.129]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mojha) by smtp.codeaurora.org (Postfix) with ESMTPSA id DA9D0C433F1; Thu, 10 Jun 2021 14:12:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org DA9D0C433F1 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=mojha@codeaurora.org To: masahiroy@kernel.org, lkml From: Mukesh Ojha Subject: Query on header test Message-ID: <96589e2f-0063-f1ec-818b-d421ac80ae7c@codeaurora.org> Date: Thu, 10 Jun 2021 19:42:20 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi All, We are facing issue while compiling kernel (5.4) in android (arm64) on ubuntu18 host machine when header test is performed. Note: there is no issue observed on ubuntu16. And it is failing with below issue, ./usr/include/linux/videodev2.h:2323:20: error: field has incomplete type 'struct timespec'         struct timespec                 timestamp;                                         ^ ./usr/include/linux/videodev2.h:2323:9: note: forward declaration of 'struct timespec'         struct timespec                 timestamp;                ^ 1 error generated. where in one of the headers "include/uapi/linux/videodev2.h" is including "sys/time.h" Inside include/uapi/linux/videodev2.h #ifndef __KERNEL__ #include #endif and it is try to search this file in host machine in "usr/include/x86_64-linux-gnu/sys/time.h". but it is failing with that as looks like ubuntu18  packaged x86_64-linux-gnu time.h is not compatible while it is compatible with ubuntu16 packaged time.h has no issue. Defining _GNU_SOURCE is somehow fixing the issue the somehow. And now i am not sure whether it is maintaining as per the standard of header test or it somehow violates it. diff --git a/usr/include/Makefile b/usr/include/Makefile index bfc7f8e..7b789f7 100644 --- a/usr/include/Makefile +++ b/usr/include/Makefile @@ -8,7 +8,7 @@  # We cannot go as far as adding -Wpedantic since it emits too many warnings.  UAPI_CFLAGS := -std=c90 -Wall -Werror=implicit-function-declaration -override c_flags = $(UAPI_CFLAGS) -Wp,-MD,$(depfile) -I$(objtree)/usr/include +override c_flags = $(UAPI_CFLAGS) -Wp,-MD,$(depfile) -D_GNU_SOURCE -I$(objtree)/usr/include Thanks, Mukesh