Linux CAN drivers development
 help / color / mirror / Atom feed
From: Jean Delvare <jdelvare@suse.de>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Vincent MAILHOL <mailhol.vincent@wanadoo.fr>,
	linux-can@vger.kernel.org, kernel@pengutronix.de,
	Marc Kleine-Budde <mkl@pengutronix.de>,
	Miguel Ojeda <ojeda@kernel.org>,
	Masahiro Yamada <masahiroy@kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH] can: rockchip_canfd: Drop obsolete dependency on COMPILE_TEST
Date: Mon, 25 Nov 2024 09:26:16 +0100	[thread overview]
Message-ID: <20241125092616.3b93c2b1@endymion.delvare> (raw)
In-Reply-To: <CAMuHMdXU8tMPbHMDZmU=0xd-X6OqxO_3j=iLDR2XQ4q3URw2RQ@mail.gmail.com>

Hi Geert,

On Fri, 22 Nov 2024 15:33:21 +0100, Geert Uytterhoeven wrote:
> On Thu, Nov 21, 2024 at 2:50 PM Jean Delvare <jdelvare@suse.de> wrote:
> > Your reasoning would hold only if building a limited, maybe
> > not-working driver, was a purpose in itself. I personally can't see
> > any value in doing this.  
> 
> It may help detecting more configuration issues using randconfig.

Maybe I would agree if build time, energy and engineering time were
free and unlimited resources.

In our world though, the time spent by a test build farm to build a
known-crippled driver would be better used to start the next test build
earlier. This makes for better quality coverage. Or the energy used to
do that could also be saved altogether.

And this suboptimal use of build time and energy is only the best case.
The worst case is if the randconfig case causes a "false positive" build
error or warning. This will generate a report, which will be sent to
mailing lists, read by human beings and investigated, wasting
engineering time.

I'm not making this up, this is in fact exactly what happened and led
me to investigate a first "depends on OF || COMPILE_TEST" case a few
years ago. I found out that the build warning would only possibly
trigger if COMPILE_TEST was selected and OF was not. It would never
trigger with any configuration options combination not including
COMPILE_TEST. Fixing it would require adding #ifdefs and using macros.
But why should we make the code more complex, less readable, to prevent
a warning which can never happen in a non-test scenario? And more
importantly, why should we allocate engineering time to look into such
issues, when there are so many more useful tasks to work on?

-- 
Jean Delvare
SUSE L3 Support

      parent reply	other threads:[~2024-11-25  8:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-22 11:04 [PATCH] can: rockchip_canfd: Drop obsolete dependency on COMPILE_TEST Jean Delvare
2024-10-22 13:22 ` Vincent MAILHOL
2024-10-22 17:04   ` Jean Delvare
2024-10-23  5:20     ` Vincent MAILHOL
2024-11-12 11:15   ` Geert Uytterhoeven
2024-11-21 13:50     ` Jean Delvare
2024-11-22 14:33       ` Geert Uytterhoeven
2024-11-22 14:36         ` Geert Uytterhoeven
2024-11-25  8:26         ` Jean Delvare [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=20241125092616.3b93c2b1@endymion.delvare \
    --to=jdelvare@suse.de \
    --cc=akpm@linux-foundation.org \
    --cc=geert@linux-m68k.org \
    --cc=kernel@pengutronix.de \
    --cc=linux-can@vger.kernel.org \
    --cc=mailhol.vincent@wanadoo.fr \
    --cc=masahiroy@kernel.org \
    --cc=mkl@pengutronix.de \
    --cc=ojeda@kernel.org \
    /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