public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH 28/31] Constify struct super_operations for 2.6.32 v1
@ 2009-12-06  5:14 Alexey Dobriyan
  2009-12-06 14:23 ` Emese Revfy
  2009-12-09  1:31 ` Ralf Baechle
  0 siblings, 2 replies; 14+ messages in thread
From: Alexey Dobriyan @ 2009-12-06  5:14 UTC (permalink / raw)
  To: re.emese; +Cc: linux-kernel

> -   	struct inode *(*alloc_inode)(struct super_block *sb);
> +   	struct inode *(* const alloc_inode)(struct super_block *sb);

Good rule is if adding const doesn't move object from one section
to another, it isn't worth it.

I suggest we stick to it or risk another wave of jumbo patches.

^ permalink raw reply	[flat|nested] 14+ messages in thread
* [PATCH 00/31] constify various _ops structures for 2.6.32 v1
@ 2009-12-04 22:00 Emese Revfy
  2009-12-04 22:47 ` [PATCH 28/31] Constify struct super_operations " Emese Revfy
  0 siblings, 1 reply; 14+ messages in thread
From: Emese Revfy @ 2009-12-04 22:00 UTC (permalink / raw)
  To: linux-kernel, torvalds, re.emese

Hello everyone!

The following patch series attempts to constify several structures
that hold function pointers. This is only the initial batch, there
are about over 150 candidate structures, some of which can be
constified as well, I plan to submit them in the future.

The list of constified structures in this series:
acpi_dock_ops
address_space_operations
backlight_ops
block_device_operations
dma_map_ops
e1000_mac_operations
e1000_nvm_operations
e1000_phy_operations
extent_io_ops
file_lock_operations
file_operations
hv_ops
intel_dvo_dev_ops
item_operations
iwl_ops
kgdb_arch
kgdb_io
kset_uevent_ops
lock_manager_operations
microcode_ops
mtrr_ops
neigh_ops
nlmsvc_binding
pci_raw_ops
platform_hibernation_ops
platform_suspend_ops
snd_ac97_build_ops
super_operations
sysfs_ops
usb_mon_operations
wd_ops

There are certain exceptions where a given instance of the structure
cannot be const, they are marked with a comment in the patch.

The patches compile fine with an allyesconfig kernel on i386 and x86_64.

Please let me know if any of these structures should not be constified
and any other issues you see with them.

Thanks,
   Emese


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2009-12-10 18:22 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-06  5:14 [PATCH 28/31] Constify struct super_operations for 2.6.32 v1 Alexey Dobriyan
2009-12-06 14:23 ` Emese Revfy
2009-12-07 18:30   ` Alexey Dobriyan
2009-12-08  0:06     ` Emese Revfy
2009-12-08  1:51       ` Al Viro
2009-12-09  0:24         ` Emese Revfy
2009-12-09  0:47           ` Al Viro
2009-12-09  8:22             ` Olivier Galibert
2009-12-10 18:24             ` Emese Revfy
2009-12-09  1:31 ` Ralf Baechle
2009-12-09  1:45   ` Al Viro
  -- strict thread matches above, loose matches on Subject: below --
2009-12-04 22:00 [PATCH 00/31] constify various _ops structures " Emese Revfy
2009-12-04 22:47 ` [PATCH 28/31] Constify struct super_operations " Emese Revfy
2009-12-06  1:23   ` Al Viro
2009-12-06  1:41     ` Emese Revfy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox