From patchwork Sun Sep 29 21:21:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Kocialkowski X-Patchwork-Id: 13815256 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3EEADCF6495 for ; Sun, 29 Sep 2024 21:23:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=azPTOBo8T7azbEHvvAGQekQWoNyja0GU3Koe8H+a6q4=; b=GsTjBql9lrAAgK2m4Tgho6WVTY NhNmryZz+Ze9TdYCTnqhB08zSb+sXybuKHRFP/DrVxc0FnUzSWnB+6/sp5Pg5knt/jC0cV77UnrX0 2Cc25dKRx+x/WzSe/ZFMNGPmgf5ZypmisS9mK9715I9EEpaTd9eBs0/KaXqQuOaLQmflKLVP8JmkK 4LrIsqK/JDhvJzeEA+OsXLscGnII/b4xTnnlAkn3EtmCMbMW6jgNbi1FCkBAd0ewW2nWd13QiH5+O OOAeQ3TA5hiYHZTmUN2ZeXZjdEjeUk+e/JlBAdvKGkBH5zlMbnR6tk9NGiylpWKAhFTVOW/BRsiGl YKQ+rZIw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sv1NX-0000000FNXe-0j96; Sun, 29 Sep 2024 21:22:55 +0000 Received: from leonov.paulk.fr ([185.233.101.22]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sv1MK-0000000FNSd-1CdB for linux-arm-kernel@lists.infradead.org; Sun, 29 Sep 2024 21:21:42 +0000 Received: from laika.paulk.fr (12.234.24.109.rev.sfr.net [109.24.234.12]) by leonov.paulk.fr (Postfix) with ESMTPS id 35C7C1F0004B for ; Sun, 29 Sep 2024 21:21:31 +0000 (UTC) Received: by laika.paulk.fr (Postfix, from userid 65534) id DC6D1A608CB; Sun, 29 Sep 2024 21:21:29 +0000 (UTC) Received: from localhost.localdomain (unknown [192.168.1.64]) by laika.paulk.fr (Postfix) with ESMTP id 08828A608BA; Sun, 29 Sep 2024 21:21:27 +0000 (UTC) From: Paul Kocialkowski To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Russell King , Kees Cook , "Gustavo A . R . Silva" , Justin Stitt , Paul Kocialkowski Subject: [PATCH] ARM: atags: Be silent about missing ATAGs Date: Sun, 29 Sep 2024 23:21:22 +0200 Message-ID: <20240929212122.701125-1-paulk@sys-base.io> X-Mailer: git-send-email 2.46.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240929_142140_525227_125BCA5A X-CRM114-Status: GOOD ( 13.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Paul Kocialkowski While the ATAGs functionality is still available in the kernel, it has been deprecated for a long time already and probably has very few users left. Stop printing a message when ATAGs are not found since this is now the situation most users will expect. Signed-off-by: Paul Kocialkowski --- arch/arm/kernel/atags_proc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/kernel/atags_proc.c b/arch/arm/kernel/atags_proc.c index cd09f8ab93e3..6643fffecfb7 100644 --- a/arch/arm/kernel/atags_proc.c +++ b/arch/arm/kernel/atags_proc.c @@ -41,10 +41,8 @@ static int __init init_atags_procfs(void) struct buffer *b; size_t size; - if (tag->hdr.tag != ATAG_CORE) { - pr_info("No ATAGs?\n"); + if (tag->hdr.tag != ATAG_CORE) return -EINVAL; - } for (; tag->hdr.size; tag = tag_next(tag)) ;