Received: by 10.223.185.116 with SMTP id b49csp4170186wrg; Mon, 26 Feb 2018 12:28:44 -0800 (PST) X-Google-Smtp-Source: AG47ELtebJdM1fX/BeX0hcUgFgnHMGYtu1+zIXLWVFblnkojWZs4Taox9W0jIskfzuQas60peP9B X-Received: by 10.98.56.131 with SMTP id f125mr1245767pfa.190.1519676924811; Mon, 26 Feb 2018 12:28:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519676924; cv=none; d=google.com; s=arc-20160816; b=ztnH/YRgE9mN3LhukDwNmE9gsa7+Uprsox4ZQKoDaS5v0djEEJ5hi/fZIMKz6RqM6h XJBxpnlBWF8cROz/xNoeRGAtfuqc5oGTg3bpDplGEJJHEWzH95e84JWwIaSuCzqhTQtn 7MxsbzfZgDTo1zjecxQqCB1oQadFFE+VZ3Lk6ZRx6sggPMcrUcj/z9uutSsYIe4fjeHN KblBbuzBtwS4CaQCyokuqxMcX5Ky0z8rUyyGLcV6I7Ztj6hC6qNUf5T0QOVHovL3jGZa Jo8VGYxdv6JUN8aJx7V6DNV9HFKUW9ONrcOLYfibzB+QQRH+DSVZYIOT5/5zoloa+Fm6 FMpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=IAlcO60sCxUv/c093SzpDxulQK0+iyeqCGiluRjCaJw=; b=dyuka993oP0CTcLtsC5I4ju8Ohbt+lqPLd/c+E74BqxPte1W65CWxb267Vqe8VE9M3 IMjhE5Tl0Nhy2XMtnwc6givRZej7XV6rKSGIhzVX9hA0XG9b6S6GtvV6cuvL/wH1/cqR nqGK7HpCHJ+PKp/aN/LNvYMv2D0bS5upHnXqeUo8p1AFP3kX+pCR17r7s33vJiC8GQEa 2o3QGxFYubvrotqhEtCj700TjXXOW0fPcqttBdshAzXzVxx3RrzqWLAFC8LxpTbW7A2s LCCmktxoM25Hzh9bjTxRthLHTp1aR3ZtbCZrve6noNAwAMHFTmsuadW7D0vk5yfKmmiJ YGqA== ARC-Authentication-Results: i=1; mx.google.com; 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 b8-v6si7234923ple.246.2018.02.26.12.28.28; Mon, 26 Feb 2018 12:28:44 -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; 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 S1753666AbeBZU1T (ORCPT + 99 others); Mon, 26 Feb 2018 15:27:19 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:36424 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753644AbeBZU1Q (ORCPT ); Mon, 26 Feb 2018 15:27:16 -0500 Received: from localhost (clnet-b04-243.ikbnet.co.at [83.175.124.243]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 4C1689DA; Mon, 26 Feb 2018 20:27:15 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kbuild test robot , Kees Cook , Linus Torvalds Subject: [PATCH 4.15 04/64] MIPS: boot: Define __ASSEMBLY__ for its.S build Date: Mon, 26 Feb 2018 21:21:41 +0100 Message-Id: <20180226202153.629766347@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180226202153.453363333@linuxfoundation.org> References: <20180226202153.453363333@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 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 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kees Cook commit 0f9da844d87796ac31b04e81ee95e155e9043132 upstream. The MIPS %.its.S compiler command did not define __ASSEMBLY__, which meant when compiler_types.h was added to kconfig.h, unexpected things appeared (e.g. struct declarations) which should not have been present. As done in the general %.S compiler command, __ASSEMBLY__ is now included here too. The failure was: Error: arch/mips/boot/vmlinux.gz.its:201.1-2 syntax error FATAL ERROR: Unable to parse input tree /usr/bin/mkimage: Can't read arch/mips/boot/vmlinux.gz.itb.tmp: Invalid argument /usr/bin/mkimage Can't add hashes to FIT blob Reported-by: kbuild test robot Fixes: 28128c61e08e ("kconfig.h: Include compiler types to avoid missed struct attributes") Signed-off-by: Kees Cook Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- arch/mips/boot/Makefile | 1 + 1 file changed, 1 insertion(+) --- a/arch/mips/boot/Makefile +++ b/arch/mips/boot/Makefile @@ -126,6 +126,7 @@ $(obj)/vmlinux.its.S: $(addprefix $(srct quiet_cmd_cpp_its_S = ITS $@ cmd_cpp_its_S = $(CPP) $(cpp_flags) -P -C -o $@ $< \ + -D__ASSEMBLY__ \ -DKERNEL_NAME="\"Linux $(KERNELRELEASE)\"" \ -DVMLINUX_BINARY="\"$(3)\"" \ -DVMLINUX_COMPRESSION="\"$(2)\"" \