Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3378823rdg; Tue, 17 Oct 2023 12:48:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEx4fI3JjlY+DBcU1KOvNmJyPsBxriXW+9a769JJW6lGHpDtJLDfPabBD89JBD+hScKjcw4 X-Received: by 2002:a17:902:da89:b0:1ca:86a9:cad1 with SMTP id j9-20020a170902da8900b001ca86a9cad1mr3246904plx.36.1697572117092; Tue, 17 Oct 2023 12:48:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697572117; cv=none; d=google.com; s=arc-20160816; b=HnemRSw/ZiGlJnHQLOtTWQ4iezQdFDx/xAdBuO8tol7qHlO/QI4JAbCj7MOSnYSpf+ mRZxvE0VCvle0ZAEYe27dsgBXaPtxDiuSzYETaZkYdZ6W/ak98rE7htcCU1tBBRwCZ5L ZQ1Ub8eDTf4zHF7PvjzPOdxY+zF3ZueilyDIGUNPmy8SPOVotUHQSEAQr0HYr/LKwgnA 3RYk/EBAkXZIJH/m71IE0cPOFShKNDEdp8oF6tR751EBGoxRpLTJt7Hl5AeMqoPm+tw3 tD7fmtWFkXKoN2JJ3wZCwkdNoZKUDBf5baj9BLlhLUM6bxjP2d3S5K0ITW/CkVFF1QQa pZQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Zddf1WRCa4OtEIKzlOamP8SqQGhG8D3kV8YheVAGXa0=; fh=0BzXCjOkpNIQCZAkkTjMUADsPT+8f3GP8bKFh/qTO0M=; b=LLGnbiMuBdAVDWVNx9IxtkEkNXxoobvC8XNHhm8A0ckinLr4p9f6iU2F3ghaivvWfZ RXEiIlrmAg5wK+LOUpxO4kkLfG5KtL2oxJy7IPNXHAFcI0twpopY4jT+jAf3kYig4UvT 16WI5J9shE+rLxDOWD3KJp8C7lsnYZXU/gDj2iNKZbE/u+ZIHLNUN9jYEIB/AmmlIQEW G0v+9lSWYwyoFoHQpLbewTN/GQMYQf+4iGFL8wIROqB+izb4h1dYYgTsLFUqkrIrsXTI 5kVt2VxGiQi/YbHVDc5+UKJifUtY+HP+3ch2j0zzOsPXPq4apvw4jMy4fNn1uDO+5a0+ vvgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b="Y/UGxxri"; 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 Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id x18-20020a170902ea9200b001c9d4f08c3asi2408801plb.277.2023.10.17.12.48.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 12:48:37 -0700 (PDT) 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=@digikod.net header.s=20191114 header.b="Y/UGxxri"; 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 Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id CBE89802D436; Tue, 17 Oct 2023 12:48:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344378AbjJQTsT (ORCPT + 99 others); Tue, 17 Oct 2023 15:48:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234197AbjJQTsS (ORCPT ); Tue, 17 Oct 2023 15:48:18 -0400 Received: from smtp-8fac.mail.infomaniak.ch (smtp-8fac.mail.infomaniak.ch [IPv6:2001:1600:4:17::8fac]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7FC393 for ; Tue, 17 Oct 2023 12:48:15 -0700 (PDT) Received: from smtp-2-0001.mail.infomaniak.ch (unknown [10.5.36.108]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4S94K822LTzMpvVK; Tue, 17 Oct 2023 19:48:12 +0000 (UTC) Received: from unknown by smtp-2-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4S94K71h0rzMppKN; Tue, 17 Oct 2023 21:48:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=digikod.net; s=20191114; t=1697572092; bh=KYTSWCOsGz/+WO0VVte/iQLr7+7gseBuosrKHouMfog=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Y/UGxxriqrUKFRtOh5a3ThG8rx7skFYg/EMX3ZPdaKEzAPVifpm30WUcUuNMDFgdG 6WZViG32DRb3ewln32KRnjk2xWTHvrLf8KvX3NriaCYQzHA/FEHU96VpkxZK2Y6jDu KpB9HZEQDglnN3TisBCc4aw5438H5xFYKrexpgdQ= Date: Tue, 17 Oct 2023 21:48:10 +0200 From: =?utf-8?Q?Micka=C3=ABl_Sala=C3=BCn?= To: Arnd Bergmann Cc: Paul Moore , James Morris , "Serge E. Hallyn" , Konstantin Meskhidze , Arnd Bergmann , linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] landlock: fix typo in landlock_append_net_rule() stub function Message-ID: <20231017.ia3Aiv5Am5ee@digikod.net> References: <20231017143341.2875980-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231017143341.2875980-1-arnd@kernel.org> X-Infomaniak-Routing: alpha X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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, 17 Oct 2023 12:48:30 -0700 (PDT) Thanks Arnd, I fixed the issue and squashed it in -next. There will be a next patch series including other fixes. On Tue, Oct 17, 2023 at 04:33:35PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > There is an extraneous semicolon in the empty stub helper for > this function tha causes randconfig builds to break: > > In file included from security/landlock/setup.c:17: > security/landlock/net.h:28:1: error: expected identifier or '(' before '{' token > security/landlock/net.h:26:1: error: 'landlock_append_net_rule' declared 'static' but never defined [-Werror=unused-function] > > Fixes: 614d46b333ab9 ("landlock: Add network rules and TCP hooks support") > Signed-off-by: Arnd Bergmann > --- > security/landlock/net.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/security/landlock/net.h b/security/landlock/net.h > index 588a49fd69076..09960c237a13e 100644 > --- a/security/landlock/net.h > +++ b/security/landlock/net.h > @@ -24,7 +24,7 @@ static inline void landlock_add_net_hooks(void) > > static inline int > landlock_append_net_rule(struct landlock_ruleset *const ruleset, const u16 port, > - access_mask_t access_rights); > + access_mask_t access_rights) > { > return -EAFNOSUPPORT; > } > -- > 2.39.2 >