Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2673099pxb; Sun, 28 Feb 2021 09:06:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJxCWgZEFDR095hgzkCCLjunRoeIqvzcAbAj8UAkTfIngrHFgm7qC9G2KxdJ/vH0n/J7tsx1 X-Received: by 2002:a17:906:4002:: with SMTP id v2mr12264493ejj.135.1614531991926; Sun, 28 Feb 2021 09:06:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614531991; cv=none; d=google.com; s=arc-20160816; b=iroonZdgpBb6ajEs9hamf2tRyfCysMpK43woEYS5KdFUSb5s2KgSIRZWViDCEIeIeT qTOIPjQaKqDUlamzaOZExWuQoKXiyt8zpKRHsfeOH9kCnnDNQ0rfMczSHjD2FQfkNd9F C/A00svn3FdCV01RnpfGC0hDjb3SUj9ctRtAMESKyo4wuRnbp9maWAYU0t2kqs5B01G5 TH7IxK/PXZ5KOaUA1rqbc4TDtBkUIAl9GSW2zy1QJIYYNssadF5D9avTtEzGzFFCVuOO yRtntmksBjgAmYLr4zrSLdDzQg/hj4f8DhDbUoVTk1VeVXTThyk8MgYOyqe5T/esi0Nf mDWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QgOCkcgeAgiod2TNl5RGQObT24easnWriNhRy8GyJbg=; b=wTPo60FSAS1LEpJpFJjXF594YtNhKuW6B7K9lb1tkAmpLK3HpHXVLSDjKvXT53S+cC RFW/DejDFKMldu67imSKE4nCSV8GxOJv3ecYm0F61qwzoIbga5AnEGv9Bbb9uAZO/wtq LUjJxOFGlHTT5NiRyxV2uYASSV8Je8t7j6xwEiC+eG8Z0xJjR5ldcXHHs+En4CDRDjb3 v7fPOQd46J5yNlfuau3B40Pa+FmcW0jHVaQE91qEBGV8v2DkDCvSPincCDLe3r22rG6x tohhLM8YhaanX9N/D6QDY7SLS8qaqcIIfk4bfJqk3rsGkKS95LcqANAUgNECMuOrSei5 ZNJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VhQD52vm; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p3si7911663ejd.319.2021.02.28.09.06.09; Sun, 28 Feb 2021 09:06:31 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=VhQD52vm; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231235AbhB1RDb (ORCPT + 99 others); Sun, 28 Feb 2021 12:03:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230437AbhB1RD3 (ORCPT ); Sun, 28 Feb 2021 12:03:29 -0500 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E1AAC061786 for ; Sun, 28 Feb 2021 09:02:48 -0800 (PST) Received: by mail-ej1-x631.google.com with SMTP id mj10so3678115ejb.5 for ; Sun, 28 Feb 2021 09:02:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=QgOCkcgeAgiod2TNl5RGQObT24easnWriNhRy8GyJbg=; b=VhQD52vmyovKz0JQ126z9wBO+Vtuae7QWObZEMLMzuQiRaijiGyQddqGPNdSj4t6ca OaseJZjLGaNSy7aoXl+/p14B4u2N34mypQmzwAjVcq8qVcfx2L6txhdxWy1xTyp3lKVi 2plxvk5f8osLw9CFzvfGsR8nVEX+HEUZQ4NoaRPIv9w/P4EHTwHAHCy3ql1VNtl5jfg+ jII6hgA88bjtlOAITS7nrDw77ybpf/+fL6nbA9ZAsSXj4lguC+V8UTjoWdMmHiollZQ3 Kl3hj+GhJK8n60R3ut1gABwC/VJ26ttwoqy4OT9etFvx/sp4vM1q5kj8LdNXqSGolJV2 d/EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=QgOCkcgeAgiod2TNl5RGQObT24easnWriNhRy8GyJbg=; b=ujzVKqcSvLv5r5x5iVKWdIUKohilG5/hVAzEUkUJujTd2C8S0yPkcs6geJ+OzsA25e p24VUd+qXwcIhQp0595FBhVnmtftpCO6qH0zcUcPL6MLx+Vg4QDFcwizhF4luaZsUGBO LQHsjJZH6jj/MqXjyKHEdnnOzgOAt+dt4aTtVahJG7/2klI8aiOUAa23spck8vTH7LBC V42JDpM4M8RttAqv5NlXlfboQVsqEMePSDxjE2sE4nOPW1TxgkqJLjHSEO96X5HiaHLe X2iXGMsyn3dVk/b1By0GiHWv1oPtqcOvQwFL4DAqfrA0CTLE5u6pjStaBmu7DVclyqhB J8Yw== X-Gm-Message-State: AOAM5333GhjRSLhdFcBu0zJ2kGbdOi8c2425FmXYzxg/u9fD76VRD4Zl Wy1SOW+OIcFTsBF061BaOA== X-Received: by 2002:a17:907:91d6:: with SMTP id h22mr11990126ejz.380.1614531766976; Sun, 28 Feb 2021 09:02:46 -0800 (PST) Received: from localhost.localdomain ([46.53.249.223]) by smtp.gmail.com with ESMTPSA id h2sm8659742ejk.32.2021.02.28.09.02.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Feb 2021 09:02:46 -0800 (PST) Date: Sun, 28 Feb 2021 20:02:45 +0300 From: Alexey Dobriyan To: torvalds@linux-foundation.org Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, tglx@linutronix.de Subject: [PATCH 07/11] pragma once: convert kernel/time/timeconst.bc Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From e428633ff0df5fe8501aaf785c6961fc766344b2 Mon Sep 17 00:00:00 2001 From: Alexey Dobriyan Date: Tue, 9 Feb 2021 00:31:23 +0300 Subject: [PATCH 07/11] pragma once: convert kernel/time/timeconst.bc Generate include/generated/timeconst.h without include guard. Signed-off-by: Alexey Dobriyan --- kernel/time/timeconst.bc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/kernel/time/timeconst.bc b/kernel/time/timeconst.bc index 7ed0e0fb5831..42b3a542e5f5 100644 --- a/kernel/time/timeconst.bc +++ b/kernel/time/timeconst.bc @@ -41,12 +41,9 @@ define fmuls(b,n,d) { } define timeconst(hz) { + print "#pragma once\n" print "/* Automatically generated by kernel/time/timeconst.bc */\n" print "/* Time conversion constants for HZ == ", hz, " */\n" - print "\n" - - print "#ifndef KERNEL_TIMECONST_H\n" - print "#define KERNEL_TIMECONST_H\n\n" print "#include \n" print "#include \n\n" @@ -106,9 +103,6 @@ define timeconst(hz) { print "#define HZ_TO_NSEC_DEN\t\t", hz/cd, "\n" print "#define NSEC_TO_HZ_NUM\t\t", hz/cd, "\n" print "#define NSEC_TO_HZ_DEN\t\t", 1000000000/cd, "\n" - print "\n" - - print "#endif /* KERNEL_TIMECONST_H */\n" } halt } -- 2.29.2