From patchwork Mon Nov 4 17:22:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 178446 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp1773813ilf; Mon, 4 Nov 2019 09:25:48 -0800 (PST) X-Google-Smtp-Source: APXvYqzqtZTwr9uBFk72DSeJg7005BMjGV0X3IArcG/0ZMZAz1RsWPq6flxrZbZf2szhHF+Ajbbe X-Received: by 2002:a17:906:118d:: with SMTP id n13mr24375267eja.229.1572888348416; Mon, 04 Nov 2019 09:25:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572888348; cv=none; d=google.com; s=arc-20160816; b=Wp9gmQZb1ZZy6eHcSt5bXwvQTOU+6HVyfbD+w0rSDIbN0qDbj4Y6D88Bm5f1lvbJN2 ONizciaAIOdM/YuE4Dhc+FUBw0bLMcT7YSruznGEEgxRhxLqpl/rdYzB+sORJJFMjd9o X7oB06i8DJ7Ss/il12MXUgjhUap7SKgmgStTlneiGYXxXJbnwPrHdxKiBpnDsPvoUMTf Ku8bUiY/i/LJUSluHhFsz8zYk9QXl6uNPDikRSenC/fDtMEncU7LooPv6V88RH6A3v4q WGatX7c2/lIeb9iPFhnHuULwxCsL0a0/2NInWeEmsKj2AFFY6RBKveyjvQ3J2LXHj75t FJCA== 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=t9t+44CP8bcloi0MTkwK6Kac+Iksf1Wl3Rwk3NVph2Ushy7xZXZDlXjfq89KoCijCh +L8PMx9QUJSpxf4jXYHuF5p/wqKNwoM1quNngHJFTmJh5xhdhvu8hU2+CId+NwqVQqua URJBtoCGixGNUsGPOrdgXSdD0BHP9ZiwwpWqSCY814ynso72aJdD+kyCsLaAyGXL+JCb boIgfj1KoerqOvX986YLA4UZIfxkzvx+jmJfdqfUiL80HdHtnu/4h7tCHbV5LQ7h+v2O GtqycpQnWLcWxr6ky4CZGY1/lCaWO30roInDfSIWEUB3YXiiwkIPPY6iw9qri7/h7doW eweQ== 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 f2si3316647ejr.260.2019.11.04.09.25.48; Mon, 04 Nov 2019 09:25: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 S1729495AbfKDRZq (ORCPT + 26 others); Mon, 4 Nov 2019 12:25:46 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:6146 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728322AbfKDRZf (ORCPT ); Mon, 4 Nov 2019 12:25:35 -0500 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 842DED078D7C1634B1EF; Tue, 5 Nov 2019 01:25:31 +0800 (CST) Received: from localhost.localdomain (10.69.192.58) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.439.0; Tue, 5 Nov 2019 01:25:23 +0800 From: John Garry To: CC: , , , , , John Garry Subject: [PATCH v3 5/5] logic_pio: Build into a library Date: Tue, 5 Nov 2019 01:22:19 +0800 Message-ID: <1572888139-47298-6-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1572888139-47298-1-git-send-email-john.garry@huawei.com> References: <1572888139-47298-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