]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/pci/intel-iommu.c: fix build with older gcc's
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 22 Sep 2010 20:05:11 +0000 (13:05 -0700)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 6 Jan 2011 23:08:00 +0000 (18:08 -0500)
commit877c7c650a9c4bf3e453b5e79a93880d1af375d4
tree0846c69e35dccc5b412fa952ce8e38148f6f61b5
parentc97442183f1dc5f94dd714c28a2ec64ea548f0ad
drivers/pci/intel-iommu.c: fix build with older gcc's

commit df08cdc7ef606509debe7677c439be0ca48790e4 upstream.

drivers/pci/intel-iommu.c: In function `__iommu_calculate_agaw':
drivers/pci/intel-iommu.c:437: sorry, unimplemented: inlining failed in call to 'width_to_agaw': function body not available
drivers/pci/intel-iommu.c:445: sorry, unimplemented: called from here

Move the offending function (and its siblings) to top-of-file, remove the
forward declaration.

Addresses https://bugzilla.kernel.org/show_bug.cgi?id=17441

Reported-by: Martin Mokrejs <mmokrejs@ribosome.natur.cuni.cz>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/pci/intel-iommu.c