X-GM-THRID: 6395630061335085056 Date: Fri, 10 Mar 2017 01:55:48 -0800 (PST) From: Tamara Diaconita To: outreachy-kernel Cc: diaconitatamara@gmail.com, aditya.shankar@microchip.com, ganesh.krishna@microchip.com, gregkh@linuxfoundation.org, diaconita.tamara@gmail.com Message-Id: <7d6aece5-b445-4b82-b7d7-e948c81fb36d@googlegroups.com> In-Reply-To: References: <20170310091221.7109-1-diaconita.tamara@gmail.com> Subject: Re: [Outreachy kernel] [PATCH v3] staging: wilc1000: Enhance code formatting MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2024_200092029.1489139748495" X-Google-Token: EKTwicYF2RyahykTbAM0 X-Google-IP: 2a02:2f0b:8130:11ea:d515:7bde:c1d1:c737 ------=_Part_2024_200092029.1489139748495 Content-Type: multipart/alternative; boundary="----=_Part_2025_415308020.1489139748495" ------=_Part_2025_415308020.1489139748495 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I compiled the code and I understand what you said. I modified the files related to the one I changed in the first place. Do I need to make a patch set with all the files I have changed? vineri, 10 martie 2017, 11:18:11 UTC+2, Julia Lawall a scris: > > > > On Fri, 10 Mar 2017, Tamara Diaconita wrote: > > > This trims line size at 80 characters by shortening the names of > > variables. > > > > It makes code easier to read. > > > > Problem found with checkpatch.pl > > > > Signed-off-by: Tamara Diaconita > > > --- > > Changes since v2: > > *Shorten variables name. > > *Separate the patch from a patch set. > > > > Changes since v1: > > *Put the pacth in a set. > > > > drivers/staging/wilc1000/coreconfigurator.h | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/staging/wilc1000/coreconfigurator.h > b/drivers/staging/wilc1000/coreconfigurator.h > > index 10101f8..45563b9 100644 > > --- a/drivers/staging/wilc1000/coreconfigurator.h > > +++ b/drivers/staging/wilc1000/coreconfigurator.h > > @@ -123,7 +123,7 @@ struct disconnect_info { > > s32 wilc_parse_network_info(u8 *msg_buffer, > > struct network_info **ret_network_info); > > s32 wilc_parse_assoc_resp_info(u8 *buffer, u32 buffer_len, > > - struct connect_resp_info > **ret_connect_resp_info); > > + struct resp_info **ret_resp_info); > > I don't think you can change the name of a type in only one place. You > would have to change the declaration of the type and all of the other > uses. Did you compile any file that includes this code? Changing a > header file is tricky, because you can't compile it directly. You have to > find a .c file that contains it. > > julia > > > void wilc_scan_complete_received(struct wilc *wilc, u8 *pu8Buffer, > > u32 u32Length); > > void wilc_network_info_received(struct wilc *wilc, u8 *pu8Buffer, > > -- > > 2.9.3 > > > > -- > > 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 outreachy-kern...@googlegroups.com . > > To post to this group, send email to outreach...@googlegroups.com > . > > To view this discussion on the web visit > https://groups.google.com/d/msgid/outreachy-kernel/20170310091221.7109-1-diaconita.tamara%40gmail.com. > > > For more options, visit https://groups.google.com/d/optout. > > > ------=_Part_2025_415308020.1489139748495 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
I compiled the code and I understand what you said. I modi= fied the files related to the one I changed in the first place.
Do I nee= d to make a patch set with all the files I have changed?

vineri, 10 = martie 2017, 11:18:11 UTC+2, Julia Lawall a scris:


On Fri, 10 Mar 2017, Tamara Diaconita wrote:

> This trims line size at 80 characters by shortening the names of
> variables.
>
> It makes code easier to read.
>
> Problem found with ch= eckpatch.pl
>
> Signed-off-by: Tamara Diaconita <diaconit...@gmail.com>
> ---
> Changes since v2:
> *Shorten variables name.
> *Separate the patch from a patch set.
>
> Changes since v1:
> *Put the pacth in a set.
>
> =C2=A0drivers/staging/wilc1000/coreconfigurator.h | 2 +-
> =C2=A01 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/wilc1000/coreconfigurator.h b/dr= ivers/staging/wilc1000/coreconfigurator.h
> index 10101f8..45563b9 100644
> --- a/drivers/staging/wilc1000/coreconfigurator.h
> +++ b/drivers/staging/wilc1000/coreconfigurator.h
> @@ -123,7 +123,7 @@ struct disconnect_info {
> =C2=A0s32 wilc_parse_network_info(u8 *msg_buffer,
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 =C2=A0 =C2=A0struct network_info **ret_network_info);
> =C2=A0s32 wilc_parse_assoc_resp_info(u8 *buffer, u32 buffer_len,
> -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct connect_resp_info **ret_connect_resp_inf= o);
> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 struct resp_info **ret_resp_info);

I don't think you can change the name of a type in only one place. = =C2=A0You
would have to change the declaration of the type and all of the other
uses. =C2=A0Did you compile any file that includes this code? =C2=A0Cha= nging a
header file is tricky, because you can't compile it directly. =C2= =A0You have to
find a .c file that contains it.

julia

> =C2=A0void wilc_scan_complete_received(struct wilc *wilc, u8 = *pu8Buffer,
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 u32 u32Lengt= h);
> =C2=A0void wilc_network_info_received(struct wilc *wilc, u8 *= pu8Buffer,
> --
> 2.9.3
>
> --
> 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 outreachy-kern...@googlegroups.com.
> To post to this group, send email to outreach...@googlegroups.com<= /a>.
> To view this discussion on the web visit
https://groups.google= .com/d/msgid/outreachy-kernel/20170310091221.7109-1-diaconit= a.tamara%40gmail.com.
> For more options, visit https://groups.go= ogle.com/d/optout.
>
------=_Part_2025_415308020.1489139748495-- ------=_Part_2024_200092029.1489139748495--