• Home
  • History
  • Annotate
  • only in /drivers/staging/unisys/visorutil/
History log of /drivers/staging/unisys/visorutil/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e3f3b1f2a0f6083e633e1c8269765014cb5e7296 30-Sep-2014 Benjamin Romer <benjamin.romer@unisys.com> staging: unisys: remove timskmodutils.h

Remove the entire timskmodutils.h file as it had a lot of checkpatch.pl
strict warnings and checks, and nearly all of the functions were not used
anywhere.

The unisys_spar_platform variable was moved to timskmod.h. References to the
removed timskmodutils.h were switched to timskmod.h instead. The unused
visor_seq_file_new_buffer() and visor_seq_file_done_buffer() functions defined
in timskmodutils.h were implemented in visorkmodutils.c, so these were removed
as well.

This patch will generate a warning about updating MAINTAINERS, but there does
not seem to be any need for that.

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
isorkmodutils.c
2c5653b7de5ea101dff407fd09840710917aa19b 30-Sep-2014 Benjamin Romer <benjamin.romer@unisys.com> staging: unisys: remove typedef for PERIODIC_WORK

In periodic_work.h, remove the typedef PERIODIC_WORK and replace it with
struct periodic_work, and update functions used to manipulate the
structure to use the new name. The functions used to manipulate the
PERIODIC_WORK type are updated to use the fixed name, corrected for
clarity, and changed to not use periodic_work as the parameter's name.

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
eriodic_work.c
f39100e121273646ae07e380175dbe5b9c6eda41 02-Oct-2014 Chen Gang <gang.chen.5i5j@gmail.com> drivers/staging/unisys: Let all IOMEM related modules depend on HAS_IOMEM

UNISYS_UISLIB, UNISYS_VISORCHIPSET, and UNISYS_VISORUTIL need HAS_IOMEM,
so depend on it. One of related error (with allmodconfig under um):

CC [M] drivers/staging/unisys/uislib/uislib.o
In file included from drivers/staging/unisys/uislib/uislib.c:34:0:
drivers/staging/unisys/include/uisutils.h: In function ‘dbg_ioremap_cache’:
drivers/staging/unisys/include/uisutils.h:88:2: error: implicit declaration of function ‘ioremap_cache’ [-Werror=implicit-function-declaration]
new = ioremap_cache(addr, size);
^
drivers/staging/unisys/include/uisutils.h:88:6: warning: assignment makes pointer from integer without a cast [enabled by default]
new = ioremap_cache(addr, size);
^
drivers/staging/unisys/include/uisutils.h: In function ‘dbg_ioremap’:
drivers/staging/unisys/include/uisutils.h:99:2: error: implicit declaration of function ‘ioremap’ [-Werror=implicit-function-declaration]
new = ioremap(addr, size);
^
drivers/staging/unisys/include/uisutils.h:99:6: warning: assignment makes pointer from integer without a cast [enabled by default]
new = ioremap(addr, size);
^
drivers/staging/unisys/include/uisutils.h: In function ‘dbg_iounmap’:
drivers/staging/unisys/include/uisutils.h:108:2: error: implicit declaration of function ‘iounmap’ [-Werror=implicit-function-declaration]
iounmap(addr);
^

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
config
6905cae3a86f6411b62fda0c7a8e1c0d04eaef88 20-Sep-2014 Catalina Mocanu <catalina.mocanu@gmail.com> staging: unisys: visorutil: remove unnecessary braces

This fixes the following checkpatch.pl warning:
WARNING: braces {} are not necessary for single statement blocks

Signed-off-by: Catalina Mocanu <catalina.mocanu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
rocobjecttree.c
66e24b76865c431361feba2972f5e3e1cff6bf75 25-Jul-2014 Benjamin Romer <benjamin.romer@unisys.com> staging: unisys: fix visorchipset sysfs attribute functions

This patch cleans up the style, error handling, and string handling in the sysfs
functions recently added to visorchipset:

- Use of sscanf() was changed to type-appropriate kstrto*() functions
- error handling was simplified
- the error return value of visorchannel_write() was corrected
- switch use of driver-specific types to kernel types

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
emregion_direct.c
5573e4f6150dd528cbdaf372afac1f01baf27983 26-Jun-2014 Paul Bolle <pebolle@tiscali.nl> staging: unisys: remove unused macros

The macros CONFIG_SPAR_GUEST, GUESTDRIVERBUILD, and NOAUTOVERSION are
defined in Makefiles for the Unisys SPAR driver. They are never used.
Remove the lines that define these macros.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
akefile
3db5540dfd889bc008db3ff2f868cce0f6fb2a04 22-May-2014 Ken Cox <jkc@redhat.com> Staging: unisys: Fix sparse warnings

Fix sparse warnings caused by incorrect references to IO space.

Signed-off-by: Ken Cox <jkc@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
emregion.h
emregion_direct.c
e03e1e39b6d66c11d71c91a080b479fb432e3674 17-May-2014 Masaru Nomura <massa.nomura@gmail.com> staging: unisys: visorutil: Add a blank line

Add a blank line after declarations to meet kernel coding style.

Signed-off-by: Masaru Nomura <massa.nomura@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
harqueue.c
asyproc.c
eriodic_work.c
rocobjecttree.c
37b7e990ff0ac58f8b09b5e8beee7777edbff739 28-Apr-2014 Ken Cox <jkc@redhat.com> Staging: unisys: visorutil: Add MODULE_LICENSE("GPL")

The visorutil module was lacking license info.

Signed-off-by: Ken Cox <jkc@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
isorkmodutils.c
fcd0157ece8a1bf36b877a9c8078ea721678a38b 28-Apr-2014 Ken Cox <jkc@redhat.com> Staging: unisys: detect s-Par firmware

This patch adds support for detection of s-Par firmware by checking for
the hypervisor bit in the CPU capabilities, and then querying the hypervisor
ID cpuid leaf.

This functionality will be used by the unisys drivers to determine if
they are being loaded on an s-Par platform and refuse to load if no
s-Par firmware is present.

This fixes a problem reported from upstream where a panic occurs if the
unisys drivers are loaded on a non s-Par system.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Ken Cox <jkc@redhat.com>
Tested by: Ken Cox <jkc@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
isorkmodutils.c
f6d0c1e62b111bef3be279e4bf1bc2a6d560e205 23-Apr-2014 Benjamin Romer <benjamin.romer@unisys.com> staging: unisys: fix copyright notices

This patch changes all of the various representations of the copyright symbol
to (C).

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
harqueue.c
harqueue.h
asyproc.c
asyproc.h
emregion.h
emregion_direct.c
eriodic_work.c
rocobjecttree.c
isorkmodutils.c
22ad57ba5eacf2611a086379aaa18e456bf2ffbc 19-Mar-2014 Ken Cox <jkc@redhat.com> Staging: unisys: Remove RETINT macro

The RETINT macro included a goto statement which is not allowed in the
kernel.

Signed-off-by: Ken Cox <jkc@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
harqueue.c
5e54c97dab0298cf5479bc1f2d3f42ef5605ce6e 19-Mar-2014 Ken Cox <jkc@redhat.com> Staging: unisys: Remove FAIL macro

The FAIL macro ultimately includes a goto statement which is not allowed
in the kernel.

Signed-off-by: Ken Cox <jkc@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
rocobjecttree.c
d9355f8934a4c54d81a29ae7bd5ae4329c02aa48 19-Mar-2014 Ken Cox <jkc@redhat.com> Staging: unisys: Remove RETPTR macro

The RETPTR macro contained a goto statement which is not allowed in
the kernel.

Signed-off-by: Ken Cox <jkc@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
emregion_direct.c
rocobjecttree.c
isorkmodutils.c
61e03b433d22d9473432e6427c505db986d4681d 19-Mar-2014 Ken Cox <jkc@redhat.com> Staging: unisys: Remove RETBOOL macro

The RETBOOL macro contained a goto statement which is not allowed in
the kernel.

Signed-off-by: Ken Cox <jkc@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
eriodic_work.c
a3acc83a4a2b8e1a6f8f3c5bdcfa3bb5f5f9e338 18-Mar-2014 Silvio F <silvio.fricke@gmail.com> staging: unisys: kmalloc/memset to kzalloc conversation

This patch solves the Coccinelle warning: "kzalloc should be used
instead of kmalloc/memset"

This patch is a fixup for

linux-next: 97a84f1203786985856a0d4b49b1d7cc387238ce
"Staging: unisys: Replace kmalloc/memset with kzalloc"

The ALLOC_CMDRSP #define is after transformation to kzalloc only a
rename for kzalloc and was completly removed.

Signed-off-by: Silvio F <silvio.fricke@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
emregion_direct.c
eriodic_work.c
a7710336596ecf49b3c1572dd40f4ecfefc6c9ab 17-Mar-2014 Ken Cox <jkc@redhat.com> Staging: unisys: visorutil: Clean up sparse warnings in visorutil code

Clean up code to get rid of sparse warnings.

Also fixed variable length arrays declared on the stack by removing
visor_hexDumpToBuffer() and using hex_dump_to_buffer() instead.

Signed-off-by: Ken Cox <jkc@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
rocobjecttree.c
isorkmodutils.c
97a84f1203786985856a0d4b49b1d7cc387238ce 14-Mar-2014 Andreea-Cristina Bernat <bernat.ada@gmail.com> Staging: unisys: Replace kmalloc/memset with kzalloc

This patch solves the Coccinelle warning: "kzalloc should be used instead of
kmalloc/memset".

Signed-off-by: Andreea-Cristina Bernat <bernat.ada@gmail.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
emregion_direct.c
56116b2b09092565d140c0e72596d67a29dcf89c 12-Mar-2014 Iulia Manda <iulia.manda21@gmail.com> staging: unisys: visorutil: Use kzalloc instead of kmalloc with memset

Fix coccinelle warnings of better allocation by using kzalloc.
In these cases, kzalloc is preferred, as kmalloc may fail if it does not find
contiguous memory.

Signed-off-by: Iulia Manda <iulia.manda21@gmail.com>
Acked-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
rocobjecttree.c
927c7927eee73e195afc5b76ffb91bd72e3cb03d 05-Mar-2014 Ken Cox <jkc@redhat.com> staging: unisys: Give exported symbols unique names

Many exported symbols had very generic names. This commit changes the names
so that they will be unique.

Signed-off-by: Ken Cox <jkc@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
harqueue.c
harqueue.h
asyproc.c
asyproc.h
emregion.h
emregion_direct.c
eriodic_work.c
rocobjecttree.c
isorkmodutils.c
0d776fa465e7840d4f9626472217b845c913c526 05-Mar-2014 Ken Cox <jkc@redhat.com> staging: unisys: remove unreferenced utility functions.

A number of functions were used for debug at one time but that code has been
removed.

Signed-off-by: Ken Cox <jkc@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
isorkmodutils.c
9d9baadd4069c77a97bf530abad9ddb74875fe76 04-Mar-2014 Ken Cox <jkc@redhat.com> staging: visorutil driver to provide common functionality to other s-Par drivers

The visorutil module is a support library required by all other s-Par
driver modules. Among its features it abstracts reading, writing, and
manipulating a block of memory.

Signed-off-by: Ken Cox <jkc@redhat.com>
Cc: Ben Romer <sparmaintainer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
config
akefile
harqueue.c
harqueue.h
asyproc.c
asyproc.h
emregion.h
emregion_direct.c
eriodic_work.c
rocobjecttree.c
isorkmodutils.c