mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Otavio Salvador <otavio@ossystems.com.br>
To: linux-kernel@vger.kernel.org
Cc: Otavio Salvador <otavio@ossystems.com.br>,
	Linus Walleij <linus.walleij@linaro.org>
Subject: [PATCH 2/2] pinctrl: pinctrl-mxs: fix implicit declaration of free()
Date: Sun, 17 Jun 2012 12:17:32 -0300	[thread overview]
Message-ID: <1339946252-21019-2-git-send-email-otavio@ossystems.com.br> (raw)
In-Reply-To: <1339946252-21019-1-git-send-email-otavio@ossystems.com.br>

,--[ build failure ]
| ...
| .../pinctrl-mxs.c: In function 'mxs_dt_node_to_map':
| .../pinctrl-mxs.c:140:3: error: implicit declaration of function 'free'
|                   [-Werror=implicit-function-declaration]
| .../pinctrl-mxs.c:140:3: warning: incompatible implicit declaration of
|                   built-in function 'free' [enabled by default]
| ...
`--

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Cc: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/pinctrl/pinctrl-mxs.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/pinctrl/pinctrl-mxs.c b/drivers/pinctrl/pinctrl-mxs.c
index afb50ee..85f8dda 100644
--- a/drivers/pinctrl/pinctrl-mxs.c
+++ b/drivers/pinctrl/pinctrl-mxs.c
@@ -136,8 +136,7 @@ static int mxs_dt_node_to_map(struct pinctrl_dev *pctldev,
 	return 0;
 
 free_group:
-	if (!purecfg)
-		free(group);
+	kfree(group);
 free:
 	kfree(new_map);
 	return ret;
-- 
1.7.10


  reply	other threads:[~2012-06-17 15:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-17 15:17 [PATCH 1/2] w1: Fix a typo in 'hardware' word Otavio Salvador
2012-06-17 15:17 ` Otavio Salvador [this message]
2012-06-18  6:04   ` [PATCH 2/2] pinctrl: pinctrl-mxs: fix implicit declaration of free() Linus Walleij
2012-06-18 12:18     ` Otavio Salvador
2012-06-18 12:27     ` devendra.aaru
2012-06-17 22:01 ` [PATCH 1/2] w1: Fix a typo in 'hardware' word Evgeniy Polyakov
2012-06-17 23:49   ` GregKH
  -- strict thread matches above, loose matches on Subject: below --
2012-06-17  3:06 Otavio Salvador
2012-06-17  3:06 ` [PATCH 2/2] pinctrl: pinctrl-mxs: fix implicit declaration of free() Otavio Salvador

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=1339946252-21019-2-git-send-email-otavio@ossystems.com.br \
    --to=otavio@ossystems.com.br \
    --cc=linus.walleij@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®