Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1721420 > unrolled thread

Re: [PATCH] iommu: qcom: annotate PM functions as __maybe_unused

Started byJoerg Roedel <joro@8bytes.org>
First post2017-08-28 11:30 +0200
Last post2017-08-28 11:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] iommu: qcom: annotate PM functions as __maybe_unused Joerg Roedel <joro@8bytes.org> - 2017-08-28 11:30 +0200

#1721420 — Re: [PATCH] iommu: qcom: annotate PM functions as __maybe_unused

FromJoerg Roedel <joro@8bytes.org>
Date2017-08-28 11:30 +0200
SubjectRe: [PATCH] iommu: qcom: annotate PM functions as __maybe_unused
Message-ID<ujowN-3Qe-7@gated-at.bofh.it>
On Wed, Aug 23, 2017 at 03:42:45PM +0200, Arnd Bergmann wrote:
> The qcom_iommu_disable_clocks() function is only called from PM
> code that is hidden in an #ifdef, causing a harmless warning without
> CONFIG_PM:
> 
> drivers/iommu/qcom_iommu.c:601:13: error: 'qcom_iommu_disable_clocks' defined but not used [-Werror=unused-function]
>  static void qcom_iommu_disable_clocks(struct qcom_iommu_dev *qcom_iommu)
> drivers/iommu/qcom_iommu.c:581:12: error: 'qcom_iommu_enable_clocks' defined but not used [-Werror=unused-function]
>  static int qcom_iommu_enable_clocks(struct qcom_iommu_dev *qcom_iommu)
> 
> Replacing that #ifdef with __maybe_unused annotations lets the compiler
> drop the functions silently instead.
> 
> Fixes: 0ae349a0f33f ("iommu/qcom: Add qcom_iommu")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>  drivers/iommu/qcom_iommu.c | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)

Applied, thanks.

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web