summaryrefslogtreecommitdiffstats
path: root/drivers/staging/silicom
Commit message (Collapse)AuthorAgeFilesLines
* Staging: silicom: bypasslib: remove unused including <linux/version.h>Wei Yongjun2012-11-011-1/+0Star
| | | | | | | | | | Remove including <linux/version.h> that don't need it. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: remove unused including <linux/version.h>Wei Yongjun2012-11-011-1/+0Star
| | | | | | | | | | Remove including <linux/version.h> that don't need it. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: remove code requiring an old LINUX_VERSION_CODEChad Williamson2012-10-292-213/+3Star
| | | | | | | | Remove all code and associated preprocessor logic dependent on an old LINUX_VERSION_CODE since such code is dead for an in-kernel driver. Signed-off-by: Chad Williamson <chad@dahc.us> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: Fix up version.h includesJesper Juhl2012-10-233-2/+1Star
| | | | | | | | | | | drivers/staging/silicom/bypasslib/bplibk.h actually uses stuff from version.h so it should include the header. drivers/staging/silicom/bp_proc.c and drivers/staging/silicom/bypasslib/bypass.c currently include the header but use nothing from it so they don't need to. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: fix up compiler warnings in bp_proc.cGreg Kroah-Hartman2012-10-231-3/+1Star
| | | | | | | | | | This removes the compiler warnings for unused variables and functions in the bp_proc.c file. Cc: Chad Williamson <chad@dahc.us> Cc: Daniel Cotey <puff65537@bansheeslibrary.com> Cc: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: silicom: fix explicit intialization of procfs_dir in bp_proc.cChad Williamson2012-10-231-1/+1
| | | | | | | | Remove explicit intialization of static procfs_dir to NULL, resolving a checkpatch.pl error. Signed-off-by: Chad Williamson <chad@dahc.us> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: silicom: remove unnecessary braces in bp_proc.cChad Williamson2012-10-231-39/+19Star
| | | | | | | | Remove unnecessary braces from single statement blocks in bp_proc.c, resolving checkpatch.pl warnings. Signed-off-by: Chad Williamson <chad@dahc.us> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: silicom: remove parentheses from return statements in bg_proc.cChad Williamson2012-10-231-2/+2
| | | | | | | | Remove unnecessary parentheses from return statements in bg_proc.c to resolve checkpatch.pl errors. Signed-off-by: Chad Williamson <chad@dahc.us> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: silicom: fix C99 comments in bp_proc.cChad Williamson2012-10-231-3/+3
| | | | | | | Fix C99 // comments in bp_proc.c to resolve checkpatch.pl errors. Signed-off-by: Chad Williamson <chad@dahc.us> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: silicom: fix whitespace in bp_proc.cChad Williamson2012-10-231-6/+6
| | | | | | | Remove superfluous spaces in bp_proc.c to resolve checkpatch.pl errors. Signed-off-by: Chad Williamson <chad@dahc.us> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: silicom: pointless check removalAlan Cox2012-10-231-9/+2Star
| | | | | | | bus_info is an array not a pointer. Fix silly if check Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: fix silicom dependencies and build errorsRandy Dunlap2012-09-211-2/+2
| | | | | | | | | | | | | | | Fix kconfig dependencies in silicom. Fixes these build errors: ERROR: "init_net" [drivers/staging/silicom/bypasslib/bypass.ko] undefined! ERROR: "register_netdevice_notifier" [drivers/staging/silicom/bpctl_mod.ko] undefined! ERROR: "unregister_netdevice_notifier" [drivers/staging/silicom/bpctl_mod.ko] undefined! ERROR: "init_net" [drivers/staging/silicom/bpctl_mod.ko] undefined! ERROR: "netdev_info" [drivers/net/mii.ko] undefined! ERROR: "netif_carrier_on" [drivers/net/mii.ko] undefined! ERROR: "netif_carrier_off" [drivers/net/mii.ko] undefined! Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: bp_mod.c: checkpatch cleanups: C99 commentsDaniel Cotey2012-09-191-154/+70Star
| | | | | | | remove code or change to traditional comments Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: bp_mod.c: checkpatch cleanup: fix returnsDaniel Cotey2012-09-191-84/+81Star
| | | | | | | Fix up all the returns to cannonical form, and an ifdef removal Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: checkpatch.pl cleanup: pretty pointersDaniel Cotey2012-09-171-35/+35
| | | | | | | last of the unstylistic pointers cleaned up Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: checkpatch.pl cleanup: pretty pointersDaniel Cotey2012-09-171-41/+41
| | | | | | | pointer style cleanup Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: checkpatch.pl cleanup: pretty pointersDaniel Cotey2012-09-171-33/+33
| | | | | | | more checkpatch cleanups of pointers. Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: checkpatch.pl cleanup: pretty pointersDaniel Cotey2012-09-171-33/+33
| | | | | | | More pointer style cleanup Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: checkpatch.pl cleanup: pretty pointersDaniel Cotey2012-09-171-32/+32
| | | | | | | More notation fixes Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: checkpatch.pl cleanup: pretty pointersDaniel Cotey2012-09-171-23/+23
| | | | | | | first chunk, straighten up the pointer notation Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: checkpatch cleanup: fix includesDaniel Cotey2012-09-171-4/+1Star
| | | | | | | checkpatch fixups Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: checkpatch cleanup: header file whitespaceDaniel Cotey2012-09-171-26/+26
| | | | | | | Finish trailing spaces in libbp_sd.h Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: checkpatch cleanup: header file whitespaceDaniel Cotey2012-09-171-71/+71
| | | | | | | Whack all the line ending spaces so checkpatch.pl is happy. Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: bypass.h: checkpatch whitespaceDaniel Cotey2012-09-171-27/+27
| | | | | | | Remove trailing spaces, second chunk Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: bypass.h: checkpatch whitespaceDaniel Cotey2012-09-171-2/+2
| | | | | | | Remove trailing spaces, first chunk Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: bp_mod.h: checkpatch tab and space cleanupDaniel Cotey2012-09-171-5/+5
| | | | | | | twelfth chunk of bp_mod.h's cleanup Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: bp_mod.h: checkpatch tab and space cleanupDaniel Cotey2012-09-171-22/+22
| | | | | | | eleventh chunk of bp_mod.h's cleanup Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: bp_mod.h: checkpatch tab and space cleanupDaniel Cotey2012-09-171-16/+16
| | | | | | | tenth chunk of bp_mod.h's cleanup Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: bp_mod.h: checkpatch tab and space cleanupDaniel Cotey2012-09-171-24/+24
| | | | | | | ninth chunk of bp_mod.h's cleanup Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: bp_mod.h: checkpatch tab and space cleanupDaniel Cotey2012-09-171-15/+15
| | | | | | | eighth chunk of bp_mod.h's cleanup Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: bp_mod.h: checkpatch tab and space cleanupDaniel Cotey2012-09-171-27/+27
| | | | | | | seventh chunk of bp_mod.h's cleanup Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: bp_mod.h: checkpatch tab and space cleanupDaniel Cotey2012-09-171-5/+5
| | | | | | | sixth chunk of bp_mod.h's cleanup Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: bp_mod.h: checkpatch tab and space cleanupDaniel Cotey2012-09-171-6/+6
| | | | | | | fifth chunk of bp_mod.h's cleanup Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: bp_mod.h: checkpatch tab and space cleanupDaniel Cotey2012-09-171-15/+15
| | | | | | | fourth chunk of bp_mod.h's cleanup Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: bp_mod.h: checkpatch tab and space cleanupDaniel Cotey2012-09-171-13/+13
| | | | | | | third chunk of bp_mod.h's cleanup Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: bp_mod.h: checkpatch tab and space cleanupDaniel Cotey2012-09-171-8/+8
| | | | | | | second chunk of bp_mod.h's cleanup Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: bp_mod.h: checkpatch tab and space cleanupDaniel Cotey2012-09-171-3/+3
| | | | | | | first chunk of bp_mod.h's cleanup Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: silicom: fix a comparing proc_dir_entry pointer against 0Devendra Naga2012-09-171-3/+1Star
| | | | | | | | | we should be using the NULL macro, not 0 to compare against a pointer value, and also remove braces around the single if conditional after the create_proc_entry Signed-off-by: Devendra Naga <devendra.aaru@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: use kstrtoint_from_user()Dan Carpenter2012-09-171-22/+10Star
| | | | | | | | | | The main problem with the hand rolled code was that there weren't any range checks so you could corrupt memory by writing too much data to the proc file. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: add some range checks to proc functionsDan Carpenter2012-09-171-0/+24
| | | | | | | | | If you tried to cat more than 255 characters (the last character is for the terminator) to these proc files then it would corrupt kernel memory. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: remove S_IWOTH from proc declarationDan Carpenter2012-09-122-4/+2Star
| | | | | | | | We don't need these to be world writable or group writable. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Cc: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: checkpatch cleanup: header tabs n spacesDaniel Cotey2012-09-111-36/+36
| | | | | | | Fix defines to comply with style guidelines Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: minor cleanup: remove unused defineDaniel Cotey2012-09-112-2/+0Star
| | | | | | | DEVICE_NODE not used Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: checkpatch: cleanup macrosDaniel Cotey2012-09-111-10/+11
| | | | | | | Fix msec_delay_bp macro formatting Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: Header-cleanupDanielC2012-09-112-2/+1Star
| | | | | | | Staging: silicom: Header cleanup of WD_STEP_COUNT_GET Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: Force depend on moduleDanielC2012-09-102-1/+5
| | | | | | | | Staging: silicom: Force depend on module until monolithic build fixed Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: C99 cleanup of libbp_sd.hDanielC2012-09-081-27/+27
| | | | | Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: C99 cleanup of bypass.hDanielC2012-09-081-29/+29
| | | | | Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: silicom: C99 cleanup of bp_ioctl.hDanielC2012-09-081-32/+32
| | | | | Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: add Silicom Bypass driverDanielC2012-09-0816-0/+13379
The Silicom Bypass Network Interface Cards (NICs) are network cards with paired ports (2 or 4). The pairs either act as a "wire" allowing the network packets to pass or insert the device in between the two ports. When paired with the on-board hardware watchdog or other failsafe, they provide high availability for the network in the face of software outages or maintenance. Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>