forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JFFS2] Tidy up licensing/copyright boilerplate.
In particular, remove the bit in the LICENCE file about contacting Red Hat for alternative arrangements. Their errant IS department broke that arrangement a long time ago -- the policy of collecting copyright assignments from contributors came to an end when the plug was pulled on the servers hosting the project, without notice or reason. We do still dual-license it for use with eCos, with the GPL+exception licence approved by the FSF as being GPL-compatible. It's just that nobody has the right to license it differently. Signed-off-by: David Woodhouse <[email protected]>
- Loading branch information
Showing
45 changed files
with
155 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
/* | ||
* JFFS2 -- Journalling Flash File System, Version 2. | ||
* | ||
* Copyright (C) 2006 NEC Corporation | ||
* Copyright © 2006 NEC Corporation | ||
* | ||
* Created by KaiGai Kohei <[email protected]> | ||
* | ||
* For licensing information, see the file 'LICENCE' in this directory. | ||
* | ||
*/ | ||
|
||
#include <linux/kernel.h> | ||
#include <linux/slab.h> | ||
#include <linux/fs.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
/* | ||
* JFFS2 -- Journalling Flash File System, Version 2. | ||
* | ||
* Copyright (C) 2006 NEC Corporation | ||
* Copyright © 2006 NEC Corporation | ||
* | ||
* Created by KaiGai Kohei <[email protected]> | ||
* | ||
* For licensing information, see the file 'LICENCE' in this directory. | ||
* | ||
*/ | ||
|
||
struct jffs2_acl_entry { | ||
jint16_t e_tag; | ||
jint16_t e_perm; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
/* | ||
* JFFS2 -- Journalling Flash File System, Version 2. | ||
* | ||
* Copyright (C) 2001-2003 Red Hat, Inc. | ||
* Copyright © 2001-2007 Red Hat, Inc. | ||
* | ||
* Created by David Woodhouse <[email protected]> | ||
* | ||
* For licensing information, see the file 'LICENCE' in this directory. | ||
* | ||
* $Id: background.c,v 1.54 2005/05/20 21:37:12 gleixner Exp $ | ||
* | ||
*/ | ||
|
||
#include <linux/kernel.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
/* | ||
* JFFS2 -- Journalling Flash File System, Version 2. | ||
* | ||
* Copyright (C) 2001-2003 Red Hat, Inc. | ||
* Copyright © 2001-2007 Red Hat, Inc. | ||
* | ||
* Created by David Woodhouse <[email protected]> | ||
* | ||
* For licensing information, see the file 'LICENCE' in this directory. | ||
* | ||
* $Id: build.c,v 1.85 2005/11/07 11:14:38 gleixner Exp $ | ||
* | ||
*/ | ||
|
||
#include <linux/kernel.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
/* | ||
* JFFS2 -- Journalling Flash File System, Version 2. | ||
* | ||
* Copyright (C) 2001-2003 Red Hat, Inc. | ||
* Copyright © 2001-2007 Red Hat, Inc. | ||
* Created by Arjan van de Ven <[email protected]> | ||
* | ||
* Copyright (C) 2004 Ferenc Havasi <[email protected]>, | ||
* Copyright © 2004 Ferenc Havasi <[email protected]>, | ||
* University of Szeged, Hungary | ||
* | ||
* For licensing information, see the file 'LICENCE' in this directory. | ||
* | ||
* $Id: compr.c,v 1.46 2005/11/07 11:14:38 gleixner Exp $ | ||
* | ||
*/ | ||
|
||
#include "compr.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
/* | ||
* JFFS2 -- Journalling Flash File System, Version 2. | ||
* | ||
* Copyright (C) 2004 Ferenc Havasi <[email protected]>, | ||
* Copyright © 2004 Ferenc Havasi <[email protected]>, | ||
* University of Szeged, Hungary | ||
* | ||
* For licensing information, see the file 'LICENCE' in the | ||
* jffs2 directory. | ||
* | ||
* $Id: compr.h,v 1.9 2005/11/07 11:14:38 gleixner Exp $ | ||
* For licensing information, see the file 'LICENCE' in this directory. | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
/* | ||
* JFFS2 -- Journalling Flash File System, Version 2. | ||
* | ||
* Copyright (C) 2001-2003 Red Hat, Inc. | ||
* Copyright © 2001-2007 Red Hat, Inc. | ||
* | ||
* Created by Arjan van de Ven <[email protected]> | ||
* | ||
* For licensing information, see the file 'LICENCE' in this directory. | ||
* | ||
* $Id: compr_rtime.c,v 1.14 2004/06/23 16:34:40 havasi Exp $ | ||
* | ||
* | ||
* Very simple lz77-ish encoder. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,95 @@ | ||
/* | ||
* JFFS2 -- Journalling Flash File System, Version 2. | ||
* | ||
* Copyright (C) 2001, 2002 Red Hat, Inc. | ||
* Copyright © 2001-2007 Red Hat, Inc. | ||
* | ||
* Created by Arjan van de Ven <[email protected]> | ||
* | ||
* For licensing information, see the file 'LICENCE' in this directory. | ||
* | ||
* $Id: compr_rubin.c,v 1.20 2004/06/23 16:34:40 havasi Exp $ | ||
* | ||
*/ | ||
|
||
#include <linux/string.h> | ||
#include <linux/types.h> | ||
#include <linux/jffs2.h> | ||
#include "compr_rubin.h" | ||
#include "histo_mips.h" | ||
#include <linux/errno.h> | ||
#include "compr.h" | ||
|
||
|
||
#define RUBIN_REG_SIZE 16 | ||
#define UPPER_BIT_RUBIN (((long) 1)<<(RUBIN_REG_SIZE-1)) | ||
#define LOWER_BITS_RUBIN ((((long) 1)<<(RUBIN_REG_SIZE-1))-1) | ||
|
||
|
||
struct rubin_state { | ||
unsigned long p; | ||
unsigned long q; | ||
unsigned long rec_q; | ||
long bit_number; | ||
struct pushpull pp; | ||
int bit_divider; | ||
int bits[8]; | ||
}; | ||
|
||
#define BIT_DIVIDER_MIPS 1043 | ||
static int bits_mips[8] = { 277,249,290,267,229,341,212,241}; /* mips32 */ | ||
|
||
#include <linux/errno.h> | ||
|
||
struct pushpull { | ||
unsigned char *buf; | ||
unsigned int buflen; | ||
unsigned int ofs; | ||
unsigned int reserve; | ||
}; | ||
|
||
|
||
static inline void init_pushpull(struct pushpull *pp, char *buf, unsigned buflen, unsigned ofs, unsigned reserve) | ||
{ | ||
pp->buf = buf; | ||
pp->buflen = buflen; | ||
pp->ofs = ofs; | ||
pp->reserve = reserve; | ||
} | ||
|
||
static inline int pushbit(struct pushpull *pp, int bit, int use_reserved) | ||
{ | ||
if (pp->ofs >= pp->buflen - (use_reserved?0:pp->reserve)) { | ||
return -ENOSPC; | ||
} | ||
|
||
if (bit) { | ||
pp->buf[pp->ofs >> 3] |= (1<<(7-(pp->ofs &7))); | ||
} | ||
else { | ||
pp->buf[pp->ofs >> 3] &= ~(1<<(7-(pp->ofs &7))); | ||
} | ||
pp->ofs++; | ||
|
||
return 0; | ||
} | ||
|
||
static inline int pushedbits(struct pushpull *pp) | ||
{ | ||
return pp->ofs; | ||
} | ||
|
||
static inline int pullbit(struct pushpull *pp) | ||
{ | ||
int bit; | ||
|
||
bit = (pp->buf[pp->ofs >> 3] >> (7-(pp->ofs & 7))) & 1; | ||
|
||
pp->ofs++; | ||
return bit; | ||
} | ||
|
||
static inline int pulledbits(struct pushpull *pp) | ||
{ | ||
return pp->ofs; | ||
} | ||
|
||
|
||
static void init_rubin(struct rubin_state *rs, int div, int *bits) | ||
{ | ||
int c; | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
/* | ||
* JFFS2 -- Journalling Flash File System, Version 2. | ||
* | ||
* Copyright (C) 2001-2003 Red Hat, Inc. | ||
* Copyright © 2001-2007 Red Hat, Inc. | ||
* | ||
* Created by David Woodhouse <[email protected]> | ||
* | ||
* For licensing information, see the file 'LICENCE' in this directory. | ||
* | ||
* $Id: compr_zlib.c,v 1.32 2005/11/07 11:14:38 gleixner Exp $ | ||
* | ||
*/ | ||
|
||
#if !defined(__KERNEL__) && !defined(__ECOS) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
/* | ||
* JFFS2 -- Journalling Flash File System, Version 2. | ||
* | ||
* Copyright (C) 2001-2003 Red Hat, Inc. | ||
* Copyright © 2001-2007 Red Hat, Inc. | ||
* | ||
* Created by David Woodhouse <[email protected]> | ||
* | ||
* For licensing information, see the file 'LICENCE' in this directory. | ||
* | ||
* $Id: debug.c,v 1.12 2005/11/07 11:14:39 gleixner Exp $ | ||
* | ||
*/ | ||
|
||
#include <linux/kernel.h> | ||
#include <linux/types.h> | ||
#include <linux/pagemap.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
/* | ||
* JFFS2 -- Journalling Flash File System, Version 2. | ||
* | ||
* Copyright (C) 2001-2003 Red Hat, Inc. | ||
* Copyright © 2001-2007 Red Hat, Inc. | ||
* | ||
* Created by David Woodhouse <[email protected]> | ||
* | ||
* For licensing information, see the file 'LICENCE' in this directory. | ||
* | ||
* $Id: debug.h,v 1.21 2005/11/07 11:14:39 gleixner Exp $ | ||
* | ||
*/ | ||
|
||
#ifndef _JFFS2_DEBUG_H_ | ||
#define _JFFS2_DEBUG_H_ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
/* | ||
* JFFS2 -- Journalling Flash File System, Version 2. | ||
* | ||
* Copyright (C) 2001-2003 Red Hat, Inc. | ||
* Copyright © 2001-2007 Red Hat, Inc. | ||
* | ||
* Created by David Woodhouse <[email protected]> | ||
* | ||
* For licensing information, see the file 'LICENCE' in this directory. | ||
* | ||
* $Id: dir.c,v 1.90 2005/11/07 11:14:39 gleixner Exp $ | ||
* | ||
*/ | ||
|
||
#include <linux/kernel.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
/* | ||
* JFFS2 -- Journalling Flash File System, Version 2. | ||
* | ||
* Copyright (C) 2001-2003 Red Hat, Inc. | ||
* Copyright © 2001-2007 Red Hat, Inc. | ||
* | ||
* Created by David Woodhouse <[email protected]> | ||
* | ||
* For licensing information, see the file 'LICENCE' in this directory. | ||
* | ||
* $Id: erase.c,v 1.85 2005/09/20 14:53:15 dedekind Exp $ | ||
* | ||
*/ | ||
|
||
#include <linux/kernel.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
/* | ||
* JFFS2 -- Journalling Flash File System, Version 2. | ||
* | ||
* Copyright (C) 2001-2003 Red Hat, Inc. | ||
* Copyright © 2001-2007 Red Hat, Inc. | ||
* | ||
* Created by David Woodhouse <[email protected]> | ||
* | ||
* For licensing information, see the file 'LICENCE' in this directory. | ||
* | ||
* $Id: file.c,v 1.104 2005/10/18 23:29:35 tpoynor Exp $ | ||
* | ||
*/ | ||
|
||
#include <linux/kernel.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
/* | ||
* JFFS2 -- Journalling Flash File System, Version 2. | ||
* | ||
* Copyright (C) 2001-2003 Red Hat, Inc. | ||
* Copyright © 2001-2007 Red Hat, Inc. | ||
* | ||
* Created by David Woodhouse <[email protected]> | ||
* | ||
* For licensing information, see the file 'LICENCE' in this directory. | ||
* | ||
* $Id: fs.c,v 1.66 2005/09/27 13:17:29 dedekind Exp $ | ||
* | ||
*/ | ||
|
||
#include <linux/capability.h> | ||
|
Oops, something went wrong.