Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5834713ybl; Tue, 10 Dec 2019 12:15:47 -0800 (PST) X-Google-Smtp-Source: APXvYqykF0ALqGPfxKFbfTog39ErVZGIhvRCd0q7c/Pxj63SGemxTbNI4w/NbCdWvShkZvcBNpxS X-Received: by 2002:a9d:62d5:: with SMTP id z21mr27471896otk.224.1576008947785; Tue, 10 Dec 2019 12:15:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576008947; cv=none; d=google.com; s=arc-20160816; b=W6B12ifc1OAvadGDvg/Uj950v+2LcIXdIoEwiRhUzMLFSsx/7HEyb0MBVxWPMXzvTh Xvika2lxdJEhoWteNXGRD+EthsY7/rrGSBF3weXP4pHRt6KSFlsDQKLhW8tnQ4RIyNFK 1L6XIWx6iMAyUejRuB2JSIibwMjkDLsoFKZA3Cx/A9HDnor2BcL1kX+6uQwcV1EN3CYy 6JSeaRJKuLRxBhh+Ygae0WYsLjhDu96srdMJycABz1hzOalY4/1blDn/4S0+c6MzgZVa DeIKEpVuDsbXZ+9daT7RrIw9dZbWCsQW3+pNeI6p56hABg6rDrBrtn6BGUcP9b0KVl1F 2E3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject; bh=wb5TbGPX0KvJ+lhCtVVwqmj0f4j7nrDpUs0GsXTLEU4=; b=dO0hJX9qk6SScMEspDR+TNamlMkm7XhdB1mlgOLxVmXp++vJ4TR+7isvSjLu2ewUI2 OWt8DHC+Qhl5uEYFzozlBYxviYHVUnGa3oTVvZ/r2uBe5yQeoTvJ4aA9FIl5UXzvCLbG PK3G5+Mse1+nC4ehcnbbb3JE/nsDhJub7o24nOlRetvn1nXKSu6/tkxrNmtj7iPnNVeA SpjZpblBgVZof4VdU+NXcutVATmOk7XKfsjXlOyH56d+dJv1wrkzwKDtfdmNfKlaiVlT yd/cb7JRq8tSu3KSHfGNrTu2YGcOqIZunY8xy95xFxddGu+pcdiW28/Dd0S/Bk2gtY/i A9tQ== 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 v7si2689388otr.44.2019.12.10.12.15.34; Tue, 10 Dec 2019 12:15:47 -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 S1726683AbfLJUOl (ORCPT + 99 others); Tue, 10 Dec 2019 15:14:41 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:38137 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726417AbfLJUOl (ORCPT ); Tue, 10 Dec 2019 15:14:41 -0500 Received: by mail-wm1-f67.google.com with SMTP id p17so4615255wmi.3; Tue, 10 Dec 2019 12:14:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=wb5TbGPX0KvJ+lhCtVVwqmj0f4j7nrDpUs0GsXTLEU4=; b=Vl7fPFnKmF1Kb5S2E8tovZLEgIblDgUrumahDSGY5hErwio228ZW7yn2jQ22ZHCmAG 9tifLnRG0UcMEW7v6WN1a9UcdYKgDoGp/Eod8BI+jzQv1909R1spQi6pqoDpGXpqtLWg gdM3EX2slXzo+sQ9jrgS1bQauivgI4VSTqYbw/meRZ0dMxCLUzurLjLWGTDnAxvm89bM 5+mfzB15boFjLcGRSr1wyco8yamjt3riRq2tOV+5UNzBOlpeGXPGkc6UJhmrGiNXfUuN S0SoRd/t/wIglglQ9O/48IKf9835hSClLV9MXhpdeaeq9qp1+lUgflqbv8KmAWoIXw1J 0NwQ== X-Gm-Message-State: APjAAAVrxFgZTs3X/+KY+BoPT7jjybzUi3VpQ0n7dzymilvhszrupPHc QLEqf8KXG3b0lAF2+tk7RjkOehgMFpA= X-Received: by 2002:a7b:c1d8:: with SMTP id a24mr7129734wmj.130.1576008878077; Tue, 10 Dec 2019 12:14:38 -0800 (PST) Received: from [10.68.32.192] (broadband-188-32-48-208.ip.moscow.rt.ru. [188.32.48.208]) by smtp.gmail.com with ESMTPSA id g2sm4439247wrw.76.2019.12.10.12.14.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Dec 2019 12:14:37 -0800 (PST) Subject: Re: [PATCH] MIPS: Add KSEG*ADDR definitions to CONFIG_64BIT To: Paul Burton Cc: Ralf Baechle , James Hogan , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org References: <20191210172739.27131-1-efremov@linux.com> <20191210185716.3lkhbuuqtzj2vs3l@lantea.localdomain> From: Denis Efremov Autocrypt: addr=efremov@linux.com; keydata= mQINBFsJUXwBEADDnzbOGE/X5ZdHqpK/kNmR7AY39b/rR+2Wm/VbQHV+jpGk8ZL07iOWnVe1 ZInSp3Ze+scB4ZK+y48z0YDvKUU3L85Nb31UASB2bgWIV+8tmW4kV8a2PosqIc4wp4/Qa2A/ Ip6q+bWurxOOjyJkfzt51p6Th4FTUsuoxINKRMjHrs/0y5oEc7Wt/1qk2ljmnSocg3fMxo8+ y6IxmXt5tYvt+FfBqx/1XwXuOSd0WOku+/jscYmBPwyrLdk/pMSnnld6a2Fp1zxWIKz+4VJm QEIlCTe5SO3h5sozpXeWS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UZR2mntwiKotgLV95yL0dPyZxvOPPnbjF0cCtHfdKhXIt7Syzjb M8k2fmSF0FM+89/hP11aRrs6+qMHSd/s3N3j0hR2Uxsski8q6x+LxU1aHS0FFkSl0m8SiazA Gd1zy4pXC2HhCHstF24Nu5iVLPRwlxFS/+o3nB1ZWTwu8I6s2ZF5TAgBfEONV5MIYH3fOb5+ r/HYPye7puSmQ2LCXy7X5IIsnAoxSrcFYq9nGfHNcXhm5x6WjYC0Kz8l4lfwWo8PIpZ8x57v gTH1PI5R4WdRQijLxLCW/AaiuoEYuOLAoW481XtZb0GRRe+Tm9z/fCbkEveyPiDK7oZahBM7 QdWEEV8mqJoOZ3xxqMlJrxKM9SDF+auB4zWGz5jGzCDAx/0qMUrVn2+v8i4oEKW6IUdV7axW Nk9a+EF5JSTbfv0JBYeSHK3WRklSYLdsMRhaCKhSbwo8Xgn/m6a92fKd3NnObvRe76iIEMSw 60iagNE6AFFzuF/GvoIHb2oDUIX4z+/D0TBWH9ADNptmuE+LZnlPUAAEzRgUFtlN5LtJP8ph Message-ID: <54db9ec6-a60a-8202-72d8-dafef9eb2f0e@linux.com> Date: Tue, 10 Dec 2019 23:14:35 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: <20191210185716.3lkhbuuqtzj2vs3l@lantea.localdomain> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 10.12.2019 21:57, Paul Burton wrote: > Hi Denis, > > On Tue, Dec 10, 2019 at 08:27:39PM +0300, Denis Efremov wrote: >> The patch adds KSEG0ADDR, KSEG1ADDR, KSEG2ADDR, KSEG3ADDR >> definitions to CONFIG_64BIT ifdef. This fixes broken compilation: >> CC drivers/watchdog/mtx-1_wdt.o >> In file included from drivers/watchdog/mtx-1_wdt.c:44: >> ./arch/mips/include/asm/mach-au1x00/au1000.h: In function ‘alchemy_rdsys’: >> ./arch/mips/include/asm/mach-au1x00/au1000.h:603:36: error: implicit >> declaration of function ‘KSEG1ADDR’; did you mean ‘CKSEG1ADDR’? >> [-Werror=implicit-function-declaration] > > Since this driver is meant to run on a system that only supports 32 bit > kernels, I think it would be better to correct its dependencies in > Kconfig like so: > > diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig > index 58e7c100b6ad..509cbb6d2cea 100644 > --- a/drivers/watchdog/Kconfig > +++ b/drivers/watchdog/Kconfig > @@ -1648,7 +1648,7 @@ config JZ4740_WDT > > config WDT_MTX1 > tristate "MTX-1 Hardware Watchdog" > - depends on MIPS_MTX1 || (MIPS && COMPILE_TEST) > + depends on MIPS_MTX1 || (MIPS && 32BIT && COMPILE_TEST) > help > Hardware driver for the MTX-1 boards. This is a watchdog timer that > will reboot the machine after a 100 seconds timer expired. > > And mark this with the appropriate fixes tag: > > Fixes: da2a68b3eb47 ("watchdog: Enable COMPILE_TEST where possible") > > What do you think? > > Alternatively the driver could just use the existing & equivalent > CKSEG1ADDR() macro as the compiler suggested, but in that case it'd be > good to check that's the only change needed to build cleanly with > CONFIG_64BIT=y. > Thank you for the suggestion. I will prepare V2 and fix the same way other drivers that break the compilation with CONFIG_64BIT and missing KSEG1ADDR. > Thanks, > Paul >