From 59e71ee80c65426b2f569cc4c60936053cc9caa5 Mon Sep 17 00:00:00 2001 From: Boris Gjenero Date: Fri, 9 Dec 2011 15:33:59 +0000 Subject: Introduce USED_ATTR wrapper for __attribute__((used)). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31188 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/imx31/dvfs_dptc-imx31.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'firmware/target/arm/imx31/dvfs_dptc-imx31.c') diff --git a/firmware/target/arm/imx31/dvfs_dptc-imx31.c b/firmware/target/arm/imx31/dvfs_dptc-imx31.c index e8dee17416..02955a5aa4 100644 --- a/firmware/target/arm/imx31/dvfs_dptc-imx31.c +++ b/firmware/target/arm/imx31/dvfs_dptc-imx31.c @@ -29,6 +29,7 @@ #include "avic-imx31.h" #include "dvfs_dptc-imx31.h" #include "dvfs_dptc_tables-target.h" +#include "gcc_extensions.h" /* Most of the code in here is based upon the Linux BSP provided by Freescale * Copyright 2004-2008 Freescale Semiconductor, Inc. All Rights Reserved. */ @@ -181,7 +182,7 @@ static void set_current_dvfs_level(unsigned int level) } /* DVFS Interrupt handler */ -static void __attribute__((used)) dvfs_int(void) +static void USED_ATTR dvfs_int(void) { unsigned long pmcr0 = CCM_PMCR0; unsigned long fsvai = pmcr0 & CCM_PMCR0_FSVAI; -- cgit v1.2.3