Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp136868pxb; Tue, 12 Jan 2021 22:55:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJzLDGiBG6JFuP7UzJREOJsznnO836vT+1x/iiTgI7I6Kz9mbCXErO1AeaoM4U0MUSn8QF3l X-Received: by 2002:a17:906:4e52:: with SMTP id g18mr523685ejw.385.1610520911979; Tue, 12 Jan 2021 22:55:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610520911; cv=none; d=google.com; s=arc-20160816; b=Qe6j0RijZWXT53VZFiWZz1e2wf0Y1TWVE7wT8TE3dZniDsp32AI0KNGDOeLYvWO/bu XAdxrKuxjlrwbKjbM6CHeYDXORvukHPmu9Womqpy2FikL8sHBwq8YRitqufl7zHtEUkn 0krfe8jA2enCCwNpPJjbtvUOBJA4iv1tadfMiZzF7fb/ufYrOcxZD1fuvLdo7nrzVcNx 8x4DEJznG2rSd0MdVkXVynTaeN1iQvFGFabqUVGk4sCe/fVmlu3qCfYUDmFxNVr/ekdV vD/Yu5JGZi4HIZtlt1jimVTIrVTL+2L3/b6AQcvU/RDgCfeLkZuM54VNp/RYCyODYC9X xB+A== 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:message-id:in-reply-to :date:references:subject:cc:to:from:dmarc-filter:sender :dkim-signature; bh=LEaPdDLevh2p3sskm5HfcmgXr0Bdw4YtFZo1OimLfYE=; b=lzC6JLlBmHVXI1dgclO/cJNsQoDj+KGZoQZ53d0VdCveA+GyLi9ehy0X3D2Uhxj05d vaIbkoAxRYJOocF2NxxqO7zqev+gsM1UpMncJN8orjvyFSL/ffvMXy1f6500Y8hW7wKi dNWPqhtd88sTI9AVO3YfDRUYTdl3OyBaSuViSBsbdJkU0NBlbNl4F1BqmVMJvKPqbDxA 4fOi0AY8woBIRY0zfnxduAicA7AnD5PVDQsmMoAk+Zx4iEa00T3LSxAp1OFXsEA4RLsg /SOVtONhxR8a+p/+ROxkMAOwZwAabC4Pluo6qZm36kYblY9LYbJ4DbB/8CaLLwZauQH7 +Ipw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=px64J8IG; 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 c17si539756eds.556.2021.01.12.22.54.47; Tue, 12 Jan 2021 22:55:11 -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; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=px64J8IG; 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 S1726456AbhAMGvL (ORCPT + 99 others); Wed, 13 Jan 2021 01:51:11 -0500 Received: from so254-31.mailgun.net ([198.61.254.31]:54407 "EHLO so254-31.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726235AbhAMGvL (ORCPT ); Wed, 13 Jan 2021 01:51:11 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1610520648; h=Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=LEaPdDLevh2p3sskm5HfcmgXr0Bdw4YtFZo1OimLfYE=; b=px64J8IGwuz1IGtXJk7QO2uyGYzHUqUIV531dr003+knAE8Dio3Tx6jZbp3CL2o0iUI+WneX urMMXyvsWK/DWcCvZ1yk7Ksr262tdlM6kARB9rRXmQGYLGrnAfs9JCdqS9x0bsNh6MCOctGD vcVv+NTTdc1QkQ+Jx4Meu+iwVls= X-Mailgun-Sending-Ip: 198.61.254.31 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n08.prod.us-west-2.postgun.com with SMTP id 5ffe98212a47972bcc779b73 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 13 Jan 2021 06:50:09 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id D36FCC43461; Wed, 13 Jan 2021 06:50:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from x230.qca.qualcomm.com (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id C538DC433C6; Wed, 13 Jan 2021 06:50:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org C538DC433C6 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: "Coelho\, Luciano" Cc: "tiwai\@suse.de" , "linux-wireless\@vger.kernel.org" , "netdev\@vger.kernel.org" Subject: Re: [PATCH 2/2] iwlwifi: dbg: Mark ucode tlv data as const References: <20210112132449.22243-1-tiwai@suse.de> <20210112132449.22243-3-tiwai@suse.de> <87pn2arw69.fsf@codeaurora.org> <636fdc5b53b6f4855e25981e0454064524e6905d.camel@intel.com> Date: Wed, 13 Jan 2021 08:50:04 +0200 In-Reply-To: <636fdc5b53b6f4855e25981e0454064524e6905d.camel@intel.com> (Luciano Coelho's message of "Tue, 12 Jan 2021 17:13:59 +0000") Message-ID: <87lfcxs543.fsf@codeaurora.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org "Coelho, Luciano" writes: > On Tue, 2021-01-12 at 17:05 +0100, Takashi Iwai wrote: >> 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. > > Acked-by: Luca Coelho > > >> > 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. > > It doesn't matter to me how you apply it. Applying together is > obviously going to be easier, but applying separately wouldn't be that > hard either. You'd just have to track when 1/2 went into net-next > before applying this one. Kalle's call. Ok, I'll apply this to wireless-drivers-next after wireless-drivers is merged to -next. It might take a while. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches