All of lore.kernel.org
 help / color / mirror / Atom feed
From: Masahiro Yamada <masahiroy@kernel.org>
To: Randy Dunlap <rdunlap@infradead.org>
Cc: Owen Rafferty <owen@owenrafferty.com>,
	Linux Kbuild mailing list <linux-kbuild@vger.kernel.org>,
	Nick Desaulniers <ndesaulniers@google.com>
Subject: Re: [PATCH v4] kbuild: rewrite check-local-export in sh/awk
Date: Thu, 29 Sep 2022 06:23:18 +0900	[thread overview]
Message-ID: <CAK7LNAS3-KoEiwqFTgNa4DPWrBYuPcy7mPpJ-6+dtYsa=bjaNQ@mail.gmail.com> (raw)
In-Reply-To: <CAK7LNATche7qAiTROUYsp9h4E6OEbvddYgArkZHx-OHxqqLwVQ@mail.gmail.com>

On Wed, Sep 28, 2022 at 2:38 PM Masahiro Yamada <masahiroy@kernel.org> wrote:
>
> On Wed, Sep 28, 2022 at 7:26 AM Randy Dunlap <rdunlap@infradead.org> wrote:
> >
> > Hi,
> >
> > On 9/6/22 02:28, Masahiro Yamada wrote:
> > > On Sun, Sep 4, 2022 at 1:01 AM Masahiro Yamada <masahiroy@kernel.org> wrote:
> > >>
> > >> On Thu, Sep 1, 2022 at 6:03 AM Owen Rafferty <owen@owenrafferty.com> wrote:
> > >>>
> > >>> Signed-off-by: Owen Rafferty <owen@owenrafferty.com>
> > >>> ---
> > >>
> > >>
> > >> Please input something in the commit log.
> > >>
> > >> I think the benchmark in v2 is worth mentioning
> > >> because "awk is faster than bash" is one benefit
> > >> of applying this patch.
> > >>
> > >>
> > >
> > >
> > >
> > > Applied to linux-kbuild. Thanks.
> > >
> > >
> > > (V5 was not delivered to ML somehow,
> > > but I found it in my mailbox.)
> >
> > Yeah, I haven't seen that one either.
> >
> > For whatever is in linux-next-20220927, I am seeing something
> > unpleasant. I'm not positive that it's due to this patch, so I'm
> > still checking/testing (but I'm about to leave home for awhile so
> > I wanted to go ahead and let people know about this).
> >
> > I do N number of randconfig builds in a script (say 10).
> > What I am seeing is that when an 'nm' error happens, the
> > script is Terminated and not continued. E.g., if the error
> > is on randconfig build #4, builds 5-10 are never started.
> > The controlling script dies.
> >
>
>
> Hmm, I have not yet observed such an error.
>
> If it happens depending on a particular configuration,
> please share the .config file.
>
>


Owen provided the following fix-up.
I see his mail in my mailbox, but not in ML.
(Does the ML reject mails from non-subscribers?)




diff --git a/scripts/check-local-export b/scripts/check-local-export
index 0c049ff44aca..f90b5a9c67b3 100755
--- a/scripts/check-local-export
+++ b/scripts/check-local-export
@@ -8,6 +8,7 @@
 # EXPORT_SYMBOL should be used for global symbols.

 set -e
+pid=$$

 # If there is no symbol in the object, ${NM} (both GNU nm and llvm-nm) shows
 # 'no symbols' diagnostic (but exits with 0). It is harmless and hidden by
@@ -20,7 +21,7 @@ set -e
 # Then, the following line will be simpler:
 #   { ${NM} --quiet ${1} || kill 0; } |

-{ ${NM} ${1} 2>/dev/null || { echo "${0}: ${NM} failed" >&2; kill 0; } } |
+{ ${NM} ${1} 2>/dev/null || { echo "${0}: ${NM} failed" >&2; kill $pid; } } |
 ${AWK} -v "file=${1}" '
 BEGIN {




I squashed the diff to the original patch.
Thanks.




-- 
Best Regards
Masahiro Yamada

  reply	other threads:[~2022-09-28 21:24 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-12 14:18 [PATCH v2] kbuild: rewrite check-local-export in sh/awk Owen Rafferty
2022-08-14  0:23 ` Masahiro Yamada
2022-08-15  0:25   ` Owen Rafferty
2022-08-27  5:40     ` Masahiro Yamada
2022-08-27 14:01 ` Masahiro Yamada
2022-08-27 16:52   ` [PATCH v3] " Owen Rafferty
2022-08-31  6:44     ` Masahiro Yamada
2022-08-31 20:57       ` [PATCH v4] " Owen Rafferty
2022-09-03 16:01         ` Masahiro Yamada
2022-09-06  9:28           ` Masahiro Yamada
2022-09-27 22:25             ` Randy Dunlap
2022-09-28  5:38               ` Masahiro Yamada
2022-09-28 21:23                 ` Masahiro Yamada [this message]
2022-09-28 23:26                   ` Randy Dunlap
2022-08-31 21:03       ` [PATCH v3] " Owen Rafferty

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='CAK7LNAS3-KoEiwqFTgNa4DPWrBYuPcy7mPpJ-6+dtYsa=bjaNQ@mail.gmail.com' \
    --to=masahiroy@kernel.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=ndesaulniers@google.com \
    --cc=owen@owenrafferty.com \
    --cc=rdunlap@infradead.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 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.