All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pinctrl: mxs: Use kfree to fix build error
@ 2012-06-13 17:06 Fabio Estevam
  2012-06-13 17:30 ` devendra.aaru
  2012-06-17 17:26 ` Linus Walleij
  0 siblings, 2 replies; 6+ messages in thread
From: Fabio Estevam @ 2012-06-13 17:06 UTC (permalink / raw)
  To: linus.walleij, shawn.guo, devendra.aaru; +Cc: linux-kernel, Fabio Estevam

commit 0bf7481 (pinctrl: pinctrl-mxs: Take care of frees if the kzalloc fails)
introduced the following build error:

drivers/pinctrl/pinctrl-mxs.c:140:3: error: implicit declaration of function 'free' 

Use kfree function instead.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
This applies against linux-next
 drivers/pinctrl/pinctrl-mxs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/pinctrl/pinctrl-mxs.c b/drivers/pinctrl/pinctrl-mxs.c
index afb50ee..4ba4636 100644
--- a/drivers/pinctrl/pinctrl-mxs.c
+++ b/drivers/pinctrl/pinctrl-mxs.c
@@ -137,7 +137,7 @@ static int mxs_dt_node_to_map(struct pinctrl_dev *pctldev,
 
 free_group:
 	if (!purecfg)
-		free(group);
+		kfree(group);
 free:
 	kfree(new_map);
 	return ret;
-- 
1.7.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] pinctrl: mxs: Use kfree to fix build error
  2012-06-13 17:06 [PATCH] pinctrl: mxs: Use kfree to fix build error Fabio Estevam
@ 2012-06-13 17:30 ` devendra.aaru
  2012-06-17 17:26 ` Linus Walleij
  1 sibling, 0 replies; 6+ messages in thread
From: devendra.aaru @ 2012-06-13 17:30 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: linus.walleij, shawn.guo, linux-kernel

Hi Fabio,

On Wed, Jun 13, 2012 at 10:36 PM, Fabio Estevam
<fabio.estevam@freescale.com> wrote:
> commit 0bf7481 (pinctrl: pinctrl-mxs: Take care of frees if the kzalloc fails)
> introduced the following build error:
>
> drivers/pinctrl/pinctrl-mxs.c:140:3: error: implicit declaration of function 'free'
>
> Use kfree function instead.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
> This applies against linux-next
>  drivers/pinctrl/pinctrl-mxs.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/pinctrl/pinctrl-mxs.c b/drivers/pinctrl/pinctrl-mxs.c
> index afb50ee..4ba4636 100644
> --- a/drivers/pinctrl/pinctrl-mxs.c
> +++ b/drivers/pinctrl/pinctrl-mxs.c
> @@ -137,7 +137,7 @@ static int mxs_dt_node_to_map(struct pinctrl_dev *pctldev,
>
>  free_group:
>        if (!purecfg)
> -               free(group);
> +               kfree(group);
>  free:
>        kfree(new_map);
>        return ret;
> --
> 1.7.1
>
>



agh, i am very sorry that i didn't built this because it was not
selectable in make allconfig. (mine is x86 intel corei3),
anyway its wrong that i used  a userspace free instead kfree.

Thanks for fixing this.

Acked-by: Devendra Naga <devendra.aaru@gmail.com>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] pinctrl: mxs: Use kfree to fix build error
  2012-06-13 17:06 [PATCH] pinctrl: mxs: Use kfree to fix build error Fabio Estevam
  2012-06-13 17:30 ` devendra.aaru
@ 2012-06-17 17:26 ` Linus Walleij
  2012-06-18  6:15   ` devendra.aaru
  1 sibling, 1 reply; 6+ messages in thread
From: Linus Walleij @ 2012-06-17 17:26 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: shawn.guo, devendra.aaru, linux-kernel

On Wed, Jun 13, 2012 at 7:06 PM, Fabio Estevam
<fabio.estevam@freescale.com> wrote:

> commit 0bf7481 (pinctrl: pinctrl-mxs: Take care of frees if the kzalloc fails)
> introduced the following build error:
>
> drivers/pinctrl/pinctrl-mxs.c:140:3: error: implicit declaration of function 'free'
>
> Use kfree function instead.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>

Applied, hm, Devendra please compile-test your patches ;-)

thanks,
Linus Walleij

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] pinctrl: mxs: Use kfree to fix build error
  2012-06-17 17:26 ` Linus Walleij
@ 2012-06-18  6:15   ` devendra.aaru
  2012-06-18  6:27     ` Linus Walleij
  0 siblings, 1 reply; 6+ messages in thread
From: devendra.aaru @ 2012-06-18  6:15 UTC (permalink / raw)
  To: Linus Walleij; +Cc: Fabio Estevam, shawn.guo, linux-kernel

Hi Linus,

On Sun, Jun 17, 2012 at 10:56 PM, Linus Walleij
<linus.walleij@linaro.org> wrote:
> On Wed, Jun 13, 2012 at 7:06 PM, Fabio Estevam
> <fabio.estevam@freescale.com> wrote:
>
>> commit 0bf7481 (pinctrl: pinctrl-mxs: Take care of frees if the kzalloc fails)
>> introduced the following build error:
>>
>> drivers/pinctrl/pinctrl-mxs.c:140:3: error: implicit declaration of function 'free'
>>
>> Use kfree function instead.
>>
>> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
>
> Applied, hm, Devendra please compile-test your patches ;-)

Sorry again for the build errors. :(

The pinctrl is not selectable even with make allyesconfig. is it for a
different arch than x86?
may i know which cross compiler to use to build the pinctrl subsystem :) ?
>
> thanks,
> Linus Walleij

Thanks,
Devendra

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] pinctrl: mxs: Use kfree to fix build error
  2012-06-18  6:15   ` devendra.aaru
@ 2012-06-18  6:27     ` Linus Walleij
  2012-06-18 11:36       ` devendra.aaru
  0 siblings, 1 reply; 6+ messages in thread
From: Linus Walleij @ 2012-06-18  6:27 UTC (permalink / raw)
  To: devendra.aaru; +Cc: Fabio Estevam, shawn.guo, linux-kernel

On Mon, Jun 18, 2012 at 8:15 AM, devendra.aaru <devendra.aaru@gmail.com> wrote:

> The pinctrl is not selectable even with make allyesconfig. is it for a
> different arch than x86?

At the request of Linus (Torvalds) machines and drivers that need pinctrl
shall select it explicitly in the Kconfig, and it's hidden for all others so
as not to confuse people and present them with strange stuff.

So currently only some ARM machines that actually use it will select it and
enable the sub-menu. But there is also a MIPS patch in the works.

> may i know which cross compiler to use to build the pinctrl subsystem :) ?

I use the prebuilt Linaro GCC toolchain:
https://launchpad.net/linaro-toolchain-binaries/+download

Put the /bin subdir in your path and e.g.:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- mxs_defconfig
etc

Linus Walleij

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] pinctrl: mxs: Use kfree to fix build error
  2012-06-18  6:27     ` Linus Walleij
@ 2012-06-18 11:36       ` devendra.aaru
  0 siblings, 0 replies; 6+ messages in thread
From: devendra.aaru @ 2012-06-18 11:36 UTC (permalink / raw)
  To: Linus Walleij; +Cc: Fabio Estevam, shawn.guo, linux-kernel

Hi Linus,

On Mon, Jun 18, 2012 at 11:57 AM, Linus Walleij
<linus.walleij@linaro.org> wrote:
> On Mon, Jun 18, 2012 at 8:15 AM, devendra.aaru <devendra.aaru@gmail.com> wrote:
>
>> The pinctrl is not selectable even with make allyesconfig. is it for a
>> different arch than x86?
>
> At the request of Linus (Torvalds) machines and drivers that need pinctrl
> shall select it explicitly in the Kconfig, and it's hidden for all others so
> as not to confuse people and present them with strange stuff.
>
> So currently only some ARM machines that actually use it will select it and
> enable the sub-menu. But there is also a MIPS patch in the works.

Thanks for letting me know about the pinctrl build configuration.
>
>> may i know which cross compiler to use to build the pinctrl subsystem :) ?
>
> I use the prebuilt Linaro GCC toolchain:
> https://launchpad.net/linaro-toolchain-binaries/+download
>
> Put the /bin subdir in your path and e.g.:
> make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- mxs_defconfig
> etc
>
Thanks! i set up the cross toolchain now. :)

>From now onwards you can expect at least compile tested patches from me.

> Linus Walleij

Thanks,
Devendra.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-06-18 11:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-13 17:06 [PATCH] pinctrl: mxs: Use kfree to fix build error Fabio Estevam
2012-06-13 17:30 ` devendra.aaru
2012-06-17 17:26 ` Linus Walleij
2012-06-18  6:15   ` devendra.aaru
2012-06-18  6:27     ` Linus Walleij
2012-06-18 11:36       ` devendra.aaru

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.