[PATCH 3/3] pinctrl: actions: pinctrl-s900: Constify s900_padinfo[]

2020-08-30 Thread Rikard Falkeborn
The only usage of s900_padinfo[] is to assign it to the padinfo field in the owl_pinctrl_soc_data struct, which is a const pointer. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/pinctrl/actions/pinctrl-s900.c | 2 +- 1 file

[PATCH 1/3] pinctrl: actions: pinctrl-owl: Constify owl_pinctrl_ops and owl_pinmux_ops

2020-08-30 Thread Rikard Falkeborn
The only usage of owl_pinctrl_ops and owl_pinmux_ops is to assign their addresses to the pctlops and the pmxops fields in the pinctrl_desc struct, which are const pointers. Make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/pinctrl

[PATCH 2/3] pinctrl: actions: pinctrl-s700: Constify s700_padinfo[]

2020-08-30 Thread Rikard Falkeborn
The only usage of s700_padinfo[] is to assign it to the padinfo field in the owl_pinctrl_soc_data struct, which is a const pointer. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/pinctrl/actions/pinctrl-s700.c | 2 +- 1 file

[PATCH] const_structs.checkpatch: add pinctrl_ops and pinmux_ops

2020-08-30 Thread Rikard Falkeborn
All usages of include/linux of these are const pointers, and all instances in the kernel except one, that are not const can be made const (patches have been posted for those separately). Signed-off-by: Rikard Falkeborn --- scripts/const_structs.checkpatch | 2 ++ 1 file changed, 2 insertions

[PATCH 1/3] drm/amd/display: Constify dcn20_res_pool_funcs

2020-08-04 Thread Rikard Falkeborn
The only usage of dcn20_res_pool_funcs is to assign its address to a const pointer. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 2/3] drm/amd/display: Constify dcn21_res_pool_funcs

2020-08-04 Thread Rikard Falkeborn
The only usage of dcn21_res_pool_funcs is to assign its address to a const pointer. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 3/3] drm/amd/display: Constify dcn30_res_pool_funcs

2020-08-04 Thread Rikard Falkeborn
The only usage of dcn30_res_pool_funcs is to assign its address to a const pointer. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 0/3] drm/amd/display: Constify static resource_funcs

2020-08-04 Thread Rikard Falkeborn
Constify a couple of instances of resource_funcs that are never modified to allow the compiler to put it in read-only memory. The other drivers in drivers/gpu/drm/amd/display/dc already have these as const. Rikard Falkeborn (3): drm/amd/display: Constify dcn20_res_pool_funcs drm/amd/display

[PATCH] drm/sun4i: Constify static structs

2020-08-04 Thread Rikard Falkeborn
A number of static variables are not modified and can be made const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn --- Perhaps it should be split up? If so, some guidance on how would be appreciated. drivers/gpu/drm/sun4i/sun4i_backend.c | 2

[PATCH] kbuild: Move -Wtype-limits to W=2

2020-07-08 Thread Rikard Falkeborn
-Wtype-limits is included in -Wextra which is added at W=1. It warns (among other things) that 'comparison of an unsigned variable `< 0` is always false. This causes noisy warnings, especially when used in macros, hence it is more suitable for W=2. Signed-off-by: Rikard Falkeborn ---

[PATCH] x86/resctrl: Constify kernfs_ops

2020-11-10 Thread Rikard Falkeborn
-only memory. Signed-off-by: Rikard Falkeborn --- arch/x86/kernel/cpu/resctrl/internal.h | 2 +- arch/x86/kernel/cpu/resctrl/rdtgroup.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/cpu/resctrl/internal.h b/arch/x86/kernel/cpu/resctrl/internal.h index

[PATCH] tty: serial: msm_serial: Constify msm_uart_pops

2020-11-04 Thread Rikard Falkeborn
The only usage of msm_uart_pops is to assign its address to the ops field in the uart_port struct, which is a pointer to const. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/tty/serial/msm_serial.c | 2 +- 1 file changed, 1

[PATCH] phy: tegra: Constify static device_type structs

2020-11-09 Thread Rikard Falkeborn
The only usage of tegra_xusb_pad_type and tegra_xusb_port_type is to assign their address to the type field in the device struct, which is a const pointer. Make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/phy/tegra/xusb.c | 4

[PATCH] pinctrl: renesas: Constify sh73a0_vccq_mc0_ops

2020-11-09 Thread Rikard Falkeborn
The only usage of sh73a0_vccq_mc0_ops is to assign its address to the ops field in the regulator_desc struct, which is a const pointer. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/pinctrl/renesas/pfc-sh73a0.c | 2 +- 1 file

[PATCH 1/2] remoteproc: ingenic: Constify ingenic_rproc_ops

2020-11-07 Thread Rikard Falkeborn
The only usage of ingenic_rproc_ops is to pass its address to devm_rproc_alloc(), which accepts a const pointer. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/remoteproc/ingenic_rproc.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 2/2] remoteproc: stm32: Constify st_rproc_ops

2020-11-07 Thread Rikard Falkeborn
The only usage of st_rproc_ops is to pass its address to rproc_alloc() which accepts a const pointer. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/remoteproc/stm32_rproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 0/2] remoteproc: Constify static struct rproc_ops

2020-11-07 Thread Rikard Falkeborn
Constify two static struct rproc_ops which are never modified. These two changes makes all static instances of rproc_ops in the kernel const. Rikard Falkeborn (2): remoteproc: ingenic: Constify ingenic_rproc_ops remoteproc: stm32: Constify st_rproc_ops drivers/remoteproc/ingenic_rproc.c | 2

[PATCH] drm/msm: dsi: Constify dsi_host_ops

2020-11-08 Thread Rikard Falkeborn
The only usage of dsi_host_ops is to assign its address to the ops field in the mipi_dsi_host struct, which is a const pointer. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/gpu/drm/msm/dsi/dsi_host.c | 2 +- 1 file changed, 1

[PATCH 1/2] HID: cougar: Constify cougar_id_table

2020-07-27 Thread Rikard Falkeborn
cougar_id_table[] is not changed and can be made const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/hid/hid-cougar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/hid-cougar.c b/drivers/hid/hid-cougar.c index

[PATCH 0/2] HID: Constify static struct hid_device_id

2020-07-27 Thread Rikard Falkeborn
Constify hid_device_id in two drivers (these were the only drivers that didn't already have it as const). Rikard Falkeborn (2): HID: cougar: Constify cougar_id_table HID: macally: Constify macally_id_table drivers/hid/hid-cougar.c | 2 +- drivers/hid/hid-macally.c | 2 +- 2 files ch

[PATCH 2/2] HID: macally: Constify macally_id_table

2020-07-27 Thread Rikard Falkeborn
macally_id_table is not modified and can be made const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/hid/hid-macally.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/hid-macally.c b/drivers/hid/hid-macally.c

[PATCH] regulator: cros-ec: Constify cros_ec_regulator_voltage_ops

2020-07-11 Thread Rikard Falkeborn
It is never modified, so make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/regulator/cros-ec-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/cros-ec-regulator.c b/drivers/regulator

[PATCH] media: dvb-frontends: tda18271c2dd: Constify static structs

2020-09-21 Thread Rikard Falkeborn
/tda18271c2dd.ko Signed-off-by: Rikard Falkeborn --- drivers/media/dvb-frontends/tda18271c2dd.c| 8 +++ .../media/dvb-frontends/tda18271c2dd_maps.h | 22 +-- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/media/dvb-frontends/tda18271c2dd.c b/drivers

[PATCH net-next] net: hns3: Constify static structs

2020-09-21 Thread Rikard Falkeborn
Signed-off-by: Rikard Falkeborn --- .../hisilicon/hns3/hns3pf/hclge_debugfs.c | 10 +++ .../hisilicon/hns3/hns3pf/hclge_debugfs.h | 26 +-- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c b/drivers

[PATCH 3/3] virtio-mem: Constify mem_id_table

2020-09-11 Thread Rikard Falkeborn
mem_id_table is not modified, so make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/virtio/virtio_mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virtio/virtio_mem.c b/drivers/virtio/virtio_mem.c index

[PATCH 0/3] drivers/virtio: Constify static struct virtio_device_id

2020-09-11 Thread Rikard Falkeborn
Constify a couple of instances of static struct virtio_device_id which are never modified. This allows the compiler to put them in read-only memory. Rikard Falkeborn (3): virtio-balloon: Constify id_table virtio_input: Constify id_table virtio-mem: Constify mem_id_table drivers/virtio

[PATCH 2/3] virtio_input: Constify id_table

2020-09-11 Thread Rikard Falkeborn
id_table is not modified, so make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/virtio/virtio_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virtio/virtio_input.c b/drivers/virtio/virtio_input.c

[PATCH 1/3] virtio-balloon: Constify id_table

2020-09-11 Thread Rikard Falkeborn
id_table is not modified, so make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/virtio/virtio_balloon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio

[PATCH net-next] octeontx2-af: Constify npc_kpu_profile_{action,cam}

2020-09-11 Thread Rikard Falkeborn
/ethernet/marvell/octeontx2/af/octeontx2_af.ko After: textdata bss dec hex filename 321003 406641248 362915 589a3 drivers/net/ethernet/marvell/octeontx2/af/octeontx2_af.ko Signed-off-by: Rikard Falkeborn --- .../net/ethernet/marvell/octeontx2/af/npc.h | 4

[PATCH] media: venus: helpers: Fix ALIGN() of non power of two

2020-09-12 Thread Rikard Falkeborn
one ALIGN() is sufficient. Fixes: ab1eda449c6e ("media: venus: vdec: handle 10bit bitstreams") Signed-off-by: Rikard Falkeborn --- I'm fairly certain this patch does the right thing, but I have only compile-tested it (I don't have the hardware to test on). The only reason I

[PATCH 1/3] phy: cadence: Sierra: Constify static structs

2020-09-12 Thread Rikard Falkeborn
The static cdns_reg_pairs and regmap_config structs are not modified and can be made const. This allows the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/phy/cadence/phy-cadence-sierra.c | 24 1 file changed, 12 insertions(+), 12

[PATCH 3/3] phy: cadence: torrent: Constify regmap_config structs

2020-09-12 Thread Rikard Falkeborn
The regmap_config structs are never modified and can be made const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/phy/cadence/phy-cadence-torrent.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/phy

[PATCH 0/3] drivers/phy/cadence: Constify static structs

2020-09-12 Thread Rikard Falkeborn
Constify a number of static structs that are never changed to allow the compiler to put them in read-only memory. Rikard Falkeborn (3): phy: cadence: Sierra: Constify static structs phy: cadence: salvo: Constify cdns_nxp_sequence_pair phy: cadence: torrent: Constify regmap_config structs

[PATCH 2/3] phy: cadence: salvo: Constify cdns_nxp_sequence_pair

2020-09-12 Thread Rikard Falkeborn
cdns_nxp_sequence_pair[] are never modified and can be made const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/phy/cadence/phy-cadence-salvo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/phy/cadence/phy

[PATCH 3/5] regulator: stw481x-vmmc: Constify static structs

2020-09-13 Thread Rikard Falkeborn
them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/regulator/stw481x-vmmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/stw481x-vmmc.c b/drivers/regulator/stw481x-vmmc.c index 6dc2316daad3

[PATCH 1/5] regulator: dummy: Constify dummy_initdata and dummy_ops

2020-09-13 Thread Rikard Falkeborn
read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/regulator/dummy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/dummy.c b/drivers/regulator/dummy.c index 74de6983c61a..d8059f596391 100644 --- a/drivers/regulator/dummy.c +++ b/drivers

[PATCH 4/5] regulator: pca9450: Constify static regulator_ops

2020-09-13 Thread Rikard Falkeborn
The only usages of these is to assign their address to the ops field in the regulator_desc struct, which is a const pointer. Make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/regulator/pca9450-regulator.c | 6 +++--- 1 file

[PATCH 5/5] regulator: ti-abb: Constify ti_abb_reg_ops

2020-09-13 Thread Rikard Falkeborn
The only usage of ti_abb_reg_ops is to assign its address to the ops field in the regulator_desc struct, which is a const pointer. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/regulator/ti-abb-regulator.c | 2 +- 1 file changed

[PATCH 2/5] regulator: fixed: Constify static regulator_ops

2020-09-13 Thread Rikard Falkeborn
-only memory. Signed-off-by: Rikard Falkeborn --- drivers/regulator/fixed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c index 5a03fd86ad0a..3de7709bdcd4 100644 --- a/drivers/regulator/fixed.c +++ b/drivers/regulator

[PATCH 0/5] drivers/regulator: Constify static variables

2020-09-13 Thread Rikard Falkeborn
Constify a couple of static variables, most importantly regulator_ops to allow the compiler to put them in read-only memory. Rikard Falkeborn (5): regulator: dummy: Constify dummy_initdata and dummy_ops regulator: fixed: Constify static regulator_ops regulator: stw481x-vmmc: Constify static

[PATCH] rtc: st-lpc: Constify st_rtc_ops

2020-09-13 Thread Rikard Falkeborn
The only usage of st_rtc_ops is to assign its address to the ops field in the rtc_device struct. which is a const pointer. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/rtc/rtc-st-lpc.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH net-next] octeontx2-af: Constify npc_kpu_profile_{action,cam}

2020-09-14 Thread Rikard Falkeborn
On Sun, Sep 13, 2020 at 10:27:01PM -0700, Joe Perches wrote: > On Sat, 2020-09-12 at 00:00 +0200, Rikard Falkeborn wrote: > > These are never modified, so constify them to allow the compiler to > > place them in read-only memory. This moves about 25kB to read-only > > memory

[PATCH] clk: pxa: Constify static struct clk_ops

2020-09-22 Thread Rikard Falkeborn
Constify a couple of static struct clk_ops that are not modified. Their only usage is inside the macros and their address is passed to clk_register_composite() which takes pointers to const struct clk_ops. This allows the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn

[PATCH 3/8] mfd: Constify static struct resource in OMAP2+ drivers

2020-09-22 Thread Rikard Falkeborn
Constify a number of static struct resource. The only usage of the structs are to assign their address to the resources field in the mfd_cell struct. This allows the compiler to put them in read-only memory. Done with the help of Coccinelle. Signed-off-by: Rikard Falkeborn --- drivers/mfd

[PATCH 8/8] mfd: Constify static struct resource

2020-09-22 Thread Rikard Falkeborn
Constify a number of static struct resource. The only usage of the structs are to assign their address to the resources field in the mfd_cell struct. This allows the compiler to put them in read-only memory. Done with the help of Coccinelle. Signed-off-by: Rikard Falkeborn --- drivers/mfd

[PATCH 6/8] mfd: stmpe: Constify static struct resource

2020-09-22 Thread Rikard Falkeborn
Constify a couple of static struct resource. The only usage of the structs is to assign their address to the resources field in the mfd_cell struct. This allows the compiler to put them in read-only memory. Done with the help of Coccinelle. Signed-off-by: Rikard Falkeborn --- drivers/mfd

[PATCH 2/8] mfd: intel: Constify static struct resource

2020-09-22 Thread Rikard Falkeborn
Constify a number of static struct resource. The only usage of the structs are to assign their address to the resources field in the mfd_cell struct. This allows the compiler to put them in read-only memory. Done with the help of Coccinelle. Signed-off-by: Rikard Falkeborn --- drivers/mfd

[PATCH 7/8] mfd: sun4i-gpadc: Constify static struct resource

2020-09-22 Thread Rikard Falkeborn
Constify adc_resources[]. The only usage is to assign its address to the resources field of the mfd_cell struct. This allows the compiler to put it in read-only memory. Done with the help of Coccinelle. Signed-off-by: Rikard Falkeborn --- drivers/mfd/sun4i-gpadc.c | 2 +- 1 file changed, 1

[PATCH 5/8] mfd: lp8788: Constify static struct resource

2020-09-22 Thread Rikard Falkeborn
Constify a couple of static struct resource. The only usage of the structs is to assign their address to the resources field in the mfd_cell struct. This allows the compiler to put them in read-only memory. Done with the help of Coccinelle. Signed-off-by: Rikard Falkeborn --- drivers/mfd/lp8788

[PATCH 1/8] mfd: da: Constify static struct resource

2020-09-22 Thread Rikard Falkeborn
Constify a number of static struct resource. The only usage of the structs are to assign their address to the resources field in the mfd_cell struct. This allows the compiler to put them in read-only memory. Done with the help of Coccinelle. Signed-off-by: Rikard Falkeborn --- drivers/mfd

[PATCH 0/8] drivers/mfd: Constify static struct resource

2020-09-22 Thread Rikard Falkeborn
27;ll happily split it (or squash it) some other way if that's preferable. Rikard Falkeborn (8): mfd: da: Constify static struct resource mfd: intel: Constify static struct resource mfd: Constify static struct resource in OMAP2+ drivers mfd: wm: Constify static struct resource m

[PATCH 4/8] mfd: wm: Constify static struct resource

2020-09-22 Thread Rikard Falkeborn
Constify a number of static struct resource. The only usage of the structs are to assign their address to the resources field in the mfd_cell struct. This allows the compiler to put them in read-only memory. Done with the help of Coccinelle. Signed-off-by: Rikard Falkeborn --- drivers/mfd

[PATCH] counter: microchip-tcb-capture: Constify mchp_tc_ops

2020-09-22 Thread Rikard Falkeborn
The only usage of mchp_tc_ops is to assign its address to the ops field in the counter_device struct which is a const pointer. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/counter/microchip-tcb-capture.c | 2 +- 1 file changed, 1

Re: [PATCH 2/8] mfd: intel: Constify static struct resource

2020-09-22 Thread Rikard Falkeborn
On Wed, Sep 23, 2020 at 12:31:28AM +0300, Andy Shevchenko wrote: > On Tue, Sep 22, 2020 at 10:32 PM Rikard Falkeborn > wrote: > > > > Constify a number of static struct resource. The only usage of the > > structs are to assign their address to the resources field in the &

[PATCH 1/5] hwrng: bcm2835 - Constify bcm2835_rng_devtype[]

2020-07-01 Thread Rikard Falkeborn
filename 2464 104 02568 a08 drivers/char/hw_random/bcm2835-rng.o Signed-off-by: Rikard Falkeborn --- drivers/char/hw_random/bcm2835-rng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/hw_random/bcm2835-rng.c b/drivers/char/hw_random/bcm2835

[PATCH 2/5] hwrng: nomadik - Constify nmk_rng_ids[]

2020-07-01 Thread Rikard Falkeborn
676 192 4 872 368 drivers/char/hw_random/nomadik-rng.o Signed-off-by: Rikard Falkeborn --- drivers/char/hw_random/nomadik-rng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/hw_random/nomadik-rng.c b/drivers/char/hw_random/nomadik-rng.c

[PATCH 4/5] ipmi: watchdog: Constify ident

2020-07-01 Thread Rikard Falkeborn
3148 64 1732743af drivers/char/ipmi/ipmi_watchdog.o Signed-off-by: Rikard Falkeborn --- drivers/char/ipmi/ipmi_watchdog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/ipmi/ipmi_watchdog.c b/drivers/char/ipmi/ipmi_watchdog.c index 55986e10a124

[PATCH 5/5] virtio_console: Constify some static variables

2020-07-01 Thread Rikard Falkeborn
/virtio_console.o After: textdata bss dec hex filename 25488 673 76 26237667d drivers/char/virtio_console.o Signed-off-by: Rikard Falkeborn --- drivers/char/virtio_console.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers

[PATCH 0/5] drivers/char: Constify static variables

2020-07-01 Thread Rikard Falkeborn
Constify some static variables (mostly structs) that are not modified. Rikard Falkeborn (5): hwrng: bcm2835 - Constify bcm2835_rng_devtype[] hwrng: nomadik - Constify nmk_rng_ids[] hwrng: virtio - Constify id_table[] ipmi: watchdog: Constify ident virtio_console: Constify some static

[PATCH 3/5] hwrng: virtio - Constify id_table[]

2020-07-01 Thread Rikard Falkeborn
1762 176 81946 79a drivers/char/hw_random/virtio-rng.o Signed-off-by: Rikard Falkeborn --- drivers/char/hw_random/virtio-rng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/hw_random/virtio-rng.c b/drivers/char/hw_random/virtio-rng.c index

[PATCH] crypto: virtio - constify features[] and id_table[]

2020-07-01 Thread Rikard Falkeborn
dec hex filename 116301992 128 1375035b6 drivers/crypto/virtio/virtio_crypto_core.o Signed-off-by: Rikard Falkeborn --- drivers/crypto/virtio/virtio_crypto_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/virtio

[PATCH] video: fbdev: vt8623fb: Constify static vga_regsets

2020-07-01 Thread Rikard Falkeborn
64 3350182dd drivers/video/fbdev/vt8623fb.o Signed-off-by: Rikard Falkeborn --- drivers/video/fbdev/vt8623fb.c | 36 +- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/video/fbdev/vt8623fb.c b/drivers/video/fbdev/vt8623fb.c index

[PATCH 1/5] regulator: anatop: Constify anatop_core_rops

2020-06-17 Thread Rikard Falkeborn
hex filename 4634 280 049141332 drivers/regulator/anatop-regulator.o Signed-off-by: Rikard Falkeborn --- drivers/regulator/anatop-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/anatop-regulator.c b/drivers/regulator

[PATCH 3/5] regulator: ltc3676: Constify ltc3676_regulators

2020-06-17 Thread Rikard Falkeborn
6121 304 864331921 drivers/regulator/ltc3676.o Signed-off-by: Rikard Falkeborn --- drivers/regulator/ltc3676.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/ltc3676.c b/drivers/regulator/ltc3676.c index e12e52c69e52..093b3e4a6303 100644

[PATCH 4/5] regulator: max8907: Constify static structs

2020-06-17 Thread Rikard Falkeborn
684 0 100892769 drivers/regulator/max8907-regulator.o Signed-off-by: Rikard Falkeborn --- drivers/regulator/max8907-regulator.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/max8907-regulator.c b/drivers/regulator/max8907-regulator.c

[PATCH 2/5] regulator: cpcap: Constify cpcap_regulator_ops

2020-06-17 Thread Rikard Falkeborn
filename 14604 104 0 147083974 drivers/regulator/cpcap-regulator.o Signed-off-by: Rikard Falkeborn --- drivers/regulator/cpcap-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/cpcap-regulator.c b/drivers/regulator/cpcap-regulator.c

[PATCH 5/5] regulator: max8997: Constify struct regulator_ops

2020-06-17 Thread Rikard Falkeborn
7672 0 2171054ce drivers/regulator/max8997-regulator.o Signed-off-by: Rikard Falkeborn --- drivers/regulator/max8997-regulator.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/regulator/max8997-regulator.c b/drivers/regulator/max8997

[PATCH 0/5] regulator: Constify some static struct variables

2020-06-17 Thread Rikard Falkeborn
Constify some static struct variables to allow the compiler to put them in read-only memory. There are more of these, but I figured I could start small. Also, is one patch per driver a good resolution or too fine-grained? Rikard Falkeborn (5): regulator: anatop: Constify anatop_core_rops

[PATCH 1/2] regulator: qcom_rpm: Constify struct regulator_ops

2020-06-29 Thread Rikard Falkeborn
17881 104 8 179934649 drivers/regulator/qcom_rpm-regulator.o Signed-off-by: Rikard Falkeborn --- drivers/regulator/qcom_rpm-regulator.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/qcom_rpm-regulator.c b/drivers/regulator/qcom_rpm

[PATCH 2/2] regulator: qcom_spmi: Constify struct regulator_ops

2020-06-29 Thread Rikard Falkeborn
218141140 152 231065a42 drivers/regulator/qcom_spmi-regulator.o Signed-off-by: Rikard Falkeborn --- drivers/regulator/qcom_spmi-regulator.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/regulator/qcom_spmi-regulator.c b

[PATCH 0/2] regulator/qcom: Constify static structs

2020-06-29 Thread Rikard Falkeborn
Constify some static structs to allow the compiler to put them in read-only memory. Rikard Falkeborn (2): regulator: qcom_rpm: Constify struct regulator_ops regulator: qcom_spmi: Constify struct regulator_ops drivers/regulator/qcom_rpm-regulator.c | 6 +++--- drivers/regulator/qcom_spmi

[PATCH v4 2/2] bits: Add tests of GENMASK

2020-06-20 Thread Rikard Falkeborn
Add tests of GENMASK and GENMASK_ULL. A few test cases that should fail compilation are provided under #ifdef TEST_GENMASK_FAILURES Suggested-by: Andy Shevchenko Reviewed-by: Andy Shevchenko Signed-off-by: Rikard Falkeborn --- Sorry about the missing MODULE_LICENSE. I assume you just will

[PATCH v4 1/2] linux/bits.h: fix unsigned less than zero warnings

2020-06-20 Thread Rikard Falkeborn
nux/bits.h: add compile time sanity check of GENMASK inputs") Reported-by: kbuild test robot Reported-by: Emil Velikov Reported-by: Syed Nayyar Waris Reviewed-by: Andy Shevchenko Reviewed-by: Emil Velikov Signed-off-by: Rikard Falkeborn --- v3-v4 Added Emils Reviewed-by. v2-v3 Added Andys R

[PATCH] memory: tegra: Constify struct thermal_cooling_device_ops

2020-06-09 Thread Rikard Falkeborn
hex filename 280405504 192 3373683c8 drivers/memory/tegra/tegra210-emc-core.o Signed-off-by: Rikard Falkeborn --- drivers/memory/tegra/tegra210-emc-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/memory/tegra/tegra210-emc-core.c b/drivers/memory

[PATCH] soundwire: qcom: Constify static structs

2020-06-09 Thread Rikard Falkeborn
hex filename 184262896 256 21578544a drivers/soundwire/qcom.o Signed-off-by: Rikard Falkeborn --- drivers/soundwire/qcom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c index a1c2a44a3b4d..915c2cf0c274

[PATCH 1/3] phy: phy-bcm-ns2-usbdrd: Constify phy_ops

2020-05-16 Thread Rikard Falkeborn
hex filename 79593016 128 111032b5f drivers/phy/broadcom/phy-bcm-ns2-usbdrd.o Signed-off-by: Rikard Falkeborn --- drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c b/drivers/phy

[PATCH 3/3] phy: phy-brcm-usb: Constify static structs

2020-05-16 Thread Rikard Falkeborn
6448 64 220235607 drivers/phy/broadcom/phy-brcm-usb.o After: textdata bss dec hex filename 160585936 64 22058562a drivers/phy/broadcom/phy-brcm-usb.o Signed-off-by: Rikard Falkeborn --- drivers/phy/broadcom/phy-brcm-usb.c | 16 1

[PATCH 0/3] phy: broadcom: Constify structs

2020-05-16 Thread Rikard Falkeborn
A small series adding const to a few static structs. Each patch can be applied separately. Rikard Falkeborn (3): phy: phy-bcm-ns2-usbdrd: Constify phy_ops phy: sr-usb: Constify phy_ops phy: phy-brcm-usb: Constify static structs drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c | 2 +- drivers

[PATCH 2/3] phy: sr-usb: Constify phy_ops

2020-05-16 Thread Rikard Falkeborn
filename 44381116 0555415b2 drivers/phy/broadcom/phy-bcm-sr-usb.o Signed-off-by: Rikard Falkeborn --- drivers/phy/broadcom/phy-bcm-sr-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/broadcom/phy-bcm-sr-usb.c b/drivers/phy/broadcom/phy-bcm

[tip:perf/urgent] tools lib traceevent: Fix missing equality check for strcmp

2019-04-16 Thread tip-bot for Rikard Falkeborn
Commit-ID: f32c2877bcb068a718bb70094cd59ccc29d4d082 Gitweb: https://git.kernel.org/tip/f32c2877bcb068a718bb70094cd59ccc29d4d082 Author: Rikard Falkeborn AuthorDate: Tue, 9 Apr 2019 11:15:29 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 16 Apr 2019 11:27:36 -0300 tools lib

[tip: x86/cache] x86/resctrl: Constify kernfs_ops

2020-11-19 Thread tip-bot2 for Rikard Falkeborn
The following commit has been merged into the x86/cache branch of tip: Commit-ID: 2002d2951398317d0f46e64ae6d8dd58ed541c6d Gitweb: https://git.kernel.org/tip/2002d2951398317d0f46e64ae6d8dd58ed541c6d Author:Rikard Falkeborn AuthorDate:Wed, 11 Nov 2020 00:02:28 +01:00

[tip:x86/boot] x86/boot: Use common BUILD_BUG_ON

2019-08-16 Thread tip-bot for Rikard Falkeborn
Commit-ID: d5a1baddf1585885868cbab55989401fb97118c6 Gitweb: https://git.kernel.org/tip/d5a1baddf1585885868cbab55989401fb97118c6 Author: Rikard Falkeborn AuthorDate: Sun, 11 Aug 2019 20:49:36 +0200 Committer: Thomas Gleixner CommitDate: Fri, 16 Aug 2019 14:15:50 +0200 x86/boot: Use

[tip:x86/boot] x86/boot: Use common BUILD_BUG_ON

2019-08-12 Thread tip-bot for Rikard Falkeborn
Commit-ID: f6fabe25f01cb09db51644780193f5ea6c44e04e Gitweb: https://git.kernel.org/tip/f6fabe25f01cb09db51644780193f5ea6c44e04e Author: Rikard Falkeborn AuthorDate: Sun, 11 Aug 2019 20:49:36 +0200 Committer: Thomas Gleixner CommitDate: Mon, 12 Aug 2019 20:13:56 +0200 x86/boot: Use

[tip:perf/urgent] tools lib traceevent: Fix missing equality check for strcmp

2019-04-12 Thread tip-bot for Rikard Falkeborn
Commit-ID: ff4f5471801f879aea8f9e3ace2b9af31efc9178 Gitweb: https://git.kernel.org/tip/ff4f5471801f879aea8f9e3ace2b9af31efc9178 Author: Rikard Falkeborn AuthorDate: Tue, 9 Apr 2019 11:15:29 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 9 Apr 2019 11:55:30 -0300 tools lib

<    1   2   3