Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tapasco
tapasco
Commits
1ede7604
Commit
1ede7604
authored
Dec 28, 2017
by
Jens Korinth
Browse files
Fixes
#130
- VC709: Driver does not build in driver_debug mode
parent
47d5f9d7
Pipeline
#62
passed with stage
in 2 minutes and 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
platform/vc709/module/char_device_user.c
View file @
1ede7604
...
...
@@ -114,7 +114,6 @@ static ssize_t user_read(struct file *filp, char __user *buf, size_t count, loff
uint32_t
i
,
err
=
0
;
uint32_t
static_buffer
[
STATIC_BUFFER_SIZE
],
*
copy_buffer
;
bool
use_dynamic
=
false
;
fflink_notice
(
"Called for device minor %d
\n
"
,
((
struct
priv_data_struct
*
)
filp
->
private_data
)
->
minor
);
copy_buffer
=
static_buffer
;
...
...
@@ -178,7 +177,6 @@ static ssize_t user_write(struct file *filp, const char __user *buf, size_t coun
struct
user_rw_params
params
;
uint32_t
i
,
err
=
0
,
static_buffer
[
STATIC_BUFFER_SIZE
],
*
copy_buffer
;
bool
use_dynamic
=
false
;
fflink_notice
(
"Called for device minor %d
\n
"
,
((
struct
priv_data_struct
*
)
filp
->
private_data
)
->
minor
);
copy_buffer
=
static_buffer
;
...
...
@@ -246,7 +244,6 @@ static long user_ioctl(struct file *filp, unsigned int ioctl_num, unsigned long
int
irq_counter
;
struct
priv_data_struct
*
p
=
(
struct
priv_data_struct
*
)
filp
->
private_data
;
struct
user_ioctl_params
params
;
fflink_notice
(
"Called for device minor %d
\n
"
,
p
->
minor
);
if
(
_IOC_SIZE
(
ioctl_num
)
!=
sizeof
(
struct
user_ioctl_params
))
{
fflink_warn
(
"Wrong size to read out registers %d vs %ld
\n
"
,
_IOC_SIZE
(
ioctl_num
),
sizeof
(
struct
user_ioctl_params
));
...
...
@@ -293,8 +290,6 @@ static long user_ioctl(struct file *filp, unsigned int ioctl_num, unsigned long
* */
static
int
user_mmap
(
struct
file
*
filp
,
struct
vm_area_struct
*
vma
)
{
fflink_notice
(
"Called for device minor %d
\n
"
,
((
struct
priv_data_struct
*
)
filp
->
private_data
)
->
minor
);
return
0
;
}
...
...
@@ -495,8 +490,6 @@ int char_user_register(void)
}
}
fflink_notice
(
"Called for device (<%d,%d>)
\n
"
,
imajor
(
inode
),
iminor
(
inode
));
/* check if ID core is readable */
hw_id
=
pcie_readl
((
void
*
)
HW_ID_ADDR
);
if
(
hw_id
!=
HW_ID_MAGIC
)
{
...
...
Jens Korinth
@jk
mentioned in issue
#130 (closed)
·
Dec 28, 2017
mentioned in issue
#130 (closed)
mentioned in issue #130
Toggle commit list
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