All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
To: Mohamed Khalfella <mkhalfella@purestorage.com>
Cc: linux-block@vger.kernel.org, Randy Jennings <randyj@purestorage.com>
Subject: Re: [PATCH blktests] src/Makefile: fix HAVE_C_DEF probe under a non-bash /bin/sh
Date: Fri, 11 Sep 2026 20:36:44 +0900	[thread overview]
Message-ID: <aqPnqZy5HKiNWxlt@shinmob> (raw)
In-Reply-To: <20260908214823.2366812-1-mkhalfella@purestorage.com>

On Sep 08, 2026 / 14:48, Mohamed Khalfella wrote:
> HAVE_C_DEF feeds its test program to the compiler with "echo -e". The
> $(shell ...) function runs under /bin/sh, which is dash on Debian and
> Ubuntu, and dash's echo has no -e option. It prints the flag literally,
> so the first line of the probe becomes
> 
>     -e #include <linux/ublk_cmd.h>
> 
> which is no longer a preprocessor directive. The header is never
> included, the tested macro is never defined, and the probe reports 0
> regardless of what the installed headers contain.
> 
> The only user is HAVE_NEW_UBLK_INTF, so miniublk is skipped with
> 
>     Skip miniublk build due to missing new ublk interface(v6.4+)
> 
> Use printf instead, which expands \n in any POSIX shell, and pass the
> substituted names as arguments so they are not reinterpreted.
> 
> Signed-off-by: Mohamed Khalfella <mkhalfella@purestorage.com>

I applied the patch. Thanks!

      reply	other threads:[~2026-09-11 11:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-08 21:48 [PATCH blktests] src/Makefile: fix HAVE_C_DEF probe under a non-bash /bin/sh Mohamed Khalfella
2026-09-11 11:36 ` Shin'ichiro Kawasaki [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=aqPnqZy5HKiNWxlt@shinmob \
    --to=shinichiro.kawasaki@wdc.com \
    --cc=linux-block@vger.kernel.org \
    --cc=mkhalfella@purestorage.com \
    --cc=randyj@purestorage.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.