Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2634180pxb; Tue, 13 Apr 2021 06:42:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2KrsxAyLbUKhMchvMAa87qcvvXVryTbk2nLPt5o9lJ1QneJIFno3wPj3XXCurxm4nI46y X-Received: by 2002:a17:906:a049:: with SMTP id bg9mr32641985ejb.186.1618321376301; Tue, 13 Apr 2021 06:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618321376; cv=none; d=google.com; s=arc-20160816; b=WuREZl1eHabmqWyIVe5yRP3KUrCST1ydmMlAo33rw7lCGYcl6Vrs8tuqszjQGh8EsF o3tE8G4PeQiaNZfTltfr5f2clmWzYCAFuv/WqVzbOw+bLwCXmi/BAXlCv6ZHI7RraH5T Sc3eacV1LyIdVnHH9KtKzxI5J/HNkdKu5gJsfl6wNoE7vXYa2IzUoeOUpGupmez8bN9F ebZ+KTEvnJaKCXl54uH1jwrb2TZmKRUFGGIGwVupE8CJHD9sTbA9FhhzhW8b4gXnbNlu uooXygaa0mtcap2WTu/aKZTg+ZgFT/nRNVFSdN/e63n94PyDwO1EX3kot/bacQhFlRYT 6zaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FzDdk9WeLMndWaHg27kx8Y0bv03vlpf64XRRJIexZMY=; b=LOaIRUL6VE0i21hOV0yqrdmxpHA9LuRyg8W5qEvfDgmz1nFjq6U/prtW2Kwpu1HvMU gFxiz3A8kPfnhlFj6cFQGARdrgFmcGUOdGraj8YbxKZkt1FtO26JKdJZuynYC7OYMFvD jlFo8G2mZx1UTb866CmOG0W3+GRbL5v3/IxWlBuMNro5BCstCR2Blp0RUCWJMfZgXo5T sRoabLozi/6lzlF5HrUnJvmE4t6N3Y6CkaHA440TvDuqmx6O23+scLGieG0ZqcPq8gim MAiF4l99tZA3O7Kp1QvNp3TAPayyhMpAlOKfyJGkw7psRCSYU8eRE7uvAu/8CeHnbWwj XWPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=acaWyW4K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i8si10164235edc.591.2021.04.13.06.42.31; Tue, 13 Apr 2021 06:42:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=acaWyW4K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345047AbhDMGW6 (ORCPT + 99 others); Tue, 13 Apr 2021 02:22:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344983AbhDMGW3 (ORCPT ); Tue, 13 Apr 2021 02:22:29 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03670C061574; Mon, 12 Apr 2021 23:22:10 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id u7so5836112plr.6; Mon, 12 Apr 2021 23:22:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FzDdk9WeLMndWaHg27kx8Y0bv03vlpf64XRRJIexZMY=; b=acaWyW4KuwBaMok4UBB3mMF/7fsG3Dm+1yBQ2PgYywhsKIOBLbJM/vmMz6WtDUyrNO QE5kTrudQU4fJA4VTJ/esU59zGS5uYmQjVKYaSwjBbVO70BGWsoJDrvK3ba9K8LMwXKq bny7hy/KCqZtQnhIWMSO5706uDUF0vn96MVircjvLl0ZnpJmnLHW6AkncxcR2OWhr28r UYVC8LAhMNb2PsR4uGeHqP3gepPnshXEeirDgK7Ok87zBYzX4H+RBNtO4IiqA9Lpqa5J Oz5a2H8QK7ogfqEKvRrbk/lxnMnhdluVbHfGIeYMILswZIz5V1/tlNSPS3kHA727Hotk T/Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FzDdk9WeLMndWaHg27kx8Y0bv03vlpf64XRRJIexZMY=; b=rGauQ7VIv3zpdR8L4hgwQLrI5sfmXmsKBhn0Or15EDOH0VVbC0Nfnf9ROwLjqwQe25 OR83hfHTtQNOoexJ7HnGMS1Om5nM5h+ZVv8KXi1b50LxB0/+XKWfNG392UaJW6Ngk5Hj Kt/rSLkjDD5S2Be8woRDqG2x5g2LSEZhYFEfGkzpuMTDJSqlkjRucMRsipeHAjRUZtxu o2dJSHWViCQ+Z3hA1jm0e/SM8aSoaQXdChT5/xpCU+ZFtDfHGB0Sxa/+jRqQF1C11ILb yZSBUDwETiwuj49QLzgyrRv9ia25MH6ii1wIktlyou+Cpfxtu04DtmOmih7BxsVTbAoR RC9Q== X-Gm-Message-State: AOAM530upSqoJSBqNVaHl+OlF7KhDQfExaBrvQXo3Ma41LfJ39oYgtPK iFlctq+tJ6Bj++nzW+C9eYk= X-Received: by 2002:a17:902:6b8c:b029:ea:f54f:c330 with SMTP id p12-20020a1709026b8cb02900eaf54fc330mr9502135plk.10.1618294929613; Mon, 12 Apr 2021 23:22:09 -0700 (PDT) Received: from z640-arch.lan ([2602:61:7344:f100::678]) by smtp.gmail.com with ESMTPSA id e190sm11453326pfe.3.2021.04.12.23.22.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Apr 2021 23:22:09 -0700 (PDT) From: Ilya Lipnitskiy To: Thomas Bogendoerfer , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ilya Lipnitskiy , Bjorn Helgaas Subject: [PATCH 7/8] MIPS: pci-legacy: remove busn_resource field Date: Mon, 12 Apr 2021 23:21:45 -0700 Message-Id: <20210413062146.389690-8-ilya.lipnitskiy@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210413062146.389690-1-ilya.lipnitskiy@gmail.com> References: <20210413062146.389690-1-ilya.lipnitskiy@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org No drivers set the busn_resource field in the pci_controller struct. Commit 7ee214b540d9 ("MIPS: PCI: Remove unused busn_offset") almost removed it over 3 years ago. Remove it for good to free up memory and eliminate messages like: pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0] Signed-off-by: Ilya Lipnitskiy Cc: Bjorn Helgaas --- arch/mips/include/asm/pci.h | 1 - arch/mips/pci/pci-legacy.c | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/mips/include/asm/pci.h b/arch/mips/include/asm/pci.h index 6f48649201c5..9ffc8192adae 100644 --- a/arch/mips/include/asm/pci.h +++ b/arch/mips/include/asm/pci.h @@ -38,7 +38,6 @@ struct pci_controller { struct resource *io_resource; unsigned long io_offset; unsigned long io_map_base; - struct resource *busn_resource; #ifndef CONFIG_PCI_DOMAINS_GENERIC unsigned int index; diff --git a/arch/mips/pci/pci-legacy.c b/arch/mips/pci/pci-legacy.c index ec3f52ade72d..78c22987bef0 100644 --- a/arch/mips/pci/pci-legacy.c +++ b/arch/mips/pci/pci-legacy.c @@ -89,7 +89,6 @@ static void pcibios_scanbus(struct pci_controller *hose) hose->mem_resource, hose->mem_offset); pci_add_resource_offset(&resources, hose->io_resource, hose->io_offset); - pci_add_resource(&resources, hose->busn_resource); list_splice_init(&resources, &bridge->windows); bridge->dev.parent = NULL; bridge->sysdata = hose; -- 2.31.1