uml: sparse inlines gcc-4.{2,3} compilation hack
Subsystems (6)
Hi!
Small ARCH=um SUBARCH=i386 .config is in attach. How to fix properly such kind of miscompilation? (gcc-4.3.1) Now I have to use hacks like this:
uml: sparse inlines gcc-4.{2,3} compilation fix.
Patch fixes stuff like this:
CC mm/filemap.o
/mnt/ext/backup3/dev/git/linux-2.6/mm/filemap.c: In function '__generic_file_aio_write_nolock':
/mnt/ext/backup3/dev/git/linux-2.6/mm/filemap.c:1838: sorry, unimplemented: inlining failed in call to 'generic_write_checks': function body not available /mnt/ext/backup3/dev/git/linux-2.6/mm/filemap.c:2390: sorry, unimplemented: called from here
make[2]: *** [mm/filemap.o] Error 1
make[1]: *** [mm] Error 2
Signed-off-by Sergei Trofimovich <[email protected]>
fs/block_dev.c | 2 +- fs/buffer.c | 2 +- mm/filemap.c | 2 +- mm/page_alloc.c | 2 +- net/ipv4/ip_output.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
fs/block_dev.c +1 -1
@@ -39,7 +39,7 @@ static inline struct bdev_inode *BDEV_I(struct inode *inode) return container_of(inode, struct bdev_inode, vfs_inode); } -inline struct block_device *I_BDEV (struct inode *inode) +struct block_device *I_BDEV (struct inode *inode) {return &BDEV_I (inode)->bdev; }
fs/buffer.c +1 -1
@@ -46,7 +46,7 @@ static int fsync_buffers_list(spinlock_t *lock, struct list_head *list);#define BH_ENTRY (list) list_entry((list), struct buffer_head, b_assoc_buffers) -inline void +void init_buffer (struct buffer_head *bh,bh_end_io_t *handler,void *private) { bh->b_end_io = handler;
mm/filemap.c +1 -1
@@ -1834,7 +1834,7 @@ EXPORT_SYMBOL(iov_iter_single_seg_count);* Returns appropriate error code that caller should return or * zero in case that write should be allowed. */ -inline int generic_write_checks (struct file *file,loff_t *pos,size_t *count,int isblk) +int generic_write_checks (struct file *file,loff_t *pos,size_t *count,int isblk) {struct inode *inode = file->f_mapping->host;unsigned long limit = current->signal->rlim[RLIMIT_FSIZE ].rlim_cur;
mm/page_alloc.c +1 -1
@@ -2611,7 +2611,7 @@ static int zone_batchsize(struct zone *zone)return batch; } -inline void setup_pageset (struct per_cpu_pageset *p,unsigned long batch) +void setup_pageset (struct per_cpu_pageset *p,unsigned long batch) {struct per_cpu_pages *pcp;
net/ipv4/ip_output.c +1 -1
@@ -85,7 +85,7 @@int sysctl_ip_default_ttl__read_mostly =IPDEFTTL ;/* Generate a checksum for an outgoing IP datagram. */ -__inline__void ip_send_check (struct iphdr *iph) +void ip_send_check (struct iphdr *iph) { iph->check =0 ; iph->check =ip_fast_csum ((unsigned char *)iph, iph->ihl);