Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1319650pxb; Sun, 21 Feb 2021 21:09:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJxhWWMpc74mLc+WffBNJp3x1kpELB9CLCM7z9x0fOjgkAop0BU9D0A8M8nh/tiBzKElPeAv X-Received: by 2002:a17:907:7785:: with SMTP id ky5mr19930147ejc.176.1613970552075; Sun, 21 Feb 2021 21:09:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613970552; cv=none; d=google.com; s=arc-20160816; b=OVwWuXmVLV3riyRX0Gl2a9NGYV6JYGVhQB6fu5ZW91lWWC9Kq6yyT3sTBM2pOF5Pu4 KhhdIvv8QbAT4ocUHv5MOGXJG9PhVZca4vcYfw8rifS/rJd6Arl/E8vGKOMzoSgJOEiA ogSKeQRgy+l0D0qymi2+Sd4oNRfzuQOVZqDCc8yrPbzuSfx0msYELKXW134n3GrgnQPW NUn1w6SKISvzXG4uT+RDUjVYJbNtOMpU6JUvXBkQiP+ggnxLFxyQWypSYV34mtu2plK0 Z478b/sVw72smS4fpESH4ZDTeGYkPRjKvgvT/zDr/ZDcqIknhB0TyYwnSK0H8VAmz2CY VIaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=MAdQgWMwLIHOFSOgTkCjJwT8buUXD7pUPAun4wyFDw0=; b=VmGwCy0z7pZt6Py5/AhzrNIzhnz6T/KsbR1+0B3alKbZPDmemTI7CyDGLXZoPGgu8q X46Y0inHLhPbi0GWWJL7K+IvyFIiBj2WCgKmYG5BVCfXPJzDT1nakCVR6lgrIq09MP6D iENrYrxl3em6ppBHFgbCbtvmS3Fa8+0vchEDvj5wuBVGAPDIe22fcX16ysuvxNJ+LcO5 qUPnYxaG+0l8wwX+ZDXtlwQAviDt+nxCdgZgMBqQ0OWyVmuwdY7n6aRMsEJKYnn1zYGc cNVoDsAbN65nQWNGWMIGybrpQTZWIEgSjMr7J47m22gtAFlZWz0YAenHpHwEYwF2rZG4 dvJw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m12si6118503edr.269.2021.02.21.21.08.49; Sun, 21 Feb 2021 21:09:12 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230123AbhBVFGk (ORCPT + 99 others); Mon, 22 Feb 2021 00:06:40 -0500 Received: from out30-56.freemail.mail.aliyun.com ([115.124.30.56]:46850 "EHLO out30-56.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbhBVFGj (ORCPT ); Mon, 22 Feb 2021 00:06:39 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04420;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0UP9fL7J_1613970355; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0UP9fL7J_1613970355) by smtp.aliyun-inc.com(127.0.0.1); Mon, 22 Feb 2021 13:05:56 +0800 Subject: Re: [PATCH] doc: use KCFLAGS instead of EXTRA_CFLAGS to pass flags from command line To: Masahiro Yamada , Jonathan Corbet , linux-doc@vger.kernel.org Cc: Daniel Vetter , David Airlie , Federico Vaga , Harry Wei , Jyri Sarha , Tomi Valkeinen , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20210221152524.197693-1-masahiroy@kernel.org> From: Alex Shi Message-ID: Date: Mon, 22 Feb 2021 13:05:54 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.0; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20210221152524.197693-1-masahiroy@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reviewed-by: Alex Shi 在 2021/2/21 下午11:25, Masahiro Yamada 写道: > You should use KCFLAGS to pass additional compiler flags from the > command line. Using EXTRA_CFLAGS is wrong. > > EXTRA_CFLAGS is supposed to specify flags applied only to the current > Makefile (and now deprecated in favor of ccflags-y). > > It is still used in arch/mips/kvm/Makefile (and possibly in external > modules too). Passing EXTRA_CFLAGS from the command line overwrites > it and breaks the build. > > I also fixed drivers/gpu/drm/tilcdc/Makefile because commit 816175dd1fd7 > ("drivers/gpu/drm/tilcdc: Makefile, only -Werror when no -W* in > EXTRA_CFLAGS") was based on the same misunderstanding. > > Signed-off-by: Masahiro Yamada > --- > > Documentation/process/4.Coding.rst | 2 +- > Documentation/process/submit-checklist.rst | 2 +- > Documentation/translations/it_IT/process/4.Coding.rst | 2 +- > Documentation/translations/it_IT/process/submit-checklist.rst | 2 +- > Documentation/translations/zh_CN/process/4.Coding.rst | 2 +- > drivers/gpu/drm/tilcdc/Makefile | 2 +- > 6 files changed, 6 insertions(+), 6 deletions(-) >