From patchwork Sun Feb 28 16:59:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Dobriyan X-Patchwork-Id: 12108343 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18E2AC433DB for ; Sun, 28 Feb 2021 17:01:07 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C4A1A64EB7 for ; Sun, 28 Feb 2021 17:01:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C4A1A64EB7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ZatcGGemQ613JxaoNJg6FFqJyzKqDBRbesGgR1PhP4c=; b=Ubtp/KPLdXqVeZs55XcwZZ2+o GiqoYi5sMLJHm87pyZD+3JpZdBl21QXFjhrvOpmS8eHTQIXUfHOLucqbjtARw8BwQxhgCmlW5lXTk MH9h9hRMDIpCBECKcxUMnGA5Z+DSO+VlcsQkUdwxpCICcRt60AB5sVdTv4ALfFb+O+0J9IeMNNqf4 eB0XSvBcDuDhGGY/5ueWqwxoCIAHlh7yfnoYzpsN6jwLLGhFiE4+gR8aLjBD5wVt3OC+SrAeimPDv chKxFRjiIv1lu3vEjufPlGbp5VsZG7K117fW0jAX47uAwh2qP98Q+P6QAuR9T+7oKBi4/YbbHgPNX tdNshYH6g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lGPPf-00017C-Jx; Sun, 28 Feb 2021 16:59:23 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lGPPd-00016m-LV for linux-arm-kernel@lists.infradead.org; Sun, 28 Feb 2021 16:59:22 +0000 Received: by mail-ed1-x52b.google.com with SMTP id l12so17508254edt.3 for ; Sun, 28 Feb 2021 08:59:19 -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=qr1mInad1mHd60s/UOLdChNop/NTHLYaNHSOHJUdlmo=; b=LpXYCLM0j+rXep2cIq0b1YzVUy2FnKhCNvFnsCd4PDfSOh4VNmif8h+6FSHSzq3HBP CLVQoCvySiFWu/gjeOANG25VKbh3nnM+3zyf0oE0k+F79ERen7FUZDVa8uqFyml/hbn+ bx6YgjIfAs7ZvwuHPlSbJGRRZ5oOHGY/pX1TNSL17tZO/GoUqLbaAojVfHGTwM/eOber ASZqxkHvf2W2VRCQVoQ+wjk+GG2HjFLNM4PDS6LnkF4v0aKjqW9xCrula6/CQy78uy8Y SJ8jX179NhutIGWxP4tMMwBzqanQBpuKA915gkuR/RDqAEKOVijP0QnEkyqgaAps5Blv PvTg== 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=qr1mInad1mHd60s/UOLdChNop/NTHLYaNHSOHJUdlmo=; b=dQgDDG5T7Gbf1EoEYWxhHCje84Nokoy24vOP/xYYKE4Z8be4fGh9OcWdrA6EG/C1MB NxO0tvlUC/4hv5huOXygWFChtiE8wZ7eJd6C4iILCcQDI6onEm4EAkNbhGJjYlMsaA6u oIJTtuQdqXl63S1pLmkpu0KiJ8F+wyY6J5H6kxL24RsIa2Phi9relVKDmJ2CKSrV5yQX CtICn4YzCkvK0aIzvnS5vDn9Qhf/CqbdU94LCOS5CU5UprIjPQMtGd2qJXP31JnzmHLe 5N62ulk7ZOORtptqIdP1rNg8JlKaJm8JunoMe1lqVQfLPWC9iBrKC6S5IRlO0fzq3hd1 ydqg== X-Gm-Message-State: AOAM530qcZLUkWktV6SJQJUmGUN0N17xjvNtEh9PV+ynYc/vhn1+N8Ii rYoevcM9ADlYUAfQ60pT+A== X-Google-Smtp-Source: ABdhPJyCTJZz0pozZlob2zmGh5jlR3vbbJBpM0qwwscmt5Z//64N0IrUKbyykj9NXGLoyLeBYHI+Hw== X-Received: by 2002:aa7:c456:: with SMTP id n22mr12563233edr.277.1614531558919; Sun, 28 Feb 2021 08:59:18 -0800 (PST) Received: from localhost.localdomain ([46.53.249.223]) by smtp.gmail.com with ESMTPSA id g1sm7206482edh.31.2021.02.28.08.59.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Feb 2021 08:59:18 -0800 (PST) Date: Sun, 28 Feb 2021 19:59:16 +0300 From: Alexey Dobriyan To: torvalds@linux-foundation.org Subject: [PATCH 02/11] pragma once: convert arch/arm/tools/gen-mach-types Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210228_115921_719310_7222CA31 X-CRM114-Status: UNSURE ( 9.66 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux@armlinux.org.uk Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From 72842f89ae91a4d02ea29604f87c373052bd3f64 Mon Sep 17 00:00:00 2001 From: Alexey Dobriyan Date: Tue, 9 Feb 2021 14:37:40 +0300 Subject: [PATCH 02/11] pragma once: convert arch/arm/tools/gen-mach-types Generate arch/arm/include/generated/asm/mach-types.h without include guard. Signed-off-by: Alexey Dobriyan --- arch/arm/tools/gen-mach-types | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/tools/gen-mach-types b/arch/arm/tools/gen-mach-types index cbe1c33bb871..c28cd4b50f76 100644 --- a/arch/arm/tools/gen-mach-types +++ b/arch/arm/tools/gen-mach-types @@ -23,12 +23,11 @@ NF == 3 { END { + printf("#pragma once\n"); printf("/*\n"); printf(" * This was automagically generated from %s!\n", FILENAME); printf(" * Do NOT edit\n"); - printf(" */\n\n"); - printf("#ifndef __ASM_ARM_MACH_TYPE_H\n"); - printf("#define __ASM_ARM_MACH_TYPE_H\n\n"); + printf(" */\n"); printf("#ifndef __ASSEMBLY__\n"); printf("/* The type of machine we're running on */\n"); printf("extern unsigned int __machine_arch_type;\n"); @@ -68,6 +67,5 @@ END { printf("\n#ifndef machine_arch_type\n"); printf("#define machine_arch_type\t__machine_arch_type\n"); - printf("#endif\n\n"); printf("#endif\n"); }