diff options
| author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-05-15 10:26:50 -0400 | 
|---|---|---|
| committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-05-15 10:26:50 -0400 | 
| commit | 12e04ffcd93b25dfd726d46338c2ee7d23de556e (patch) | |
| tree | f91479a62805619168994fd3ee55e3ffa23fc24e /kernel/compat.c | |
| parent | 9eff37a8713939f218ab8bf0dc93f1d67af7b8b4 (diff) | |
| parent | f722406faae2d073cc1d01063d1123c35425939e (diff) | |
Merge tag 'v3.10-rc1' into stable/for-linus-3.10
Linux 3.10-rc1
* tag 'v3.10-rc1': (12273 commits)
  Linux 3.10-rc1
  [SCSI] qla2xxx: Update firmware link in Kconfig file.
  [SCSI] iscsi class, qla4xxx: fix sess/conn refcounting when find fns are used
  [SCSI] sas: unify the pointlessly separated enums sas_dev_type and sas_device_type
  [SCSI] pm80xx: thermal, sas controller config and error handling update
  [SCSI] pm80xx: NCQ error handling changes
  [SCSI] pm80xx: WWN Modification for PM8081/88/89 controllers
  [SCSI] pm80xx: Changed module name and debug messages update
  [SCSI] pm80xx: Firmware flash memory free fix, with addition of new memory region for it
  [SCSI] pm80xx: SPC new firmware changes for device id 0x8081 alone
  [SCSI] pm80xx: Added SPCv/ve specific hardware functionalities and relevant changes in common files
  [SCSI] pm80xx: MSI-X implementation for using 64 interrupts
  [SCSI] pm80xx: Updated common functions common for SPC and SPCv/ve
  [SCSI] pm80xx: Multiple inbound/outbound queue configuration
  [SCSI] pm80xx: Added SPCv/ve specific ids, variables and modify for SPC
  [SCSI] lpfc: fix up Kconfig dependencies
  [SCSI] Handle MLQUEUE busy response in scsi_send_eh_cmnd
  dm cache: set config value
  dm cache: move config fns
  dm thin: generate event when metadata threshold passed
  ...
Diffstat (limited to 'kernel/compat.c')
| -rw-r--r-- | kernel/compat.c | 84 | 
1 files changed, 0 insertions, 84 deletions
| diff --git a/kernel/compat.c b/kernel/compat.c index 19971d8c729..0a09e481b70 100644 --- a/kernel/compat.c +++ b/kernel/compat.c @@ -516,25 +516,6 @@ int put_compat_rusage(const struct rusage *r, struct compat_rusage __user *ru)  	return 0;  } -asmlinkage long compat_sys_getrusage(int who, struct compat_rusage __user *ru) -{ -	struct rusage r; -	int ret; -	mm_segment_t old_fs = get_fs(); - -	set_fs(KERNEL_DS); -	ret = sys_getrusage(who, (struct rusage __user *) &r); -	set_fs(old_fs); - -	if (ret) -		return ret; - -	if (put_compat_rusage(&r, ru)) -		return -EFAULT; - -	return 0; -} -  COMPAT_SYSCALL_DEFINE4(wait4,  	compat_pid_t, pid,  	compat_uint_t __user *, stat_addr, @@ -1138,71 +1119,6 @@ asmlinkage long compat_sys_migrate_pages(compat_pid_t pid,  }  #endif -struct compat_sysinfo { -	s32 uptime; -	u32 loads[3]; -	u32 totalram; -	u32 freeram; -	u32 sharedram; -	u32 bufferram; -	u32 totalswap; -	u32 freeswap; -	u16 procs; -	u16 pad; -	u32 totalhigh; -	u32 freehigh; -	u32 mem_unit; -	char _f[20-2*sizeof(u32)-sizeof(int)]; -}; - -asmlinkage long -compat_sys_sysinfo(struct compat_sysinfo __user *info) -{ -	struct sysinfo s; - -	do_sysinfo(&s); - -	/* Check to see if any memory value is too large for 32-bit and scale -	 *  down if needed -	 */ -	if ((s.totalram >> 32) || (s.totalswap >> 32)) { -		int bitcount = 0; - -		while (s.mem_unit < PAGE_SIZE) { -			s.mem_unit <<= 1; -			bitcount++; -		} - -		s.totalram >>= bitcount; -		s.freeram >>= bitcount; -		s.sharedram >>= bitcount; -		s.bufferram >>= bitcount; -		s.totalswap >>= bitcount; -		s.freeswap >>= bitcount; -		s.totalhigh >>= bitcount; -		s.freehigh >>= bitcount; -	} - -	if (!access_ok(VERIFY_WRITE, info, sizeof(struct compat_sysinfo)) || -	    __put_user (s.uptime, &info->uptime) || -	    __put_user (s.loads[0], &info->loads[0]) || -	    __put_user (s.loads[1], &info->loads[1]) || -	    __put_user (s.loads[2], &info->loads[2]) || -	    __put_user (s.totalram, &info->totalram) || -	    __put_user (s.freeram, &info->freeram) || -	    __put_user (s.sharedram, &info->sharedram) || -	    __put_user (s.bufferram, &info->bufferram) || -	    __put_user (s.totalswap, &info->totalswap) || -	    __put_user (s.freeswap, &info->freeswap) || -	    __put_user (s.procs, &info->procs) || -	    __put_user (s.totalhigh, &info->totalhigh) || -	    __put_user (s.freehigh, &info->freehigh) || -	    __put_user (s.mem_unit, &info->mem_unit)) -		return -EFAULT; - -	return 0; -} -  COMPAT_SYSCALL_DEFINE2(sched_rr_get_interval,  		       compat_pid_t, pid,  		       struct compat_timespec __user *, interval) | 
