Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5606886imu; Mon, 26 Nov 2018 02:55:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/UUG+APKBYfpuyQ+iHspaZHSmUKOpu1WOdN/hDKnIfiERTAVQre61ei79wKg3NprX3GDqgU X-Received: by 2002:a63:b81a:: with SMTP id p26mr24811511pge.433.1543229746804; Mon, 26 Nov 2018 02:55:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543229746; cv=none; d=google.com; s=arc-20160816; b=o4EjA3rWmledQRiMOHXCUrUxBOwZDDBrIni2Ltbe3tTO0HWvbDzOACnjRuWxx9+wTu 6v8HlO3PzcdVkTJLH9wFbk0GNk2BzPYG8a+SYf37K9LCgc0NHgSn0taoxcRPaWExf9Vw nzKPUMLpeJH0rXtIJZuKDLIi14fAkoRNyRrv/uxqEVa0qBH62/NCXzwSMDgucwoSzoTq FWK1ojV5ZZ4+k+EZQoVA8TnR/BUoVUfU1MaPe+8lmmCr+5m6ohzu9+Rj0WMZ9fDYzUW4 LkOAQwu1nPyAnzAEi5YYv3pObvnOqfGPIQFTm1eBDZszZkIvcG9BMqpMBpbvifg/Chw8 64kQ== 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=7TvgXJH4iI46G0CXrR+4coWNbTFQ+YvXwyf/mintHhc=; b=DUBuPVRfKPuEF6OMnvWiY4iK02BsUaS4RAViTKNC1PeXhIgoxJh8GRvTU1KUnWOqpU WLmD153vhAne5qpCRqaWOaWFfW0ZHyQZd4LvSlM2Jbj2+u/7dnRHaAQGSlnxnDkc/FJQ AzWGRFqbtERg3p+rCFBBOyN1saECX5H5mzZcyVYSlyoZmqKF0Xe2Beed5fLgXfr/prPb 8wqa6bkgwyd+hV/ozx6xRkCY7Rsk9ISt/fiupbUWuT3ugaTxmFH81UfS1a6RWZWkzmsb MRjCK2xoRSPV2DihgR1qEDO+9YPyZJOiUbd39k1u4F+QPJfmCQSxKQjYQQIKLxOWOkd+ j5uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vtsxgaDz; 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 e8si51381433pgn.325.2018.11.26.02.55.32; Mon, 26 Nov 2018 02:55:46 -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=vtsxgaDz; 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 S1727350AbeKZVsC (ORCPT + 99 others); Mon, 26 Nov 2018 16:48:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:56400 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726254AbeKZVsC (ORCPT ); Mon, 26 Nov 2018 16:48:02 -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 117582089F; Mon, 26 Nov 2018 10:54:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543229658; bh=iSynJtQkfyhgTn8aBZjdAuH0vmVHtOmwU1AvB1VWHUI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vtsxgaDzYjIk+sGbQDeU6zAUsSxM6+yU0AOdUeFO67+XzcIgwL6haHfRlQHAFa4+6 0gNpN5MZqrS8hFSrfJNLzpyPTVV1C2gK9ZATERAC6DJLP6QUjNW17wgMe11eTkzY8C oth3VUVwduJZPRkFCCghBW1u5bFBVkt9dMADiH5g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, David Lin , Masahiro Yamada , Nathan Chancellor Subject: [PATCH 4.4 23/70] kbuild: clang: fix build failures with sparse check Date: Mon, 26 Nov 2018 11:50:38 +0100 Message-Id: <20181126105049.044156185@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: David Lin commit bb3f38c3c5b759163e09b9152629cc789731de47 upstream. We should avoid using the space character when passing arguments to clang, because static code analysis check tool such as sparse may misinterpret the arguments followed by spaces as build targets hence cause the build to fail. Signed-off-by: David Lin Signed-off-by: Masahiro Yamada Signed-off-by: Nathan Chancellor Signed-off-by: Greg Kroah-Hartman --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/Makefile +++ b/Makefile @@ -614,11 +614,11 @@ all: vmlinux ifeq ($(cc-name),clang) ifneq ($(CROSS_COMPILE),) -CLANG_TARGET := -target $(notdir $(CROSS_COMPILE:%-=%)) +CLANG_TARGET := --target=$(notdir $(CROSS_COMPILE:%-=%)) GCC_TOOLCHAIN := $(realpath $(dir $(shell which $(LD)))/..) endif ifneq ($(GCC_TOOLCHAIN),) -CLANG_GCC_TC := -gcc-toolchain $(GCC_TOOLCHAIN) +CLANG_GCC_TC := --gcc-toolchain=$(GCC_TOOLCHAIN) endif KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC)