From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CEAFC2904 for ; Thu, 11 Aug 2022 07:36:35 +0000 (UTC) Received: by mail-wr1-f44.google.com with SMTP id j1so20401768wrw.1 for ; Thu, 11 Aug 2022 00:36:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc; bh=Q+M/Ei4z/9flNNflHidTkNITO8TheJ0Nv943Fts2T+A=; b=LVCH/Ij3Py21juhGxn1b+F6rrhGeClY5kgx0BI50aSwOxC7SW+pr5zxFIcPg07AuSg W7wDN3nCzN1mwDvntQqzrsuVqOksRF0+JKghyafWfZADJxXnJd6pwnOmkKI/dWxv2gvV AnORFv1U/C2OUC5+K4NTay4RdUlfBXXcZNTLf+pVo3zOdp76z2dSzob2E3qxQ2Craj8S vXuPimr5OoB+ksE59Fc7zhiZ6Cnqp28wexBeyPb6dNOCDdzhaRwyCmHJBcCmhHBNrnKs J1K6Ai/oP8+EHSrBJbRjNq1Xb0P67JV1Y4CSaRmXrKBHJwOHnaeqTKU40NGNh0VhkmNf b80w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc; bh=Q+M/Ei4z/9flNNflHidTkNITO8TheJ0Nv943Fts2T+A=; b=LdXm2CkVtZ2oJB0wW1Y+2kjNTs+3rOZd/8JNf+0w4lMoGUqq4jHJ4rG2is0ZtT0Wu/ /3uMv0bN0JgrfwakOoFvLW7iYkBkjkY+6Obz7yU6V7kRM60bTFsq93AQ4uQwcwfqdcnP aZuHE2mtBYYO3869/TctgtpDvWVtr4ToLAEytDV/wfTZidYmW5TLyh6WobvUbfWKsflh Wl0NWWLoRQpPLQt7Td+GLuP3+nVBHntukgnuZAywk9q2u8BtuJvYtjYni0NyKcHA1Em3 MbgqNuA50DfW4WWKJ4cqv72qeJowdVxNaXpAEjvBnbAiwdBqSzeTm4L8+Qh6BZozx3eI +POg== X-Gm-Message-State: ACgBeo2C/QfSq/wJn93ia64+HJ06Mst3YT1zHB5MggbAXjS7XfbwIAvT NWgQUGPNYn80xDJuSjo+2WI= X-Google-Smtp-Source: AA6agR48A2aRx6lCPQhU0oFLhXbucTR2V2Whf6fqL9yZpK447fFs/42nkfgNMdFzeQEJ2kb+1njhZA== X-Received: by 2002:a5d:6d07:0:b0:220:68a1:9ecb with SMTP id e7-20020a5d6d07000000b0022068a19ecbmr19963855wrq.116.1660203394052; Thu, 11 Aug 2022 00:36:34 -0700 (PDT) Received: from debian ([2405:201:8005:8149:e5c9:c0ac:4d82:e94b]) by smtp.gmail.com with ESMTPSA id l3-20020a05600c4f0300b003a4bb3f9bc6sm5142085wmq.41.2022.08.11.00.36.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Aug 2022 00:36:33 -0700 (PDT) Date: Thu, 11 Aug 2022 08:36:24 +0100 From: "Sudip Mukherjee (Codethink)" To: Masahiro Yamada , Michal Marek , Nick Desaulniers Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, Nathan Chancellor , clang-built-linux Subject: mainline build failure for arm64 allmodconfig with clang Message-ID: Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi All, The latest mainline kernel branch fails to build for arm64 allmodconfig with clang. The errors are: sound/soc/sof/ipc3-topology.c:2343:4: error: format specifies type 'unsigned char' but the argument has type 'int' [-Werror,-Wformat] SOF_ABI_MAJOR, SOF_ABI_MINOR, SOF_ABI_PATCH); ^~~~~~~~~~~~~ ./include/linux/dev_printk.h:150:67: note: expanded from macro 'dev_info' dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__) ~~~ ^~~~~~~~~~~ ./include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap' _p_func(dev, fmt, ##__VA_ARGS__); \ ~~~ ^~~~~~~~~~~ ./include/uapi/sound/sof/abi.h:30:23: note: expanded from macro 'SOF_ABI_MAJOR' #define SOF_ABI_MAJOR 3 ^ sound/soc/sof/ipc3-topology.c:2343:19: error: format specifies type 'unsigned char' but the argument has type 'int' [-Werror,-Wformat] SOF_ABI_MAJOR, SOF_ABI_MINOR, SOF_ABI_PATCH); ^~~~~~~~~~~~~ ./include/linux/dev_printk.h:150:67: note: expanded from macro 'dev_info' dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__) ~~~ ^~~~~~~~~~~ ./include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap' _p_func(dev, fmt, ##__VA_ARGS__); \ ~~~ ^~~~~~~~~~~ ./include/uapi/sound/sof/abi.h:31:23: note: expanded from macro 'SOF_ABI_MINOR' #define SOF_ABI_MINOR 23 ^~ sound/soc/sof/ipc3-topology.c:2343:34: error: format specifies type 'unsigned char' but the argument has type 'int' [-Werror,-Wformat] SOF_ABI_MAJOR, SOF_ABI_MINOR, SOF_ABI_PATCH); ^~~~~~~~~~~~~ ./include/linux/dev_printk.h:150:67: note: expanded from macro 'dev_info' dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__) ~~~ ^~~~~~~~~~~ ./include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap' _p_func(dev, fmt, ##__VA_ARGS__); \ ~~~ ^~~~~~~~~~~ ./include/uapi/sound/sof/abi.h:32:23: note: expanded from macro 'SOF_ABI_PATCH' #define SOF_ABI_PATCH 0 ^ 3 errors generated. drivers/ntb/hw/idt/ntb_hw_idt.c:2409:28: error: format specifies type 'unsigned char' but the argument has type 'int' [-Werror,-Wformat] "\t%hhu-%hhu.\t", idx, idx + cnt - 1); ~~~~ ^~~~~~~~~~~~~ %d drivers/ntb/hw/idt/ntb_hw_idt.c:2438:29: error: format specifies type 'unsigned char' but the argument has type 'int' [-Werror,-Wformat] "\t%hhu-%hhu.\t", idx, idx + cnt - 1); ~~~~ ^~~~~~~~~~~~~ %d drivers/ntb/hw/idt/ntb_hw_idt.c:2484:15: error: format specifies type 'unsigned char' but the argument has type 'int' [-Werror,-Wformat] idx, data, src, ndev->peers[src].port); ^~~ 3 errors generated. For both, git bisect points to 0af5cb349a2c ("Merge tag 'kbuild-v5.20' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild") The last good build for arm64 clang was with e394ff83bbca ("Merge tag 'nfsd-6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux") I will be happy to test any patch or provide any extra log if needed. -- Regards Sudip