I use a 2.6.32 Kernel. It seems that the function class_device_create() changed.
But I can't find the corresponding function.
New name is device_create(...)
The function and all the class_device stuff were removed.
commit c3b19ff06e0808555403491d61e8f0cbbb53e933
Author: Kay Sievers kay.sievers#vrfy.org
Date: Wed Mar 12 20:47:35 2008 +0100
driver core: remove no longer used "struct class_device"
Signed-off-by: Kay Sievers kay.sievers#vrfy.org
Signed-off-by: Greg Kroah-Hartman gregkh#suse.de
Related
Isn't owner supposed to be part of the net_device structure? I saw threads indicating the macro SET_MODULE_OWNER (which assigned the member) was/is/potentially being deprecated, but I thought I understood that the member would remain in the structure. Did it disappear at some version of the kernel?
Modern kernel git repository doesn't have this change. You can use full kernel history repository to find out the change:
$ git log -S'struct module *owner;' -- include/linux/netdevice.h
shows this commit:
Author: David S. Miller <davem#nuts.ninka.net>
Date: Mon May 19 04:30:48 2003 -0700
[NET]: Fix netdevice unregister races.
Wow, it was 13 years ago, pretty old stuff. Here is the commit itself: link. And the change you are looking for:
- /* open/release and usage marking */
- struct module *owner;
So it looks like (from the patch) that you can just forget about that owner stuff. To figure out the kernel version when this commit was done:
$ git tag --contains 558d700c48 | head -1
which shows v2.6.0. And previous tag is v2.4.0. So it was done between 2.4 and 2.6.
Actually, by googling the patch name, we can find out that it was added exactly in 2.5.70 version.
The same can be done to figure out where SET_MODULE_OWNER has gone. This patch removes it:
Author: Ralf Baechle <ralf#linux-mips.org>
Date: Mon Sep 17 13:11:17 2007 -0700
[NET]: Nuke SET_MODULE_OWNER macro.
And the whole patch can be seen here. Patch was merged in v2.6.24.
My Ruta script runs fine in UIMA project. But the annotation occurrences get reduced when the same scripts are included in a Maven project.
LSQParen ANY+?{-PARTOF(RSQParen)} W{REGEXP("cited",true)} ANY+? RSQParen{->MARK(DZC_CITED,1,5)};
LSQParen W{REGEXP("cited",true)} ANY+? RSQParen{-PARTOF(DZC_CITED)->MARK(DZC_CITED,1,4)};
In Ruta script, the no. of occurrences of DZC_CITED is 34, but in Maven it is 27.
Ex:
Input:
1.Animal Welfare Information Center [Internet]. Beltsville (MD): National
Agricultural Library (US); [updated 2001 Mar 1; cited 2001 Mar 2]. Available from:
http://www.nal.usda.gov/awic/.
2.Nursing World [Internet]. Version 3.2. Washington: American Nurses Association;
c1995-2001 [cited 2001 Mar 12]. Available from: http://www.ana.org.
3.HCMS ON LINE [Internet]. Houston (TX): Harris County Medical Society;
c2000 [updated 2001 Apr 25; cited 2001 May 1]. Available from: http://www.hcms.org.
Uncovered text:
[updated 2001 Mar 1; cited 2001 Mar 2]
[updated 2001 Apr 25; cited 2001 May 1]
Covered text:
[cited 2001 Mar 12]
The question was already answered in the comments.
If the same rules create different amount of annotations in a Ruta Workbench project and in a maven built porject, then most likely the version of the maven dependency to ruta-core and the version of the plugins/feature of the Ruta Workbench do not match. Different versions may result in different annotations since bugs have been fixed in later versions.
DISCLAIMER: I am a developer of UIMA Ruta
I have a strange behaviour while analysing my Java Code.
The analysis is done on a daily basis.
On the first run some issue are identified, so far so good.
After the next run there are issues marked as Fixed.
The Message i got in sonarQube:
Juli 2015 10:33 Uhr Created
Juli 2015 20:30 Uhr Resolution changed to FIXED
Status changed to CLOSED (was OPEN)
But there was no change at this File between the two runs.....
Java: JDK 1.8.0_u45
SonarQube: 5.1.1
Any Idea???
Thanks in advance
Kai
I want to create a patch for a header in order to fix my appveyor build. I used WinMerge to create the following file:
--- C:/Qt/5.3/mingw482_32/include/QtGui/qopengl.h Thu Jun 19 11:08:06 2014
+++ C:/Qt/5.3/mingw482_32/include/QtGui/qopengl2.h Sat Nov 08 11:20:32 2014
## -49,6 +49,7 ##
// Windows always needs this to ensure that APIENTRY gets defined
#if defined(Q_OS_WIN)
# include <QtCore/qt_windows.h>
+# undef MemoryBarrier
#endif
// Note: Mac OSX is a "controlled platform" for OpenGL ABI so we
When running the patch command I get the following result:
C:\Users\Martin\dev\TravisTest>patch -u patch_qopengl c:\Qt\5.3\mingw482_32\include\QtGui\qopengl.h
patch: **** Only garbage was found in the patch input.
What's wrong?
I am generating a log from which I want to remove X startup output which looks like this:
X.Org X Server 1.7.6
Release Date: 2010-03-17
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.31-607-imx51 armv7l Ubuntu
Current Operating System: Linux nvidia 2.6.33.2 #1 SMP PREEMPT Mon May
31 21:38:29 PDT 2010 armv7l
Kernel command line: mem=448M#0M nvmem=64M#448M mem=512M#512M
chipuid=097c81c6425f70d7 vmalloc=320M video=tegrafb
console=ttyS0,57600n8 usbcore.old_scheme_first=1 tegraboot=nand
root=/dev/nfs ip=:::::usb0:on rw tegra_ehci_probe_delay=5000 smp dvfs
tegrapart=recovery:1b80:a00:800,boot:2680:1000:800,environment:3780:40:800,system:38c0:2bc00:800,cache:2f5c0:4000:800,userdata:336c0:c840:800
envsector=3080
Build Date: 23 April 2010 05:19:26PM
xorg-server 2:1.7.6-2ubuntu7 (Bryce Harrington <bryce#ubuntu.com>)
Current version of pixman: 0.16.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Jun 16 19:52:00 2010
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using config directory: "/usr/lib/X11/xorg.conf.d"
Is there any way to do this without manually checking pattern for each line?
Possibly:
sed '1,/^(==) Using config directory: "/d'
Or, possibly:
sed '/^X.Org X Server /,/^(==) Using config directory: "/d'