Re: Please add new Android branches

Guillaume Tucker <[email protected]>
Newsgroups dev.linux.lists.kernelci,dev.linux.lists.llvm
Message-ID <[email protected]>
On 20/09/2023 18:57, Nick Desaulniers wrote:
> On Tue, Sep 19, 2023 at 5:12 PM Todd Kjos <[email protected]> wrote:
>>
>> On Tue, Sep 19, 2023 at 4:19 PM Nick Desaulniers
>> <[email protected]> wrote:
>>>
>>> Half of the red exclamation marks on that link are are "0 warnings - 0
>>> errors".  What's up with that?
>>
>> This more recent build has "0 warnings - 0 errors":
>> https://linux.kernelci.org/build/android/branch/android15-6.1/kernel/ASB-2023-07-05_14-6.1-2620-gf2d0380464d3/
>>
>> Here is the error (not sure why it bubbled up as 0/0):
>>
>>   AR      drivers/base/power/built-in.a
>> ../fs/namei.c:2172:13: error: use of bitwise '|' with boolean operands
>> [-Werror,-Wbitwise-instead-of-logical]
>>         } while (!(has_zero(a, &adata, &constants) | has_zero(b,
>> &bdata, &constants)));
>>
>> ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>                                                    ||
>> ../fs/namei.c:2172:13: note: cast one or both operands to int to
>> silence this warning
>>   CC      drivers/base/firmware_loader/builtin/main.o
>> 1 error generated.
>> make[3]: *** [../scripts/Makefile.build:250: fs/namei.o] Error 1
>> make[3]: *** Waiting for unfinished jobs....
>> make[2]: *** [../scripts/Makefile.build:500: fs] Error 2
> 
> Guillaume,
> Any idea what's up with that? Seems like the existence of diagnostics
> is detected correctly; the number of warnings and errors is not.

Yes I think there's some heuristics in the legacy log parsing
tool to count the number of compiler warnings and errors.  This
probably is outdated with Clang now, so the build exit status is
used to detect a failure but then the stats are off.

It's better to avoid fixing this code as it's going to be retired
in a few months' time to be replaced with a fresh implementation
based on the new API.  I believe some tweaks could be done to fix
critical issues, but if the detail of warnings and errors can be
found even though the stats are off then maybe we can save the
effort of fixing it?

Cheers,
Guillaume
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.