From: Nishanth Menon <nm@ti.com> To: Tony <tony@atomide.com> Cc: l-o <linux-omap@vger.kernel.org>, l-a <linux-arm-kernel@lists.infradead.org>, Nishanth Menon <nm@ti.com> Subject: [PATCH 4/5] omap2+: wdt: trivial sparse fixes Date: Tue, 4 Jan 2011 14:07:13 -0600 [thread overview] Message-ID: <1294171634-13943-5-git-send-email-nm@ti.com> (raw) In-Reply-To: <1294171634-13943-1-git-send-email-nm@ti.com> omap2_wd_timer_disable is declared in wdtimer.h and used by hwmod function pointers for usage, the header inclusion is necessary to ensure that the prototype and function remains consistent. omap_wdt_latency is passed as a pointer and does not need global scope Fixes sparse warnings: arch/arm/mach-omap2/devices.c:981:31: warning: symbol 'omap_wdt_latency' was not declared. Should it be static? arch/arm/mach-omap2/wd_timer.c:27:5: warning: symbol 'omap2_wd_timer_disable' was not declared. Should it be static? Signed-off-by: Nishanth Menon <nm@ti.com> --- arch/arm/mach-omap2/devices.c | 2 +- arch/arm/mach-omap2/wd_timer.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 381f4eb..2c9c912 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c @@ -978,7 +978,7 @@ static int __init omap2_init_devices(void) arch_initcall(omap2_init_devices); #if defined(CONFIG_OMAP_WATCHDOG) || defined(CONFIG_OMAP_WATCHDOG_MODULE) -struct omap_device_pm_latency omap_wdt_latency[] = { +static struct omap_device_pm_latency omap_wdt_latency[] = { [0] = { .deactivate_func = omap_device_idle_hwmods, .activate_func = omap_device_enable_hwmods, diff --git a/arch/arm/mach-omap2/wd_timer.c b/arch/arm/mach-omap2/wd_timer.c index b0c4907..4067669 100644 --- a/arch/arm/mach-omap2/wd_timer.c +++ b/arch/arm/mach-omap2/wd_timer.c @@ -13,6 +13,8 @@ #include <plat/omap_hwmod.h> +#include "wd_timer.h" + /* * In order to avoid any assumptions from bootloader regarding WDT * settings, WDT module is reset during init. This enables the watchdog -- 1.6.3.3
WARNING: multiple messages have this Message-ID (diff)
From: nm@ti.com (Nishanth Menon) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 4/5] omap2+: wdt: trivial sparse fixes Date: Tue, 4 Jan 2011 14:07:13 -0600 [thread overview] Message-ID: <1294171634-13943-5-git-send-email-nm@ti.com> (raw) In-Reply-To: <1294171634-13943-1-git-send-email-nm@ti.com> omap2_wd_timer_disable is declared in wdtimer.h and used by hwmod function pointers for usage, the header inclusion is necessary to ensure that the prototype and function remains consistent. omap_wdt_latency is passed as a pointer and does not need global scope Fixes sparse warnings: arch/arm/mach-omap2/devices.c:981:31: warning: symbol 'omap_wdt_latency' was not declared. Should it be static? arch/arm/mach-omap2/wd_timer.c:27:5: warning: symbol 'omap2_wd_timer_disable' was not declared. Should it be static? Signed-off-by: Nishanth Menon <nm@ti.com> --- arch/arm/mach-omap2/devices.c | 2 +- arch/arm/mach-omap2/wd_timer.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 381f4eb..2c9c912 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c @@ -978,7 +978,7 @@ static int __init omap2_init_devices(void) arch_initcall(omap2_init_devices); #if defined(CONFIG_OMAP_WATCHDOG) || defined(CONFIG_OMAP_WATCHDOG_MODULE) -struct omap_device_pm_latency omap_wdt_latency[] = { +static struct omap_device_pm_latency omap_wdt_latency[] = { [0] = { .deactivate_func = omap_device_idle_hwmods, .activate_func = omap_device_enable_hwmods, diff --git a/arch/arm/mach-omap2/wd_timer.c b/arch/arm/mach-omap2/wd_timer.c index b0c4907..4067669 100644 --- a/arch/arm/mach-omap2/wd_timer.c +++ b/arch/arm/mach-omap2/wd_timer.c @@ -13,6 +13,8 @@ #include <plat/omap_hwmod.h> +#include "wd_timer.h" + /* * In order to avoid any assumptions from bootloader regarding WDT * settings, WDT module is reset during init. This enables the watchdog -- 1.6.3.3
next prev parent reply other threads:[~2011-01-04 20:07 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-01-04 20:07 [PATCH 0/5] OMAP2+: trivial sparse fixes Nishanth Menon 2011-01-04 20:07 ` Nishanth Menon 2011-01-04 20:07 ` [PATCH 1/5] omap3|4: mux: make local structures static Nishanth Menon 2011-01-04 20:07 ` Nishanth Menon 2011-01-04 20:07 ` [PATCH 2/5] omap3: zoom: use static for pointer passing Nishanth Menon 2011-01-04 20:07 ` Nishanth Menon 2011-01-04 20:07 ` [PATCH 3/5] omap3: igep3: make igep3_flash_init static Nishanth Menon 2011-01-04 20:07 ` Nishanth Menon 2011-01-04 20:07 ` Nishanth Menon [this message] 2011-01-04 20:07 ` [PATCH 4/5] omap2+: wdt: trivial sparse fixes Nishanth Menon 2011-01-04 20:07 ` [PATCH 5/5] omap2+: pm_bus: make functions used as pointers as static Nishanth Menon 2011-01-04 20:07 ` Nishanth Menon 2011-01-05 0:40 ` Kevin Hilman 2011-01-05 0:40 ` Kevin Hilman 2011-01-06 22:43 ` Tony Lindgren 2011-01-06 22:43 ` Tony Lindgren
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1294171634-13943-5-git-send-email-nm@ti.com \ --to=nm@ti.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-omap@vger.kernel.org \ --cc=tony@atomide.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.