Giter VIP home page Giter VIP logo

Comments (3)

enjoy-digital avatar enjoy-digital commented on August 23, 2024

Hi @1n3o1,

Can your provide the error message?

Also I would recommend reading https://github.com/enjoy-digital/litex/wiki/Feedback-Contribution-Support#feedback--contribution--support before creating an issue: If you don't share the useful information you have (here error message, specific config, etc...), we'll have to spend time trying to guess what you are doing differently.

from litepcie.

1n3o1 avatar 1n3o1 commented on August 23, 2024

Hi
there is a missing declaration in lite uart :
{
make -C /lib/modules/5.0.0-23-generic/build ARCH=x86_64 CROSS_COMPILE= M=/dir/kernel modules
make[1]: Entering directory '/usr/src/linux-headers-5.0.0-23-generic'
CC [M] /dir/kernel/main.o
/dir/kernel/main.c: In function ‘litepcie_pci_probe’:
/dir/kernel/main.c:978:19: warning: unused variable ‘tty_res’ [-Wunused-variable]
struct resource *tty_res = NULL;
^~~~~~~
LD [M] /dir/kernel/litepcie.o
CC [M] /dir/kernel/liteuart.o
/dir/kernel/liteuart.c: In function ‘liteuart_probe’:
/dir/kernel/liteuart.c:269:18: error: storage size of ‘limit’ isn’t known
struct xa_limit limit;
^~~~~
/dir/kernel/liteuart.c:276:11: error: implicit declaration of function ‘XA_LIMIT’; did you mean ‘INT_LIMIT’? [-Werror=implicit-function-declaration]
limit = XA_LIMIT(0, CONFIG_SERIAL_LITEUART_MAX_PORTS);
^~~~~~~~
INT_LIMIT
/dir/kernel/liteuart.c:284:43: warning: passing argument 3 of ‘xa_alloc’ makes integer from pointer without a cast [-Wint-conversion]
ret = xa_alloc(&liteuart_array, &dev_id, uart, limit, GFP_KERNEL);
^~~~
In file included from ./include/linux/radix-tree.h:31:0,
from ./include/linux/idr.h:15,
from ./include/linux/kernfs.h:14,
from ./include/linux/sysfs.h:16,
from ./include/linux/kobject.h:20,
from ./include/linux/module.h:17,
from /dir/kernel/liteuart.c:10:
./include/linux/xarray.h:757:19: note: expected ‘u32 {aka unsigned int}’ but argument is of type ‘struct liteuart_port *’
static inline int xa_alloc(struct xarray *xa, u32 *id, u32 max, void *entry,
^~~~~~~~
/dir/kernel/liteuart.c:269:18: warning: unused variable ‘limit’ [-Wunused-variable]
struct xa_limit limit;
^~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:291: recipe for target '/dir/kernel/liteuart.o' failed
make[2]: *** [/dir/kernel/liteuart.o] Error 1
Makefile:1606: recipe for target 'module/dir/kernel' failed
make[1]: *** [module/dir/kernel] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.0.0-23-generic'
Makefile:14: recipe for target 'litepcie.ko' failed

}

in short :
error: storage size of ‘limit’ isn’t known
error: implicit declaration of function ‘XA_LIMIT’;

if you try build the new kernel the uart module wont build.

from litepcie.

enjoy-digital avatar enjoy-digital commented on August 23, 2024

Sorry, I took time to write https://github.com/enjoy-digital/litex/wiki/Feedback-Contribution-Support, so please read it and think about your tone before submitting another issue.

from litepcie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.