Re: [PATCH 2/3] DCCP: Shift code around

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

 



On 5/10/07, Ian McDonald <ian.mcdonald@xxxxxxxxxxx> wrote:
On 5/11/07, Arnaldo Carvalho de Melo <acme@xxxxxxxxxxxxxxxxxx> wrote:
> On 5/10/07, Ian McDonald <ian.mcdonald@xxxxxxxxxxx> wrote:
> > This is just shifting code around and involves no renames except for module
> > initialisation. Also add/remove static, includes, EXPORT_SYMBOL_GPL as
> > needed. We remove dccp_li_hist_entry_delete as it's not actually used
> > anywhere!
>
> Ian,
>
>       Could you please split this up into several patches:

Working on that at moment. About to post one patch which stands alone OK.

> ---------
> [acme@mica net-2.6]$ find net/dccp/  -type f | xargs grep ccid3_li_hist
> net/dccp/ccids/ccid3.c: dccp_li_hist_purge(ccid3_li_hist,
> &hcrx->ccid3hcrx_li_hist);
> net/dccp/ccids/lib/loss_interval.c:struct dccp_li_hist *ccid3_li_hist;
> net/dccp/ccids/lib/loss_interval.c:EXPORT_SYMBOL_GPL(ccid3_li_hist);
> net/dccp/ccids/lib/loss_interval.c:             if
> (!dccp_li_hist_interval_new(ccid3_li_hist,
> net/dccp/ccids/lib/loss_interval.c:             entry =
> dccp_li_hist_entry_new(ccid3_li_hist, GFP_ATOMIC);
> net/dccp/ccids/lib/loss_interval.c:
> kmem_cache_free(ccid3_li_hist->dccplih_slab, tail);
> net/dccp/ccids/lib/loss_interval.c:     ccid3_li_hist =
> dccp_li_hist_new("ccid3");
> net/dccp/ccids/lib/loss_interval.c:     if (ccid3_li_hist == NULL)
> net/dccp/ccids/lib/loss_interval.c:     if (ccid3_li_hist != NULL) {
> net/dccp/ccids/lib/loss_interval.c:
> dccp_li_hist_delete(ccid3_li_hist);
> net/dccp/ccids/lib/loss_interval.c:             ccid3_li_hist = NULL;
> net/dccp/ccids/lib/loss_interval.h:extern struct dccp_li_hist *ccid3_li_hist;
> [acme@mica net-2.6]$
> ---------
>
> dccp_li_hist_purge() with your patch becomes the only reason for
> ccid3_li_hist to be exported, so please just don't pass it as this
> function is _already_ in loss_interval.c where ccid3_li_hist is. Then
> make ccid3_li_hist static, unexport it and rename it to dccp_li_hist,
> just like all the other code and variables in loss_interval.c.

I actually had picked that up but saved it for later.... Was trying
not to overwhelm you with patches but backfired a little ;-)

> Patches that do many things are always bad for reviewing, sorry.

Understand. You said that last time when it was 3, and now it's about
10-15 patches I think after I do this work... I should have learnt by
now!

not a problem, the problem is with complex patches, that takes more
time. If you make it easy by leaving the most complex ones to the tail
and submit small, self contained patches, I can eat them ok :-)


- Arnaldo
-
To unsubscribe from this list: send the line "unsubscribe dccp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [IETF DCCP]     [Linux Networking]     [Git]     [Security]     [Linux Assembly]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux