lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 24 Aug 2020 00:00:17 +0200
From:   Rikard Falkeborn <rikard.falkeborn@...il.com>
To:     Kishon Vijay Abraham I <kishon@...com>,
        Vinod Koul <vkoul@...nel.org>
Cc:     linux-kernel@...r.kernel.org,
        Rikard Falkeborn <rikard.falkeborn@...il.com>,
        Peter Chen <peter.chen@....com>,
        Shawn Guo <shawnguo@...nel.org>,
        Sascha Hauer <s.hauer@...gutronix.de>,
        Pengutronix Kernel Team <kernel@...gutronix.de>,
        Fabio Estevam <festevam@...il.com>,
        NXP Linux Team <linux-imx@....com>,
        Yu Chen <chenyu56@...wei.com>,
        Binghui Wang <wangbinghui@...ilicon.com>,
        Martin Blumenstingl <martin.blumenstingl@...glemail.com>,
        Alim Akhtar <alim.akhtar@...sung.com>,
        Seungwon Jeon <essuuj@...il.com>,
        Andy Gross <agross@...nel.org>,
        Bjorn Andersson <bjorn.andersson@...aro.org>,
        linux-arm-kernel@...ts.infradead.org, linux-usb@...r.kernel.org,
        linux-arm-msm@...r.kernel.org
Subject: [PATCH 0/8] drivers: phy: Constify static phy_ops structs

This series constifies all static phy_ops structs in drivers/phy.
Typically the only usage is to pass the address of it to devm_phy_create()
which takes a const pointer. The lone exception is in
drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c where the address of the
structs is assigned to the data-field in of_device_id, which is a const
void pointer.

Making the structs const allows the compiler to put them in read-only
memory.

The patches are all independent of each other, and have been
compile-tested only.

Rikard Falkeborn (8):
  phy: cadence: salvo: Constify cdns_salvo_phy_ops
  phy: fsl-imx8mq-usb: Constify imx8mq_usb_phy_ops
  phy: hisilicon; Constify hi3660_phy_ops
  phy: lantiq: rcu-usb2: Constify ltq_rcu_usb2_phy_ops
  phy: lantiq: vrx200-pcie: Constify ltq_vrx200_pcie_phy_ops
  phy: ralink-usb: Constify ralink_usb_phy_ops
  phy: samsung-ufs: Constify samsung_ufs_phy_ops
  phy: qcom-ipq4019-usb: Constify static phy_ops structs

 drivers/phy/cadence/phy-cadence-salvo.c     | 2 +-
 drivers/phy/freescale/phy-fsl-imx8mq-usb.c  | 2 +-
 drivers/phy/hisilicon/phy-hi3660-usb3.c     | 2 +-
 drivers/phy/lantiq/phy-lantiq-rcu-usb2.c    | 2 +-
 drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c | 2 +-
 drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c | 4 ++--
 drivers/phy/ralink/phy-ralink-usb.c         | 2 +-
 drivers/phy/samsung/phy-samsung-ufs.c       | 2 +-
 8 files changed, 9 insertions(+), 9 deletions(-)

-- 
2.28.0

Powered by blists - more mailing lists