Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1907484pxu; Tue, 24 Nov 2020 11:46:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJyzKflT9lKR+zBPrbhucfErNBdBSCSTZOapBAvC6h1NbzxZxcLzvNhqvMIEoEUTQR7jkRCp X-Received: by 2002:a17:906:af69:: with SMTP id os9mr26357ejb.180.1606247173724; Tue, 24 Nov 2020 11:46:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606247173; cv=none; d=google.com; s=arc-20160816; b=BXoQMCD105tV58fs7L5uui/CKJVz7fLXV6VhCDPUE3O65/X1nAmXwGIK8ADF2b8xVu rnVxlQWh+p8WlXjd5OkNZ+4SbKSA/Im6IRaEjo0z9CeN7n+sLgzzoW2fhY+Sa47AF+nO zD04El1WRJ6I4e/yNBrk71EsvM06nWH1p4hc2/FqnJbmOkN5hjpUPnamCwwpbBXQ+kOY 23KFfu4+CU+DB3dDBgHtKNhfg5FofV8IuiKUSxuoV7EkyoF3ebSvxEMc0kOKVCsX5nVo ANhnR8JDbFJnpONXW0wGzHUrjYgYLBWpP5vSBX2pdeTYkrwG81yVNJKByJdSH16tvd7a PNwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=5ue+P3JzpGrU6tlzGx5XVuYQaSyzNcLFnV35XJjjspQ=; b=hguNeXfL4uBNlQSuOBNmCLApDd7eHuaYXgY9mvqIws9gMjUOI0a2XiohTJysowopkj QxOUYZk610QMyX0Mo5fvYbMb36C9T+UAwkMTvWcTne2JMdU2D5z/jMdB0C80Ftr8HIQz 7IucXMiI/UV/XJrvd6AhemAq4sjuutkYjkrJaPsiP8FSCF+7UHAcF2MaYe4v2FlE6KsR vm102W24U4xBhLXwqKJuL09cnsNEO1gMv9rr14tSWuGFyQyxbPBtKaKB9SiGypDGRr1w 6jYZbnB94YpxS65Nx4B+VhYQ0b+gy0o7ebEFwAtrqMKPppNISThNmRzkN2MRiiKEuakU 1cmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@axtens.net header.s=google header.b=i9XFnBH+; 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 k20si9802896edk.392.2020.11.24.11.45.51; Tue, 24 Nov 2020 11:46:13 -0800 (PST) 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=@axtens.net header.s=google header.b=i9XFnBH+; 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 S1728902AbgKXAXN (ORCPT + 99 others); Mon, 23 Nov 2020 19:23:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726844AbgKXAXM (ORCPT ); Mon, 23 Nov 2020 19:23:12 -0500 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C68F8C0613CF for ; Mon, 23 Nov 2020 16:23:12 -0800 (PST) Received: by mail-pg1-x52b.google.com with SMTP id j19so15815260pgg.5 for ; Mon, 23 Nov 2020 16:23:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axtens.net; s=google; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=5ue+P3JzpGrU6tlzGx5XVuYQaSyzNcLFnV35XJjjspQ=; b=i9XFnBH+MXLis9WH+r0LmXB7kMbK3QJnfcO+0O2lFecH43DRqKs0w1BfAmToymVRCe Kq3WLay7IYMalLVYOYd1EN4jYdZrJZnIAaD9ge1SUKAcWTsguAeh2DvGkm4MXrAiN7iH X5XBeXPrtdx9uSLu4KVAV5Wr1nbUz9HRxf1us= 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:in-reply-to:references:date :message-id:mime-version; bh=5ue+P3JzpGrU6tlzGx5XVuYQaSyzNcLFnV35XJjjspQ=; b=mWH/igKQEIo8itexLhE3f5D+dARlj4LkAzP/GlycO9hQ7FrumH2erFxgaaaS7QeBnJ 7ZyePrDakTNgV0x7SUvzjP+8ux0llIPmncxlb1RRRoi78eiPoDoGUEgZbmW57282kkwL Xggnp8aUtkTklxXrNQiBLyeY8ATSWgIsNwsNyN2oylzbuJBjoZjdzdGZlZMomku1igZE OxGLUWsSe4rknnfagfiaTq7cHhpvo7/k00LHucECS+imKoninBUg2YVQoY46YzJnhQRo 9Jd6dYfE1Gm0PEc1ZM9uu5NBhn/6ZWacpVebIb3cb7qmIwHc75eLN07ZMPR5O5whUTw7 a78A== X-Gm-Message-State: AOAM532XkmuHeb/Az4r7uNrPLkml0N4cBv8M6whXYSNxVcdYakg6TmhZ lfK7Cumfa0s69nf+v2pW6WbDYg== X-Received: by 2002:a17:90a:f406:: with SMTP id ch6mr1619681pjb.134.1606177392399; Mon, 23 Nov 2020 16:23:12 -0800 (PST) Received: from localhost (2001-44b8-1113-6700-1113-ab2f-0962-4f90.static.ipv6.internode.on.net. [2001:44b8:1113:6700:1113:ab2f:962:4f90]) by smtp.gmail.com with ESMTPSA id y19sm12837831pfn.147.2020.11.23.16.23.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2020 16:23:11 -0800 (PST) From: Daniel Axtens To: Michael Ellerman , Michael Ellerman , Stephen Rothwell , PowerPC Cc: Linux Next Mailing List , Linux Kernel Mailing List , Nicholas Piggin Subject: Re: linux-next: build failure in Linus' tree In-Reply-To: <160617472873.1817800.16473753588453276266.b4-ty@ellerman.id.au> References: <20201123184016.693fe464@canb.auug.org.au> <160617472873.1817800.16473753588453276266.b4-ty@ellerman.id.au> Date: Tue, 24 Nov 2020 11:23:08 +1100 Message-ID: <87h7pfhac3.fsf@dja-thinkpad.axtens.net> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks sfr and mpe. > Applied to powerpc/fixes. > > [1/1] powerpc/64s: Fix allnoconfig build since uaccess flush > https://git.kernel.org/powerpc/c/b6b79dd53082db11070b4368d85dd6699ff0b063 We also needed a similar fix for stable, which has also been applied. I guess I should build some sort of build process that tests a whole range of configs. I did test a few but clearly not enough. Is there a known list that I should be using? Something from kisskb? Kind regards, Daniel Michael Ellerman writes: > On Mon, 23 Nov 2020 18:40:16 +1100, Stephen Rothwell wrote: >> After merging most of the trees, today's linux-next build (powerpc64 >> allnoconfig) failed like this: >> >> In file included from arch/powerpc/include/asm/kup.h:18, >> from arch/powerpc/include/asm/uaccess.h:9, >> from include/linux/uaccess.h:11, >> from include/linux/sched/task.h:11, >> from include/linux/sched/signal.h:9, >> from include/linux/rcuwait.h:6, >> from include/linux/percpu-rwsem.h:7, >> from include/linux/fs.h:33, >> from include/linux/compat.h:17, >> from arch/powerpc/kernel/asm-offsets.c:14: >> arch/powerpc/include/asm/book3s/64/kup-radix.h:66:1: warning: data definition has no type or storage class >> 66 | DECLARE_STATIC_KEY_FALSE(uaccess_flush_key); >> | ^~~~~~~~~~~~~~~~~~~~~~~~ >> arch/powerpc/include/asm/book3s/64/kup-radix.h:66:1: error: type defaults to 'int' in declaration of 'DECLARE_STATIC_KEY_FALSE' [-Werror=implicit-int] >> arch/powerpc/include/asm/book3s/64/kup-radix.h:66:1: warning: parameter names (without types) in function declaration >> arch/powerpc/include/asm/book3s/64/kup-radix.h: In function 'prevent_user_access': >> arch/powerpc/include/asm/book3s/64/kup-radix.h:180:6: error: implicit declaration of function 'static_branch_unlikely' [-Werror=implicit-function-declaration] >> 180 | if (static_branch_unlikely(&uaccess_flush_key)) >> | ^~~~~~~~~~~~~~~~~~~~~~ >> arch/powerpc/include/asm/book3s/64/kup-radix.h:180:30: error: 'uaccess_flush_key' undeclared (first use in this function) >> 180 | if (static_branch_unlikely(&uaccess_flush_key)) >> | ^~~~~~~~~~~~~~~~~ >> arch/powerpc/include/asm/book3s/64/kup-radix.h:180:30: note: each undeclared identifier is reported only once for each function it appears in >> arch/powerpc/include/asm/book3s/64/kup-radix.h: In function 'prevent_user_access_return': >> arch/powerpc/include/asm/book3s/64/kup-radix.h:189:30: error: 'uaccess_flush_key' undeclared (first use in this function) >> 189 | if (static_branch_unlikely(&uaccess_flush_key)) >> | ^~~~~~~~~~~~~~~~~ >> arch/powerpc/include/asm/book3s/64/kup-radix.h: In function 'restore_user_access': >> arch/powerpc/include/asm/book3s/64/kup-radix.h:198:30: error: 'uaccess_flush_key' undeclared (first use in this function) >> 198 | if (static_branch_unlikely(&uaccess_flush_key) && flags == AMR_KUAP_BLOCKED) >> | ^~~~~~~~~~~~~~~~~ >> >> [...] >