Staging: vc04_services: bcm2835-camera: Add blank line after declarations
Subsystems (3)
PATCH 1/1 Staging: vc04_services: bcm2835-camera: Add blank line after declarations
This patch adds a blank line after declarations. This enhances readability.
Problem found using checkpatch.
--- drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c | 1 + 1 file changed, 1 insertion(+)
drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c +1 -0
@@ -1982,6 +1982,7 @@ int vchiq_mmal_init(struct vchiq_mmal_instance **out_instance)struct vchiq_mmal_instance *instance;static VCHI_CONNECTION_T *vchi_connection;static VCHI_INSTANCE_T vchi_instance; +SERVICE_CREATION_T params = { .version =VCHI_VERSION_EX (VC_MMAL_VER ,VC_MMAL_MIN_VER ), .service_id =VC_MMAL_SERVER_NAME ,
Signature · 1 line
2.7.4
Quoted 14 lines · Meghana Madhyastha
This patch adds a blank line after declarations. This enhances readability.
Problem found using checkpatch.
Signed-off-by Meghana Madhyastha <[email protected]>--- drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c | 1 + 1 file changed, 1 insertion(+)drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c +0
-0
drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c int vchiq_mmal_init(struct vchiq_mmal_instance **out_instance) · line 1988
Quoted 7 lines
drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c +1
-0@@ -1982,6 +1982,7 @@ int vchiq_mmal_init(struct vchiq_mmal_instance **out_instance)struct vchiq_mmal_instance *instance;static VCHI_CONNECTION_T *vchi_connection;static VCHI_INSTANCE_T vchi_instance; +SERVICE_CREATION_T params = { .version =VCHI_VERSION_EX (VC_MMAL_VER ,VC_MMAL_MIN_VER ), .service_id =VC_MMAL_SERVER_NAME ,
This looks like a declaration too. I guess the typedef makes it so that checkpatch doesn't recognize it as such. Perhaps you can remove the typedefs instead. It could be good to start with just one, because removing a typedef requires changes in many files, and it is better to do one thing correctly than to do many things and risk introducing a mistake.
julia
Quoted 10 lines
--
2.7.4--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20170910033412.GA26296%40meghana-HP-Pavilion-Notebook.
For more options, visit https://groups.google.com/d/optout.
Greg Kroah-Hartman
maintainerQuoted 14 lines · Meghana Madhyastha
This patch adds a blank line after declarations. This enhances readability.
Problem found using checkpatch.
Signed-off-by Meghana Madhyastha <[email protected]>--- drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c | 1 + 1 file changed, 1 insertion(+)drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c +0
-0
drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c int vchiq_mmal_init(struct vchiq_mmal_instance **out_instance) · line 1988
Quoted 7 lines
drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c +1
-0@@ -1982,6 +1982,7 @@ int vchiq_mmal_init(struct vchiq_mmal_instance **out_instance)struct vchiq_mmal_instance *instance;static VCHI_CONNECTION_T *vchi_connection;static VCHI_INSTANCE_T vchi_instance; +SERVICE_CREATION_T params = { .version =VCHI_VERSION_EX (VC_MMAL_VER ,VC_MMAL_MIN_VER ), .service_id =VC_MMAL_SERVER_NAME ,
checkpatch is wrong here :(
Quoted 10 lines · Greg Kroah-Hartman
Quoted 9 lines · Meghana Madhyastha
This patch adds a blank line after declarations. This enhances readability.
Problem found using checkpatch.
Signed-off-by Meghana Madhyastha <[email protected]>--- drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c | 1 + 1 file changed, 1 insertion(+)
Quoted 14 lines
drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c int vchiq_mmal_init(struct vchiq_mmal_instance **out_instance) · line 1988
Quoted 12 lines
drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c +1
-0@@ -1982,6 +1982,7 @@ int vchiq_mmal_init(struct vchiq_mmal_instance **out_instance)struct vchiq_mmal_instance *instance;static VCHI_CONNECTION_T *vchi_connection;static VCHI_INSTANCE_T vchi_instance; +SERVICE_CREATION_T params = { .version =VCHI_VERSION_EX (VC_MMAL_VER ,VC_MMAL_MIN_VER ), .service_id =VC_MMAL_SERVER_NAME ,checkpatch is wrong here :(
Sorry about that. So should this be dropped altogether or should I continue removing the typedefs?
Quoted 25 lines · Meghana Madhyastha
Quoted 10 lines · Greg Kroah-Hartman
Quoted 9 lines · Meghana Madhyastha
This patch adds a blank line after declarations. This enhances readability.
Problem found using checkpatch.
Signed-off-by Meghana Madhyastha <[email protected]>--- drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c | 1 + 1 file changed, 1 insertion(+)Quoted 14 lines
drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c int vchiq_mmal_init(struct vchiq_mmal_instance **out_instance) · line 1988
Quoted 12 lines
drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c +1
-0@@ -1982,6 +1982,7 @@ int vchiq_mmal_init(struct vchiq_mmal_instance **out_instance)struct vchiq_mmal_instance *instance;static VCHI_CONNECTION_T *vchi_connection;static VCHI_INSTANCE_T vchi_instance; +SERVICE_CREATION_T params = { .version =VCHI_VERSION_EX (VC_MMAL_VER ,VC_MMAL_MIN_VER ), .service_id =VC_MMAL_SERVER_NAME ,checkpatch is wrong here :(
Quoted 1 line
Sorry about that. So should this be dropped altogether or should I continue removing the typedefs?
The existing patch should be dropped. But eliminating typedefs for structures is good.
julia
Quoted 8 lines
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20170911171458.GA28700%40meghana-HP-Pavilion-Notebook.
For more options, visit https://groups.google.com/d/optout.