New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix tests and build for kernels >= 4.15.0 #121
Conversation
module/evdi_debug.h
Outdated
@@ -19,9 +19,13 @@ | |||
|
|||
extern unsigned int evdi_loglevel; | |||
|
|||
// This definition is to get checkpatch.pl to stop complaining. | |||
// TODO: Refactor all this to use pr_<level> and dev_dbg and stuff. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could be wildly off base with this TODO?
Worked for me. Thanks a lot |
I compiled but i get an error on linux-ck-ivy kernel DKMS: install completed. |
I suspect your error is unrelated to this PR, but what's in the |
[code] |
Ok, that does sound related. Can you look at static struct drm_encoder *evdi_best_single_encoder(struct drm_connector
*connector)
{
int enc_id = connector->encoder_ids[0];
return drm_encoder_find(connector->dev,
#if KERNEL_VERSION(4, 15, 0) <= LINUX_VERSION_CODE
NULL,
#endif
enc_id);
} |
Linux now requires this to build. https://patchwork.kernel.org/patch/10059179/
Linux now has some uninitialized struct fields. EVDI will fail to build if this is treated as an error. ``` Building modules, stage 2. MODPOST 1 modules CC /home/travis/build/mintel/evdi/module/evdi.mod.o /home/travis/build/mintel/evdi/module/evdi.mod.c:15:2: error: missing initializer for field ‘num_orcs’ of ‘struct mod_arch_specific’ [-Werror=missing-field-initializers] .arch = MODULE_ARCH_INIT, ^ In file included from ./include/linux/module.h:24:0, from /home/travis/build/mintel/evdi/module/evdi.mod.c:1: ./arch/x86/include/asm/module.h:10:15: note: ‘num_orcs’ declared here unsigned int num_orcs; ^ ```
checkpatch.pl has several checks related to `printk`. Use printk via macro to get around them.
Any idea when this will enter a release? It's been sat here for ages ... I'd really like to update my kernel without my displays breaking :/ |
@displaylink-mlukaszek any chance you could take a look at this? |
This seems to have been fixed in v1.5.0.2... somehow. My commit that actually makes the fix seems to be gone, so I'm guessing history editing is involved. |
This is basically a duplicate of #118, but with @xblitz's comment applied. Fixes #117. Also gets Travis-CI tests passing.
I'm a little uncertain about my test fixes; this is the first time I've worked with anything Linux kernel-related.