Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3137923imb; Tue, 5 Mar 2019 01:44:00 -0800 (PST) X-Google-Smtp-Source: APXvYqwk/2rbjQ0R2y6GiNpCttxIzqBT7z5aAeVKC+QFII4ZHyUrLN8eXB/HT1Iroi4djvYKfLAK X-Received: by 2002:a65:410a:: with SMTP id w10mr634793pgp.206.1551779040820; Tue, 05 Mar 2019 01:44:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551779040; cv=none; d=google.com; s=arc-20160816; b=qj9WeKRrFnc76rFffMLK1pSDsLtYFWmx8SCi4gx9ful6XjFOGIbs+P/1eOi4zwOFua UOx6n6puaEIP5AWra023DFOj3sptQqBLYM2Sk58VN5wbgjqNJwuQAEtf43oXzeGffYhD QcwFm7LgxeMwSaGMmAGSnkqn7bpxj7bzbKH2qGdxZI2SefLN3HZZ6ppXLjqrByTmRWzi tfjfa2t9Ia/it0R8w4zydBovps/owlmQZ98DVYhYaKqL+q9jrVp62vXFCXHUx+PhjM46 Q8Udqt4aCyd2pCTE9fFpdwQ2c2x5haiPqW/nTLGhQGRI1e19D5xE+l/oslD2nQuY+dAX QZtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=RuQDmdlDB4T/qm7whKZMpvwgUt7ayRtb8FeCM8b7o0A=; b=Ddlq6XpZt/5BwNWbvDwjClnBvM/MAs3p+0bZsqPETurHSnwsgMZnxmQLDEcgqFIaOn IxYjwujOfC5RtA+CYrAmGrgNQz3g1Mj+ZVXN7WAAHaKqhY0P0ysqhNuMSAvynQXyEkvK eF99Xzw5tWwGTEcgWGE6awxgrftRIzHxGR9mBQX3wthzxdiBmVxvpQXVd70H8jRnInva 7AbA4spudXKUM9f8jf/Wmi2tbntgjDgTr0DxjTJXh33033WC07wP3JWmJNK14VytnH8j qyBfYcZ7MBX3OncEZhHoZwQ5Zpfc3KpgiFJ+yVGai0SGYKli/fqxKiqXIc3QH5mD/gFI nMcg== 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 p65si7754555pfi.76.2019.03.05.01.43.45; Tue, 05 Mar 2019 01:44:00 -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 S1727269AbfCEJUC (ORCPT + 99 others); Tue, 5 Mar 2019 04:20:02 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:42518 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725835AbfCEJUC (ORCPT ); Tue, 5 Mar 2019 04:20:02 -0500 Received: by mail-qk1-f193.google.com with SMTP id y140so4408195qkb.9 for ; Tue, 05 Mar 2019 01:20:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RuQDmdlDB4T/qm7whKZMpvwgUt7ayRtb8FeCM8b7o0A=; b=Pt55yMarIepBRrUXHsYytV2XohwZ2vZKXUBlGN7N8xuP20FP8H+uuaN/4j97x1TDb5 MiXz25v1SAvUiD4xl04yGvsW5ctRmygqx7JlyXeOZw3WHfLjyvlsoeHunH5mKwsISZPC wcBGPviUUQFL8F3BuvdzkbyCLXlSMEJeZIUNQaI0gsBerFZQXFNtpULZvK0KlwAq/+qR mX3xPoOWBCN6V4rW1IPsZzlGy2DO4WQEf8SBXIYmaVUvxoHi4L8pyoHO+XxV2UKUktHJ TwlSGqU2YhrekZGKSsjTFnqRhPWr7UtUqKeFRgQbE/TQQ8tamq/0/ClvInDrmwwbV01C bPCw== X-Gm-Message-State: APjAAAVW6bixSLzeZzjuoL0E+jaXyWGyGYLQ58AqLjtyFCn8O7blbSuE GqXospWeyqzE9EZkGLeWLX+gz0ShxuGGpvbt0aw= X-Received: by 2002:ae9:dec2:: with SMTP id s185mr943700qkf.107.1551777601289; Tue, 05 Mar 2019 01:20:01 -0800 (PST) MIME-Version: 1.0 References: <20190304204826.2414365-1-arnd@arndb.de> <0eaa0d35-0be8-0053-1dcb-feb61d441bd2@suse.com> In-Reply-To: From: Arnd Bergmann Date: Tue, 5 Mar 2019 10:19:42 +0100 Message-ID: Subject: Re: [PATCH] xen: avoid link error on ARM To: Juergen Gross Cc: Boris Ostrovsky , Stefano Stabellini , Oleksandr Andrushchenko , Matthew Wilcox , Paul Durrant , Souptick Joarder , Linux Kernel Mailing List , xen-devel 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 On Tue, Mar 5, 2019 at 10:05 AM Juergen Gross wrote: > > On 05/03/2019 09:34, Arnd Bergmann wrote: > > On Tue, Mar 5, 2019 at 7:39 AM Juergen Gross wrote: > > > >> > >> Can we avoid that ifdef in the Makefile? > >> > >> I'd rather have an architecture independant builtin driver added which > >> is always included for CONFIG_XEN. This would allow to move redundant > >> stuff from arch/*/xen/ into it (e.g. xen_vcpu_id). > >> > >> So: rename mm.c to xen-builtin.c, use: > >> > >> obj-$(CONFIG_XEN) += xen-builtin.o > > > > Sure, I'm happy to change the naming and the Makefile logic. The way you > > suggested sounds fine to me, but it will make the xen code slightly bigger > > even if that code is not used. We could also have a silent Kconfig symbol > > that turns this on and still avoid the ifdef: > > > > obj-$(CONFIG_XEN_BUILTIN) += xen-builtin.o > > That was my first thought. > > But looking through arch/[arm|x86]/xen/enlighten.c I found several > global variables defined the same way. I'd like to merge those, too. > > So my preference is a common source for all this stuff. Ok, makes sense. I've prepared that patch now and will send it after some more build testing. Arnd