Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8589629imu; Tue, 4 Dec 2018 10:43:13 -0800 (PST) X-Google-Smtp-Source: AFSGD/V+fm+1JXIt6x2aaebnW6gW2oNUBlePZN+m8XX7ghM4kgtFfeg3XTsubgFVHHnSqCqXPTTE X-Received: by 2002:a63:4384:: with SMTP id q126mr17541251pga.160.1543948993039; Tue, 04 Dec 2018 10:43:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543948993; cv=none; d=google.com; s=arc-20160816; b=LWKi7t5/jtL0j6YRMzmrglQxxKQH7HXc1Xn0jZe/Q76376Vw2/iZZSfDClX0FiMbAw iB92rkq0HxuTWdXq8DETD8rOwDgzRfWrH+jfYddHklUbmfMqKyIRJ/RuwjqRKQTz+Pe2 WSyJGcZO0DFvNp8nzafQl+gsVWF0Cv0UJS+YyS52Ou7ZIfEOaWztCqyF/Dd1o5SBgmeW HZObmUjHJTUJ7Li//p4/Nn09P245yu/nsQv36opUKu8LPpofRXW5gIaQ6ti+wIsVV07y opJw/kCCDAuUx2jQXfAvEQSTM8ryrlJU3ZVBNFuyISC50Mj1q1moOr9lRI5Zp1Y26Rsd qJ7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KRmQEtasXuhZ60ezXPZRXhVP7Pef7diVugS2FTeUVZE=; b=dDPhRG+0kTEmHyPDDAvNHU8/5XqFYPWK6wLgcQqk0gUrGlKDgp6Qd3Ppdff9yxWX4K 2U3pQ+WkzzcnpgsA6JYnLpPPgmFtWg5F7vcm1UBIEkWbheXmFikyuZSUC69hZU4HX6Et /6k43NbPM9spVJV7A/ZBb4fKg5sN6WFFWxt3FeO2hg7ivWaaKkKihoalSQ0iRUup0XeR 2vvAfgpFiIwYXSYiy8h8yjQ1tDwuy6pZIl5b0QyinhVTr5pKJfx/sC8At1z87urdMTAj xyuO2hmkLEwhw8U8YchXA2gRdWn89e2gwbFzvQgeAdhlVte2sRlpXHpWI7vZjD7ERe2c qgWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=bwu65YBD; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n4si16678844pgm.487.2018.12.04.10.42.57; Tue, 04 Dec 2018 10:43:12 -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=@alien8.de header.s=dkim header.b=bwu65YBD; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726006AbeLDSmW (ORCPT + 99 others); Tue, 4 Dec 2018 13:42:22 -0500 Received: from mail.skyhub.de ([5.9.137.197]:45976 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725831AbeLDSmW (ORCPT ); Tue, 4 Dec 2018 13:42:22 -0500 Received: from zn.tnic (p200300EC2BC7BF005D01DF6409406D0C.dip0.t-ipconnect.de [IPv6:2003:ec:2bc7:bf00:5d01:df64:940:6d0c]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id B72861EC0229; Tue, 4 Dec 2018 19:42:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1543948940; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=KRmQEtasXuhZ60ezXPZRXhVP7Pef7diVugS2FTeUVZE=; b=bwu65YBDYhEB72lq8VxNNnHpcOs31v31gZLLHvaqR1qvwAEtFnEsQCoxX084a2pxX6cwhH o2Wojvr6qkbJxyuRXIIyj2V32cqGoPby3/FB+ku13Q4XFMff+nE6+uQzPAft0ZUZMQGav5 KjcXEmkVXFWN4eon1FnXMtaNj0Yk7rE= Date: Tue, 4 Dec 2018 19:42:20 +0100 From: Borislav Petkov To: Chao Fan Cc: Masayoshi Mizuma , linux-kernel@vger.kernel.org, x86@kernel.org, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, keescook@chromium.org, bhe@redhat.com, indou.takao@jp.fujitsu.com, caoj.fnst@cn.fujitsu.com Subject: Re: [PATCH v12 1/5] x86/boot: Add get_acpi_rsdp() to parse RSDP in cmdline from KEXEC Message-ID: <20181204184220.GC16705@zn.tnic> References: <20181129081631.11139-1-fanc.fnst@cn.fujitsu.com> <20181129081631.11139-2-fanc.fnst@cn.fujitsu.com> <20181129211003.saxfvyboxpsn5mdr@gabell> <20181130024346.GB30941@localhost.localdomain> <20181130173515.6zx5wvs52s5aqnge@gabell> <20181201060539.GD30941@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20181201060539.GD30941@localhost.localdomain> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 01, 2018 at 02:05:39PM +0800, Chao Fan wrote: > >I built your whole patchset and got the error. > >The error depends on CONFIG_MODVERSIONS. > >If CONFIG_MODVERSIONS=y, you will get the build error. > > Hi Masa, > > Thanks, after that, I got the error. > About your solution, it can fix the error. But I am not sure whether > it's good. What does CONFIG_MODVERSIONS=y have to do with this? I don't see the connection. Also, your patch triggers another build error: ld -m elf_x86_64 -z noreloc-overflow -pie --no-dynamic-linker -T arch/x86/boot/compressed/vmlinux.lds arch/x86/boot/compressed/head_64.o arch/x86/boot/compressed/misc.o arch/x86/boot/compressed/string.o arch/x86/boot/compressed/cmdline.o arch/x86/boot/compressed/error.o arch/x86/boot/compressed/piggy.o arch/x86/boot/compressed/cpuflags.o arch/x86/boot/compressed/early_serial_console.o arch/x86/boot/compressed/mem_encrypt.o arch/x86/boot/compressed/pgtable_64.o arch/x86/boot/compressed/eboot.o arch/x86/boot/compressed/efi_stub_64.o drivers/firmware/efi/libstub/lib.a arch/x86/boot/compressed/efi_thunk_64.o -o arch/x86/boot/compressed/vmlinux ld: arch/x86/boot/compressed/misc.o: in function `_parse_integer_fixup_radix': misc.c:(.text+0x3057): undefined reference to `_ctype' make[2]: *** [arch/x86/boot/compressed/Makefile:116: arch/x86/boot/compressed/vmlinux] Error 1 make[1]: *** [arch/x86/boot/Makefile:112: arch/x86/boot/compressed/vmlinux] Error 2 make: *** [arch/x86/Makefile:289: bzImage] Error 2 make: *** Waiting for unfinished jobs.... due to misc.o not seeing _ctype. Looks like this is going to become too hairy and perhaps it would be easier and cleaner if you copy all the functions needed into arch/x86/boot/cmdline.c and this way get rid of the crazy ifdeffery and the subtle build issues. I mean, we do this already in other places like perf tool is copying stuff selectively from kernel proper and since compressed/ is a completely separate stage, we probably should do that for the sake of keeping our sanity. :) Thx. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.