Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fs/proc: replace "__auto_type" with "const auto"

Replace use of "__auto_type" in fs/proc/inode.c with "const auto".

Suggested-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Reviewed-by: Alexey Dobriyan <adobriyan@gmail.com>

+9 -10
+9 -10
fs/proc/inode.c
··· 303 303 304 304 static ssize_t pde_read(struct proc_dir_entry *pde, struct file *file, char __user *buf, size_t count, loff_t *ppos) 305 305 { 306 - __auto_type read = pde->proc_ops->proc_read; 306 + const auto read = pde->proc_ops->proc_read; 307 307 if (read) 308 308 return read(file, buf, count, ppos); 309 309 return -EIO; ··· 325 325 326 326 static ssize_t pde_write(struct proc_dir_entry *pde, struct file *file, const char __user *buf, size_t count, loff_t *ppos) 327 327 { 328 - __auto_type write = pde->proc_ops->proc_write; 328 + const auto write = pde->proc_ops->proc_write; 329 329 if (write) 330 330 return write(file, buf, count, ppos); 331 331 return -EIO; ··· 347 347 348 348 static __poll_t pde_poll(struct proc_dir_entry *pde, struct file *file, struct poll_table_struct *pts) 349 349 { 350 - __auto_type poll = pde->proc_ops->proc_poll; 350 + const auto poll = pde->proc_ops->proc_poll; 351 351 if (poll) 352 352 return poll(file, pts); 353 353 return DEFAULT_POLLMASK; ··· 369 369 370 370 static long pde_ioctl(struct proc_dir_entry *pde, struct file *file, unsigned int cmd, unsigned long arg) 371 371 { 372 - __auto_type ioctl = pde->proc_ops->proc_ioctl; 372 + const auto ioctl = pde->proc_ops->proc_ioctl; 373 373 if (ioctl) 374 374 return ioctl(file, cmd, arg); 375 375 return -ENOTTY; ··· 392 392 #ifdef CONFIG_COMPAT 393 393 static long pde_compat_ioctl(struct proc_dir_entry *pde, struct file *file, unsigned int cmd, unsigned long arg) 394 394 { 395 - __auto_type compat_ioctl = pde->proc_ops->proc_compat_ioctl; 395 + const auto compat_ioctl = pde->proc_ops->proc_compat_ioctl; 396 396 if (compat_ioctl) 397 397 return compat_ioctl(file, cmd, arg); 398 398 return -ENOTTY; ··· 414 414 415 415 static int pde_mmap(struct proc_dir_entry *pde, struct file *file, struct vm_area_struct *vma) 416 416 { 417 - __auto_type mmap = pde->proc_ops->proc_mmap; 417 + const auto mmap = pde->proc_ops->proc_mmap; 418 418 if (mmap) 419 419 return mmap(file, vma); 420 420 return -EIO; ··· 497 497 if (!use_pde(pde)) 498 498 return -ENOENT; 499 499 500 - __auto_type release = pde->proc_ops->proc_release; 500 + const auto release = pde->proc_ops->proc_release; 501 501 if (release) { 502 502 pdeo = kmem_cache_alloc(pde_opener_cache, GFP_KERNEL); 503 503 if (!pdeo) { ··· 534 534 struct pde_opener *pdeo; 535 535 536 536 if (pde_is_permanent(pde)) { 537 - __auto_type release = pde->proc_ops->proc_release; 538 - if (release) { 537 + const auto release = pde->proc_ops->proc_release; 538 + if (release) 539 539 return release(inode, file); 540 - } 541 540 return 0; 542 541 } 543 542