From patchwork Tue Feb 5 00:36:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 157454 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp4536690jaa; Mon, 4 Feb 2019 16:36:38 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia33VS9RRsyQYYUb1bKm5Pnn0R9fo+R6nSJVmODQfCHKj3tDEqOrKM0tAZEQW+v8WEdtJZx X-Received: by 2002:a63:1e56:: with SMTP id p22mr2022787pgm.126.1549326997930; Mon, 04 Feb 2019 16:36:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549326997; cv=none; d=google.com; s=arc-20160816; b=XA4nUeK+hvg429siRsQx8V3B6Jedb+i/jhYYrNx6reGrCz5ugL0/2QcD3PfS85bRq6 6CRd9oBCuPYJxwJHKHTiwZgZDAfQrLMgasgELL3b7fRMHgzQ5Mfr2TOpFsQK2z12x4/T CD4f1qK2ixWYiqKt+qML+tAudBEiQtcJMpGch+3EYLArKTWIw9Xi+JuVgZb3+IDVWmLF 5FZ4CEbVnJoSuyf9knXVdOPq7OMvRfUy07oTg9GF1fo0nUiyj70e25BZDRxiIe3gi+Cg B7G8HWzSISG2ZJ275AnE6ZtYkV2/PeTwWc8rW9VZrBKy3a6EV++iXXT+Mf8jKCLzIQsj Hd/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=Sf7fxsb8/LugEyQ8AaNUfDn2eEXUo04DHCjR/h0Hz7M=; b=Jz2o6ScD7LdPT5/vDg/iPCk1YXFCkseIbsjcbMo5eQN00lJBafu1MPhSyXOGoaMZKp RyX0u/dJ8MRX7XRDjAdc/m7Fv3Q/yG5xfhhUVQR9Jftq2pxSdhpkk+sXTC+dBDDQubOj EtErjeVJVWpZv+s3kcIPmQBJBslu2TnA5JCLEcq/+1UixW6oiiDK4AP6GRyHnFWpGuO+ fMt0Qe/o4cpnTBriJ/JN6BSoTN29ktgUJ6oS+uUziT77KFLvshktJw7Qxc9seyHBWwOp ihF/Yx1sZnEvCAcFuogOv4imZhjU2HRBKt17FarU6G6k5xOmkrnbAnjQ7z59C5g8eum5 oVPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=du89qoWB; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id b124si1508926pfg.47.2019.02.04.16.36.37; Mon, 04 Feb 2019 16:36:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=du89qoWB; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id CA9CD7BFFA; Tue, 5 Feb 2019 00:36:34 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by mail.openembedded.org (Postfix) with ESMTP id 7425F6006E for ; Tue, 5 Feb 2019 00:36:33 +0000 (UTC) Received: by mail-pf1-f195.google.com with SMTP id u6so705935pfh.11 for ; Mon, 04 Feb 2019 16:36:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=95gcHwX4FSE/IhHUyRBBFpOYn/b4BfKhB2f1wwzl82g=; b=du89qoWBeLJdnr/n+xyEprN+luXWV0G4iQmFVNlpO2veery3lJjHmrohL8QERCT/a1 R8603LXbJ7VmBzPY1ij+of30YNbR9ZwY0iYpqtkf/HtvcZ1AiLUJUl27/Zr69qGbIKiL 0bxgRXZ5fvgtlssEIDwpR+OUPyFSF0hrFPea28NN7rtIp1fFwKKNn492bT4uQGXLI2Bn bxRUViSwixjtvuDy1i+wgXzklbZbIUwKNnIZfRfU0PTQlQCT9qZRm7YHMGNXiHiYiWE7 zabU1T7m6G8Z8lV2MGXGhn0/3S3eyLbbXstD9mjgwj08FDk9nDD572GUMYfx65Z1PaDn gE+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=95gcHwX4FSE/IhHUyRBBFpOYn/b4BfKhB2f1wwzl82g=; b=OYGs1EobbYrVf0arXuLQ93Tpy6jyjxMFykx/hSjUi6zyVv6yhl7FQVgasqY6W5vsxw c0G59czasbp7ol5U+PW2LBMe6DXLtsB5hy2FyBhCMeiYw2+p9UATSVQdKvzdwNi2iiIa JYSSFwofbD21HlNZo43E7EiPMRDsDRvUa8buWhnd38y1bHjRHNV0hIWt8llqoAK1/bEV tPF0HCwsoD1x3C62KzxYbCeLDGRujP1sTPfLCILUBLIZuIKqxVbrPfN4adFlN1GflOlw rII6sVvUwnQnasncWHasyNXk4HIhIAMAl++ObrNSkFalhG4qTUuI6O1Or0l6Kg3Sm8U9 PcWw== X-Gm-Message-State: AHQUAuZ4VkgPLoKICQiaCpLnu+Zug04fHGHR4XZkdt+ho8LqN4Oz/KtE +mQ030TR3839kcns5m4gDD5t2BSH X-Received: by 2002:a62:1c7:: with SMTP id 190mr2187689pfb.46.1549326994143; Mon, 04 Feb 2019 16:36:34 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::a005]) by smtp.gmail.com with ESMTPSA id j6sm1641821pfg.126.2019.02.04.16.36.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Feb 2019 16:36:33 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Mon, 4 Feb 2019 16:36:26 -0800 Message-Id: <20190205003627.4454-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [OE-core] [PATCH V3 1/2] multilib_header_wrapper.h: Use #pragma once X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Avoid infinite include loops, especially with bits/wordsize.h which is now possible with the synthesized headers since we now also synthesize bits/wordsize.h itelf for some arches e.g. arm/aarch64 In cases where extra preprocessing tools are used such as clang-tidy e.g. and these tools are not passed the knowledge about architecture then case comes where we enter into header include loop for bits/wordsize.h, since this template does explicitly include bits/wordsize.h To fix this emits the pragma once at beginning of file, this is better solution than include guards, and pragma once is practically supported on all compilers except few e.g. cray c/c++ compiler Signed-off-by: Khem Raj --- V2: - No Changes, just rebased V3: - Do it using pragma once instead scripts/multilib_header_wrapper.h | 1 + 1 file changed, 1 insertion(+) -- 2.20.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/scripts/multilib_header_wrapper.h b/scripts/multilib_header_wrapper.h index 9660225fdd..4824790783 100644 --- a/scripts/multilib_header_wrapper.h +++ b/scripts/multilib_header_wrapper.h @@ -21,6 +21,7 @@ * */ +#pragma once #if defined (__bpf__) #define __MHWORDSIZE 64