Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3106501imb; Tue, 5 Mar 2019 00:44:35 -0800 (PST) X-Google-Smtp-Source: APXvYqx8p1u/Lr/1BZOFu2jZc7xfh9hxclGSkfitjNYyvZGVZwt4ImOBRd6cPa1p7vVLs7Kp3/Ue X-Received: by 2002:a63:d814:: with SMTP id b20mr452833pgh.312.1551775475501; Tue, 05 Mar 2019 00:44:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551775475; cv=none; d=google.com; s=arc-20160816; b=ycCrhaxKQrDZsqW3tM+XXGBgBnClaMdvEHqU1Lua9G18p1KmmokP++FO0425R0Zn7O dLnx+AkbZkks77ALCL3SISR7leebvsp2olQxhIrH4pfWyLKOwPeDpBlarPRHd595SfJ3 B8+2ja2PtEJABTk14VMU3amnyegk4g8fGqEl9UanYzhLlGSS5mKugWwV4D0JsiUbnZNO KuCtxFwgEE+SEFwEC/ttNnGkRQdrXTPhEPkvuPei1OU/lCQGpGLaT+qQn24RNxWYxQii 71exv6+vi7k5J8a17doJ3mVOEq7Blo5jfu0mIALTtKriD0EqdthsHOkLZjW4x7zYPvk0 surg== 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=BMVtnd/QdJ4T1acw/rhWxMKJH0y8Q1v97kzTlEz+Tt0=; b=tWxGSYfrpnQTTawFlT4Ro/KGTbAocG6pJoUVJkBItyOQ3sn5n+1ySp86ZPktTgfOYu DkXzfvsQJJQxY19kpb0T8XKRH1maimOu0Z06Di/ScEmS2BnWg3X4/3utu8P3ij6K/6bq 2zvEipZVzK1ti/6GS/h4vNNEOJcLMFTj63pGodpJcdvAsPsHVZFVekUNCNFiZAieG5V5 NSG9cZj/SMA0Qbb9YNF+A91Y4PStfNw3c9TB5qj+tlUw9chewYmMK4TpJ6DwOWymQuBt eQHWPdqwwx2jUukfVKd4WMx4tVtSbGI/8jl5IIO5/j48PI50PGiw2q2zPXMeOSjAOD4o 02nw== 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 go21si7725674plb.368.2019.03.05.00.44.19; Tue, 05 Mar 2019 00:44:35 -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 S1726938AbfCEIev (ORCPT + 99 others); Tue, 5 Mar 2019 03:34:51 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:37208 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725818AbfCEIev (ORCPT ); Tue, 5 Mar 2019 03:34:51 -0500 Received: by mail-qt1-f193.google.com with SMTP id a48so8161411qtb.4 for ; Tue, 05 Mar 2019 00:34:50 -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=BMVtnd/QdJ4T1acw/rhWxMKJH0y8Q1v97kzTlEz+Tt0=; b=A5xeuZIthFBxA7g2Y1AMnmiUNYJJ/TgmgI688EGxhz1BxkuKlTghe7LX72ZBfOtKio gjicvSpWhkK9Z8OsCoCjai/UHvNwIaIN2YZCWZIQV/W1csFBhx6SslWePYbNCoadtBrs 7uI2vMGt831V8e0d8Hg6blEQrCFU5UueIzjEJ1jE/b5yVsGoo/QJLWlk8WGuvaKqd1TK 3WnxWg1gyvd3lROIEMAbj1aGkE2wBsOrIw6cT//ZLxavOZMpRmaFONiuyD2fF8nD0LyS +6B+1HHRV4zDaqb3dZm9R2SsPhazCWR3WgzB0HZ0EkcW+cHnGBmUlK4XhlSGGo3vcOLH o1Vg== X-Gm-Message-State: APjAAAWKXCwMA5cp9K3RdyaFnjzWlcp2bDakhEtevNddiMb7/XqYB99e tyjjdP8r7h1gHrF+/0zUQLviBb6V1ILvgWUGS4o= X-Received: by 2002:a0c:b758:: with SMTP id q24mr1154386qve.149.1551774890097; Tue, 05 Mar 2019 00:34:50 -0800 (PST) MIME-Version: 1.0 References: <20190304204826.2414365-1-arnd@arndb.de> <0eaa0d35-0be8-0053-1dcb-feb61d441bd2@suse.com> In-Reply-To: <0eaa0d35-0be8-0053-1dcb-feb61d441bd2@suse.com> From: Arnd Bergmann Date: Tue, 5 Mar 2019 09:34:33 +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 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 (or using any other symbol name that makes more sense than that. Let me know your preference and I'll resubmit. Arnd