Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4793587pxj; Wed, 9 Jun 2021 01:52:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPJYiqF/T6QEPtZGMcChlqZGM4nHpsXie0YGRj6u2DTPELH64qU+Kbwx2zNojwZf2/Iqdm X-Received: by 2002:a17:906:d0da:: with SMTP id bq26mr28492245ejb.287.1623228726990; Wed, 09 Jun 2021 01:52:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623228726; cv=none; d=google.com; s=arc-20160816; b=UNcuj5Ab6Q3MeVAKxOSuHtC94Dw+2CQR8dnypUsLthqrLuhw9m7IEulkTpMLPzlKQh WwrGEu5XQePWh6C2lSnN0NPNZ+z/F//Vc2beYborXQj2DHmNyxgCQhK9TDascdqqq1ib vC2nYaPDCUR+JhFKmhPMifyxVcoJodR3Z0WpAHHdVRUstyXy5/YnlgV54CZRMGjguhDf mU5KM1poWA82ctkNVXpDwkGAuDAnNXN1n8Is5kOKxbrY+ZE27vSTMxjz6DGc6IrxAC/E iiFBHuysVvYuCpwIVFTmBTN80FPVcTXO0zqJQR+IkOulCvnuHYyuVfavCN0MP/jT9GLd eblQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:cc:to:subject:from:message-id; bh=RmeOoWgqEz7JDi/4vvPB0Xjia9As/asH0Q/zQOIF4+Y=; b=0uXi2+qSNGRpzG5gcZL0bhc6zfRsdXSDfWxGQybCeNvGXE6IVAhWbY6cWxia1vQQ82 3kVNlo0tFyuGhZBSJZ9PLGO0xBNTESJ607O++xzxRyDTWH33PsjARWRNL0jyMZQNoL2D 7y40MAHLu0BUWJeo9Fgl2K43LLiPhECoDxpgOnvWXx2Scvdh/NDYCTnQxu3jIJ2SFBn/ HAJfKidzf2U/E4CmU23LAFAPFBJCrFhJKV2ZaiZCKzofyTG+zsB1OPE0T1U7hMJYQORH aDxtlSv/F9NgFt/k8Mpx/cqvjuJdNdPgTnTBMSD8Isbm04gt09nlGMa/vw44Lx6U/dQG 5lig== ARC-Authentication-Results: i=1; mx.google.com; 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 5si1790189ejh.625.2021.06.09.01.51.44; Wed, 09 Jun 2021 01:52:06 -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; 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 S232608AbhFHRYs (ORCPT + 99 others); Tue, 8 Jun 2021 13:24:48 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:36493 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231493AbhFHRYs (ORCPT ); Tue, 8 Jun 2021 13:24:48 -0400 Received: from localhost (mailhub3.si.c-s.fr [192.168.12.233]) by localhost (Postfix) with ESMTP id 4Fzxrs618rzBDn2; Tue, 8 Jun 2021 19:22:53 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8PRSQCAx5M4h; Tue, 8 Jun 2021 19:22:53 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4Fzxrr3xWSzBDnF; Tue, 8 Jun 2021 19:22:52 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 690408B7C2; Tue, 8 Jun 2021 19:22:52 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 4w2f-pULmofi; Tue, 8 Jun 2021 19:22:52 +0200 (CEST) Received: from po15610vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 1D0768B7BF; Tue, 8 Jun 2021 19:22:52 +0200 (CEST) Received: by po15610vm.idsi0.si.c-s.fr (Postfix, from userid 0) id B10DF64C49; Tue, 8 Jun 2021 17:22:51 +0000 (UTC) Message-Id: From: Christophe Leroy Subject: [PATCH] powerpc/32: Remove __main() To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Tue, 8 Jun 2021 17:22:51 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Comment says that __main() is there to make GCC happy. It's been there since the implementation of ppc arch in Linux 1.3.45. ppc32 is the only architecture having that. Even ppc64 doesn't have it. Seems like GCC is still happy without it. Drop it for good. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/misc_32.S | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/powerpc/kernel/misc_32.S b/arch/powerpc/kernel/misc_32.S index 6a076bef2932..39ab15419592 100644 --- a/arch/powerpc/kernel/misc_32.S +++ b/arch/powerpc/kernel/misc_32.S @@ -388,9 +388,3 @@ _GLOBAL(start_secondary_resume) bl start_secondary b . #endif /* CONFIG_SMP */ - -/* - * This routine is just here to keep GCC happy - sigh... - */ -_GLOBAL(__main) - blr -- 2.25.0