Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2684502rda; Wed, 25 Oct 2023 09:23:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE7JVJjKuzpZvDWXV6r88Chcevk+CzlkD/98rldTlqtJN9PaFX5kCyinYIUW/OSUuMu9Fdr X-Received: by 2002:a05:6830:2693:b0:6b9:14bf:7097 with SMTP id l19-20020a056830269300b006b914bf7097mr18405011otu.9.1698251028107; Wed, 25 Oct 2023 09:23:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698251028; cv=none; d=google.com; s=arc-20160816; b=VccQ9qJZi7ygxguQenVyovR0Lvt8/5ILZRvlU5LwHmO40P+jClgk8Q5lTD+obQRBDu sBg6V0O6Sarp08RXNx6GkiNfODZJbYZNKrfm8Sd3C+Dn2fU1UWS0DeX9s04vi7Y9U+wg FIKfTIbCMuS49b9W4Ey/LVXi6HRjzoY5xBOGG37NJSJe3Lc06UK2N48X5qARtWGUCJjz LLZz9e66pQy3ceLkbgQrDAnCGXRP1SN2A8WdAVi/EUn4FNHXXzpH0D7eX5u50PrHMdoS dggWMZ0qMr4H+lT7yKoOAHoietWrGhdkbim5R0YRxmGU5yn9CU5I/8p7222pr7/iyo9A XfqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=KSvipvPwB0LwmbdUXHWvqGMVCXXCLb37wMlJPclW53k=; fh=iuSaoEX5+T4fbD+TlNIDAxJsEcr0Z/OgfUSkMXJ/ryQ=; b=ag7E9GoufXgfkVJIZ4y0I+gXs1PUevGntxpfTc0gNVqtS/CNqYeoHsay8bpw3XDFCg mVTLbycLpvTdJAmMDReBKrfeqZQvly7F4IygjtoI2StbNQWbLxplvjye9YJtfOFQ4BDL CNWPVnqUyGb8hWqUnpB6nRomYsD/lU4ras6u9VIXtnQ2dVMyp/9PQPWCYblZFoZFljbp V+okjcN0ZVW0KANUu5jSL2HxXFGZrDu+p7RkCCg/L9+J1HTIT46dSD1D2XNmKd/8DJuX osNIwUQlVlyY847fjVt2MoeL7yTZs6DqpxcFIkz5olrwRlbSbs/73NW06F2OUXGtaoSK tp7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b="teTI4x/R"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id t69-20020a0dea48000000b00589f7bed555si11531654ywe.236.2023.10.25.09.23.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 09:23:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b="teTI4x/R"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 47CCD8131C3B; Wed, 25 Oct 2023 09:23:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232363AbjJYQXm (ORCPT + 52 others); Wed, 25 Oct 2023 12:23:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229583AbjJYQXl (ORCPT ); Wed, 25 Oct 2023 12:23:41 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:242:246e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACD1E92; Wed, 25 Oct 2023 09:23:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=KSvipvPwB0LwmbdUXHWvqGMVCXXCLb37wMlJPclW53k=; t=1698251019; x=1699460619; b=teTI4x/RdRNj1XiUEd25aW1RIcUoHx418GuysskiItD3RZ5 TsRVIjgYFv3WYomVJegyhPHhRVtPrBYLTr8kgl8jQIgDgJr9bbvYsKyb8q5ZYeEHdigM7FTpXarRY QIZDp4GdJ4giL1tLll+tgQgXN01f7huDPekf626E+d1/J6xiS5uS18Ty/t7L5n9UGkPQse0LikIsZ C9Sms5kWzaPlxD53da6RArx0+A62BtSjQidIjPafeH2suL99j7t84qtHGFIIkECScBbLDTDUK876i 5UsUi9p0uWl4QJX/ZqQoB7h1Yxj3i1tLA6p59515gxOx5h8szSoHreVN3tXVleQg==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97-RC1) (envelope-from ) id 1qvgfL-00000002ccP-3vTk; Wed, 25 Oct 2023 18:23:32 +0200 Message-ID: Subject: Re: [PATCH net-next] netlink: make range pointers in policies const From: Johannes Berg To: Jakub Kicinski , davem@davemloft.net Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, j.vosburgh@gmail.com, andy@greyhouse.net, dsahern@kernel.org, jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, vinicius.gomes@intel.com, razor@blackwall.org, idosch@nvidia.com, linux-wireless@vger.kernel.org Date: Wed, 25 Oct 2023 18:23:30 +0200 In-Reply-To: <20231025162204.132528-1-kuba@kernel.org> References: <20231025162204.132528-1-kuba@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-malware-bazaar: not-scanned 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 pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 25 Oct 2023 09:23:42 -0700 (PDT) On Wed, 2023-10-25 at 09:22 -0700, Jakub Kicinski wrote: > struct nla_policy is usually constant itself, but unless > we make the ranges inside constant we won't be able to > make range structs const. The ranges are not modified > by the core. Makes sense, wonder why I didn't do that from the beginning ... Reviewed-by: Johannes Berg johannes