summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* misc-modules: faulty: Include <linux/uaccess.h> header for copy_*_user()Javier Martinez Canillas2018-02-251-1/+1
| | | | Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* jiq: Use timer_setup() instead of init_timer()Javier Martinez Canillas2018-02-251-10/+8
| | | | | | The init_timer() function has been deprecated, use timer_setup() instead. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* jiq: Use wait_event_interruptible() instead of interruptible_sleep_on()Javier Martinez Canillas2018-02-251-2/+2
| | | | | | | Use the wait_event_interruptible() function instead of the deprecated interruptible_sleep_on(). Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* misc-modules: silly: Use file_dentry() to get struct file's dentryJavier Martinez Canillas2018-02-251-2/+2
| | | | | | | The struct file doesn't have a struct dentry member anymore, use the macro to get the struct dentry for a struct file. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* misc-modules: jit: Use timer_setup() instead of init_timer()Javier Martinez Canillas2018-02-251-5/+3
| | | | | | The init_timer() function has been deprecated, use timer_setup() instead. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* Don't use absolute path for commands in load/unload scriptsJavier Martinez Canillas2018-02-2520-23/+21
| | | | | | | Just let the shell lookup from the user's $PATH since some tools may not be installed in the absolute path used in the scripts. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* shortprint: Replace init_timer with timer_setupJavier Martinez Canillas2018-02-251-5/+3
| | | | | | | The init_timer() function doesn't exist anymore, use the timer_setup() function instead. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* shortprint: Include <linux/sched/signal.h> header for signal_pending()Javier Martinez Canillas2018-02-251-0/+1
| | | | Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* short: Include <linux/sched/signal.h> header for signal_pending()Javier Martinez Canillas2018-02-251-0/+1
| | | | Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* scull: pipe: Include <linux/sched/signal.h> header for signal_pending()Javier Martinez Canillas2018-02-251-0/+1
| | | | Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* misc-modules: jit: Include <linux/sched/signal.h> header for signal_pending()Javier Martinez Canillas2018-02-251-0/+1
| | | | Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* tty: tiny_tty: Include <linux/sched/signal.h> header for signal_pending()Javier Martinez Canillas2018-02-251-0/+1
| | | | Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
* tiny_tty update for 3.10hwangcc2018-02-251-59/+64
| | | | | | | | 1. checkpatch.pl cleanups. 2. Add init_timer 3. Link tty ports. Signed-off-by: hwangcc <hwangcc@csie.nctu.edu.tw>
* jit.c: checkpatch.pl cleanupshwangcc2018-02-251-26/+26
| | | | Signed-off-by: hwangcc <hwangcc@csie.nctu.edu.tw>
* jiq.c: checkpatch.pl cleanupshwangcc2018-02-251-18/+22
| | | | Signed-off-by: hwangcc <hwangcc@csie.nctu.edu.tw>
* seq.c: checkpatch.pl cleanupshwangcc2018-02-251-7/+9
| | | | Signed-off-by: hwangcc <hwangcc@csie.nctu.edu.tw>
* jiq.c: Don't use create_proc_entryhwangcc2018-02-251-50/+75
| | | | | | | Don't use create_proc_read_entry as that is deprecated, but rather use proc_create and seq_file instead. Signed-off-by: hwangcc <hwangcc@csie.nctu.edu.tw>
* jit.c: Don't use create_proc_entryhwangcc2018-02-251-44/+80
| | | | | | | Don't use create_proc_read_entry as that is deprecated, but rather use proc_create and seq_file instead. Signed-off-by: hwangcc <hwangcc@csie.nctu.edu.tw>
* seq.c: Don't use create_proc_entryhwangcc2018-02-251-3/+1
| | | | | | | Don't use create_proc_entry as that is deprecated, but rather use proc_create instead. Signed-off-by: hwangcc <hwangcc@csie.nctu.edu.tw>
* scull/acces.c: fix typo in device name: "sullpriv -> scullpriv"brabo2018-02-251-1/+1
|
* Merge pull request #20 from coderkaka/masterMatthias Brugger2016-05-091-6/+6
|\ | | | | Fix failure to compile the scull with kernel of version 4.6.0.
| * Fix failure to compile the scull. The return value of current_xid() has ↵coderkaka2016-05-031-6/+6
| | | | | | | | changed in kernel of version 4.6.0
* | Merge pull request #15 from lushl9301/masterMatthias Brugger2016-05-081-3/+2
|\ \ | | | | | | replace kmalloc with kzalloc
| * | replace kmalloc with kzallocLu Shengliang2014-12-311-3/+2
| |/
* | pci: pci_skel: Check return value of pci_enable_deviceMatthias Brugger2016-05-041-1/+4
| | | | | | | | | | | | | | Omit compiler warning, as pci_enable_device needs to get the return value checked. Signed-off-by: Matthias Brugger <mbrugger@suse.com>
* | README: Add newline on end of last lineMatthias Brugger2016-05-041-1/+1
|/ | | | | | | This patch adds a newline at the end of the last line. This makes reading the file via cat more convenient. Signed-off-by: Matthias Brugger <mbrugger@suse.com>
* Merge pull request #7 from ttousai/masterJavier Martinez Canillas2013-12-231-5/+5
|\ | | | | Fixed failure to load scull module and description typo in scull.init.
| * Fixed failure to load scull module and description typo in scull.init.Davis Abubakr-Sadik Nii Nai2013-12-181-5/+5
|/ | | | | | The scull.init initialization file fails to load scull module because it tries to load modules in the configured paths with .o suffix instead of .ko.
* Merge pull request #6 from dhyannataraj/masterJavier Martinez Canillas2013-12-071-0/+17
|\ | | | | Proposial of README.Debian file that explains Debian users how to build examples for current prebuilt linux kernel
| * Proposial of README.Debian file that explains Debian users how to buildNikolay Shaplov2013-12-071-0/+17
| | | | | | | | examples for current prebuilt linux kernel
* | Merge pull request #5 from tatetian/masterJavier Martinez Canillas2013-12-071-1/+1
|\ \ | |/ |/| Fix a memory mapping bug in sbull.c
| * Fix a memory mapping bug in sbull.cHongliang TIAN2013-10-291-1/+1
|/
* lddbus: add member init_name to ldd_bus device declarationLuis Ortega Perez de Villar2013-09-281-2/+2
| | | | | | The member init_name replaces bus_id, a string that identifies the device on the bus. This patch reverts commit bca2bf1d1d28deee3bef691371d9aae2cbbb0f4b
* sbull/sbull.c: block_device_operations->release() should return voidLuis Ortega Perez de Villar2013-09-281-3/+1
| | | | | | | | | | | | The return type of block_device_operations->release() changed from int to void in commit db2a144bedd58b3dcf19950c2f476c58c9f39d18 Fixes the following compiler warning: sbull/sbull.c:313:2: warning: initialization from incompatible pointer type [enabled by default] sbull/sbull.c:313:2: warning: (near initialization for ‘sbull_ops.release’) [enabled by default]
* sbull/sbull.c: sbull_make_request() should return voidLuis Ortega Perez de Villar2013-09-281-1/+0
| | | | | sbull/sbull.c:194:2: warning: ‘return’ with a value, in function returning void [enabled by default]
* sculld: main: Don't use create_proc_read_entry()Luis Ortega Perez de Villar2013-09-281-31/+25
| | | | | Don't use create_proc_read_entry() as it is deprecated, but rather use proc_create() and seq_file instead.
* sculld: Makefile: Declare LDDINC variable earlierLuis Ortega Perez de Villar2013-09-281-1/+2
| | | | | Move the definition of LDDINC earlier into the file. This prevents the following compile time error: implicit declaration of function ‘KBUILD_STR’.
* lddbus: Makefile: Declare LDDINC variable earlierLuis Ortega Perez de Villar2013-09-281-2/+3
| | | | | Move the definition of LDDINC earlier into the file. This prevents the following compile time error: lddbus.h: No such file or directory.
* scullv: main: Don't use create_proc_read_entry()Luis Ortega Perez de Villar2013-09-281-31/+25
| | | | | Don't use create_proc_read_entry() as it is deprecated, but rather use proc_create() and seq_file instead.
* scullv: Makefile: Declare LDDINC variable earlierLuis Ortega Perez de Villar2013-09-281-1/+2
| | | | | Move the definition of LDDINC earlier into the file. This prevents the following compile time error: implicit declaration of function ‘KBUILD_STR’.
* scullp: main: Don't use create_proc_read_entry()Luis Ortega Perez de Villar2013-09-281-31/+25
| | | | | Don't use create_proc_read_entry() as it is deprecated, but rather use proc_create() and seq_file instead.
* scullp: Makefile: Declare LDDINC variable earlierLuis Ortega Perez de Villar2013-09-281-1/+2
| | | | | Move the definition of LDDINC earlier into the file. This prevents the following compile time error: implicit declaration of function ‘KBUILD_STR’.
* scullc: main: Don't use create_proc_read_entry()Luis Ortega Perez de Villar2013-09-281-31/+25
| | | | | Don't use create_proc_read_entry() as it is deprecated, but rather use proc_create() and seq_file instead.
* scullc: Makefile: Declare LDDINC variable earlierLuis Ortega Perez de Villar2013-09-281-1/+2
| | | | | Move the definition of LDDINC earlier into the file. This prevents the following compile time error: implicit declaration of function ‘KBUILD_STR’.
* Merge pull request #3 from luiorpe1/scull-3.10Javier Martinez Canillas2013-08-143-73/+73
|\ | | | | Scull updated for 3.10
| * scull: main | pipe : Fix coding styleLuis Ortega Perez de Villar2013-07-192-32/+32
| | | | | | | | | | Replace white space indentation introduced with the previous patch with 8 characters width TABs to comply with the kernel coding style.
| * scull: pipe: Remove unused commented lineLuis Ortega Perez de Villar2013-07-191-1/+0
| | | | | | | | | | Remove commented line with deprecated create_proc_read_entry call that was forgotten to remove.
| * Don't use create_proc_entry() and create_proc_read_entry()Luis Ortega Perez de Villar2013-07-192-78/+77
| | | | | | | | | | | | Don't use create_proc_entry() and create_proc_read_entry() as they are deprecated, but rather use proc_create() and proc_create_data() respectively and seq_file instead.
| * scull: Makefile: Declare LDDINC variable earlierLuis Ortega Perez de Villar2013-07-181-1/+3
|/ | | | | Move the definition of LDDINC earlier into the file. This prevents the following compile time error: implicit declaration of function ‘KBUILD_STR’.
* README: update project goal according to realityJavier Martinez Canillas2013-04-271-20/+4
| | | | | | | | | | | | | | | | | | | | | | | | The initial goal of this project was to update the LDD3 example drivers to recent kernels so they can be used by students to learn about driver development under Linux. The idea was to not only update the drivers but also add new drivers that show newer kernel facilities that did not exist (or was not common) by the time the LDD3 book was written. Unfortunately I haven't had time to work on this for years so it's better to just try to keep the current drivers building and working. Also, only maintain the master branch that should track Linus master tree. Anyone that is interested on kernel hacking should develop against the latest master tree anyways. If someone needs to use an older kernel version it shouldn't be hard to figure out what commit id could be used for any specific kernel version. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>