Re: [PATCH 12/20] ARM: boards: kontron-samx6i: Add include file to provide prototype

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 18, 2018 at 08:58:19AM +0200, Sascha Hauer wrote:
> samx6i_get_size() is declared and used in two different C files.
> Provide a header file for the prototype instead.
> 
> Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
> ---
> index ab9969e32c..3b9fbd464a 100644
> --- a/arch/arm/boards/kontron-samx6i/mem.c
> +++ b/arch/arm/boards/kontron-samx6i/mem.c
> @@ -15,6 +15,8 @@
>  #include <mach/imx-gpio.h>
>  #include <mach/imx6.h>
>  
> +#include "mem.h"
> +
>  #define PCBVERSION_PIN IMX_GPIO_NR(2, 2)
>  #define PCBID0_PIN IMX_GPIO_NR(6, 7)
>  #define PCBID1_PIN IMX_GPIO_NR(6, 9)
> diff --git a/arch/arm/boards/kontron-samx6i/mem.h b/arch/arm/boards/kontron-samx6i/mem.h
> new file mode 100644
> index 0000000000..252b82621d
> --- /dev/null
> +++ b/arch/arm/boards/kontron-samx6i/mem.h
> @@ -0,0 +1,6 @@
> +#ifndef __BOARD_KONTRON_SAMX6I_MEM_H
> +#define __BOARD_KONTRON_SAMX6I_MEM_H
> +
> +resource_size_t samx6i_get_size(void);
> +
> +#endif /* __BOARD_KONTRON_SAMX6I_MEM_H */
> \ No newline at end of file
Add missing newline?

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux