aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-09-06 14:56:50 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2017-12-02 11:21:31 +0000
commit6d745ee8b5e81f3a33791e3c854fbbfd6f3e585e (patch)
treeee507440e6af854b9012b0361d5c5e2f66481e24 /tools/perf/scripts/python/syscall-counts.py
parentiio: health: max30102: Temperature should be in milli Celsius (diff)
downloadlinux-6d745ee8b5e81f3a33791e3c854fbbfd6f3e585e.tar.gz
linux-6d745ee8b5e81f3a33791e3c854fbbfd6f3e585e.zip
iio: stm32: fix adc/trigger link error
The ADC driver can trigger on either the timer or the lptim trigger, but it only uses a Kconfig 'select' statement to ensure that the first of the two is present. When the lptim trigger is enabled as a loadable module, and the adc driver is built-in, we now get a link error: drivers/iio/adc/stm32-adc.o: In function `stm32_adc_get_trig_extsel': stm32-adc.c:(.text+0x4e0): undefined reference to `is_stm32_lptim_trigger' We could use a second 'select' statement and always have both trigger drivers enabled when the adc driver is, but it seems that the lptimer trigger was intentionally left optional, so it seems better to keep it that way. This adds a hack to use 'IS_REACHABLE()' rather than 'IS_ENABLED()', which avoids the link error, but instead leads to the lptimer trigger not being used in the broken configuration. I've added a runtime warning for this case to help users figure out what they did wrong if this should ever be done by accident. Fixes: f0b638a7f6db ("iio: adc: stm32: add support for lptimer triggers") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
>Marc Zyngier2-15/+16 2015-10-13irqchip: Convert all alloc/xlate users from of_node to fwnodeMarc Zyngier13-252/+323 2015-10-13irqdomain: Introduce a firmware-specific IRQ specifier structureMarc Zyngier2-11/+68 2015-10-13irqdomain: Allow irq domain lookup by fwnodeMarc Zyngier2-11/+16 2015-10-13irqdomain: Convert irqdomain-%3Eof_node to fwnodeMarc Zyngier2-3/+8 2015-10-13irqdomain: Use irq_domain_get_of_node() instead of direct field accessMarc Zyngier32-52/+75 2015-10-11Linux 4.3-rc5v4.3-rc5Linus Torvalds1-2/+2 2015-10-11genirq: Add flag to force mask in disable_irq[_nosync]()Thomas Gleixner4-1/+25 2015-10-11MAINTAINERS: Change Matt Fleming's email addressMatt Fleming1-2/+2 2015-10-10namei: results of d_is_negative() should be checked after dentry revalidationTrond Myklebust1-2/+6 2015-10-09arm/arm64: KVM: Only allow 64bit hosts to build VGICv3Jean-Philippe Brucker3-4/+8 2015-10-09ARM: virt: select ARM_GIC_V3Jean-Philippe Brucker1-0/+1