Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1234624pxb; Wed, 10 Feb 2021 03:37:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJyM+TFyRdsu8Q9OyNCHHrjJnX6VI2bsp/vWp06cu5XBR2f+zFjUfAPrmLtPN6kPk2AtGkYq X-Received: by 2002:a50:eb49:: with SMTP id z9mr2860187edp.234.1612957079751; Wed, 10 Feb 2021 03:37:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612957079; cv=none; d=google.com; s=arc-20160816; b=X3qzGy3rArFTXRmi1GK27Plcfpdc3dL+j7QwOi0nKPcJwt9rND6u64YoOmhzFcMh1c v8YlbrbplxgVlfBgcAeN6uWnCPGJQ4wnKAQ8sJ+NeXe4agZMkE230LMdDMgBcCy6uAIA qXywF2vBV2OUNfmJA208EPuG04NnJMueyWw7RMv9gnYyQjC7hpPITC44irkfpMoOVYMu gk7Q2CAnNx10+4G96/J9XnJ/JL1N5cHL9uuIVLmD/OoFHmQf1ueLDq1Dai0eJf4Iuove LLAyP2fFrtJqnai4/5uhZWVs16rTn05hrsj9gYYtSukYnW8zifmK74RDCCwKxTIUQOZS SeXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:date:message-id:user-agent:cc:to :references:in-reply-to:from:content-transfer-encoding:mime-version; bh=lSzjEaMpLBLF26Ag1IBp5JYMa0kr6GoY/p3yKsfH880=; b=0miG2CPwsZ5puwa3v7t0aifonuMwAvnSyCUuVWEolsRKS6XFZPVXuWpKdZjVQObDG+ aA0a8UOpfN5Uqt4BUR9nRx5syWQtnkDHgATLh9NMYpVOvzw9yOPFVs3w3lninjf+WS15 8X4YiWpECrjwRapNbsuoswIFDN9+wCbIUvXMrJR56tMs5b6CwZUmjhxjFT0Jj8RvEjvF V7f8QPX4vmRCpQzxyiedsPrgrDB7D2pimiI5Ob3MTBRTVcrRzAbagscLiy57N6d+G/QQ Cs4I35Svz/qG+uM6ig7WENzrpifKvKkjW9bk/q8ovuAHO+87M91dI6LOwqNalDAUwrns tjZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q23si1050543ejx.29.2021.02.10.03.37.34; Wed, 10 Feb 2021 03:37:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229706AbhBJLhZ (ORCPT + 99 others); Wed, 10 Feb 2021 06:37:25 -0500 Received: from paleale.coelho.fi ([176.9.41.70]:44928 "EHLO farmhouse.coelho.fi" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230409AbhBJLfv (ORCPT ); Wed, 10 Feb 2021 06:35:51 -0500 Received: from 91-156-6-193.elisa-laajakaista.fi ([91.156.6.193] helo=[127.0.1.1]) by farmhouse.coelho.fi with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1l9nls-0049Tk-1p; Wed, 10 Feb 2021 13:35:00 +0200 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Luca Coelho In-Reply-To: <20210112132449.22243-3-tiwai@suse.de> References: <20210112132449.22243-3-tiwai@suse.de> To: Takashi Iwai Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Luca Coelho , Kalle Valo User-Agent: pwcli/0.1.0-git (https://github.com/kvalo/pwcli/) Python/3.9.1+ Message-Id: Date: Wed, 10 Feb 2021 13:35:00 +0200 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on farmhouse.coelho.fi X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, TVD_RCVD_IP autolearn=ham autolearn_force=no version=3.4.4 Subject: Re: [PATCH 2/2] iwlwifi: dbg: Mark ucode tlv data as const Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Takashi Iwai wrote: > The ucode TLV data may be read-only and should be treated as const > pointers, but currently a few code forcibly cast to the writable > pointer unnecessarily. This gave developers a wrong impression as if > it can be modified, resulting in crashing regressions already a couple > of times. > > This patch adds the const prefix to those cast pointers, so that such > attempt can be caught more easily in future. > > Signed-off-by: Takashi Iwai > Acked-by: Luca Coelho Patch applied to iwlwifi-next.git, thanks. 71b6254a6c98 iwlwifi: dbg: Mark ucode tlv data as const