Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 02C511EA80 for ; Tue, 11 Mar 2025 15:15:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741706125; cv=none; b=nPeF4+UNv65shhzSxBP5EvXyIymSbjMVwcQW5Frxc5PGV7E0Vl8Zn/T7tNK6xq2tpNWOKjxTWGx+6qe6fUbeoPfDvpkkZl2ipd9JHTubAl+x7n2RdWcdTt8hmk38Bcl3ypQ8uU2nSUlS14ju9wZO3mBZWcW4JJxiE4yZz1K5Gn0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741706125; c=relaxed/simple; bh=X/lU0TlKLrVonrxyWwQKNSpkk3hEBUDkg5hb2G3vuVs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mXKhCJxQNx/9uW5DNBFCdIlyFLVybBTRL88FCp/64lZtJjmWPxpK/UInVvaREi9f9fnR7YQ07Ao9eF/+Na5Qr51XoB2hRY4bthlo9tA0uQVElPzUHaqOqNRDAbwuvcu3XkSPd3HXdz7v3magP3BS9JouChNsYwCp/H2MN119gno= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE924C4CEE9; Tue, 11 Mar 2025 15:15:22 +0000 (UTC) Date: Tue, 11 Mar 2025 15:15:20 +0000 From: Catalin Marinas To: Madhavan Srinivasan Cc: shuah@kernel.org, mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu, naveen@kernel.org, yury.khrustalev@arm.com, linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Venkat Rao Bagalkote Subject: Re: [PATCH] selftest/powerpc/mm/pkey: fix build-break introduced by commit 00894c3fc917 Message-ID: References: <20250311084129.39308-1-maddy@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20250311084129.39308-1-maddy@linux.ibm.com> Hi Madhavan, On Tue, Mar 11, 2025 at 02:11:29PM +0530, Madhavan Srinivasan wrote: > Build break was reported in the powerpc mailing list for next-20250218 with below errors > > make[1]: Nothing to be done for 'all'. > BUILD_TARGET=/root/venkat/linux-next/tools/testing/selftests/powerpc/mm; mkdir -p $BUILD_TARGET; make OUTPUT=$BUILD_TARGET -k -C mm all > CC pkey_exec_prot > In file included from pkey_exec_prot.c:18: > /root/venkat/linux-next/tools/testing/selftests/powerpc/include/pkeys.h: In function ‘pkeys_unsupported’: > /root/venkat/linux-next/tools/testing/selftests/powerpc/include/pkeys.h:96:34: error: ‘PKEY_UNRESTRICTED’ undeclared (first use in this function) > 96 | pkey = sys_pkey_alloc(0, PKEY_UNRESTRICTED); > | ^~~~~~~~~~~~~~~~~ > > https://lore.kernel.org/all/20250113170619.484698-2-yury.khrustalev@arm.com/ patchset > has been queued to arm64/for-next/pkey_unrestricted which is causing a build break > in the selftest/powerpc builds. > > Commit 6d61527d931ba ("mm/pkey: Add PKEY_UNRESTRICTED macro") added a macro > PKEY_UNRESTRICTED to handle implicit literal value of 0x0 (which is "unrestricted"). > Add the same to selftest/powerpc/pkeys.h to fix the reported build break. > > Reported-by: Venkat Rao Bagalkote > Closes: https://lore.kernel.org/lkml/3267ea6e-5a1a-4752-96ef-8351c912d386@linux.ibm.com/T/ > Tested-by: Venkat Rao Bagalkote > Signed-off-by: Madhavan Srinivasan > --- > Catalin, can you take this fix via arm64/for-next/pkey_unrestricted? > Patch applies clean on top of arm64/for-next/pkey_unrestricted I'll take it, sorry for the break. I did not realise powerpc duplicates those definitions. -- Catalin