git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] reftable: fix some sparse warnings

From
Han-Wen Nienhuys <hanwen@google.com>
Date
Sep 30, 2020, 16:51 UTC
Message-ID
<CAFQ2z_PNT0g2yAbMkWEQW3UjbMbzALfkAfLDzpiUZjOE0b29vw@mail.gmail.com>
In-Reply-To
<eaf4629b-d8c4-0ddc-8c85-6600399a8229@ramsayjones.plus.com>

On Wed, Sep 23, 2020 at 12:47 AM Ramsay Jones <ramsay@ramsayjones.plus.com> wrote:

Show 10 quoted lines
>
>
> Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
> ---
>
> Hi Han-Wen Nienhuys,
>
> If you need to re-roll your 'hn/reftable' branch, could you please squash this
> into the relevant patches.
>

Thanks for the heads-up. I fixed some of these issues in the source at google/reftable. I've seen a Helped-By footer used to acknowledge these types of contributions, but I'm not sure on which of the 13 commits I should put that; suggestions?

> This patch is based on top of 'seen' and removes 20 sparse warnings (19 of the
Could you tell me how I can run these checks myself?
> Just for your information, you may want to look at the following 27 symbols:
Show 9 quoted lines
>   > reftable/merged.o   - reftable_merged_table_hash_id
>   > reftable/merged.o   - reftable_merged_table_max_update_index
>   > reftable/merged.o   - reftable_merged_table_min_update_index
>   > reftable/merged.o   - reftable_merged_table_seek_log_at
>   > reftable/publicbasics.o     - reftable_error_to_errno
>   > reftable/publicbasics.o     - reftable_set_alloc
>   > reftable/reader.o   - reftable_reader_seek_log_at
>  > reftable/stack.o    - reftable_addition_close
>   > reftable/stack.o    - reftable_stack_auto_compact

These functions are part of the public API. We'll need to get the reftable glue code into seen. Perhaps some need unittest coverage too.

-- 
Han-Wen Nienhuys - Google Munich
I work 80%. Don't expect answers from me on Fridays.
--
Google Germany GmbH, Erika-Mann-Strasse 33, 80636 Munich
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Paul Manicle, Halimah DeLaine Prado
Previous: Ramsay JonesNext: Ramsay Jones
Message 2 of 3 in “reftable: fix some sparse warnings”
  1. reftable: fix some sparse warningsRamsay Jones, Sep 22, 2020
  2. Han-Wen NienhuysSep 30, 2020
  3. Ramsay JonesSep 30, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.