Received: by 10.223.185.116 with SMTP id b49csp4189246wrg; Mon, 26 Feb 2018 12:51:48 -0800 (PST) X-Google-Smtp-Source: AG47ELv8YSxs/iV4C38uroW+BXfsX3xM45DlxIMoEUgwjCZEymYADUFmgzk9/9TomWNNCMvJoICv X-Received: by 10.98.77.194 with SMTP id a185mr4202407pfb.123.1519678308421; Mon, 26 Feb 2018 12:51:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519678308; cv=none; d=google.com; s=arc-20160816; b=lmbQ3vCkBXU7MOFj7bzOX7nr+NhD8jdy1ZmfzKO6gKPqwNxkLkF4+PvgSq8VrzLjye aGJoQXzpVYrE0pLnsmMpRR/VuG5yYn1zdwv2ripwgelXWj0r5+BSmg2X6aZrcYrfijcU odzc1YFUieScKeqil56thdVAlWth5aUHK5LFls/riDCtAYSrBr9pTaD2ng4zAKhW9j60 Qr8Zq8XZ43kbnLhtFFTPoIR3SNGL7E0bfEV593X9iCr1ge+WUAvMaJVDYcyqvk10cQgB Sc4kFeM+iHEb1gTJJezWmEXgfzLtSjzPjhA5ifZa45BX5gvSWwbld7evg5lLtAlBYA7O JhWQ== 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=ghOdayHawiZQzTx3dy8r1e45N6mAEQ10Ua9slkZ8jHQ=; b=nl7j898JwbWvVUSHu3c6owmRvAJABtxKFfCWqKLWT0kQGxIc0chsNTNHyD5yoVjAKc cEgQOvSqjNaiJwzr9vwEkAQWukwCrEUDE60XHgnL3IkzeikCyzeejKwgPK6YiwRD2FY7 6GMDyGs2ZoeaRdD18e3u7neF/c0r0xza5JWbc9SXvOj0ObxKa7umbYpJ7MdZlk/E2BdR yJUl0NB6NPCNPCNl5WhtqrxUXmvVbNJIVvHT6320wwAp2q6FSLlFbdTTmnkAIwThhFxw RzgNB9OwS5gG2eMEF+mb8wvGFmTeq75zt6qCJvvk849x+z/scQ9AqT2ibvSUDGCeMRVR ihEw== 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 o19si6012681pgn.180.2018.02.26.12.51.32; Mon, 26 Feb 2018 12:51:48 -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 S1752090AbeBZUYj (ORCPT + 99 others); Mon, 26 Feb 2018 15:24:39 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:35186 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752952AbeBZUYh (ORCPT ); Mon, 26 Feb 2018 15:24:37 -0500 Received: from localhost (clnet-b04-243.ikbnet.co.at [83.175.124.243]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 95032FAB; Mon, 26 Feb 2018 20:24:36 +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.14 04/54] MIPS: boot: Define __ASSEMBLY__ for its.S build Date: Mon, 26 Feb 2018 21:21:41 +0100 Message-Id: <20180226202144.593307237@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180226202144.375869933@linuxfoundation.org> References: <20180226202144.375869933@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.14-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)\"" \