From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean-Philippe Brucker Subject: Re: [PATCH v3 10/16] iommu: introduce device fault report API Date: Wed, 10 Jan 2018 12:39:59 +0000 Message-ID: References: <1510944914-54430-1-git-send-email-jacob.jun.pan@linux.intel.com> <1510944914-54430-11-git-send-email-jacob.jun.pan@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1510944914-54430-11-git-send-email-jacob.jun.pan@linux.intel.com> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org To: Jacob Pan , "iommu@lists.linux-foundation.org" , LKML , Joerg Roedel , David Woodhouse , Greg Kroah-Hartman , Rafael Wysocki , Alex Williamson Cc: Lan Tianyu , Jean Delvare List-Id: iommu@lists.linux-foundation.org On 17/11/17 18:55, Jacob Pan wrote: [...] > +static inline int iommu_register_device_fault_handler(struct device *dev, > + iommu_dev_fault_handler_t handler, > + void *data) > +{ > + return 0;> +} > + > +static inline int iommu_unregister_device_fault_handler(struct device *dev) > +{ > + return 0; > +} > + > +static inline bool iommu_has_device_fault_handler(struct device *dev) > +{ > + return false; > +} > + > +static inline int iommu_report_device_fault(struct device *dev, struct iommu_fault_event *evt) > +{ > + return 0; > +} Not too important but these stubs, when CONFIG_IOMMU_API is disabled, usually return an error value (-ENODEV) instead of 0. Thanks, Jean > + > static inline int iommu_group_id(struct iommu_group *group) > { > return -ENODEV; >