Skip to content

readq/writeq are not defined in ARCH=i386 #377

Closed

Description

@plbossart

This is reported by 0-day:

make  ARCH=i386
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CC      sound/soc/sof/intel/hda.o
sound/soc/sof/intel/hda.c: In function ‘hda_dsp_write64’:
sound/soc/sof/intel/hda.c:61:2: error: implicit declaration of function ‘writeq’; did you mean ‘writel’? [-Werror=implicit-function-declaration]
  writeq(value, addr);
  ^~~~~~
  writel
sound/soc/sof/intel/hda.c: In function ‘hda_dsp_read64’:
sound/soc/sof/intel/hda.c:66:9: error: implicit declaration of function ‘readq’; did you mean ‘readl’? [-Werror=implicit-function-declaration]
  return readq(addr);
         ^~~~~
         readl

We need to fix the compilation issues, even if we actually use 64-bit mode in actual products

Config (renamed to make github happy)
dot.config.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions