Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1206135pxa; Fri, 28 Aug 2020 06:44:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyijk//SACRV09bsjjfxhVdbQFRey4qe0ZQmmptPGCFquYkOlmfV5riqeI/+4wd4MtFQ6qZ X-Received: by 2002:a17:906:d935:: with SMTP id rn21mr1975384ejb.145.1598622275792; Fri, 28 Aug 2020 06:44:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598622275; cv=none; d=google.com; s=arc-20160816; b=cKyWH7o1c59p0yLWF43ttHqp5Wm4vp7694RsoYEGorX3pHZ05mAl+tCnAz8CkbynVy feXZg6rYF/xm5X2iQIvCAzVnNcBQsjC6rKbl9eX3HTiQUksVDmSJ4D3801E7D6CYzYo8 90aRhIzShW8nKJDO+Lp0/nL15eIR8W0hluC0/+ya1lw+oTojDU4enHm8Oilp+EUX0qQH HGKnD2axxikfqICi+laEhzkdzxDiUDI0/fAHE9Zn7RljeNUhQvaRFf+4ciaz9HJthUWC coiarOSnBja4GGqsnJkQ1gL5PEffSZ6EBeEpTwlY3VVoxqULQhd1QO8bGUYztL5gq49g 1OsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=YdLnD8kilQi6Qu8wKPy3myXSTQRUVPOWLWxsi5X2Fak=; b=vPRO9Fi0DiVWYV7EoJW5w5Kly0D+obvi3C9VXvj+itzgT0ACK/R0m0NSOrpNBUQpkn RjEcgTvpMTB9vFFHJd/GhttyrKtORHgjVT3STgQxnSNOdjcDpmcVUxQkh+Sa6Mee6IoA AGgm9t7mabFk8iN+7mNa/m7Mt6FXeYuYmDKLc/jBo/SQJclvMuh8f8l8Q1iSaB3pFCRY SjbZQTY8wWvswnytK5/4H3XozpTXa67sDIWY5XjYyFYonG5Axg7qfD9Ef8kYOe8A/XPK u/mjMVozJIb0dAraTshd7IqHTlIG8DAsquePPEPnm44+P5bZm1JFtQ4rCDuo4qGzlyKG 5Gww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=t9eyrQX+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m18si654482ejk.743.2020.08.28.06.44.13; Fri, 28 Aug 2020 06:44:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=t9eyrQX+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729352AbgH1NnM (ORCPT + 99 others); Fri, 28 Aug 2020 09:43:12 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:47536 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729547AbgH1NkN (ORCPT ); Fri, 28 Aug 2020 09:40:13 -0400 Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) (authenticated) by conssluserg-02.nifty.com with ESMTP id 07SDd3xi014164; Fri, 28 Aug 2020 22:39:03 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 07SDd3xi014164 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1598621943; bh=YdLnD8kilQi6Qu8wKPy3myXSTQRUVPOWLWxsi5X2Fak=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=t9eyrQX+d1ulLL0/TMY60sXye5M1I5wDkQq4Df+A0o1cVrBXmJg6t11tbOQl2mUrh bySrf/sl+Z3WUBCsgDnvSd/nicXj7DNFkjISU/YuXvYESsbbtJvYUMhLtaP5JsLD1H Xm2uLN3kbNXLXS2nrVVwHCLH6ubI9bsktK7gGi9Dlf0DRGgEoQnhfcdN4p8XL6rU0n fcJlmhTV2TDeewsIKMj2tlsRl279nrD3um9T415MU564pvecCQQZon+BV6w0h04ns5 /wUomgE7AxMb+J2GXLw98WdbelePJs7m5kYMgaFrIuBH72AQUIG1Igs0PuMik+5Lqq rpfazqrkpYEZw== X-Nifty-SrcIP: [209.85.216.48] Received: by mail-pj1-f48.google.com with SMTP id ls14so516930pjb.3; Fri, 28 Aug 2020 06:39:03 -0700 (PDT) X-Gm-Message-State: AOAM530GGv1Ex5/MFVZKRHBGjJkK6db6eT0EOFcInEMJs/SSKAW4Jvpf jpmmG5Z7Gw7lxyZ/m7ZVKkvDlJElPXtqdSUI06w= X-Received: by 2002:a17:90a:fb53:: with SMTP id iq19mr1274061pjb.153.1598621942482; Fri, 28 Aug 2020 06:39:02 -0700 (PDT) MIME-Version: 1.0 References: <20200825231438.15682-1-natechancellor@gmail.com> In-Reply-To: From: Masahiro Yamada Date: Fri, 28 Aug 2020 22:38:25 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Documentation/llvm: Improve formatting of commands, variables, and arguments To: Nick Desaulniers Cc: Nathan Chancellor , Michal Marek , clang-built-linux , Linux Kbuild mailing list , Linux Doc Mailing List , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 26, 2020 at 10:36 PM Nick Desaulniers wrote: > > On Tue, Aug 25, 2020 at 4:14 PM Nathan Chancellor > wrote: > > > > While reviewing a separate patch, I noticed that the formatting of the > > commands, variables, and arguments was not in a monospaced font like the > > rest of the Kbuild documentation (see kbuild/kconfig.rst for an > > example). This is due to a lack of "::" before indented command blocks > > and single backticks instead of double backticks for inline formatting. > > > > Add those so that the document looks nicer in an HTML format, while not > > ruining the look in plain text. > > > > As a result of this, we can remove the escaped backslashes in the last > > code block and move them to single backslashes. > > > > Signed-off-by: Nathan Chancellor > > Ah, yeah, I saw that. Thanks for the fix! > Reviewed-by: Nick Desaulniers > > > --- > > Documentation/kbuild/llvm.rst | 26 +++++++++++++------------- > > 1 file changed, 13 insertions(+), 13 deletions(-) > > > > diff --git a/Documentation/kbuild/llvm.rst b/Documentation/kbuild/llvm.rst > > index 2aac50b97921..334df758dce3 100644 > > --- a/Documentation/kbuild/llvm.rst > > +++ b/Documentation/kbuild/llvm.rst > > @@ -23,8 +23,8 @@ supports C and the GNU C extensions required by the kernel, and is pronounced > > Clang > > ----- > > > > -The compiler used can be swapped out via `CC=` command line argument to `make`. > > -`CC=` should be set when selecting a config and during a build. > > +The compiler used can be swapped out via ``CC=`` command line argument to ``make``. > > +``CC=`` should be set when selecting a config and during a build. :: > > > > make CC=clang defconfig > > > > @@ -34,33 +34,33 @@ Cross Compiling > > --------------- > > > > A single Clang compiler binary will typically contain all supported backends, > > -which can help simplify cross compiling. > > +which can help simplify cross compiling. :: > > > > ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make CC=clang > > > > -`CROSS_COMPILE` is not used to prefix the Clang compiler binary, instead > > -`CROSS_COMPILE` is used to set a command line flag: `--target `. For > > -example: > > +``CROSS_COMPILE`` is not used to prefix the Clang compiler binary, instead > > +``CROSS_COMPILE`` is used to set a command line flag: ``--target ``. For > > +example: :: > > > > clang --target aarch64-linux-gnu foo.c > > > > LLVM Utilities > > -------------- > > > > -LLVM has substitutes for GNU binutils utilities. Kbuild supports `LLVM=1` > > -to enable them. > > +LLVM has substitutes for GNU binutils utilities. Kbuild supports ``LLVM=1`` > > +to enable them. :: > > > > make LLVM=1 > > > > -They can be enabled individually. The full list of the parameters: > > +They can be enabled individually. The full list of the parameters: :: > > > > - make CC=clang LD=ld.lld AR=llvm-ar NM=llvm-nm STRIP=llvm-strip \\ > > - OBJCOPY=llvm-objcopy OBJDUMP=llvm-objdump OBJSIZE=llvm-size \\ > > - READELF=llvm-readelf HOSTCC=clang HOSTCXX=clang++ HOSTAR=llvm-ar \\ > > + make CC=clang LD=ld.lld AR=llvm-ar NM=llvm-nm STRIP=llvm-strip \ > > + OBJCOPY=llvm-objcopy OBJDUMP=llvm-objdump OBJSIZE=llvm-size \ > > + READELF=llvm-readelf HOSTCC=clang HOSTCXX=clang++ HOSTAR=llvm-ar \ > > HOSTLD=ld.lld > > > > Currently, the integrated assembler is disabled by default. You can pass > > -`LLVM_IAS=1` to enable it. > > +``LLVM_IAS=1`` to enable it. > > > > Getting Help > > ------------ > > > > base-commit: abb3438d69fb6dd5baa4ae23eafbf5b87945eff1 > > -- Applied to linux-kbuild/fixes. Thanks. -- Best Regards Masahiro Yamada