* [PATCH] video: exynos: Ensure definitions match prototypes
@ 2013-07-02 11:26 Mark Brown
2013-07-02 12:30 ` Inki Dae
2013-08-30 7:15 ` Tomi Valkeinen
0 siblings, 2 replies; 4+ messages in thread
From: Mark Brown @ 2013-07-02 11:26 UTC (permalink / raw)
To: Tomi Valkeinen, Jingoo Han
Cc: linux-fbdev, linux-samsung-soc, linaro-kernel, Mark Brown
From: Mark Brown <broonie@linaro.org>
Ensure that the definitions of functions match the prototypes used by
other modules by including the header with the prototypes in the files
with the definitions.
Signed-off-by: Mark Brown <broonie@linaro.org>
---
drivers/video/exynos/exynos_mipi_dsi_lowlevel.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c b/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c
index 15c5abd..c148d06 100644
--- a/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c
+++ b/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c
@@ -27,6 +27,7 @@
#include <video/exynos_mipi_dsim.h>
#include "exynos_mipi_dsi_regs.h"
+#include "exynos_mipi_dsi_lowlevel.h"
void exynos_mipi_dsi_func_reset(struct mipi_dsim_device *dsim)
{
--
1.8.3.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* RE: [PATCH] video: exynos: Ensure definitions match prototypes
2013-07-02 11:26 [PATCH] video: exynos: Ensure definitions match prototypes Mark Brown
@ 2013-07-02 12:30 ` Inki Dae
2013-07-02 15:07 ` Mark Brown
2013-08-30 7:15 ` Tomi Valkeinen
1 sibling, 1 reply; 4+ messages in thread
From: Inki Dae @ 2013-07-02 12:30 UTC (permalink / raw)
To: linux-fbdev
> -----Original Message-----
> From: linux-fbdev-owner@vger.kernel.org [mailto:linux-fbdev-
> owner@vger.kernel.org] On Behalf Of Mark Brown
> Sent: Tuesday, July 02, 2013 8:27 PM
> To: Tomi Valkeinen; Jingoo Han
> Cc: linux-fbdev@vger.kernel.org; linux-samsung-soc@vger.kernel.org;
> linaro-kernel@lists.linaro.org; Mark Brown
> Subject: [PATCH] video: exynos: Ensure definitions match prototypes
>
> From: Mark Brown <broonie@linaro.org>
>
> Ensure that the definitions of functions match the prototypes used by
> other modules by including the header with the prototypes in the files
> with the definitions.
>
Is there some functions being used by other modules? And what problem can be
incurred without this patch?
Thanks,
Inki Dae
> Signed-off-by: Mark Brown <broonie@linaro.org>
> ---
> drivers/video/exynos/exynos_mipi_dsi_lowlevel.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c
> b/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c
> index 15c5abd..c148d06 100644
> --- a/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c
> +++ b/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c
> @@ -27,6 +27,7 @@
> #include <video/exynos_mipi_dsim.h>
>
> #include "exynos_mipi_dsi_regs.h"
> +#include "exynos_mipi_dsi_lowlevel.h"
>
> void exynos_mipi_dsi_func_reset(struct mipi_dsim_device *dsim)
> {
> --
> 1.8.3.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] video: exynos: Ensure definitions match prototypes
2013-07-02 12:30 ` Inki Dae
@ 2013-07-02 15:07 ` Mark Brown
0 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2013-07-02 15:07 UTC (permalink / raw)
To: Inki Dae
Cc: 'Tomi Valkeinen', 'Jingoo Han', linux-fbdev,
linux-samsung-soc, linaro-kernel
[-- Attachment #1: Type: text/plain, Size: 643 bytes --]
On Tue, Jul 02, 2013 at 09:30:31PM +0900, Inki Dae wrote:
> > Ensure that the definitions of functions match the prototypes used by
> > other modules by including the header with the prototypes in the files
> > with the definitions.
> Is there some functions being used by other modules? And what problem can be
> incurred without this patch?
Well, aside from it being basic good practice and allowing the compiler
to check for errors in the prototypes this is also something that sparse
warns about. There do seem to be references to the functions in other
modules, in some cases this is every single function in the file.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] video: exynos: Ensure definitions match prototypes
2013-07-02 11:26 [PATCH] video: exynos: Ensure definitions match prototypes Mark Brown
2013-07-02 12:30 ` Inki Dae
@ 2013-08-30 7:15 ` Tomi Valkeinen
1 sibling, 0 replies; 4+ messages in thread
From: Tomi Valkeinen @ 2013-08-30 7:15 UTC (permalink / raw)
To: Mark Brown
Cc: Jingoo Han, linux-fbdev, linux-samsung-soc, linaro-kernel,
Mark Brown
[-- Attachment #1: Type: text/plain, Size: 355 bytes --]
On 02/07/13 14:26, Mark Brown wrote:
> From: Mark Brown <broonie@linaro.org>
>
> Ensure that the definitions of functions match the prototypes used by
> other modules by including the header with the prototypes in the files
> with the definitions.
>
> Signed-off-by: Mark Brown <broonie@linaro.org>
Thanks, queued this for 3.12.
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-08-30 7:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-02 11:26 [PATCH] video: exynos: Ensure definitions match prototypes Mark Brown
2013-07-02 12:30 ` Inki Dae
2013-07-02 15:07 ` Mark Brown
2013-08-30 7:15 ` Tomi Valkeinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).