Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5608228imu; Mon, 26 Nov 2018 02:57:02 -0800 (PST) X-Google-Smtp-Source: AFSGD/URLguQSOBEBcFbfkjKTXFSkQoOVo5JOIvlmm5BwpTDT56bqZuWnFyWiJvpwfBgcSryvh72 X-Received: by 2002:a17:902:b592:: with SMTP id a18mr27536915pls.182.1543229822895; Mon, 26 Nov 2018 02:57:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543229822; cv=none; d=google.com; s=arc-20160816; b=lnikR7V8VtqJcPnivbNdpD0VKTpj6HJDdCy6BWqEwe9YuPvwSTNqkcGZ52VrfNf0Tn WtshCmLQj3BFJSgOyWowUp016hR8c2GLheIoxfhPxl8qUT2WXHJyQTqvb+dgrXyKMepq zzqwlLKriYfoFhNSVuzNV2xLs78U8nBNeNoIZTgAo7WdgDstWMrOlZR/6niXrlYwe1CO ShI5QohmVGbQasmVi6n/tUfgSb98rQvyeE6jzZgjpRtZJclPP7KEViasEmEItP96tX5z MaKcp8maJmKPSRDa3nPt4qGX6kvCiKdWArhsPMLxsPzBFRk7xoTbM1g4YKYRtEe3W4pI c07g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=n0PQU7CR1PXVAtnC5irMoAC6LhOCu7W8rP6mb6gbI04=; b=a2sWP6JviZw99tR9D0KA9F5aewPrDr3hW4moBBS9OijJckuSBW9UZ5vMhF/4vLdeil RyVkI4cbpRHNdOVe3NH/HTUGxA2lHycfmJcz4oMoVJ9ekexd5Ih97RDfBHwJkjFsktdM KfyHOFnGXs2mPwKIsOs9Hg1hIskiN33NBns/DEXlig87QunjTZiktWV7vuT8316JUmNO SDgIPFBaK68RWx/aIpBzH0SyeIVdmT/3+3NJ89vndYCNGGJhiH47ATyu1GTAxBKWrr96 SrdJeGboXNSBG0tgX4f/yq96Bdp+O0/idW1yaj22Kb4rYgEpQcT1A39d99ejSlDy6yQ8 XURQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JtSdh3wd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c81si45182489pfc.196.2018.11.26.02.56.47; Mon, 26 Nov 2018 02:57:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JtSdh3wd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727384AbeKZVsF (ORCPT + 99 others); Mon, 26 Nov 2018 16:48:05 -0500 Received: from mail.kernel.org ([198.145.29.99]:56466 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726254AbeKZVsF (ORCPT ); Mon, 26 Nov 2018 16:48:05 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A365220817; Mon, 26 Nov 2018 10:54:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543229661; bh=yghS8yjS2GSmiWSkV1w5Mrhwd+0cd0mAis5l60u8Tjk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JtSdh3wdP/DuZjGzpQwn43Fuu4RNty+RZauI26w+lTmgIu/SmRHpqgNcDILW6/zW0 A7uBATxjQWW+iA11eegIjfHrtUkZ4kE9T1+GGRQUX4acsyi4KQOMSBxJtmSfbL916w C4I9OMLbGSAbUudrO8e9SFEwQyjE7AjbWd3xBLmA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masahiro Yamada , Nick Desaulniers , Nathan Chancellor Subject: [PATCH 4.4 24/70] kbuild: clang: remove crufty HOSTCFLAGS Date: Mon, 26 Nov 2018 11:50:39 +0100 Message-Id: <20181126105049.139615921@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181126105046.722096341@linuxfoundation.org> References: <20181126105046.722096341@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nick Desaulniers commit df16aaac26e92e97ab7234d3f93c953466adc4b5 upstream. When compiling with `make CC=clang HOSTCC=clang`, I was seeing warnings that clang did not recognize -fno-delete-null-pointer-checks for HOSTCC targets. These were added in commit 61163efae020 ("kbuild: LLVMLinux: Add Kbuild support for building kernel with Clang"). Clang does not support -fno-delete-null-pointer-checks, so adding it to HOSTCFLAGS if HOSTCC is clang does not make sense. It's not clear why the other warnings were disabled, and just for HOSTCFLAGS, but I can remove them, add -Werror to HOSTCFLAGS and compile with clang just fine. Suggested-by: Masahiro Yamada Signed-off-by: Nick Desaulniers Signed-off-by: Masahiro Yamada [nc: Adjust context] Signed-off-by: Nathan Chancellor Signed-off-by: Greg Kroah-Hartman --- Makefile | 5 ----- 1 file changed, 5 deletions(-) --- a/Makefile +++ b/Makefile @@ -306,11 +306,6 @@ HOSTCXX = g++ HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89 HOSTCXXFLAGS = -O2 -ifeq ($(shell $(HOSTCC) -v 2>&1 | grep -c "clang version"), 1) -HOSTCFLAGS += -Wno-unused-value -Wno-unused-parameter \ - -Wno-missing-field-initializers -fno-delete-null-pointer-checks -endif - # Decide whether to build built-in, modular, or both. # Normally, just do built-in.