Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp3176831pxb; Tue, 12 Jan 2021 08:08:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGzzt4Bw376Ynk//8Dwlc2yVokZk2RCpf2hWwujoAjE0PQUkyrzHjdJnlxZzVsrjzDFJ1y X-Received: by 2002:a05:6402:1a52:: with SMTP id bf18mr3905357edb.143.1610467724477; Tue, 12 Jan 2021 08:08:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610467724; cv=none; d=google.com; s=arc-20160816; b=aahZDZaiQv5yqYg3fLCGlmgPhJjNwejulF5mxzYIzukuUSzMtgHwXQ9rQ855YEjX8d riVmwVnPlDf04XptEIggsXkTJqh0VOdVn6QOqO7XOZwoX1I1q48P6K3sahNBMRYunZQW kIC84MOce8LFp215brzYF+fMCXGDjBprMPUephG0uECcm8xs/efXGBe9utCyMGRtU5n6 5XKY34K2ldhKPoMBoKUfr3d0SUmLDLVyBxMmxh56dBA0kL9FgenTiI5tQCwOLU7jya83 ZYWtTG19Lu9kdi4eiW8g7lHia1hxHenb5bHenedqbbDfMe6G6Tuk7v5IRXwtMbpKFuGP VdMA== 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:references:in-reply-to :subject:cc:to:from:message-id:date; bh=716V7vtGSWUzYaQMo3pWmhWIUD5dfiGb9+zstlMxmA8=; b=zCiVZD4S86Ko1A734ONMNBRkHQU7HL526nbK3Z0UVY8KEhfYadncROj+RfKD69WYsk XLVFyZ94FRSudR2rqDt9BjTPTfEyQkoGeqxXpjcp1dEqxBx0D5vHZr4x7amHYG06H494 JFz+T0o9IEd23haFm/sIzdwl/u0m2olY8iRV+yDMFtynBjgxCdbWdMjbc7kT4HS5Q39K WR1/719TRGbsmRm4hqNPDJABsg7nbLvgy/uIFcFID2z67tJ/5MTbvSQrFF6Tdp6At3LG 9YLFy8JOLCQn+JWjVil5s6NzSf1hO9Hgdq5DOZuiSmbAnea5rdHVHeUbLpTnBdMTjUVP /V7Q== 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 n11si1370223ejc.684.2021.01.12.08.08.21; Tue, 12 Jan 2021 08:08:44 -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 S2392517AbhALQF5 (ORCPT + 99 others); Tue, 12 Jan 2021 11:05:57 -0500 Received: from mx2.suse.de ([195.135.220.15]:48880 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392162AbhALQF5 (ORCPT ); Tue, 12 Jan 2021 11:05:57 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id B7728AF6D; Tue, 12 Jan 2021 16:05:15 +0000 (UTC) Date: Tue, 12 Jan 2021 17:05:15 +0100 Message-ID: From: Takashi Iwai To: Kalle Valo Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Luca Coelho Subject: Re: [PATCH 2/2] iwlwifi: dbg: Mark ucode tlv data as const In-Reply-To: <87pn2arw69.fsf@codeaurora.org> References: <20210112132449.22243-1-tiwai@suse.de> <20210112132449.22243-3-tiwai@suse.de> <87pn2arw69.fsf@codeaurora.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, 12 Jan 2021 16:50:54 +0100, Kalle Valo wrote: > > Takashi Iwai writes: > > > 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 > > So this need to go to -next, right? Yes, this isn't urgently needed for 5.11. > Does this depend on patch 1 or can > this be applied independently? It depends on the first patch, otherwise you'll get the warning in the code changing the const data (it must warn -- that's the purpose of this change :) So, if applying to a separate branch is difficult, applying together for 5.11 would be an option. thanks, Takashi