Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Z
ZIO
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
ZIO
Commits
98285e85
Commit
98285e85
authored
Jun 19, 2012
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TEMP zio-sys.c: attribute_group is not const
Signed-off-by:
Federico Vaga
<
federico.vaga@gmail.com
>
parent
5e9d1fc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
zio-sys.c
zio-sys.c
+5
-5
No files found.
zio-sys.c
View file @
98285e85
...
@@ -926,7 +926,7 @@ static struct attribute *def_bi_attrs_ptr[] = {
...
@@ -926,7 +926,7 @@ static struct attribute *def_bi_attrs_ptr[] = {
NULL
,
NULL
,
};
};
/* default zio groups */
/* default zio groups */
static
const
struct
attribute_group
zio_groups
[]
=
{
static
struct
attribute_group
zio_groups
[]
=
{
{
/* group for all zio object*/
{
/* group for all zio object*/
.
attrs
=
def_device_attrs_ptr
,
.
attrs
=
def_device_attrs_ptr
,
},
},
...
@@ -938,17 +938,17 @@ static const struct attribute_group zio_groups[] = {
...
@@ -938,17 +938,17 @@ static const struct attribute_group zio_groups[] = {
}
}
};
};
/* default groups for most of the zio object */
/* default groups for most of the zio object */
static
const
struct
attribute_group
*
def_device_groups_ptr
[]
=
{
static
struct
attribute_group
*
def_device_groups_ptr
[]
=
{
&
zio_groups
[
0
],
/* group for all zio object*/
&
zio_groups
[
0
],
/* group for all zio object*/
NULL
,
NULL
,
};
};
/* default groups for channel set */
/* default groups for channel set */
static
const
struct
attribute_group
*
def_cset_groups_ptr
[]
=
{
static
struct
attribute_group
*
def_cset_groups_ptr
[]
=
{
&
zio_groups
[
0
],
/* group for all zio object*/
&
zio_groups
[
0
],
/* group for all zio object*/
&
zio_groups
[
1
],
/* cset only group */
&
zio_groups
[
1
],
/* cset only group */
NULL
,
NULL
,
};
};
static
const
struct
attribute_group
*
def_bi_groups_ptr
[]
=
{
static
struct
attribute_group
*
def_bi_groups_ptr
[]
=
{
&
zio_groups
[
2
],
/* bi only group */
&
zio_groups
[
2
],
/* bi only group */
NULL
,
NULL
,
};
};
...
@@ -1231,7 +1231,7 @@ static int zattr_set_create(struct zio_obj_head *head,
...
@@ -1231,7 +1231,7 @@ static int zattr_set_create(struct zio_obj_head *head,
const
struct
zio_sysfs_operations
*
s_op
)
const
struct
zio_sysfs_operations
*
s_op
)
{
{
int
i
,
err
,
a_count
,
g_count
=
0
,
g
=
0
;
int
i
,
err
,
a_count
,
g_count
=
0
,
g
=
0
;
const
struct
attribute_group
**
groups
;
struct
attribute_group
**
groups
;
struct
zio_attribute_set
*
zattr_set
;
struct
zio_attribute_set
*
zattr_set
;
struct
attribute
*
attr
;
struct
attribute
*
attr
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment