Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2470157pxk; Mon, 14 Sep 2020 14:25:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6PRyIlJWOYCctLUb5sUjuDajULTF9R7YXOhejPSLxkJ7UGIjYfxlaoE0Y3u1ooXm3rGBq X-Received: by 2002:aa7:d747:: with SMTP id a7mr18638647eds.304.1600118758550; Mon, 14 Sep 2020 14:25:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600118758; cv=none; d=google.com; s=arc-20160816; b=mQg076kbDqM54Q7oxGuYrfceY4h+AoDx5X6Yvz9sbHSyBEeNtG+vP4DqB0z+jZ7siE Z7vf/CAxlAzo3ek/3kaUP+5LkmywMCuec8Ee/32PEjig3tgBfYHe9XyoJDqimKfGZOqQ U2ON4Ly9YOa+LyIhHKNIbtjskkYqvGQUEuA/aHuOctoAmkmnmlcDyPXkvQMcktdFchfc gwpjX7DxvLzHrjzCoCLARRyFyFuH9CsHAROa/+vyeqtp6zHSrsgkkkxLuncNQUYAxTE/ 5didZUF29V5W4YJ7qFw1ephbqPJ/3Bs+7AJNkdn7kBre6CMuixWCH4npxlfhYN0gJHWl X9Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=B3Raf4UC9rPf9/2GIe2y0keKdeGhWb4NBqALKLPqApw=; b=Dw1oCgcOHrjjdj7BHy+mRn1JAscuupeI5EteUiXieza8jFybP2gEtGKfi36+bKkbP1 /AfFyS68wI6jb+zB6CLGl5O0lilgWhcC4DBJPdha1vTyIn/ECfvU0s9ku1Gl9PVPsIf7 XjPEixDk+ruHtIAycUPzxlHRpDlPXl3Xp4RyIwYjLY9eSnHjl9dxY1GwF2jenZp4pL0S Jf9jEaxqxfIFOwpMOwPPXFvmTWzPaBHe8gLHno32LDLckrG5J3GH4e6GjKN3Pu5YmoCZ dESPozagNfh84+8+JMHfazCHRlF66gNiM8/KGTSbpitJqqjdXIUV5kf2C/HOTAY/SCdE y2ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XlZnKz9G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t17si8450423ejs.91.2020.09.14.14.25.36; Mon, 14 Sep 2020 14:25:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@chromium.org header.s=google header.b=XlZnKz9G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726043AbgINVW7 (ORCPT + 99 others); Mon, 14 Sep 2020 17:22:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725961AbgINVW6 (ORCPT ); Mon, 14 Sep 2020 17:22:58 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1303C06178A for ; Mon, 14 Sep 2020 14:22:55 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id q8so828631lfb.6 for ; Mon, 14 Sep 2020 14:22:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=B3Raf4UC9rPf9/2GIe2y0keKdeGhWb4NBqALKLPqApw=; b=XlZnKz9G6ag4oJchL/qYdMihrdnCJSGrMK2k4uKNZUz8h2Ur50bvs3KAXwwzSCfsWu 5hK1CEXx20iItEGnGjkEIW/UEbebefnBx9aDPjsYIAhRTILgxN6xlQ3L8K039YxjzGrp m72maCaoZZwAoKcyd0QXUvLrcrs5GjaiEiweQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=B3Raf4UC9rPf9/2GIe2y0keKdeGhWb4NBqALKLPqApw=; b=LrYA+6R7n1q//eihNjOaQgnvCvSBfBfxdkPe51Pt1YwSjFIki7iiN75+9qnBaxOIkT O+xKQ2/85jlyYjPZ71FhD3xhFv7hNp0SgznK4v/MRzn29jh5HrrbJja9rBghmtxTOrQi iRK4v+pmBnlO6QALrXQjVBy3DXZI+Lvmf5EhGbyAIatLl8ycE+WZJV83odi+pmk1aKmf ZvPPPiOs5F51xreB0Runl3pcMPKYzLlTuTjvM/Li0LYowXgjktWkEB4N0/uanT78njzd bGyit6UZIP3+4OM4lW8hKcMf9VQadeuNxUdbhqGrZf2V2+wAoiX1TEs5LVeM4Z9ccDva g0bw== X-Gm-Message-State: AOAM531nCE07eq6PxlZ/hAJRW0QAFMvB8J0ptPRq0Faj9oCK+VDTDA5j /9MAvAgs0VKmzrOAZv2VmDMgLjlAclBliA== X-Received: by 2002:a19:6418:: with SMTP id y24mr4631670lfb.388.1600118573028; Mon, 14 Sep 2020 14:22:53 -0700 (PDT) Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com. [209.85.208.181]) by smtp.gmail.com with ESMTPSA id e8sm4248861lja.93.2020.09.14.14.22.52 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Sep 2020 14:22:52 -0700 (PDT) Received: by mail-lj1-f181.google.com with SMTP id y4so921050ljk.8 for ; Mon, 14 Sep 2020 14:22:52 -0700 (PDT) X-Received: by 2002:a2e:9497:: with SMTP id c23mr5361525ljh.124.1600118571616; Mon, 14 Sep 2020 14:22:51 -0700 (PDT) MIME-Version: 1.0 References: <20200914182112.513981-1-swboyd@chromium.org> In-Reply-To: <20200914182112.513981-1-swboyd@chromium.org> From: Evan Green Date: Mon, 14 Sep 2020 14:22:15 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] interconnect: qcom: osm-l3: Mark more structures const To: Stephen Boyd Cc: Georgi Djakov , LKML , linux-arm-msm , linux-pm@vger.kernel.org, Bjorn Andersson , Sibi Sankar Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 14, 2020 at 11:21 AM Stephen Boyd wrote: > > These structures aren't modified at runtime. Mark them const so they get > moved to read-only memory. We have to cast away const in one place when > we store into the data member of struct icc_node. This is paired with a > re-const of the data member when it is extracted in qcom_icc_set(). > > Cc: Sibi Sankar > Cc: Evan Green > Signed-off-by: Stephen Boyd Reviewed-by: Evan Green