Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4902772imc; Mon, 25 Feb 2019 13:18:01 -0800 (PST) X-Google-Smtp-Source: AHgI3IZueVcRyqbxwUVAIPsSPWtb8HPpaKfhHUY1VoXwsdlmfZXialHVRWd1RaRVQ91GN3KebCPg X-Received: by 2002:a62:bd17:: with SMTP id a23mr21988053pff.233.1551129481283; Mon, 25 Feb 2019 13:18:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551129481; cv=none; d=google.com; s=arc-20160816; b=BZCWey/3kmUBzI+4x6IPaKI/npzuQBmhe/0JgaDBppoHKY4sOznuJVOTGfJ/ZzdQIB X/JyvN44zSoM0lidzsG9C+ypcFvzv1yND43Dg2/NaLjVx1FcWWfghg/gDolQZYeWRAc2 vtoI7epCpxiIIBYlPhVS9Ov20INupXnnLXy+YLeRvc+y6Rt64EYaPn/jy79xbMk2jD3D Ia7vq0gSF261oOzhjsKeb676BquX11xLvD07N9JF0Ly82y7XVQs7P/zLQ7QAOvS68fkn 6Cv3QZXCu4M96uxNfs3r1FZ/r0mh/RU+LuZX/rhHG8jmwzft3NOr/yLeAJxz3UCivErI paWw== 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=gxJDmdp/JkSJ7iwf2PFVekam70vLUE+A19npwYmE6AM=; b=xe6nEhqsh3O5mY568DFLybSJYjB4kWKaAGjveZ7deSx4BVvxvtbes8Voy1JJOzc0Yq XL/4lTOWnpxI7My79QA/CEZUFTDcKr+u8/XOC+TkTy851FV/FuqHyeFe85QMvY5UiYPR sozzMEMK76USHQltBbGt1UdhQbYhxJBHeyp3ybVpXCALmtIR0iQBpC8BucFYGFYh4aM7 NVbdbIX8jeLwi4bnqhMymQkxODfropxZN46DjO4o9jWixWxXbqcN0pffCzx+ppyhM2bb pwz+ihnhuL9Jr4EaAtKvSN4qdfyRBzeLJq5p3vM0HgXj7frSRTfDBO8puWxYSGiMooTg 06yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Q99FyY3m; 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 c131si10481284pga.358.2019.02.25.13.17.45; Mon, 25 Feb 2019 13:18:01 -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=Q99FyY3m; 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 S1728981AbfBYVP0 (ORCPT + 99 others); Mon, 25 Feb 2019 16:15:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:46580 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728954AbfBYVPY (ORCPT ); Mon, 25 Feb 2019 16:15:24 -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 859492147C; Mon, 25 Feb 2019 21:15:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1551129324; bh=4p7FLSB6JvF04Z/oTslA3dYnuowtUlaZ/8wisrOAvrs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q99FyY3mg55oD0lJ3ovvPVLLBkDuXpshEfaXPpesNNWgLj7Jh92baZfq2i0gnARDh UHF+hdHUpF1/ULMDRzf8dYtE9sXKyiVYtxCz9ODL81m8lkMxjMuhbK3nMofd6aaJ40 Qv/KsSch3cv+UekxJFIB2jeINj4AvcSwMDDlxXV0= 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.9 51/63] kbuild: clang: remove crufty HOSTCFLAGS Date: Mon, 25 Feb 2019 22:11:51 +0100 Message-Id: <20190225195039.734781072@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190225195035.713274200@linuxfoundation.org> References: <20190225195035.713274200@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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.9-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: Backport to 4.9; 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.