staging: lustre: osc: osc_match_base prototype differs from declaration
Steve Guminski authored

The patch updates the prototype in osc_internal.h to match the
enums used in the declaration.

The osc_match_base declaration in lustre/osc/osc_request.c uses
enums for stricter checking on the type and mode parameters:

int osc_match_base(struct obd_export *exp,
                   ...
-->                enum ldlm_type type,
                   union ldlm_policy_data *policy,
-->                enum ldlm_mode mode,
                   ...  int unref)

The prototype in lustre/osc/osc_internal.h instead used unsigned ints:

int osc_match_base(struct obd_export *exp,
                   ...
-->                __u32 type,
                       union ldlm_policy_data *policy,
-->                __u32 mode,
                   ...  int unref);
Signed-off-by: default avatarSteve Guminski <stephenx.guminski@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-8189
Reviewed-on: http://review.whamcloud.com/23167

Reviewed-by: default avatarFrank Zago <fzago@cray.com>
Reviewed-by: default avatarBob Glossman <bob.glossman@intel.com>
Reviewed-by: default avatarJames Simmons <uja.ornl@yahoo.com>
Reviewed-by: default avatarJohn L. Hammond <john.hammond@intel.com>
Reviewed-by: default avatarDmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
7550387a
Name Last commit Last update
Documentation iio: adc: add device tree bindings for Qualcomm PM8xxx ADCs
arch Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
block Merge branch 'for-linus' of git://git.kernel.dk/linux-block
certs certs: Add a secondary system keyring that can be added to dynamically
crypto crypto: testmgr - Use heap buffer for acomp test input
drivers staging: lustre: osc: osc_match_base prototype differs from declaration
firmware WHENCE: use https://linuxtv.org for LinuxTV URLs
fs Merge branch 'stable-4.10' of git://git.infradead.org/users/pcmoore/audit
include Merge tag 'ib-mfd-iio-pwm-4.11' into test
init mm: add PageWaiters indicating tasks are waiting for a page bit
ipc ipc/sem: avoid idr tree lookup for interrupted semop
kernel Merge branch 'stable-4.10' of git://git.infradead.org/users/pcmoore/audit
lib mm: workingset: fix use-after-free in shadow node shrinker
mm mm: workingset: fix use-after-free in shadow node shrinker
net drop_monitor: consider inserted data in genlmsg_end
samples vfio-mdev: fix some error codes in the sample code
scripts gcc-plugins: update gcc-common.h for gcc-7
security Replace <asm/uaccess.h> with <linux/uaccess.h> globally
sound Revert "ALSA: firewire-lib: change structure member with proper type"
tools Merge tag 'iio-for-4.11a' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next
usr kbuild: initramfs cleanup, set target from Kconfig
virt Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Add hch to .get_maintainer.ignore
.gitattributes .gitattributes: set git diff driver for C source code files
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Linux kernel
============

This file was moved to Documentation/admin-guide/README.rst

Please notice that there are several guides for kernel developers and users.
These guides can be rendered in a number of formats, like HTML and PDF.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.