Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40856
b: refs/heads/master
c: 4891d53
h: refs/heads/master
v: v3
  • Loading branch information
Steve French committed Nov 7, 2006
1 parent 3c50709 commit 3afede2
Show file tree
Hide file tree
Showing 83 changed files with 2,257 additions and 741 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 189e7cc1e092a31183febe598f8e37385ff9936e
refs/heads/master: 4891d53956abd4ad9d94127c50d931124319a324
1 change: 0 additions & 1 deletion trunk/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
# Top-level generic files
#
tags
TAGS
vmlinux*
System.map
Module.symvers
Expand Down
2 changes: 1 addition & 1 deletion trunk/CREDITS
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ S: Longford, Ireland
S: Sydney, Australia

N: Tigran A. Aivazian
E: tigran@aivazian.fsnet.co.uk
E: tigran@veritas.com
W: http://www.moses.uklinux.net/patches
D: BFS filesystem
D: Intel IA32 CPU microcode update support
Expand Down
12 changes: 12 additions & 0 deletions trunk/Documentation/feature-removal-schedule.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ Who: Mauro Carvalho Chehab <mchehab@brturbo.com.br>

---------------------------

What: sys_sysctl
When: January 2007
Why: The same information is available through /proc/sys and that is the
interface user space prefers to use. And there do not appear to be
any existing user in user space of sys_sysctl. The additional
maintenance overhead of keeping a set of binary names gets
in the way of doing a good job of maintaining this interface.

Who: Eric Biederman <ebiederm@xmission.com>

---------------------------

What: PCMCIA control ioctl (needed for pcmcia-cs [cardmgr, cardctl])
When: November 2005
Files: drivers/pcmcia/: pcmcia_ioctl.c
Expand Down
2 changes: 1 addition & 1 deletion trunk/Documentation/memory-barriers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ There are some more advanced barrier functions:

(*) set_mb(var, value)

This assigns the value to the variable and then inserts a full memory
This assigns the value to the variable and then inserts at least a write
barrier after it, depending on the function. It isn't guaranteed to
insert anything more than a compiler barrier in a UP compilation.

Expand Down
4 changes: 2 additions & 2 deletions trunk/MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ S: Maintained

BFS FILE SYSTEM
P: Tigran A. Aivazian
M: tigran@aivazian.fsnet.co.uk
M: tigran@veritas.com
L: linux-kernel@vger.kernel.org
S: Maintained

Expand Down Expand Up @@ -1513,7 +1513,7 @@ S: Maintained

INTEL IA32 MICROCODE UPDATE SUPPORT
P: Tigran Aivazian
M: tigran@aivazian.fsnet.co.uk
M: tigran@veritas.com
S: Maintained

INTEL IXP4XX RANDOM NUMBER GENERATOR SUPPORT
Expand Down
2 changes: 1 addition & 1 deletion trunk/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 19
EXTRAVERSION =-rc5
EXTRAVERSION =-rc4
NAME=Avast! A bilge rat!

# *DOCUMENTATION*
Expand Down
84 changes: 57 additions & 27 deletions trunk/arch/alpha/kernel/srm_env.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* srm_env.c - Access to SRM environment
* variables through linux' procfs
*
* (C) 2001,2002,2006 by Jan-Benedict Glaw <jbglaw@lug-owl.de>
* Copyright (C) 2001-2002 Jan-Benedict Glaw <jbglaw@lug-owl.de>
*
* This driver is at all a modified version of Erik Mouw's
* Documentation/DocBook/procfs_example.c, so: thank
Expand All @@ -21,14 +21,41 @@
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more
* details.
*
*
* You should have received a copy of the GNU General Public
* License along with this program; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place,
* Suite 330, Boston, MA 02111-1307 USA
*
*/

/*
* Changelog
* ~~~~~~~~~
*
* Thu, 22 Aug 2002 15:10:43 +0200
* - Update Config.help entry. I got a number of emails asking
* me to tell their senders if they could make use of this
* piece of code... So: "SRM is something like BIOS for your
* Alpha"
* - Update code formatting a bit to better conform CodingStyle
* rules.
* - So this is v0.0.5, with no changes (except formatting)
*
* Wed, 22 May 2002 00:11:21 +0200
* - Fix typo on comment (SRC -> SRM)
* - Call this "Version 0.0.4"
*
* Tue, 9 Apr 2002 18:44:40 +0200
* - Implement access by variable name and additionally
* by number. This is done by creating two subdirectories
* where one holds all names (like the old directory
* did) and the other holding 256 files named like "0",
* "1" and so on.
* - Call this "Version 0.0.3"
*
*/

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
Expand All @@ -40,7 +67,7 @@
#define BASE_DIR "srm_environment" /* Subdir in /proc/ */
#define NAMED_DIR "named_variables" /* Subdir for known variables */
#define NUMBERED_DIR "numbered_variables" /* Subdir for all variables */
#define VERSION "0.0.6" /* Module version */
#define VERSION "0.0.5" /* Module version */
#define NAME "srm_env" /* Module name */

MODULE_AUTHOR("Jan-Benedict Glaw <jbglaw@lug-owl.de>");
Expand Down Expand Up @@ -79,6 +106,7 @@ static srm_env_t srm_named_entries[] = {
static srm_env_t srm_numbered_entries[256];



static int
srm_env_read(char *page, char **start, off_t off, int count, int *eof,
void *data)
Expand All @@ -87,23 +115,21 @@ srm_env_read(char *page, char **start, off_t off, int count, int *eof,
unsigned long ret;
srm_env_t *entry;

if (off != 0) {
*eof = 1;
return 0;
}
if(off != 0)
return -EFAULT;

entry = (srm_env_t *) data;
ret = callback_getenv(entry->id, page, count);

if ((ret >> 61) == 0) {
if((ret >> 61) == 0)
nbytes = (int) ret;
*eof = 1;
} else
else
nbytes = -EFAULT;

return nbytes;
}


static int
srm_env_write(struct file *file, const char __user *buffer, unsigned long count,
void *data)
Expand All @@ -129,7 +155,7 @@ srm_env_write(struct file *file, const char __user *buffer, unsigned long count,

ret1 = callback_setenv(entry->id, buf, count);
if ((ret1 >> 61) == 0) {
do
do
ret2 = callback_save_env();
while((ret2 >> 61) == 1);
res = (int) ret1;
Expand All @@ -146,14 +172,14 @@ srm_env_cleanup(void)
srm_env_t *entry;
unsigned long var_num;

if (base_dir) {
if(base_dir) {
/*
* Remove named entries
*/
if (named_dir) {
if(named_dir) {
entry = srm_named_entries;
while (entry->name != NULL && entry->id != 0) {
if (entry->proc_entry) {
while(entry->name != NULL && entry->id != 0) {
if(entry->proc_entry) {
remove_proc_entry(entry->name,
named_dir);
entry->proc_entry = NULL;
Expand All @@ -166,11 +192,11 @@ srm_env_cleanup(void)
/*
* Remove numbered entries
*/
if (numbered_dir) {
for (var_num = 0; var_num <= 255; var_num++) {
if(numbered_dir) {
for(var_num = 0; var_num <= 255; var_num++) {
entry = &srm_numbered_entries[var_num];

if (entry->proc_entry) {
if(entry->proc_entry) {
remove_proc_entry(entry->name,
numbered_dir);
entry->proc_entry = NULL;
Expand All @@ -186,6 +212,7 @@ srm_env_cleanup(void)
return;
}


static int __init
srm_env_init(void)
{
Expand All @@ -195,7 +222,7 @@ srm_env_init(void)
/*
* Check system
*/
if (!alpha_using_srm) {
if(!alpha_using_srm) {
printk(KERN_INFO "%s: This Alpha system doesn't "
"know about SRM (or you've booted "
"SRM->MILO->Linux, which gets "
Expand All @@ -206,14 +233,14 @@ srm_env_init(void)
/*
* Init numbers
*/
for (var_num = 0; var_num <= 255; var_num++)
for(var_num = 0; var_num <= 255; var_num++)
sprintf(number[var_num], "%ld", var_num);

/*
* Create base directory
*/
base_dir = proc_mkdir(BASE_DIR, NULL);
if (!base_dir) {
if(base_dir == NULL) {
printk(KERN_ERR "Couldn't create base dir /proc/%s\n",
BASE_DIR);
goto cleanup;
Expand All @@ -224,7 +251,7 @@ srm_env_init(void)
* Create per-name subdirectory
*/
named_dir = proc_mkdir(NAMED_DIR, base_dir);
if (!named_dir) {
if(named_dir == NULL) {
printk(KERN_ERR "Couldn't create dir /proc/%s/%s\n",
BASE_DIR, NAMED_DIR);
goto cleanup;
Expand All @@ -235,7 +262,7 @@ srm_env_init(void)
* Create per-number subdirectory
*/
numbered_dir = proc_mkdir(NUMBERED_DIR, base_dir);
if (!numbered_dir) {
if(numbered_dir == NULL) {
printk(KERN_ERR "Couldn't create dir /proc/%s/%s\n",
BASE_DIR, NUMBERED_DIR);
goto cleanup;
Expand All @@ -247,10 +274,10 @@ srm_env_init(void)
* Create all named nodes
*/
entry = srm_named_entries;
while (entry->name && entry->id) {
while(entry->name != NULL && entry->id != 0) {
entry->proc_entry = create_proc_entry(entry->name,
0644, named_dir);
if (!entry->proc_entry)
if(entry->proc_entry == NULL)
goto cleanup;

entry->proc_entry->data = (void *) entry;
Expand All @@ -264,13 +291,13 @@ srm_env_init(void)
/*
* Create all numbered nodes
*/
for (var_num = 0; var_num <= 255; var_num++) {
for(var_num = 0; var_num <= 255; var_num++) {
entry = &srm_numbered_entries[var_num];
entry->name = number[var_num];

entry->proc_entry = create_proc_entry(entry->name,
0644, numbered_dir);
if (!entry->proc_entry)
if(entry->proc_entry == NULL)
goto cleanup;

entry->id = var_num;
Expand All @@ -291,6 +318,7 @@ srm_env_init(void)
return -ENOMEM;
}


static void __exit
srm_env_exit(void)
{
Expand All @@ -300,5 +328,7 @@ srm_env_exit(void)
return;
}


module_init(srm_env_init);
module_exit(srm_env_exit);

3 changes: 1 addition & 2 deletions trunk/arch/arm/common/dmabounce.c
Original file line number Diff line number Diff line change
Expand Up @@ -662,8 +662,7 @@ EXPORT_SYMBOL(dma_map_single);
EXPORT_SYMBOL(dma_unmap_single);
EXPORT_SYMBOL(dma_map_sg);
EXPORT_SYMBOL(dma_unmap_sg);
EXPORT_SYMBOL(dma_sync_single_for_cpu);
EXPORT_SYMBOL(dma_sync_single_for_device);
EXPORT_SYMBOL(dma_sync_single);
EXPORT_SYMBOL(dma_sync_sg);
EXPORT_SYMBOL(dmabounce_register_dev);
EXPORT_SYMBOL(dmabounce_unregister_dev);
Expand Down
Loading

0 comments on commit 3afede2

Please sign in to comment.