Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp197116ybl; Thu, 22 Aug 2019 22:49:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLtn4p4iw04amX4XPlI42fv7hCdSpiyh2xtJTooDBTrV33iu9IoFK7QtubeEY3eH9XBk5U X-Received: by 2002:a17:902:ac85:: with SMTP id h5mr2817941plr.198.1566539366376; Thu, 22 Aug 2019 22:49:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566539366; cv=none; d=google.com; s=arc-20160816; b=ETDWgZCD5XAgJvOu1dlc1D8RGqLNwPC0eWaU+6yE2Duax1/jSISqwdg74EmUtNm+bs E/e5G3lSjZiw77XDGGMEAsxDWQW8nRV2pn2HGPPrSSbKhjCQ0732MnVIJqumQ/LbxPKM f/TsdOtyTt+7m7g8YQg2yRUIaAnGRPCpWFWqKwcUEbjFaxr0MUSWkU8aGyGq2O2HywP1 MDIx2JmuaBjxIr9zvtmLZnV7sMAcEVQESEtUJyk5B4MGb8nFAdWMQ2uYtFyhg7d0mzfW S6IVya2cV6MrWLR1bBj7/iSr98msDsTXi0Hl53xHeOTkdDG1wpOXlPnF4rY7pitP7By7 Pu5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=N3LoMtzjhvKBbIvqAvyyv5xb6v+7eHDY9yGRL7aTrNc=; b=GNMBVQ9KH+AyuO15H9PI0meMWh+xPfcgW2bxvw89CpmkPdb8YYTGK2hGzU0zQgE4jR FhvcxLcavFY50GXO/ppuQH9L111s40kKKPwM5cJ47OTZv6bIUirl324oWXphz+jStdvN WCeXUg9qczetFaR98sd1B05Dk9X6+nNFk//WGzlUyKHhTzYVrzItK88Tu34QLJRLJNYR +Uku0t9kz78Jq+fcdVEnJU3SXReADUYv9OI5PubD6TlXS+YSKTy40iNjow8B8r1dl7yk mBczuGtA9G5bf8cGlYvC0duyn4OuayHhMDKQLaArp5d0O3DRUeAPSo4nhMzNPTx1l8Yh osxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=l11dggkE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q18si1152253pgk.31.2019.08.22.22.49.10; Thu, 22 Aug 2019 22:49:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=l11dggkE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405031AbfHVRj2 (ORCPT + 99 others); Thu, 22 Aug 2019 13:39:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:45500 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404131AbfHVRYO (ORCPT ); Thu, 22 Aug 2019 13:24:14 -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 4094C2341C; Thu, 22 Aug 2019 17:24:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566494654; bh=+VL99LgBXxx3VNYEmnTH+rsjkn7PIqtMJpOF/8r6jG4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l11dggkE8dQfx7dJYMlE/UUFw+a1d5/YbMbE2BO7gKTVytcD44wmZqsb72vODvY+i ReRB9zT7pDg3MhZSOX9A7TuO2ToJNiqySmyFjuRV15Xbc8sjrOiF6E3W90gE6hswhM j+77rSLitovqj4EsYR0uBs0hjrhB/yG0fd+wu+DM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Joerg Roedel Subject: [PATCH 4.9 095/103] iommu/amd: Move iommu_init_pci() to .init section Date: Thu, 22 Aug 2019 10:19:23 -0700 Message-Id: <20190822171733.007625452@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190822171728.445189830@linuxfoundation.org> References: <20190822171728.445189830@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 @@ -1534,7 +1534,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;