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 X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT 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 329A9C3A5A1 for ; Thu, 22 Aug 2019 17:45:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 08096205ED for ; Thu, 22 Aug 2019 17:45:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566495935; bh=kOAsT4PRJohDReo3vQiXOzyx8cJT/a67rvpPKMceO1s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=VttTfXAkVEWQqee3n/X+9DAeKf1vsFvoaDtShJVrMuug3s48b26JwuSuPqMUbWAYT Kn5v2vQg5H28eV0ncGTu6bPsUz+tQW2Ik8cSQMNww9sh449kzW9x1BsYHMpXyCJsog njdIJhdi7y4BS+1sM7DhEDB7WBzYDtBXl332pYtg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403808AbfHVRXE (ORCPT ); Thu, 22 Aug 2019 13:23:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:42168 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403771AbfHVRXB (ORCPT ); Thu, 22 Aug 2019 13:23:01 -0400 Received: from localhost (wsip-184-188-36-2.sd.sd.cox.net [184.188.36.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 647BF23402; Thu, 22 Aug 2019 17:23:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566494580; bh=kOAsT4PRJohDReo3vQiXOzyx8cJT/a67rvpPKMceO1s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X6jsDfcY0897npbmVw0CGPka0fjvM3c95IVKD9BJUiqZP1uzA8Jya7xkLXbKfDPzA wQZ3SgOgZFaK2/R4Ri+vfot0l5SptrDWqGCB266O2mgRCnnws9xb+R3BAAFHg1SRVA 0Ng8KO/S9aMa54npZIHGJGxkHt61thHP3BEbI/Ms= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Joerg Roedel Subject: [PATCH 4.4 72/78] iommu/amd: Move iommu_init_pci() to .init section Date: Thu, 22 Aug 2019 10:19:16 -0700 Message-Id: <20190822171834.113194199@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190822171832.012773482@linuxfoundation.org> References: <20190822171832.012773482@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joerg Roedel commit 24d2c521749d8547765b555b7a85cca179bb2275 upstream. The function is only called from another __init function, so it should be moved to .init too. Signed-off-by: Joerg Roedel Signed-off-by: Greg Kroah-Hartman --- drivers/iommu/amd_iommu_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/iommu/amd_iommu_init.c +++ b/drivers/iommu/amd_iommu_init.c @@ -1223,7 +1223,7 @@ static const struct attribute_group *amd NULL, }; -static int iommu_init_pci(struct amd_iommu *iommu) +static int __init iommu_init_pci(struct amd_iommu *iommu) { int cap_ptr = iommu->cap_ptr; u32 range, misc, low, high;