Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.10 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795997982; b=NgExpTDzAKrTJnDr/+UA39gxkjzbLsUS/v7t4rkrEsO2A6WF3S3h4Kk2D+9zX50LfXNO yFVhjWvJBZFRB2JYlkklGM7U/LYTiS+3YdZQgxDKvk/NWjpiyMPWQULzEnVYfZBikxMEt fQ6Ox28/Cjnq8qqHJT+V8K6poR/rbkQ1yBD9bmhbphUCPzknN7IhFeeEjwwsgXvQh6Yox ODLsKk0oTIfZ5LtVDaC2MmCTZDVtkS0WL5w6ygPTVbeeErMyzuUtkSvvRHti/XOujk6Wj Uj1dUwfcDJ1hSBwAGk5X5cdhGc8bTXWQiYYSeJnripx10D03h1sIT8TI/nni+tEAXWw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795997982; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:User-Agent; bh=9EoSoObvohPFSgGKIKg0/QgrFeT/nWL+/NGRqZW/Jgs=; b=HpT/jWfE2D4j5/smXzsw3Y0x0SP5ClL4Y99Adk/T/ELmuA5FHedQd1rt/JxmKsrf7IWq J0DOTwPKx60DGrYP/6lcBw3aQg5FwlKBPz4QvVFQ2imvpNOyM6AERLtOWn0Z7aiyUQVNV NH5t5wtk3UhW9kgGFWIgTewDcM9B6hTuQyfvbUl5zKySKE16abmrGXyomYrjyrxcqNPCQ Sa6EZq3QQVQNdVNe/n0rrSzpzNHYyYlVYsIZDOXPPSyEf/yssZHqsBZBmu1Zoy1JU+2s9 cV2mGSMK2b9FSBysOltgv55A9o/WmqbWRslP4ZmwkdmkrfbTixG1E7RDRkRVj6O6V2A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=RQDTO638; arc=none smtp.remote-ip=192.198.163.10 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E1D89606A332 for ; Mon, 30 Nov 2026 00:19:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E1D89606A332 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=RQDTO638 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1795997982; x=1827533982; h=date:from:to:cc:subject:message-id; bh=iId1MQyJiH3tkcoYxZLBnDSg/eP1NfuJI9oUniweXL8=; b=RQDTO63872VxGHSsqphq+/444yACvnRe8CBZyAUIwS6tZBXD1xDCf6yC WhEmDNjTbmKZ0AlNb5iZHAHejfu/zo63nb7Jz/wooxfctxb5HEuTxCIW/ jc1m6W4STAoH8SoArv58eTiHj3rkKFMvRBw39Z3Kq4f4JrngCFDGHgHR0 x/Jicg+drGY3Q2/8vtJrpicyTjxvzi628SkR7BYNYPBs4Fio76Vo1yrMN 35/uQxzJrPNpk/tFOdTom0hM0CQciWZTafhnka7N0kHJx4W9rjwYFDcYO bXYo35gJ0erJ4F9ORaYoGE5ifm2BbqX24L7W7NhS6y6aszkT34IPFNlZ5 A==; X-CSE-ConnectionGUID: nEky+U2hRoeve+6gNLeawQ== X-CSE-MsgGUID: ZUfX/lxKRpux7oobuC7lcA== X-IronPort-AV: E=McAfee;i="6800,10657,11981"; a="4709509" X-IronPort-AV: E=Sophos;i="6.27,241,1787036400"; d="scan'208";a="4709509" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2026 16:19:39 -0800 X-CSE-ConnectionGUID: ZlmiEnf7R4aDmQn+bE0WrA== X-CSE-MsgGUID: X6ub03deS46bC5EuxJCMdQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,241,1787036400"; d="scan'208";a="12706787" Received: from igk-lkp-server01.igk.intel.com (HELO 146cf1e082f1) ([10.211.93.152]) by orviesa003.jf.intel.com with ESMTP; 29 Nov 2026 16:19:36 -0800 Received: from kbuild by 146cf1e082f1 with local (Exim 4.98.2) (envelope-from ) id 1xXp7G-000000001By-3IoP; Mon, 30 Nov 2026 00:19:34 +0000 Date: Mon, 30 Nov 2026 01:19:23 +0100 From: kernel test robot To: Sofus Forstreuter Cc: oe-kbuild-all@lists.linux.dev, Janne Grunau Subject: [asahilinux:bits/240-isp 104/104] drivers/media/platform/apple/msr/piodma.c:142:17: error: implicit declaration of function 'readq_relaxed'; did you mean 'readw_relaxed'? Message-ID: <20261130011607.AJ04e3rk-lkp@intel.com> User-Agent: s-nail v14.9.25 X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list tree: https://github.com/AsahiLinux/linux bits/240-isp head: a8d695c590dce32e51a585ee96711819849e01be commit: a8d695c590dce32e51a585ee96711819849e01be [104/104] media: apple: msr: add piodma config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20261130/20261130011607.AJ04e3rk-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 16.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261130/20261130011607.AJ04e3rk-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/20261130011607.AJ04e3rk-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/asm-generic/bug.h:31, from arch/m68k/include/asm/bug.h:32, from include/linux/bug.h:5, from include/linux/thread_info.h:13, from include/asm-generic/preempt.h:5, from ./arch/m68k/include/generated/asm/preempt.h:1, from include/linux/preempt.h:107, from arch/m68k/include/asm/processor.h:11, from include/linux/sched.h:13, from include/linux/ratelimit.h:6, from drivers/media/platform/apple/msr/piodma.c:8: drivers/media/platform/apple/msr/piodma.c: In function 'dbg_registers': >> drivers/media/platform/apple/msr/piodma.c:142:17: error: implicit declaration of function 'readq_relaxed'; did you mean 'readw_relaxed'? [-Wimplicit-function-declaration] 142 | readq_relaxed(ctx->reg + MEM_RD_ADDR)); | ^~~~~~~~~~~~~ include/linux/printk.h:483:33: note: in definition of macro 'printk_index_wrap' 483 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~~~~~~~~ include/linux/printk.h:584:9: note: in expansion of macro 'printk' 584 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~ drivers/media/platform/apple/msr/piodma.c:90:17: note: in expansion of macro 'pr_info' 90 | pr_info("piodma: " fmt, ##args); \ | ^~~~~~~ drivers/media/platform/apple/msr/piodma.c:141:9: note: in expansion of macro 'pio_dbg' 141 | pio_dbg(2, "MEM_RD_ADDR: %#llx\n", | ^~~~~~~ include/linux/kern_levels.h:5:25: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type 'int' [-Wformat=] 5 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/printk.h:483:25: note: in definition of macro 'printk_index_wrap' 483 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~ include/linux/printk.h:584:9: note: in expansion of macro 'printk' 584 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~ include/linux/kern_levels.h:14:25: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ include/linux/printk.h:584:16: note: in expansion of macro 'KERN_INFO' 584 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~ drivers/media/platform/apple/msr/piodma.c:90:17: note: in expansion of macro 'pr_info' 90 | pr_info("piodma: " fmt, ##args); \ | ^~~~~~~ drivers/media/platform/apple/msr/piodma.c:141:9: note: in expansion of macro 'pio_dbg' 141 | pio_dbg(2, "MEM_RD_ADDR: %#llx\n", | ^~~~~~~ include/linux/kern_levels.h:5:25: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type 'int' [-Wformat=] 5 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/printk.h:483:25: note: in definition of macro 'printk_index_wrap' 483 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~ include/linux/printk.h:584:9: note: in expansion of macro 'printk' 584 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~ include/linux/kern_levels.h:14:25: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ include/linux/printk.h:584:16: note: in expansion of macro 'KERN_INFO' 584 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~ drivers/media/platform/apple/msr/piodma.c:90:17: note: in expansion of macro 'pr_info' 90 | pr_info("piodma: " fmt, ##args); \ | ^~~~~~~ drivers/media/platform/apple/msr/piodma.c:143:9: note: in expansion of macro 'pio_dbg' 143 | pio_dbg(2, "MEM_WR_ADDR: %#llx\n", | ^~~~~~~ include/linux/kern_levels.h:5:25: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type 'int' [-Wformat=] 5 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/printk.h:483:25: note: in definition of macro 'printk_index_wrap' 483 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~ include/linux/printk.h:584:9: note: in expansion of macro 'printk' 584 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~ include/linux/kern_levels.h:14:25: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ include/linux/printk.h:584:16: note: in expansion of macro 'KERN_INFO' 584 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~ drivers/media/platform/apple/msr/piodma.c:90:17: note: in expansion of macro 'pr_info' 90 | pr_info("piodma: " fmt, ##args); \ | ^~~~~~~ drivers/media/platform/apple/msr/piodma.c:146:9: note: in expansion of macro 'pio_dbg' 146 | pio_dbg(2, "PIO_RD_ADDR: %#llx\n", | ^~~~~~~ include/linux/kern_levels.h:5:25: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type 'int' [-Wformat=] 5 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/printk.h:483:25: note: in definition of macro 'printk_index_wrap' 483 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~ include/linux/printk.h:584:9: note: in expansion of macro 'printk' 584 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~ include/linux/kern_levels.h:14:25: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ include/linux/printk.h:584:16: note: in expansion of macro 'KERN_INFO' 584 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~ drivers/media/platform/apple/msr/piodma.c:90:17: note: in expansion of macro 'pr_info' 90 | pr_info("piodma: " fmt, ##args); \ | ^~~~~~~ drivers/media/platform/apple/msr/piodma.c:148:9: note: in expansion of macro 'pio_dbg' 148 | pio_dbg(2, "PIO_WR_ADDR: %#llx\n", | ^~~~~~~ drivers/media/platform/apple/msr/piodma.c: In function 'piodma_init': include/linux/kern_levels.h:5:25: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type 'dma_addr_t' {aka 'unsigned int'} [-Wformat=] vim +142 drivers/media/platform/apple/msr/piodma.c > 8 #include 9 #include 10 #include 11 12 #include "piodma.h" 13 14 #define CFG 0x00 15 16 #define IRQ_STS 0x04 17 #define IRQ_EN 0x08 18 #define IRQ_DONE BIT(0) 19 #define IRQ_CMD_PARSE_ERR BIT(1) 20 #define IRQ_SEQ_FIFO_OVERFLOW BIT(2) 21 #define IRQ_AXI_BUS_ERR BIT(3) 22 #define IRQ_BOUNDS_ERR BIT(4) 23 24 #define STATUS 0x0c 25 #define STATUS_CMD_FREE GENMASK(4, 0) 26 #define STATUS_CMD_COMPLETED GENMASK(20, 16) 27 #define STATUS_BUSY BIT(31) 28 29 #define DMA_CFG_MEM_SRC 0x10 30 #define DMA_CFG_MEM_DAT 0x14 31 #define DMA_CFG_MEM_DST 0x18 32 #define DMA_CFG_PIO_RD 0x1c 33 #define DMA_CFG_PIO_WR 0x20 34 35 #define DMA_CFG_PIO_BASE_CNT 4 36 #define DMA_CFG_PIO_BASE_ADDR_LO(i) (0x24 + (i) * 4) 37 #define DMA_CFG_PIO_BASE_ADDR_HI(i) (0xf0 + (i) * 4) 38 39 #define MEM_DST_ADDR_LO 0x44 40 #define MEM_DST_ADDR_HI 0x48 41 42 #define MEM_SRC_ADDR_LO 0x4c 43 #define MEM_SRC_ADDR_HI 0x50 44 45 #define CMD_CTRL 0x54 46 #define CMD_CTRL_RUN BIT(0) 47 #define CMD_CTRL_TYPE GENMASK(2, 1) 48 /* 49 * Uses high bits of CMD_CTX to fill CMD_TAG, might be related to the 50 * seemingly 4 missing DMA_CFG_PIO_BASE_ADDR 51 */ 52 #define CMD_CTRL_CTX1 BIT(3) 53 #define CMD_CTRL_IRQ BIT(4) 54 #define CMD_CTRL_CNT GENMASK(28, 8) 55 56 #define HW_VERSION 0xb4 57 #define ERR 0xc4 58 #define ERR_PARSE_CNT GENMASK(15, 0) 59 60 #define CMD_CTX 0xd8 61 #define CMD_CTX_TAG GENMASK(7, 0) 62 #define DONE_CMD_TAG 0xdc 63 64 #define MEM_RD_ADDR 0x90 65 #define MEM_WR_ADDR 0x98 66 #define PIO_RD_ADDR 0xa0 67 #define PIO_WR_ADDR 0xa8 68 69 enum packet_type { 70 PK_TYPE_RW = 1, 71 PK_TYPE_LINK = 3, 72 }; 73 74 #define PK_TYPE GENMASK(1, 0) 75 #define PK_RW_START GENMASK(17, 2) 76 #define PK_RW_CNT GENMASK(29, 18) 77 #define PK_RW_BASE_SEL GENMASK(31, 30) 78 79 #define PK_LINK_SIZE GENMASK(23, 4) 80 #define PK_LINK_FLAG BIT(26) /* ?? */ 81 82 #define PK_SIZE PAGE_SIZE 83 #define PK_MAX_OFF 0x10000 84 85 int piodebug; 86 module_param(piodebug, int, 0644); 87 88 #define pio_dbg(level, fmt, args...) do { \ 89 if (piodebug >= (level)) \ 90 pr_info("piodma: " fmt, ##args); \ 91 } while (false) 92 93 #define pio_err(fmt, args...) \ 94 pr_err("piodma %s: " fmt, __func__, ##args) 95 96 struct piodma_ctx { 97 void __iomem *reg; 98 const struct resource *res; 99 struct { 100 u32 *cpu; 101 dma_addr_t addr; 102 size_t size; 103 } buf; 104 struct device *dev; 105 size_t cnt; 106 size_t cmd_cnt; 107 size_t base[DMA_CFG_PIO_BASE_CNT]; 108 struct delayed_work err_work; 109 void *cb_prv; 110 void (*cb)(void *prv, enum piodma_completion_status status); 111 }; 112 113 static void dbg_registers(struct piodma_ctx *ctx) 114 { 115 int status = readl_relaxed(ctx->reg + STATUS); 116 int irqstatus = readl_relaxed(ctx->reg + IRQ_STS); 117 int err = readl_relaxed(ctx->reg + ERR); 118 119 pio_dbg(1, "irq: %#x %s%s%s%s%s", irqstatus, 120 irqstatus & IRQ_DONE ? "OK " : "", 121 irqstatus & IRQ_CMD_PARSE_ERR ? "CMD_PARSE_ERR " : "", 122 irqstatus & IRQ_SEQ_FIFO_OVERFLOW ? "FIFO_OVERFLOW " : "", 123 irqstatus & IRQ_AXI_BUS_ERR ? "AXI_BUS_ERR " : "", 124 irqstatus & IRQ_BOUNDS_ERR ? "BOUNDS_ERR " : ""); 125 126 if (err) 127 pio_err("err %#x parse cnt %ld\n", 128 err, FIELD_GET(ERR_PARSE_CNT, err)); 129 130 pio_dbg(2, "status: %#x free %ld completed %ld busy %s\n", 131 status, 132 FIELD_GET(STATUS_CMD_FREE, status), 133 FIELD_GET(STATUS_CMD_COMPLETED, status), 134 FIELD_GET(STATUS_BUSY, status) ? "YES" : "NO"); 135 136 pio_dbg(2, "cfg %#x ctx %#x tag %#x", 137 readl_relaxed(ctx->reg + CFG), 138 readl_relaxed(ctx->reg + CMD_CTX), 139 readl_relaxed(ctx->reg + DONE_CMD_TAG)); 140 141 pio_dbg(2, "MEM_RD_ADDR: %#llx\n", > 142 readq_relaxed(ctx->reg + MEM_RD_ADDR)); 143 pio_dbg(2, "MEM_WR_ADDR: %#llx\n", 144 readq_relaxed(ctx->reg + MEM_WR_ADDR)); 145 146 pio_dbg(2, "PIO_RD_ADDR: %#llx\n", 147 readq_relaxed(ctx->reg + PIO_RD_ADDR)); 148 pio_dbg(2, "PIO_WR_ADDR: %#llx\n", 149 readq_relaxed(ctx->reg + PIO_WR_ADDR)); 150 } 151 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki