From patchwork Mon Oct 28 12:10:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 177904 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3305284ill; Mon, 28 Oct 2019 05:13:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCO4D+5yVJz2WQAcoWmIxuu58nI8RSIjRg6SfeqsY2VyyxvShCxEfjiWPC6xOFhlrH+pNg X-Received: by 2002:aa7:cb4a:: with SMTP id w10mr11215128edt.28.1572264799073; Mon, 28 Oct 2019 05:13:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572264799; cv=none; d=google.com; s=arc-20160816; b=bYaSHHyZIozUmZ3skMQRPX/C6vp+Qt+HsJtMOPcUFlUr5eGP7MkayJbWhO3scI8scO i0c5wDEKWCDbohJ5o6U7eHaahDzv21+aQIhND9s+9Kt1BdT4ybgpuM+Q1HbkS4nd2vcu Q/6f1UNEv4WYpawI1fW5FBZbqRbp/E/88hI2XkFztV/GYRu7EE7GbZHFMEsnQ1AjWdDD zzAcdWd9RVnKzg/p0HdD4lZLoRQCBXkP7H5YeZJB2SE5PZ+So3juH33U3MvsCTZ7DCZe pn9J5w9t0T/KVdObA7E7Fof6zR6HjctSD/X1aeOggqk3CONLI6WKYtNrwFn3aHQ9shnC FbRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=cLaA0X0P2YYwrOqreDb4rq8wBE7Dn/V3Ia42O7na1Ks=; b=mCLCmhLXj/G/d93rS3BDi7mYoRh4rY1C9QkCNdsQlD/2jsiitPtNZvbISZBvvAnNDj AGWoBNu1pKZoUGx5m63x5EpVqyi5fN6rUStj9PNiX5c6u2FUDvMCL4hTyXtx1hJLjFZU y3Fg/B+Sov4qUqaze2imvoxCbF1HDYl38MSrY2Ftn80VvwaEXRjLO5Vr5AzHj9+iPVZi 7PVRdt/SC1z731q6fhjPOEPnpc0Tn/BILXfnqmXrIYgQllO0jBVr+WxOOAOla6rrMEzY jEoLKSCwOyWDxSR/SddbegYaew2wRd83Csf1nfaV+8BFjeqbz78zx9YXoOjTl4lvVDJS 2ovg== 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 k51si7542475edb.411.2019.10.28.05.13.18; Mon, 28 Oct 2019 05:13:19 -0700 (PDT) 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 S2388963AbfJ1MNR (ORCPT + 26 others); Mon, 28 Oct 2019 08:13:17 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:37056 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727085AbfJ1MNQ (ORCPT ); Mon, 28 Oct 2019 08:13:16 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id E2F0067FEF17D9FC4D9A; Mon, 28 Oct 2019 20:13:14 +0800 (CST) Received: from localhost.localdomain (10.69.192.58) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.439.0; Mon, 28 Oct 2019 20:13:06 +0800 From: John Garry To: CC: , , , , , John Garry Subject: [PATCH v2 5/5] logic_pio: Build into a library Date: Mon, 28 Oct 2019 20:10:05 +0800 Message-ID: <1572264605-172363-6-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1572264605-172363-1-git-send-email-john.garry@huawei.com> References: <1572264605-172363-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.69.192.58] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Object file logic_pio.o is always built. Ideally the object file should only be built when required. This is tricky, as that would be for archs which define PCI_IOBASE, but no common config option exists for that. For now, continue to always build but at least ensure the symbols are not included in the vmlinux when not referenced. Suggested-by: Arnd Bergmann Signed-off-by: John Garry --- lib/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/lib/Makefile b/lib/Makefile index c5892807e06f..27645143d8bb 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -108,7 +108,7 @@ obj-$(CONFIG_HAS_IOMEM) += iomap_copy.o devres.o obj-$(CONFIG_CHECK_SIGNATURE) += check_signature.o obj-$(CONFIG_DEBUG_LOCKING_API_SELFTESTS) += locking-selftest.o -obj-y += logic_pio.o +lib-y += logic_pio.o obj-$(CONFIG_GENERIC_HWEIGHT) += hweight.o