• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/bcusdk/0002-eibd-fix-endless-recursion-when-using-USB-backends.patch
Kurt Van DijckKurt Van Dijck committed bc4f5598dcc25 Aug 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From 6bd1b4958e949d83468e053c34bf6c89d14d687a Mon Sep 17 00:00:00 2001
2
From: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
3
Date: Fri, 25 Aug 2017 23:01:14 +0200
4
Subject: [PATCH] eibd: drop local clock_gettime in USB backends
5
​
6
clock_gettime is defined locally, and calls pth_int_time, which
7
in turn calls clock_gettime.
8
The USB backend shouldn't overrule clock_gettime in the first place.
9
This patch fixes this endless recursion by removing the local defition.
10
​
11
Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
12
---
13
 eibd/usb/linux_usbfs.c | 6 ------
14
 1 file changed, 6 deletions(-)
15
​
16
diff --git a/eibd/usb/linux_usbfs.c b/eibd/usb/linux_usbfs.c
17
index c3ec410..957b908 100644
18
--- a/eibd/usb/linux_usbfs.c
19
+++ b/eibd/usb/linux_usbfs.c
20
@@ -52,12 +52,6 @@ int pthread_mutex_trylock(pthread_mutex_t *mutex)
21
    return 0;
22
 }
23
 
24
-int clock_gettime(clockid_t clk_id, struct timespec *tp)
25
-{
26
-   pth_int_time (tp);
27
-   return 0;
28
-}
29
-
30
 /* sysfs vs usbfs:
31
  * opening a usbfs node causes the device to be resumed, so we attempt to
32
  * avoid this during enumeration.
33
-- 
34
1.8.5.rc3
35
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.