Skip to content

Instantly share code, notes, and snippets.

@Hayao0819
Created September 28, 2024 20:14
Show Gist options
  • Save Hayao0819/eccedf6f02b918839356e58b97fc2046 to your computer and use it in GitHub Desktop.
Save Hayao0819/eccedf6f02b918839356e58b97fc2046 to your computer and use it in GitHub Desktop.
Linux 5.18を3DSに移植できなかった
#
# No change to .config
#
CALL scripts/atomic/check-atomics.sh
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
AR drivers/hwtracing/intel_th/built-in.a
CC drivers/platform/nintendo3ds/ctr_gpio.o
CC drivers/nvmem/core.o
CC drivers/platform/nintendo3ds/ctr_spi.o
CC drivers/platform/nintendo3ds/ctr_tsc.o
CC drivers/platform/nintendo3ds/tsc/touch.o
CC drivers/platform/nintendo3ds/ctr_i2c.o
CC drivers/platform/nintendo3ds/mcu/intc.o
In file included from ./include/linux/vmalloc.h:5,
from ./include/asm-generic/io.h:911,
from ./arch/arm/include/asm/io.h:418,
from ./include/linux/io.h:13,
from drivers/platform/nintendo3ds/ctr_gpio.c:11:
drivers/platform/nintendo3ds/ctr_gpio.c: In function 'ctr_gpio_irqhandler':
drivers/platform/nintendo3ds/ctr_gpio.c:46:27: error: passing argument 1 of 'spinlock_check' from incompatible pointer type [-Wincompatible-pointer-types]
46 | spin_lock_irqsave(&gpio->gpioc.bgpio_lock, flags);
| ^~~~~~~~~~~~~~~~~~~~~~~
| |
| raw_spinlock_t * {aka struct raw_spinlock *}
./include/linux/spinlock.h:242:48: note: in definition of macro 'raw_spin_lock_irqsave'
242 | flags = _raw_spin_lock_irqsave(lock); \
| ^~~~
drivers/platform/nintendo3ds/ctr_gpio.c:46:9: note: in expansion of macro 'spin_lock_irqsave'
46 | spin_lock_irqsave(&gpio->gpioc.bgpio_lock, flags);
| ^~~~~~~~~~~~~~~~~
./include/linux/spinlock.h:322:67: note: expected 'spinlock_t *' {aka 'struct spinlock *'} but argument is of type 'raw_spinlock_t *' {aka 'struct raw_spinlock *'}
322 | static __always_inline raw_spinlock_t *spinlock_check(spinlock_t *lock)
| ~~~~~~~~~~~~^~~~
drivers/platform/nintendo3ds/ctr_gpio.c:54:32: error: passing argument 1 of 'spin_unlock_irqrestore' from incompatible pointer type [-Wincompatible-pointer-types]
54 | spin_unlock_irqrestore(&gpio->gpioc.bgpio_lock, flags);
| ^~~~~~~~~~~~~~~~~~~~~~~
| |
| raw_spinlock_t * {aka struct raw_spinlock *}
./include/linux/spinlock.h:402:64: note: expected 'spinlock_t *' {aka 'struct spinlock *'} but argument is of type 'raw_spinlock_t *' {aka 'struct raw_spinlock *'}
402 | static __always_inline void spin_unlock_irqrestore(spinlock_t *lock, unsigned long flags)
| ~~~~~~~~~~~~^~~~
drivers/platform/nintendo3ds/ctr_gpio.c: In function 'ctr_gpio_irq_toggle':
drivers/platform/nintendo3ds/ctr_gpio.c:73:27: error: passing argument 1 of 'spinlock_check' from incompatible pointer type [-Wincompatible-pointer-types]
73 | spin_lock_irqsave(&gpio->gpioc.bgpio_lock, flags);
| ^~~~~~~~~~~~~~~~~~~~~~~
| |
| raw_spinlock_t * {aka struct raw_spinlock *}
./include/linux/spinlock.h:242:48: note: in definition of macro 'raw_spin_lock_irqsave'
242 | flags = _raw_spin_lock_irqsave(lock); \
| ^~~~
drivers/platform/nintendo3ds/ctr_gpio.c:73:9: note: in expansion of macro 'spin_lock_irqsave'
73 | spin_lock_irqsave(&gpio->gpioc.bgpio_lock, flags);
| ^~~~~~~~~~~~~~~~~
./include/linux/spinlock.h:322:67: note: expected 'spinlock_t *' {aka 'struct spinlock *'} but argument is of type 'raw_spinlock_t *' {aka 'struct raw_spinlock *'}
322 | static __always_inline raw_spinlock_t *spinlock_check(spinlock_t *lock)
| ~~~~~~~~~~~~^~~~
drivers/platform/nintendo3ds/ctr_gpio.c:77:32: error: passing argument 1 of 'spin_unlock_irqrestore' from incompatible pointer type [-Wincompatible-pointer-types]
77 | spin_unlock_irqrestore(&gpio->gpioc.bgpio_lock, flags);
| ^~~~~~~~~~~~~~~~~~~~~~~
| |
| raw_spinlock_t * {aka struct raw_spinlock *}
./include/linux/spinlock.h:402:64: note: expected 'spinlock_t *' {aka 'struct spinlock *'} but argument is of type 'raw_spinlock_t *' {aka 'struct raw_spinlock *'}
402 | static __always_inline void spin_unlock_irqrestore(spinlock_t *lock, unsigned long flags)
| ~~~~~~~~~~~~^~~~
drivers/platform/nintendo3ds/ctr_gpio.c: In function 'ctr_gpio_irq_set_type':
drivers/platform/nintendo3ds/ctr_gpio.c:108:27: error: passing argument 1 of 'spinlock_check' from incompatible pointer type [-Wincompatible-pointer-types]
108 | spin_lock_irqsave(&gpio->gpioc.bgpio_lock, flags);
| ^~~~~~~~~~~~~~~~~~~~~~~
| |
| raw_spinlock_t * {aka struct raw_spinlock *}
./include/linux/spinlock.h:242:48: note: in definition of macro 'raw_spin_lock_irqsave'
242 | flags = _raw_spin_lock_irqsave(lock); \
| ^~~~
drivers/platform/nintendo3ds/ctr_gpio.c:108:9: note: in expansion of macro 'spin_lock_irqsave'
108 | spin_lock_irqsave(&gpio->gpioc.bgpio_lock, flags);
| ^~~~~~~~~~~~~~~~~
./include/linux/spinlock.h:322:67: note: expected 'spinlock_t *' {aka 'struct spinlock *'} but argument is of type 'raw_spinlock_t *' {aka 'struct raw_spinlock *'}
322 | static __always_inline raw_spinlock_t *spinlock_check(spinlock_t *lock)
| ~~~~~~~~~~~~^~~~
drivers/platform/nintendo3ds/ctr_gpio.c:118:32: error: passing argument 1 of 'spin_unlock_irqrestore' from incompatible pointer type [-Wincompatible-pointer-types]
118 | spin_unlock_irqrestore(&gpio->gpioc.bgpio_lock, flags);
| ^~~~~~~~~~~~~~~~~~~~~~~
| |
| raw_spinlock_t * {aka struct raw_spinlock *}
./include/linux/spinlock.h:402:64: note: expected 'spinlock_t *' {aka 'struct spinlock *'} but argument is of type 'raw_spinlock_t *' {aka 'struct raw_spinlock *'}
402 | static __always_inline void spin_unlock_irqrestore(spinlock_t *lock, unsigned long flags)
| ~~~~~~~~~~~~^~~~
make[4]: *** [scripts/Makefile.build:249: drivers/platform/nintendo3ds/ctr_gpio.o] エラー 1
make[4]: *** 未完了のジョブを待っています....
drivers/platform/nintendo3ds/tsc/touch.c:209:12: warning: 'touch_disable' defined but not used [-Wunused-function]
209 | static int touch_disable(struct regmap *map)
| ^~~~~~~~~~~~~
AR drivers/nvmem/built-in.a
make[3]: *** [scripts/Makefile.build:466: drivers/platform/nintendo3ds] エラー 2
make[2]: *** [scripts/Makefile.build:466: drivers/platform] エラー 2
make[2]: *** 未完了のジョブを待っています....
make[1]: *** [Makefile:1843: drivers] エラー 2
make: *** [Makefile:350: __build_one_by_one] エラー 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment