Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp421926ybv; Wed, 5 Feb 2020 07:54:12 -0800 (PST) X-Google-Smtp-Source: APXvYqxBOACOmNSZkzwxoAIoE6AtAujIN1GnwAGpKlYKjuAQhgcpzPV4Yr9fGU9HVnzaw4aRdjxo X-Received: by 2002:aca:d6c8:: with SMTP id n191mr3501179oig.103.1580918052673; Wed, 05 Feb 2020 07:54:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580918052; cv=none; d=google.com; s=arc-20160816; b=pH/KEujupcsjlFpG6rGrKDLtOTct7yNUviGbw+1uLsDbzu86z6HuRlhb3b4sSb2gDh MAdH32wrA1V8G5WUyZya8+rOe0sY9ePqrS2mQvyPuUPS9gNJG98GemQkVhWxBt5/RRwY 9zCUL8ysrf1QoLmUoFl6ueeFEtyy7xaiajaBcyK5Wcqu2XPLWWJDBQbS6VV8Viuarr6M uWFDpkRut0Nh1m/kCdjBx7FtHjTrJeavrY1rlbD1O9jZpT9Qekaj3S3Mo8vsQBJcGReC 9seXloQWt0J1kD2tpmIVN7s4VDQD71hD78TzNyAzDSThp+k4qeQRKeKt1K3LS9TZA3gF WnJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Ovooem6EE3pO4Zmr2fzr4JJnM14zzl70OFaFVMHpX4U=; b=MqeI+BT6glPxHfOXV7DTYia1eh+I7YRWEMIWtTI0SaWutnQQOJwzbXQLRHNy+x+uwB vLNlEQFnF+jsD1lweXXe9Igyi0PTxRmMTD87ogtbrjOw5rgUYheoyi4oWtyVClr62nqN 8Es1jdVjVPwA5FBJqpxeWciBc+FnSsiIyRg5l7ALjAB9zS5n4dtxjxCuIR8ktzNEKUzF +428kbopEhiOAerV9lhmIHXM7bCIqF+0LN91g+ci8+x9S+uQQ7rNhAqjIXr7YBh5ZOls uZb/g3ZEZaTBJYl3wMA+JaIP7YHcQmEKh/nha9pNucqNskOKLmXlkiBScHK9icVNUUM/ m5fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ilg1zLb7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l17si7766267otq.59.2020.02.05.07.54.00; Wed, 05 Feb 2020 07:54:12 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Ilg1zLb7; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727358AbgBEPwF (ORCPT + 99 others); Wed, 5 Feb 2020 10:52:05 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:36103 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726933AbgBEPwC (ORCPT ); Wed, 5 Feb 2020 10:52:02 -0500 Received: by mail-wm1-f67.google.com with SMTP id p17so3418994wma.1 for ; Wed, 05 Feb 2020 07:51:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=Ovooem6EE3pO4Zmr2fzr4JJnM14zzl70OFaFVMHpX4U=; b=Ilg1zLb77T4Dipd8iNIpGwdhS5Utm7wzGHfUaU4Gpg+DJ5UoSyoy6tb1bSxwlNKkYE kgZsr3e7PMl0Hg7gyzxfluQTuK36BnIp4Gwx868fByX7XTqXzO3MYzPqWUHjx8hja368 CDwt21EC7zCkn28CZZWRBHe3MVql/OL9ueVp7aBZeWsMIAXI+L3DOYepAPbqmH0SD4VO wEirlmdnBwZcv8FdnWM/kxqzOTq49MNAkkqucRp0YF/jT8eDBbX8RgVFygLp8M9a4mzB mjequmxIiXl5y39fgsXaQr4OY7V4bPgV8yolVUJnCj8d0/rBZ7FOh+ytDgyvlPKh6QFO fSsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=Ovooem6EE3pO4Zmr2fzr4JJnM14zzl70OFaFVMHpX4U=; b=OpeUkrtZRJD4lzysLsWZDUrL8Nvex2fFC4BO/dZGMsoNZ3+oFicGGUIbn5N3+YCyC/ l7hQdfA51Sc6oK2X4s2EMAeMI7kpGy47L7dnikIJm62AIvjwKtBQ+WiHqdE00SWveYRO CbHL+TDvGCXffsPjnUvFAOvjGYqKBSn5i2Si3X+CEwoGkpGkYU/TP8spCPEqe50RiXvp fmoGgdwqmxUXsz9KGn9VnrupDt4D2yAb2ISCj87TJ03bpMFhEpa9arxK3R8h+5AviK3O cFk9xvfGJquzFSyK709G5babqVm0C09842WCTJ5xXqujSup+XS7UXM4T5qqCQ+udJKpG FufQ== X-Gm-Message-State: APjAAAV391CFdOKoxg1K1s/6gTMIVgp8ZgxgLmmpXk0Sdwfy15mXwSst HjKRFdKc+pmjranl61ocf9KIKA== X-Received: by 2002:a1c:cc06:: with SMTP id h6mr6617655wmb.118.1580917918391; Wed, 05 Feb 2020 07:51:58 -0800 (PST) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id g128sm8432861wme.47.2020.02.05.07.51.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Feb 2020 07:51:57 -0800 (PST) Date: Wed, 5 Feb 2020 15:51:56 +0000 From: Daniel Thompson To: Anatoly Pugachev Cc: Doug Anderson , Sparc kernel list , Linux Kernel list Subject: Re: [sparc64] unable to build kernel after bbfceba15f8 / "kdb: Get rid of confusing diag msg from "rd" if current task has no regs" Message-ID: <20200205155156.5bxbitf3u4tiaxkh@holly.lan> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 05, 2020 at 12:41:46PM +0300, Anatoly Pugachev wrote: > On Wed, Feb 5, 2020 at 1:13 AM Doug Anderson wrote: > > > > Hi, > > > > On Tue, Feb 4, 2020 at 1:14 PM Anatoly Pugachev wrote: > > > > > > Hello! > > > > > > After (bisected) bbfceba15f8d1260c328a254efc2b3f2deae4904 got > > > mainline, i'm unable to build kernel with the following messages: > > > > > > ~/linux-2.6$ make -j olddefconfig; make kernel/debug/kdb/ > > > scripts/kconfig/conf --olddefconfig Kconfig > > > # > > > # No change to .config > > > # > > > CALL scripts/atomic/check-atomics.sh > > > CALL scripts/checksyscalls.sh > > > :1511:2: warning: #warning syscall clone3 not implemented [-Wcpp] > > > CC kernel/debug/kdb/kdb_main.o > > > kernel/debug/kdb/kdb_main.c: In function ‘kdb_rd’: > > > kernel/debug/kdb/kdb_main.c:1857:11: error: ‘dbg_reg_def’ undeclared > > > (first use in this function); did you mean ‘dbg_reg_def_t’? > > > 1857 | rsize = dbg_reg_def[i].size * 2; > > > | ^~~~~~~~~~~ > > > | dbg_reg_def_t > > > kernel/debug/kdb/kdb_main.c:1857:11: note: each undeclared identifier > > > is reported only once for each function it appears in > > > kernel/debug/kdb/kdb_main.c:1868:12: error: implicit declaration of > > > function ‘dbg_get_reg’ [-Werror=implicit-function-declaration] > > > 1868 | rname = dbg_get_reg(i, ®8, kdb_current_regs); > > > | ^~~~~~~~~~~ > > > kernel/debug/kdb/kdb_main.c:1868:10: warning: assignment to ‘char *’ > > > from ‘int’ makes pointer from integer without a cast > > > [-Wint-conversion] > > > 1868 | rname = dbg_get_reg(i, ®8, kdb_current_regs); > > > | ^ > > > kernel/debug/kdb/kdb_main.c:1874:10: warning: assignment to ‘char *’ > > > from ‘int’ makes pointer from integer without a cast > > > [-Wint-conversion] > > > 1874 | rname = dbg_get_reg(i, ®16, kdb_current_regs); > > > | ^ > > > kernel/debug/kdb/kdb_main.c:1880:10: warning: assignment to ‘char *’ > > > from ‘int’ makes pointer from integer without a cast > > > [-Wint-conversion] > > > 1880 | rname = dbg_get_reg(i, ®32, kdb_current_regs); > > > | ^ > > > kernel/debug/kdb/kdb_main.c:1886:10: warning: assignment to ‘char *’ > > > from ‘int’ makes pointer from integer without a cast > > > [-Wint-conversion] > > > 1886 | rname = dbg_get_reg(i, ®64, kdb_current_regs); > > > | ^ > > > cc1: some warnings being treated as errors > > > make[3]: *** [scripts/Makefile.build:266: kernel/debug/kdb/kdb_main.o] Error 1 > > > make[2]: *** [scripts/Makefile.build:503: kernel/debug/kdb] Error 2 > > > make[1]: *** [scripts/Makefile.build:503: kernel/debug] Error 2 > > > make: *** [Makefile:1681: kernel] Error 2 > > > > > > > > > reversing bbfceba15f8d with current git master branch - makes kernel > > > compilable again. > > > > > > kernel config attached > > > > Argh. Sorry about this. :( I'm not setup with a sparc compiler, but > > I've simulated your results on arm64 by just commenting out the > > definition of "DBG_MAX_REG_NUM" in "arch/arm64/include/asm/kgdb.h". > > Hopefully: > > > > https://lore.kernel.org/r/20200204141219.1.Ief3f3a7edbbd76165901b14813e90381c290786d@changeid > > > > ...will fix you? > > Fixes issue for me. Thank you. Thanks for the update. I'll pass it along shortly. Somewhat ironically I don't think I ever enabled pre-release sparc build testing because of conflicts between the way the sparc kernel adds -Werror to some of the architecture specific files and the tools I use to detect new warnings. I might have to look at that as well! Daniel.