git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* partial_clone_get_default_filter_spec has no callers
@ 2017-12-06 17:39 Ramsay Jones
  2017-12-06 21:07 ` Jeff Hostetler
  0 siblings, 1 reply; 5+ messages in thread
From: Ramsay Jones @ 2017-12-06 17:39 UTC (permalink / raw)
  To: Jeff Hostetler; +Cc: Junio C Hamano, GIT Mailing-list

Hi Jeff,

commit f1862e8153 ("partial-clone: define partial clone settings
in config", 2017-12-05), which is part of your 'jh/partial-clone'
branch, introduces the partial_clone_get_default_filter_spec()
function without any callers. Could you please confirm that this
is intentional and that, presumably, a future series will include
a call to this function.

Thanks!

ATB,
Ramsay Jones


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: partial_clone_get_default_filter_spec has no callers
  2017-12-06 17:39 partial_clone_get_default_filter_spec has no callers Ramsay Jones
@ 2017-12-06 21:07 ` Jeff Hostetler
  2017-12-07  1:59   ` Ramsay Jones
  0 siblings, 1 reply; 5+ messages in thread
From: Jeff Hostetler @ 2017-12-06 21:07 UTC (permalink / raw)
  To: Ramsay Jones, Jeff Hostetler; +Cc: Junio C Hamano, GIT Mailing-list



On 12/6/2017 12:39 PM, Ramsay Jones wrote:
> Hi Jeff,
> 
> commit f1862e8153 ("partial-clone: define partial clone settings
> in config", 2017-12-05), which is part of your 'jh/partial-clone'
> branch, introduces the partial_clone_get_default_filter_spec()
> function without any callers. Could you please confirm that this
> is intentional and that, presumably, a future series will include
> a call to this function.

I'll double check.  Thanks.

BTW is there another tool that you're using to find these?
I know I ran make DEVELOPER=1 and make sparse on everything
and didn't see that come up.

Jeff


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: partial_clone_get_default_filter_spec has no callers
  2017-12-06 21:07 ` Jeff Hostetler
@ 2017-12-07  1:59   ` Ramsay Jones
  2017-12-07  9:29     ` Luc Van Oostenryck
  2017-12-07 15:43     ` Jeff Hostetler
  0 siblings, 2 replies; 5+ messages in thread
From: Ramsay Jones @ 2017-12-07  1:59 UTC (permalink / raw)
  To: Jeff Hostetler, Jeff Hostetler; +Cc: Junio C Hamano, GIT Mailing-list

[-- Attachment #1: Type: text/plain, Size: 2292 bytes --]



On 06/12/17 21:07, Jeff Hostetler wrote:
> 
> 
> On 12/6/2017 12:39 PM, Ramsay Jones wrote:
>> Hi Jeff,
>>
>> commit f1862e8153 ("partial-clone: define partial clone settings
>> in config", 2017-12-05), which is part of your 'jh/partial-clone'
>> branch, introduces the partial_clone_get_default_filter_spec()
>> function without any callers. Could you please confirm that this
>> is intentional and that, presumably, a future series will include
>> a call to this function.
> 
> I'll double check.  Thanks.
> 
> BTW is there another tool that you're using to find these?
> I know I ran make DEVELOPER=1 and make sparse on everything
> and didn't see that come up.

In addition to sparse (which finds some of these), I also run a perl
script over the object files after a given build. (The script was
posted to the list by Junio, many moons ago, and I have made several
changes to my local copy).

I am attaching a copy of the script (static-check.pl). Note that the
'stop list' in the script (%def_ok) is _way_ out of date. However, the
way I use the script, that does not matter; I run the script over the
master->next->pu branches and (ignoring the master branch) diff the
result files from branch to branch. For example, tonight I have:

  $ wc -l sc nsc psc
    74 sc
    73 nsc
    75 psc
   222 total
  $ 
  $ diff sc nsc
  44d43
  < oidmap.o	- oidmap_remove
  $ 
  $ diff nsc psc
  43a44
  > list-objects-filter-options.o	- partial_clone_get_default_filter_spec
  58a60
  > sequencer.o	- sign_off_header
  $ 

You also have to be careful with leaving stale object files
laying around from previous builds ('make clean' sometimes
doesn't). Actually, it may be simpler to read a previous mailing
list thread on exactly this subject [1].

BTW, if you are using a version of sparse post v0.5.1, you can
get rid of the only sparse warning on Linux (assuming you don't
build with NO_REGEX set), by using the -Wno-memcpy-max-count option;
I have the following set in my config.mak:

  $ tail -2 config.mak
  pack-revindex.sp: SPARSE_FLAGS += -Wno-memcpy-max-count

  $ 

[I haven't sent a proper patch, since the required version of
sparse is not widely available yet.]

ATB,
Ramsay Jones

[1] https://public-inbox.org/git/%3Cb21c8a92-4dd5-56d6-ec6a-5709028eaf5f@ramsayjones.plus.com%3E/

[-- Attachment #2: static-check.pl --]
[-- Type: application/x-perl, Size: 1333 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: partial_clone_get_default_filter_spec has no callers
  2017-12-07  1:59   ` Ramsay Jones
@ 2017-12-07  9:29     ` Luc Van Oostenryck
  2017-12-07 15:43     ` Jeff Hostetler
  1 sibling, 0 replies; 5+ messages in thread
From: Luc Van Oostenryck @ 2017-12-07  9:29 UTC (permalink / raw)
  To: Ramsay Jones
  Cc: Jeff Hostetler, Jeff Hostetler, Junio C Hamano, GIT Mailing-list

On Thu, Dec 07, 2017 at 01:59:26AM +0000, Ramsay Jones wrote:
> 
> BTW, if you are using a version of sparse post v0.5.1, you can
> get rid of the only sparse warning on Linux (assuming you don't
> build with NO_REGEX set), by using the -Wno-memcpy-max-count option;
> I have the following set in my config.mak:
> 
>   $ tail -2 config.mak
>   pack-revindex.sp: SPARSE_FLAGS += -Wno-memcpy-max-count
> 
>   $ 
> 
> [I haven't sent a proper patch, since the required version of
> sparse is not widely available yet.]

Note that sparse simply ignore unknown options/flags, so adding
it now won't create a problem and can already help those using
a recent vesion of sparse.

Regards,
-- Luc 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: partial_clone_get_default_filter_spec has no callers
  2017-12-07  1:59   ` Ramsay Jones
  2017-12-07  9:29     ` Luc Van Oostenryck
@ 2017-12-07 15:43     ` Jeff Hostetler
  1 sibling, 0 replies; 5+ messages in thread
From: Jeff Hostetler @ 2017-12-07 15:43 UTC (permalink / raw)
  To: Ramsay Jones, Jeff Hostetler; +Cc: Junio C Hamano, GIT Mailing-list



On 12/6/2017 8:59 PM, Ramsay Jones wrote:
> 
> 
> On 06/12/17 21:07, Jeff Hostetler wrote:
>>
>>
>> On 12/6/2017 12:39 PM, Ramsay Jones wrote:
>>> Hi Jeff,
>>>
>>> commit f1862e8153 ("partial-clone: define partial clone settings
>>> in config", 2017-12-05), which is part of your 'jh/partial-clone'
>>> branch, introduces the partial_clone_get_default_filter_spec()
>>> function without any callers. Could you please confirm that this
>>> is intentional and that, presumably, a future series will include
>>> a call to this function.
>>
>> I'll double check.  Thanks.
>>
>> BTW is there another tool that you're using to find these?
>> I know I ran make DEVELOPER=1 and make sparse on everything
>> and didn't see that come up.
> 
> In addition to sparse (which finds some of these), I also run a perl
> script over the object files after a given build. (The script was
> posted to the list by Junio, many moons ago, and I have made several
> changes to my local copy).
> 
> I am attaching a copy of the script (static-check.pl). Note that the
> 'stop list' in the script (%def_ok) is _way_ out of date. However, the
> way I use the script, that does not matter; I run the script over the
> master->next->pu branches and (ignoring the master branch) diff the
> result files from branch to branch. For example, tonight I have:
> 
>    $ wc -l sc nsc psc
>      74 sc
>      73 nsc
>      75 psc
>     222 total
>    $
>    $ diff sc nsc
>    44d43
>    < oidmap.o	- oidmap_remove
>    $
>    $ diff nsc psc
>    43a44
>    > list-objects-filter-options.o	- partial_clone_get_default_filter_spec
>    58a60
>    > sequencer.o	- sign_off_header
>    $
> 
> You also have to be careful with leaving stale object files
> laying around from previous builds ('make clean' sometimes
> doesn't). Actually, it may be simpler to read a previous mailing
> list thread on exactly this subject [1].
> 
[...]
> 
> ATB,
> Ramsay Jones
> 
> [1] https://public-inbox.org/git/%3Cb21c8a92-4dd5-56d6-ec6a-5709028eaf5f@ramsayjones.plus.com%3E/
> 

thanks!  maybe you could post something (in contrib/ perhaps)
that would run your script on a pair of commits like t/perf/run.sh.
just a thought.

Jeff


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-12-07 15:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-06 17:39 partial_clone_get_default_filter_spec has no callers Ramsay Jones
2017-12-06 21:07 ` Jeff Hostetler
2017-12-07  1:59   ` Ramsay Jones
2017-12-07  9:29     ` Luc Van Oostenryck
2017-12-07 15:43     ` Jeff Hostetler

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).