Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1999148pxu; Fri, 9 Oct 2020 05:32:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjrvpmhc+1gK/f5hO/11YSC+0L+Rv6NV4JvcKQ69ZAUhGLpmj3CSceQVsQI7FZFT/QCrRH X-Received: by 2002:aa7:d4d8:: with SMTP id t24mr14660168edr.247.1602246774815; Fri, 09 Oct 2020 05:32:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602246774; cv=none; d=google.com; s=arc-20160816; b=Ve6eCTIgV/PBeTaZqQM0F60boKAppz/bVL0AxZC59WV0iqqtAhU5YmdmsaEOlP+Q24 9FhaFqB6Vn3yHpW2Jn4fozBaNDYTXpVZh138qZxNtT3QV9aoG6CWvMs6afg7JOha5bCl PZj6CJiaMOKy0V7yEh88VVRXz5C8oM0Oa5E03Nszv3pWZGwOFdZVvKLNDA5PD814gByX yuOrlqE191QG1Nzbm42DbRhYVncEqivjEr4AeoO7l0hGIIY5HkjeD3fJGf1znndffbBB 1KzDQhsKxGss5CFJdgsORQv6uZgMbnwehjeMAp190oVBOAa1QRB9teXGjmxqsCjS/DPU waFA== 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 :message-id:date:subject:cc:to:from; bh=WjKhoKVJx+pGmSRgEw3bjo1T4mRDx8ZnYsSF7Lzm+Bs=; b=WBlx/GucMePKrdq3wlnOOMY9VuOpSl4M5z0d9/luvtVjIxRYzcgLomEYEk3yQyyAmU XH1Bj58qcWzWVjPo77YypzfWFhpXKBsN2CKRc1uurEYMzuGXJSPAZnKfy6bWgfhIIkLZ V6kXTrDR5gzuAGpAQh9o++U96qGT7MAiVtc/Ey4TIERQdD9qfH8cpBegZ5Cgc4vG01oa GSHbTlV4Tkvou1ce5fkhgN6sgW3EpCpNaEzIWFQACNss6kL4pzKvNZBuLcRd77WAAvw1 ke2yAp+f35HAuHM+TzaQ9uL9+7Ix5XQycTiecRStN7BoR7Dw2rh0vep3u47EPcpvNABG +EVQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h7si5707877ejt.170.2020.10.09.05.32.28; Fri, 09 Oct 2020 05:32:54 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733301AbgJIJ5E (ORCPT + 99 others); Fri, 9 Oct 2020 05:57:04 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:49781 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726357AbgJIJ5E (ORCPT ); Fri, 9 Oct 2020 05:57:04 -0400 Received: from localhost.localdomain ([82.252.141.186]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MeCd5-1jtgm823R1-00bJ5Q; Fri, 09 Oct 2020 11:56:31 +0200 From: Laurent Vivier To: linux-kernel@vger.kernel.org Cc: Geert Uytterhoeven , Roman Zippel , linux-m68k@lists.linux-m68k.org, Philip Blundell , Joshua Thompson , Finn Thain , Sam Creasey , Laurent Vivier Subject: [PATCH] m68k: remove unused mach_max_dma_address Date: Fri, 9 Oct 2020 11:56:21 +0200 Message-Id: <20201009095621.833192-1-laurent@vivier.eu> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:nxmiSwUOEAeABo5t/cKm4u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f32ymGf0OLlGr8Sg7fqb/XimxBvYMdq0e1aUAodyV8ujbu3HMw8mWS9x8aUMkfs7RTMgy0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This information is unused since the discontinuous memory support has been introduced in 2007. Fixes: 12d810c1b8c2 ("m68k: discontinuous memory support") Signed-off-by: Laurent Vivier --- arch/m68k/amiga/config.c | 8 -------- arch/m68k/apollo/config.c | 1 - arch/m68k/atari/config.c | 1 - arch/m68k/bvme6000/config.c | 1 - arch/m68k/hp300/config.c | 1 - arch/m68k/include/asm/machdep.h | 1 - arch/m68k/kernel/setup_mm.c | 1 - arch/m68k/mac/config.c | 1 - arch/m68k/mvme147/config.c | 1 - arch/m68k/mvme16x/config.c | 1 - arch/m68k/q40/config.c | 5 ----- arch/m68k/sun3x/config.c | 2 -- 12 files changed, 24 deletions(-) diff --git a/arch/m68k/amiga/config.c b/arch/m68k/amiga/config.c index 8f23b2fab64c..15aea6267ebe 100644 --- a/arch/m68k/amiga/config.c +++ b/arch/m68k/amiga/config.c @@ -385,14 +385,6 @@ void __init config_amiga(void) mach_init_IRQ = amiga_init_IRQ; mach_get_model = amiga_get_model; mach_get_hardware_list = amiga_get_hardware_list; - - /* - * default MAX_DMA=0xffffffff on all machines. If we don't do so, the SCSI - * code will not be able to allocate any mem for transfers, unless we are - * dealing with a Z2 mem only system. /Jes - */ - mach_max_dma_address = 0xffffffff; - mach_reset = amiga_reset; #if IS_ENABLED(CONFIG_INPUT_M68K_BEEP) mach_beep = amiga_mksound; diff --git a/arch/m68k/apollo/config.c b/arch/m68k/apollo/config.c index 762da5d7a415..2ebe5b6d229b 100644 --- a/arch/m68k/apollo/config.c +++ b/arch/m68k/apollo/config.c @@ -150,7 +150,6 @@ void __init config_apollo(void) mach_sched_init=dn_sched_init; /* */ mach_init_IRQ=dn_init_IRQ; - mach_max_dma_address = 0xffffffff; mach_hwclk = dn_dummy_hwclk; /* */ mach_reset = dn_dummy_reset; /* */ #ifdef CONFIG_HEARTBEAT diff --git a/arch/m68k/atari/config.c b/arch/m68k/atari/config.c index 7ec3161e8517..43b4e764a1ac 100644 --- a/arch/m68k/atari/config.c +++ b/arch/m68k/atari/config.c @@ -205,7 +205,6 @@ void __init config_atari(void) mach_get_model = atari_get_model; mach_get_hardware_list = atari_get_hardware_list; mach_reset = atari_reset; - mach_max_dma_address = 0xffffff; #if IS_ENABLED(CONFIG_INPUT_M68K_BEEP) mach_beep = atari_mksound; #endif diff --git a/arch/m68k/bvme6000/config.c b/arch/m68k/bvme6000/config.c index 50f4d01363df..8afaa73ec802 100644 --- a/arch/m68k/bvme6000/config.c +++ b/arch/m68k/bvme6000/config.c @@ -101,7 +101,6 @@ void __init config_bvme6000(void) bvme6000_set_vectors(); #endif - mach_max_dma_address = 0xffffffff; mach_sched_init = bvme6000_sched_init; mach_init_IRQ = bvme6000_init_IRQ; mach_hwclk = bvme6000_hwclk; diff --git a/arch/m68k/hp300/config.c b/arch/m68k/hp300/config.c index a161d44fd20b..ce1eb3d3d55d 100644 --- a/arch/m68k/hp300/config.c +++ b/arch/m68k/hp300/config.c @@ -260,7 +260,6 @@ void __init config_hp300(void) #ifdef CONFIG_HEARTBEAT mach_heartbeat = hp300_pulse; #endif - mach_max_dma_address = 0xffffffff; if (hp300_model >= HP_330 && hp300_model <= HP_433S && hp300_model != HP_350) { diff --git a/arch/m68k/include/asm/machdep.h b/arch/m68k/include/asm/machdep.h index 49bd3266b4b1..e564101790ab 100644 --- a/arch/m68k/include/asm/machdep.h +++ b/arch/m68k/include/asm/machdep.h @@ -27,7 +27,6 @@ extern void (*mach_halt)( void ); extern void (*mach_power_off)( void ); extern unsigned long (*mach_hd_init) (unsigned long, unsigned long); extern void (*mach_hd_setup)(char *, int *); -extern long mach_max_dma_address; extern void (*mach_heartbeat) (int); extern void (*mach_l2_flush) (int); extern void (*mach_beep) (unsigned int, unsigned int); diff --git a/arch/m68k/kernel/setup_mm.c b/arch/m68k/kernel/setup_mm.c index ab8aa7be260f..ade96b1ad946 100644 --- a/arch/m68k/kernel/setup_mm.c +++ b/arch/m68k/kernel/setup_mm.c @@ -99,7 +99,6 @@ EXPORT_SYMBOL(mach_set_rtc_pll); void (*mach_reset)( void ); void (*mach_halt)( void ); void (*mach_power_off)( void ); -long mach_max_dma_address = 0x00ffffff; /* default set to the lower 16MB */ #ifdef CONFIG_HEARTBEAT void (*mach_heartbeat) (int); EXPORT_SYMBOL(mach_heartbeat); diff --git a/arch/m68k/mac/config.c b/arch/m68k/mac/config.c index a621fcc1a576..beaade4a0e13 100644 --- a/arch/m68k/mac/config.c +++ b/arch/m68k/mac/config.c @@ -140,7 +140,6 @@ void __init config_mac(void) mach_reset = mac_reset; mach_halt = mac_poweroff; mach_power_off = mac_poweroff; - mach_max_dma_address = 0xffffffff; #if IS_ENABLED(CONFIG_INPUT_M68K_BEEP) mach_beep = mac_mksound; #endif diff --git a/arch/m68k/mvme147/config.c b/arch/m68k/mvme147/config.c index 490700aa2212..ead0e51ecd42 100644 --- a/arch/m68k/mvme147/config.c +++ b/arch/m68k/mvme147/config.c @@ -80,7 +80,6 @@ void __init mvme147_init_IRQ(void) void __init config_mvme147(void) { - mach_max_dma_address = 0x01000000; mach_sched_init = mvme147_sched_init; mach_init_IRQ = mvme147_init_IRQ; mach_hwclk = mvme147_hwclk; diff --git a/arch/m68k/mvme16x/config.c b/arch/m68k/mvme16x/config.c index 5b86d10e0f84..79896c331d55 100644 --- a/arch/m68k/mvme16x/config.c +++ b/arch/m68k/mvme16x/config.c @@ -268,7 +268,6 @@ void __init config_mvme16x(void) char id[40]; uint16_t brdno = be16_to_cpu(p->brdno); - mach_max_dma_address = 0xffffffff; mach_sched_init = mvme16x_sched_init; mach_init_IRQ = mvme16x_init_IRQ; mach_hwclk = mvme16x_hwclk; diff --git a/arch/m68k/q40/config.c b/arch/m68k/q40/config.c index 4627de3c0603..58566262127d 100644 --- a/arch/m68k/q40/config.c +++ b/arch/m68k/q40/config.c @@ -185,11 +185,6 @@ void __init config_q40(void) /* disable a few things that SMSQ might have left enabled */ q40_disable_irqs(); - - /* no DMA at all, but ide-scsi requires it.. make sure - * all physical RAM fits into the boundary - otherwise - * allocator may play costly and useless tricks */ - mach_max_dma_address = 1024*1024*1024; } diff --git a/arch/m68k/sun3x/config.c b/arch/m68k/sun3x/config.c index d806dee71a9c..37121a0f1253 100644 --- a/arch/m68k/sun3x/config.c +++ b/arch/m68k/sun3x/config.c @@ -44,8 +44,6 @@ void __init config_sun3x(void) sun3x_prom_init(); - mach_max_dma_address = 0xffffffff; /* we can DMA anywhere, whee */ - mach_sched_init = sun3x_sched_init; mach_init_IRQ = sun3_init_IRQ; -- 2.26.2