public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Dirk Behme <dirk.behme@googlemail.com>
To: linux-omap-open-source@linux.omap.com
Subject: [PATCH] ARM: OMAP: Fix warning in dsp_ctl_core.c
Date: Fri, 18 May 2007 09:13:20 +0200	[thread overview]
Message-ID: <464D5210.6040001@googlemail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 283 bytes --]


Fix warning

arch/arm/plat-omap/dsp/dsp_ctl_core.c: In function 'dsp_ctl_core_open':
arch/arm/plat-omap/dsp/dsp_ctl_core.c:46: warning: ignoring return
value of 'mutex_lock_interruptible', declared with attribute
warn_unused_result

Signed-off-by: Dirk Behme <dirk.behme@gmail.com>

[-- Attachment #2: dsp_ctl_core_warning_fix.txt --]
[-- Type: text/plain, Size: 526 bytes --]

Index: linux-osk/arch/arm/plat-omap/dsp/dsp_ctl_core.c
===================================================================
--- linux-osk.orig/arch/arm/plat-omap/dsp/dsp_ctl_core.c
+++ linux-osk/arch/arm/plat-omap/dsp/dsp_ctl_core.c
@@ -43,7 +43,8 @@ static int dsp_ctl_core_open(struct inod
 	static DEFINE_MUTEX(open_lock);
 	int ret = 0;
 
-	mutex_lock_interruptible(&open_lock);
+	if (mutex_lock_interruptible(&open_lock))
+		return -EINTR;
 	if (omap_dsp->initialized == 0) {
 		ret = dsp_late_init();
 		if (ret != 0) {


[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



             reply	other threads:[~2007-05-18  7:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-18  7:13 Dirk Behme [this message]
2007-05-18 15:47 ` [PATCH] ARM: OMAP: Fix warning in dsp_ctl_core.c 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=464D5210.6040001@googlemail.com \
    --to=dirk.behme@googlemail.com \
    --cc=linux-omap-open-source@linux.omap.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: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox