From mboxrd@z Thu Jan 1 00:00:00 1970 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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (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 02E5CC433F5 for ; Thu, 16 Dec 2021 22:05:16 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4JFR4W3GWSz3dbm for ; Fri, 17 Dec 2021 09:05:15 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=RhQ8MwVT; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::829; helo=mail-qt1-x829.google.com; envelope-from=nnac123@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=RhQ8MwVT; dkim-atps=neutral Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4JFQzX2XrLz304V for ; Fri, 17 Dec 2021 09:00:56 +1100 (AEDT) Received: by mail-qt1-x829.google.com with SMTP id j17so742636qtx.2 for ; Thu, 16 Dec 2021 14:00:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mYtJGoUxy8eTpCz9aBNis7G8lKupFj/oGwaaWzNon+I=; b=RhQ8MwVTZqYqHdu1zDvEHDL5uk0X5TbQIovM5RC7m5PVAN4ltW5cWkq8x0p8/y9oGi iRwQeEk3nAG2ZL33NTufigL4JyrOnlENHpFrxMeCbOOq600LJeybusgSU0K69L3ZpVkl KRekVjqSZurrIfwx22FJpbwp593AOOzj/islimwnlXgAoBxwv2123LmbDeY0O+chHR+n eYyfTSLmfVESkDc2Bb9H+SKE1tSmezGT+6VQ2WLgxF2cuSNp8wu5NprVjSHzUV8YBp2v UoCQEa8TBmAoynLj8Cpwv+P9tjpg9R2UT3JL60KrvXIzynmlCOR0WWdob3jB6WViBBRF 32Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mYtJGoUxy8eTpCz9aBNis7G8lKupFj/oGwaaWzNon+I=; b=DSv/1j/hGoAgXSk3OJYn5zKtVkhywOof7uhlfNNQDPMqc21Co7E6eZJCX8NulrnED8 nom9/rWbKLPEuPmkPWwlOJSEqjFtJU565ayjDOmBuxkM1t2VqePMCkxLr1k0ZqLvxvUY nuLoR0w2E7S57h1+OziMAMheX4d3rL3xKHiN8MCk1kHkIIe7WBEI7OJKOrc3hBqLJ/0R FDCIOBNa2j+IYjGS2ZcwTWfgXnKBLmWbg5s/ECowGhGZoLcFYdPTYRsHEAkiayAzCYuE J2pvptmiLtZGGIzN2EZbR41nE41sMYh8hvWTPriP+/CMDAmciPsWGQV60O21lycL4BWh s4Zw== X-Gm-Message-State: AOAM531wN1wJrUs8hvjaDcMYrRaE1APWpZK7LuLYn5khem6RXfY32SgA UeDZGQEelMm/+QsdD3OpcJmCryWvQbo= X-Google-Smtp-Source: ABdhPJw+MwOMiZVzFuhkJBXkZk5Q6U/NPRLGwGYcvs0HklftoDNmjsAYubLSloLiRcMlFhXcchhTNQ== X-Received: by 2002:a05:622a:1354:: with SMTP id w20mr6607qtk.566.1639692053173; Thu, 16 Dec 2021 14:00:53 -0800 (PST) Received: from starship-12.hsd1.fl.comcast.net ([2601:589:4a00:1ed0:dce6:135:603d:e519]) by smtp.gmail.com with ESMTPSA id y21sm5478483qtw.10.2021.12.16.14.00.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Dec 2021 14:00:52 -0800 (PST) From: Nick Child X-Google-Original-From: Nick Child To: linuxppc-dev@lists.ozlabs.org Subject: [PATCH v2 06/20] powerpc/xmon: Add __init attribute to eligible functions Date: Thu, 16 Dec 2021 17:00:21 -0500 Message-Id: <20211216220035.605465-7-nick.child@ibm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211216220035.605465-1-nick.child@ibm.com> References: <20211216220035.605465-1-nick.child@ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nick Child , dja@axtens.net Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" `xmon_register_spus` defined in 'arch/powerpc/xmon' is deserving of an `__init` macro attribute. This functions is only called by other initialization functions and therefore should inherit the attribute. Also, change the function declaration in the header file to include `__init`. Signed-off-by: Nick Child --- arch/powerpc/include/asm/xmon.h | 2 +- arch/powerpc/xmon/xmon.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/include/asm/xmon.h b/arch/powerpc/include/asm/xmon.h index 68bfb2361f03..f2d44b44f46c 100644 --- a/arch/powerpc/include/asm/xmon.h +++ b/arch/powerpc/include/asm/xmon.h @@ -12,7 +12,7 @@ #ifdef CONFIG_XMON extern void xmon_setup(void); -extern void xmon_register_spus(struct list_head *list); +void __init xmon_register_spus(struct list_head *list); struct pt_regs; extern int xmon(struct pt_regs *excp); extern irqreturn_t xmon_irq(int, void *); diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index f9ae0b398260..f51d7404a6ea 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -4136,7 +4136,7 @@ struct spu_info { static struct spu_info spu_info[XMON_NUM_SPUS]; -void xmon_register_spus(struct list_head *list) +void __init xmon_register_spus(struct list_head *list) { struct spu *spu; -- 2.25.1