From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752881AbcAGMPy (ORCPT ); Thu, 7 Jan 2016 07:15:54 -0500 Received: from 8bytes.org ([81.169.241.247]:50558 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752790AbcAGMPx (ORCPT ); Thu, 7 Jan 2016 07:15:53 -0500 Date: Thu, 7 Jan 2016 13:15:51 +0100 From: Joerg Roedel To: Suravee Suthikulpanit Cc: bp@alien8.de, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org Subject: Re: [PATCH v2 3/6] iommu/amd: Introduce amd_iommu_get_num_iommus() Message-ID: <20160107121550.GE19149@8bytes.org> References: <1451672020-2150-1-git-send-email-Suravee.Suthikulpanit@amd.com> <1451672020-2150-4-git-send-email-Suravee.Suthikulpanit@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1451672020-2150-4-git-send-email-Suravee.Suthikulpanit@amd.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 01, 2016 at 12:13:37PM -0600, Suravee Suthikulpanit wrote: > +int amd_iommu_get_num_iommus(void) > +{ > + return amd_iommus_present; > +} > +EXPORT_SYMBOL(amd_iommu_get_num_iommus); Is this export needed? The perf code can't be build as a module. Otherwise it looks good.