staging: lustre: remove unneeded DECLARE_LL_PROC_PPOS_DECL macro
It did nothing, so remove it. Cc: Andreas Dilger <andreas.dilger@intel.com> Cc: Oleg Drokin <oleg.drokin@intel.com> Cc: hpdd-discuss <hpdd-discuss@lists.01.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e4265658ce
commit
30f38472f7
4 changed files with 0 additions and 15 deletions
|
@ -71,8 +71,6 @@ typedef struct ctl_table_header ctl_table_header_t;
|
|||
static int \
|
||||
LL_PROC_PROTO(name) \
|
||||
{ \
|
||||
DECLARE_LL_PROC_PPOS_DECL; \
|
||||
\
|
||||
return proc_call_handler(table->data, write, \
|
||||
ppos, buffer, lenp, \
|
||||
__##name); \
|
||||
|
|
|
@ -88,7 +88,6 @@
|
|||
#define LL_PROC_PROTO(name) \
|
||||
name(ctl_table_t *table, int write, \
|
||||
void __user *buffer, size_t *lenp, loff_t *ppos)
|
||||
#define DECLARE_LL_PROC_PPOS_DECL
|
||||
|
||||
/* helper for sysctl handlers */
|
||||
int proc_call_handler(void *data, int write,
|
||||
|
|
|
@ -151,8 +151,6 @@ int LL_PROC_PROTO(proc_lnet_routes)
|
|||
int ver;
|
||||
int off;
|
||||
|
||||
DECLARE_LL_PROC_PPOS_DECL;
|
||||
|
||||
CLASSERT(sizeof(loff_t) >= 4);
|
||||
|
||||
off = LNET_PROC_HOFF_GET(*ppos);
|
||||
|
@ -278,8 +276,6 @@ int LL_PROC_PROTO(proc_lnet_routers)
|
|||
int ver;
|
||||
int off;
|
||||
|
||||
DECLARE_LL_PROC_PPOS_DECL;
|
||||
|
||||
off = LNET_PROC_HOFF_GET(*ppos);
|
||||
ver = LNET_PROC_VER_GET(*ppos);
|
||||
|
||||
|
@ -638,8 +634,6 @@ int LL_PROC_PROTO(proc_lnet_nis)
|
|||
char *s;
|
||||
int len;
|
||||
|
||||
DECLARE_LL_PROC_PPOS_DECL;
|
||||
|
||||
LASSERT(!write);
|
||||
|
||||
if (*lenp == 0)
|
||||
|
|
|
@ -93,7 +93,6 @@ int LL_PROC_PROTO(proc_memory_alloc)
|
|||
{
|
||||
char buf[22];
|
||||
int len;
|
||||
DECLARE_LL_PROC_PPOS_DECL;
|
||||
|
||||
if (!*lenp || (*ppos && !write)) {
|
||||
*lenp = 0;
|
||||
|
@ -117,7 +116,6 @@ int LL_PROC_PROTO(proc_pages_alloc)
|
|||
{
|
||||
char buf[22];
|
||||
int len;
|
||||
DECLARE_LL_PROC_PPOS_DECL;
|
||||
|
||||
if (!*lenp || (*ppos && !write)) {
|
||||
*lenp = 0;
|
||||
|
@ -141,7 +139,6 @@ int LL_PROC_PROTO(proc_mem_max)
|
|||
{
|
||||
char buf[22];
|
||||
int len;
|
||||
DECLARE_LL_PROC_PPOS_DECL;
|
||||
|
||||
if (!*lenp || (*ppos && !write)) {
|
||||
*lenp = 0;
|
||||
|
@ -165,7 +162,6 @@ int LL_PROC_PROTO(proc_pages_max)
|
|||
{
|
||||
char buf[22];
|
||||
int len;
|
||||
DECLARE_LL_PROC_PPOS_DECL;
|
||||
|
||||
if (!*lenp || (*ppos && !write)) {
|
||||
*lenp = 0;
|
||||
|
@ -188,7 +184,6 @@ int LL_PROC_PROTO(proc_pages_max)
|
|||
int LL_PROC_PROTO(proc_max_dirty_pages_in_mb)
|
||||
{
|
||||
int rc = 0;
|
||||
DECLARE_LL_PROC_PPOS_DECL;
|
||||
|
||||
if (!table->data || !table->maxlen || !*lenp || (*ppos && !write)) {
|
||||
*lenp = 0;
|
||||
|
@ -230,7 +225,6 @@ int LL_PROC_PROTO(proc_max_dirty_pages_in_mb)
|
|||
int LL_PROC_PROTO(proc_alloc_fail_rate)
|
||||
{
|
||||
int rc = 0;
|
||||
DECLARE_LL_PROC_PPOS_DECL;
|
||||
|
||||
if (!table->data || !table->maxlen || !*lenp || (*ppos && !write)) {
|
||||
*lenp = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue