Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6739889rwd; Tue, 6 Jun 2023 00:54:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4OzhQElyAUD/0aASgpxuWrQVEmZ2cp+0F0/n3TLwCW4JfG3RRzRNsr+GqqvS95mWcGM5hG X-Received: by 2002:a05:6a20:144e:b0:10a:e9ff:808d with SMTP id a14-20020a056a20144e00b0010ae9ff808dmr2140854pzi.0.1686038071198; Tue, 06 Jun 2023 00:54:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686038071; cv=none; d=google.com; s=arc-20160816; b=vL2OlEnbT0T1H/rNAyD2umQj3Wx9lu4lZpPJz9JByvIaV9p148fQqNTEQquobHgxB6 pl5loB8KOwzkjQiosUa1K3UY+YIZSU7m3nok7QVfMeUhWUaBU4aJKuz8o5KIESrURNwf IG2QXsQo8vHzpOQNYCDpmGsGVcRoC3PyUjZ07MOzkK9wNsY0Nv55A0hwnIlZTw4FQc5V XdCfF72QMgCH66G6jSFnUgFITIWlrApUcDTSgwFTMKzxX90trwoGchN8hHtzEN54FzYc nWYpbVI/HHGO6YrqtCTDaH/bZ+lZhA+Y3NXjMJdbH6R28s6MuPAHNbUWZS18EOOl6mwp w6JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=L9dCZKWWEebmvBWJi1/A3wImfZOMjWKnkFAELWL4EEs=; b=oWDXqbqAWGF/h1p814eSLtjgm6a6bp70YCSjhqURHj3bDGe7z6wuCQpx2Anr93glLO 6+ApLAUqK8FVPv9+rC23vxlDEP+7t8KMs8atE7ipHq+Ey5aQyhGytuQhU783w42Ym4XW hsP7z7UaZRnZzT/q6SwJCmIFApsWMCa0KrU8svLXRmKa4PM2KwB9SdLMfvlyzKl9yaPL CdzvE/21qjg5/F/Ei/0SVHnb3QHAT3a9XHqsgJ35mVVC4ZAFrwAt7EcvLJ/Egp1a8kX5 8T0mLs2dqCiEcX1aAwZNGOjWItG9wmE5lsRZd4CSwHEdLOAHq3y07xwGBb0rWr6NqrOk PT5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b="GQai/YRh"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s16-20020aa78bd0000000b00655079704afsi5151992pfd.119.2023.06.06.00.54.19; Tue, 06 Jun 2023 00:54:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b="GQai/YRh"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235834AbjFFHjs (ORCPT + 99 others); Tue, 6 Jun 2023 03:39:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231659AbjFFHjr (ORCPT ); Tue, 6 Jun 2023 03:39:47 -0400 Received: from smtp-8fab.mail.infomaniak.ch (smtp-8fab.mail.infomaniak.ch [83.166.143.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1EB3106 for ; Tue, 6 Jun 2023 00:39:44 -0700 (PDT) Received: from smtp-2-0000.mail.infomaniak.ch (unknown [10.5.36.107]) by smtp-2-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4Qb2Ry67wKzMpnwc; Tue, 6 Jun 2023 09:39:42 +0200 (CEST) Received: from unknown by smtp-2-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4Qb2Rx40x2zMpnPq; Tue, 6 Jun 2023 09:39:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=digikod.net; s=20191114; t=1686037182; bh=onTta4zxo0KV8FXnJJ+OInrN8UxvhAaHFZ59RIsmfNQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=GQai/YRhFBXDORxGP9qJQq+pkLNrelXG8jSLYrAykI1G8djZXzHNAQEjVMw7x2EGv TJFhvjQUORXr/QZSCBdXkIdXBS1FzoP02XnPvYn9ProLlCKy934elHSAGsBzAyH3JK r8hci6yT+sayaMvs/fgtZwo/byIW3c+txCh43B+0= Message-ID: <86217436-e3aa-00b6-ec0e-947ac249db3a@digikod.net> Date: Tue, 6 Jun 2023 09:39:39 +0200 MIME-Version: 1.0 User-Agent: Subject: Re: linux-next: build failure after merge of the landlock tree Content-Language: en-US To: Stephen Rothwell Cc: Konstantin Meskhidze , Linux Kernel Mailing List , Linux Next Mailing List References: <20230606130236.4d339a46@canb.auug.org.au> From: =?UTF-8?Q?Micka=c3=abl_Sala=c3=bcn?= In-Reply-To: <20230606130236.4d339a46@canb.auug.org.au> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Infomaniak-Routing: alpha X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stephen, I only checked this branch with a previous kernel version. It is now fixed and pushed. Thanks, Mickaƫl On 06/06/2023 05:02, Stephen Rothwell wrote: > Hi all, > > After merging the landlock tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > security/landlock/net.c:165:51: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__lsm_ro_after_init' > 165 | static struct security_hook_list landlock_hooks[] __lsm_ro_after_init = { > | ^~~~~~~~~~~~~~~~~~~ > security/landlock/net.c: In function 'landlock_add_net_hooks': > security/landlock/net.c:172:28: error: 'landlock_hooks' undeclared (first use in this function) > 172 | security_add_hooks(landlock_hooks, ARRAY_SIZE(landlock_hooks), > | ^~~~~~~~~~~~~~ > security/landlock/net.c:172:28: note: each undeclared identifier is reported only once for each function it appears in > In file included from include/linux/container_of.h:5, > from include/linux/kernel.h:21, > from include/linux/uio.h:8, > from include/linux/socket.h:8, > from include/uapi/linux/in.h:25, > from include/linux/in.h:19, > from security/landlock/net.c:9: > include/linux/build_bug.h:16:51: error: bit-field '' width not an integer constant > 16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) > | ^ > include/linux/compiler.h:231:33: note: in expansion of macro 'BUILD_BUG_ON_ZERO' > 231 | #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0])) > | ^~~~~~~~~~~~~~~~~ > include/linux/kernel.h:56:59: note: in expansion of macro '__must_be_array' > 56 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) > | ^~~~~~~~~~~~~~~ > security/landlock/net.c:172:44: note: in expansion of macro 'ARRAY_SIZE' > 172 | security_add_hooks(landlock_hooks, ARRAY_SIZE(landlock_hooks), > | ^~~~~~~~~~ > security/landlock/net.c: At top level: > security/landlock/net.c:157:12: warning: 'hook_socket_connect' defined but not used [-Wunused-function] > 157 | static int hook_socket_connect(struct socket *const sock, > | ^~~~~~~~~~~~~~~~~~~ > security/landlock/net.c:150:12: warning: 'hook_socket_bind' defined but not used [-Wunused-function] > 150 | static int hook_socket_bind(struct socket *const sock, > | ^~~~~~~~~~~~~~~~ > > Caused by commit > > 6d0bfdb25ce6 ("landlock: Add network rules and TCP hooks support") > > I have use the landlock tree from next-20230605 for today. >