From: "Arnd Bergmann" <arnd@arndb.de>
To: "Andy Shevchenko" <andriy.shevchenko@intel.com>,
"Nathan Chancellor" <nathan@kernel.org>
Cc: cdcp206@gmail.com, "Nuno Sá" <nuno.sa@analog.com>,
"Jonathan Cameron" <jic23@kernel.org>,
"Arnd Bergmann" <arnd@kernel.org>,
"David Lechner" <dlechner@baylibre.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Liviu Stan" <liviu.stan@analog.com>,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
"kernel test robot" <lkp@intel.com>
Subject: Re: [PATCH] iio: temperature: ltc2983: avoid string comparison for leak detector
Date: Fri, 02 Oct 2026 15:40:25 +0200 [thread overview]
Message-ID: <732d7dfd-172b-46ed-94c8-1c550cc682ce@app.fastmail.com> (raw)
In-Reply-To: <ar-yaTw3gBFde0iA@ashevche-desk.local>
On Fri, Oct 2, 2026, at 15:32, Andy Shevchenko wrote:
> On Wed, Sep 30, 2026 at 05:03:36PM +0200, Nathan Chancellor wrote:
>> On Wed, Sep 30, 2026 at 12:52:16PM +0300, Andy Shevchenko wrote:
>> > Hmm... I consider that the compiler warning is just a noise which we should
>> > ignore or disable. It's doubtfully useful as if it may prove the always false
>> > or always true cases, it doesn't mean there won't be other cases in the future.
>> > Do we have any discussion on that warning before?
>>
>> I don't think there has been a discussion around -Wstring-compare
>> before. Unfortunately, it seems like clang's -Wstring-compare is
>> different from GCC's -Wstring-compare. clang's is basically a subwarning
>> in GCC's -Waddress and GCC's -Wstring-compare does not really have an
>> equivalent in clang proper (it seems like it might be a clang-tidy
>> check IIUC?):
It's unfortunate that they do different things, but both warnings
seem useful to me. I certainly wouldn't turn it off after a single
false-positive.
Arnd
prev parent reply other threads:[~2026-10-02 13:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-29 17:38 Carlos Casadiego via B4 Relay
2026-09-30 9:52 ` Andy Shevchenko
2026-09-30 12:13 ` Nuno Sá
2026-09-30 15:03 ` Nathan Chancellor
2026-10-02 13:32 ` Andy Shevchenko
2026-10-02 13:40 ` Arnd Bergmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=732d7dfd-172b-46ed-94c8-1c550cc682ce@app.fastmail.com \
--to=arnd@arndb.de \
--cc=andriy.shevchenko@intel.com \
--cc=andy@kernel.org \
--cc=arnd@kernel.org \
--cc=cdcp206@gmail.com \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=liviu.stan@analog.com \
--cc=lkp@intel.com \
--cc=nathan@kernel.org \
--cc=nuno.sa@analog.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®