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 linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sat, 19 Aug 2017 13:52:12 +0530 From: Bhumika Goyal <bhumirks@...il.com> To: julia.lawall@...6.fr, bp@...en8.de, mchehab@...nel.org, daniel.vetter@...el.com, jani.nikula@...ux.intel.com, seanpaul@...omium.org, airlied@...ux.ie, g.liakhovetski@....de, tomas.winkler@...el.com, dwmw2@...radead.org, computersforpeace@...il.com, boris.brezillon@...e-electrons.com, marek.vasut@...il.com, richard@....at, cyrille.pitchen@...ev4u.fr, peda@...ntia.se, kishon@...com, bhelgaas@...gle.com, thierry.reding@...il.com, jonathanh@...dia.com, dvhart@...radead.org, andy@...radead.org, ohad@...ery.com, bjorn.andersson@...aro.org, freude@...ibm.com, schwidefsky@...ibm.com, heiko.carstens@...ibm.com, jth@...nel.org, jejb@...ux.vnet.ibm.com, martin.petersen@...cle.com, lduncan@...e.com, cleech@...hat.com, johan@...nel.org, elder@...nel.org, gregkh@...uxfoundation.org, heikki.krogerus@...ux.intel.com, linux-edac@...r.kernel.org, linux-kernel@...r.kernel.org, dri-devel@...ts.freedesktop.org, linux-media@...r.kernel.org, linux-mtd@...ts.infradead.org, linux-pci@...r.kernel.org, linux-tegra@...r.kernel.org, platform-driver-x86@...r.kernel.org, linux-remoteproc@...r.kernel.org, linux-s390@...r.kernel.org, fcoe-devel@...n-fcoe.org, linux-scsi@...r.kernel.org, open-iscsi@...glegroups.com, greybus-dev@...ts.linaro.org, devel@...verdev.osuosl.org, linux-usb@...r.kernel.org Cc: Bhumika Goyal <bhumirks@...il.com> Subject: [PATCH 01/15] EDAC: make device_type const Make these const as they are only stored in the type field of a device structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@...il.com> --- drivers/edac/edac_mc_sysfs.c | 8 ++++---- drivers/edac/i7core_edac.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c index dbc6446..e4fcfa8 100644 --- a/drivers/edac/edac_mc_sysfs.c +++ b/drivers/edac/edac_mc_sysfs.c @@ -304,7 +304,7 @@ static void csrow_attr_release(struct device *dev) kfree(csrow); } -static struct device_type csrow_attr_type = { +static const struct device_type csrow_attr_type = { .groups = csrow_attr_groups, .release = csrow_attr_release, }; @@ -644,7 +644,7 @@ static void dimm_attr_release(struct device *dev) kfree(dimm); } -static struct device_type dimm_attr_type = { +static const struct device_type dimm_attr_type = { .groups = dimm_attr_groups, .release = dimm_attr_release, }; @@ -920,7 +920,7 @@ static void mci_attr_release(struct device *dev) kfree(mci); } -static struct device_type mci_attr_type = { +static const struct device_type mci_attr_type = { .groups = mci_attr_groups, .release = mci_attr_release, }; @@ -1074,7 +1074,7 @@ static void mc_attr_release(struct device *dev) kfree(dev); } -static struct device_type mc_attr_type = { +static const struct device_type mc_attr_type = { .release = mc_attr_release, }; /* diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c index d36cc84..c16c3b9 100644 --- a/drivers/edac/i7core_edac.c +++ b/drivers/edac/i7core_edac.c @@ -1094,7 +1094,7 @@ static void addrmatch_release(struct device *device) kfree(device); } -static struct device_type addrmatch_type = { +static const struct device_type addrmatch_type = { .groups = addrmatch_groups, .release = addrmatch_release, }; @@ -1125,7 +1125,7 @@ static void all_channel_counts_release(struct device *device) kfree(device); } -static struct device_type all_channel_counts_type = { +static const struct device_type all_channel_counts_type = { .groups = all_channel_counts_groups, .release = all_channel_counts_release, }; -- 1.9.1
Powered by blists - more mailing lists