Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp717859rdb; Tue, 5 Dec 2023 19:20:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IH1eZ7G1xWeQTFa3uGpMabGduKWwuRnH5DIPXL72iI5y8VmMQtzEpOMpJ62cajHmcpUj3II X-Received: by 2002:a05:6a21:1c8a:b0:18f:9c4:d346 with SMTP id sf10-20020a056a211c8a00b0018f09c4d346mr2361245pzb.54.1701832802289; Tue, 05 Dec 2023 19:20:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701832802; cv=none; d=google.com; s=arc-20160816; b=YGyOGShhxHGMyKxb7GHKUZbhbkiqTXDSnLQIDusVLFgCFhMCbfNxV9O9O5+gbUdEQs YOcPvP5u31x0p+P83TYiuoZrevg6MXht60cRZDkPVg52M9LYN0OY+WgZ/+2MeJGAKYhM zkXJwqpJBUW6FcTCSZwN9x4y8I2ijW28ibbk+TAXDW0r+D4yx5oYgKqJR8R9z5jzbi1n QLS/BjfoUV/K55TOujPxY7T9UhvlZsHWlYrjaBo07Z3WO3IgKcyxmVQr8c+jH46G+p/3 N+RCXRTNd8UGQjTBXfyqMPKOABU/Z99Ymay66bkM7qbkh/lan2XtbCy9eiiwhsOOWpj2 Cp7A== 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:subject:cc:to:from:date :dkim-signature; bh=+R+s2ipByf0kO1/SdWPDOgyoSLgIykmCOvBVAxkRneQ=; fh=f4rI7BJQtZxA/5PDHASiVgaE+zKnGLLx4kunCEqzQ4A=; b=PIOq1RKJg8BdzcPByEe52fNM7E4zwb7xZtMuTfTmvgFQ1NkYvq7QEPwnf6GRUXfNkW XTnjQbulS+ahWC/MufKylCdRdvk5G6V5fl+vYGa8B53HDEUVVbR9BiUUTfbeImWbgwkh vJbsC/fghz45gcJ5MsJi3aXwZ4iVSSxIVjcuGXa6wk8ZTdK7Sn2Hwl2arcC0omB6IUkb vwv/GhEMVuAAMEBcRjqKSTuKrMIx6wFKUcOP4uiJyvg/qAgwlYnx3FGo2q4ic3n11D/O 5TOzPC/V+avOSgGi2hL4HrGt2q4fOjRIuIcBoH0iJkHuIwGcqRwvYgMppv/BdwspzUXg R+dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=Ij6HNPIo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id cf1-20020a056a02084100b005c69bfad79fsi3051053pgb.77.2023.12.05.19.20.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 19:20:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=Ij6HNPIo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id BC268823365B; Tue, 5 Dec 2023 19:19:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229577AbjLFDTi (ORCPT + 99 others); Tue, 5 Dec 2023 22:19:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbjLFDTh (ORCPT ); Tue, 5 Dec 2023 22:19:37 -0500 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5F171AA; Tue, 5 Dec 2023 19:19:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1701832782; bh=+R+s2ipByf0kO1/SdWPDOgyoSLgIykmCOvBVAxkRneQ=; h=Date:From:To:Cc:Subject:From; b=Ij6HNPIowYy/6i5442tBv3d5GM12UElTdJjFvI7uwnQe0ahUCrvgRN25MMf/7eVEJ mA6ZaEXcMwdyPrYkIiIAGHtj6XONU2FNECwzjgHRcjb9akzQV7jUWP6vusrQYz77pd bwuzHAYBW9wUeqP9PD5WqgbWEI7X4OptzWRRPh9p9eLHiDg+O+yijRYJTYbgnGmjKV nh7zVGJuSMtCPlsX8nHoe9SHpzUTClrzdspwSpiNEB2+VyaeSNXMnNidmhgno3qM56 Lq/19zBcuJAWvL/vwfShasA7TeJzr7elX1WM2Q+sEaqoj21Fo1KFj0Jnr99WXNven9 94ueZgHt+QkzA== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4SlN1T6Tm1z4wd7; Wed, 6 Dec 2023 14:19:41 +1100 (AEDT) Date: Wed, 6 Dec 2023 14:19:41 +1100 From: Stephen Rothwell To: Luis Chamberlain , "Eric W. Biederman" Cc: Thomas =?UTF-8?B?V2Vpw59zY2h1aA==?= , Alexey Gladkov , Linux Kernel Mailing List , Linux Next Mailing List Subject: linux-next: build failure after merge of the sysctl tree Message-ID: <20231206141941.3ed51cb1@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/+rRVMoDbvb1bDgkocbw/u/e"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 05 Dec 2023 19:19:59 -0800 (PST) --Sig_/+rRVMoDbvb1bDgkocbw/u/e Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, After merging the sysctl tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: ipc/mq_sysctl.c:115:24: error: initialization of 'int (*)(struct ctl_table_= header *, const struct ctl_table *)' from incompatible pointer type 'int (*= )(struct ctl_table_header *, struct ctl_table *)' [-Werror=3Dincompatible-p= ointer-types] 115 | .permissions =3D mq_permissions, | ^~~~~~~~~~~~~~ ipc/mq_sysctl.c:115:24: note: (near initialization for 'set_root.permission= s') ipc/mq_sysctl.c:116:26: error: initialization of 'void (*)(struct ctl_table= _header *, const struct ctl_table *, kuid_t *, kgid_t *)' from incompatible= pointer type 'void (*)(struct ctl_table_header *, struct ctl_table *, kuid= _t *, kgid_t *)' [-Werror=3Dincompatible-pointer-types] 116 | .set_ownership =3D mq_set_ownership, | ^~~~~~~~~~~~~~~~ ipc/mq_sysctl.c:116:26: note: (near initialization for 'set_root.set_owners= hip') Caused by commits a6dd7f5a787b ("sysctl: treewide: constify ctl_table_root::permissions") a56545552ecf ("sysctl: treewide: constify ctl_table_root::set_ownership") interacting with commit 7608b6a72ed0 ("sysctl: Allow to change limits for posix messages queues") from the userns tree. I have applied the following merge resolution patch. From: Stephen Rothwell Date: Wed, 6 Dec 2023 14:12:02 +1100 Subject: [PATCH] fixup for "sysctl: treewide: constify ctl_table_root::permissions" and "sysctl: treewide: constify ctl_table_root::set_ownership" interacting with "sysctl: Allow to change limits for posix messages queues". Signed-off-by: Stephen Rothwell --- ipc/mq_sysctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipc/mq_sysctl.c b/ipc/mq_sysctl.c index 69c709262f5a..850dfc83af23 100644 --- a/ipc/mq_sysctl.c +++ b/ipc/mq_sysctl.c @@ -78,7 +78,7 @@ static int set_is_seen(struct ctl_table_set *set) } =20 static void mq_set_ownership(struct ctl_table_header *head, - struct ctl_table *table, + const struct ctl_table *table, kuid_t *uid, kgid_t *gid) { struct ipc_namespace *ns =3D @@ -91,7 +91,7 @@ static void mq_set_ownership(struct ctl_table_header *hea= d, *gid =3D gid_valid(ns_root_gid) ? ns_root_gid : GLOBAL_ROOT_GID; } =20 -static int mq_permissions(struct ctl_table_header *head, struct ctl_table = *table) +static int mq_permissions(struct ctl_table_header *head, const struct ctl_= table *table) { int mode =3D table->mode; kuid_t ns_root_uid; --=20 2.40.1 --=20 Cheers, Stephen Rothwell --Sig_/+rRVMoDbvb1bDgkocbw/u/e Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmVv6E0ACgkQAVBC80lX 0Gz9fgf+KbuBjUj9btCJ8XojP/v7GvYlyyk2O+YiDpVXBoqqzVqo1h/6hVgON8MB VBySqZGhkxcmLk17/+MbTJzVAV9WUaYEQs3w6DNRGjvC6YPxA0/A6Wni1M90/xxN 80m9pRmDUHcShogsXb5NVKl6PgRe24aRAVkxX3AhapsQbR7JuYR5F9iJnkoZFiwV MrCFrjqPad10SfSFbFehBjN+tlQ2ciiOvNHVBWv5ZfDPw01IIwnc6xATB7VvSWsU rldxyvt670uktzxpIyXUagNWlEvfMR/eDJCibK9bjH/Fp/2WBtXQ4bR5+ojwrRmg 76GDLnjmyc2Z6lOws+06VRqKyk8Jrw== =0QAX -----END PGP SIGNATURE----- --Sig_/+rRVMoDbvb1bDgkocbw/u/e--