From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 72726C7EE23 for ; Sun, 28 May 2023 00:10:56 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 526BE204; Sun, 28 May 2023 02:10:03 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 526BE204 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1685232653; bh=UZRnujyyKniRxq6Jza54gh5dPp6YrNQDDwA3s5Cv5WQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=L1cty1VmJTstemVs4ewNsXGHnXbpgc/1/f/p9IffN/bzPJ5q5Sh4kpsqyl53wRqVb tgMGKZSckgkZ0WRS+Rh3BPLMwzA+8r9gXxaLpcw+6fG7HO+j/2pIyquhZX0xwEigSj JVaBi/X5lBELlgF9kjvNDBx5lIihFwy5PGtR0FJU= Received: by alsa1.perex.cz (Postfix, from userid 50401) id F1578F8042F; Sun, 28 May 2023 02:09:53 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 7DB68F80086; Sun, 28 May 2023 02:09:53 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6BD71F8042F; Sun, 28 May 2023 02:09:48 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id B3192F800DF for ; Sun, 28 May 2023 02:09:35 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B3192F800DF Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=WacHRwkF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685232576; x=1716768576; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=UZRnujyyKniRxq6Jza54gh5dPp6YrNQDDwA3s5Cv5WQ=; b=WacHRwkFOZOWRoWu/KruoBSQeH0v83k4A1woCK3vkfAdBQCAbP/J5WQ7 3RVfL2ifGVSHZ/ELM7n1v7w0lDXGZyqIQygoYapFDT71EtkX6Lc2y+bQ1 jricXS/m3Omuo0s7gm2LvfzN0qNNDT9xJExlDlP+wZTYItpzSs86SOpaq P7AFHSiU7rzTXAK1Wd7XXun9Qm1270u1wLq0RDX4zMTeFc1GoK2fBtvlH LTQoZbRlB1GJMzVaRQqG/E1k/sQROBTf15ME84WXyeQj6J9fhmkZ8f7eG gDEHyMuLPvoPeG+mZwq4U43Hv3hMOSZXeShwImGm2B3pR4McBk15boQaG A==; X-IronPort-AV: E=McAfee;i="6600,9927,10723"; a="334815474" X-IronPort-AV: E=Sophos;i="6.00,198,1681196400"; d="scan'208";a="334815474" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 May 2023 17:09:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10723"; a="849932955" X-IronPort-AV: E=Sophos;i="6.00,198,1681196400"; d="scan'208";a="849932955" Received: from lkp-server01.sh.intel.com (HELO dea6d5a4f140) ([10.239.97.150]) by fmsmga001.fm.intel.com with ESMTP; 27 May 2023 17:09:29 -0700 Received: from kbuild by dea6d5a4f140 with local (Exim 4.96) (envelope-from ) id 1q33yS-000KGm-2w; Sun, 28 May 2023 00:09:28 +0000 Date: Sun, 28 May 2023 08:08:50 +0800 From: kernel test robot To: Oswald Buddenhagen , alsa-devel@alsa-project.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Takashi Iwai , Jaroslav Kysela Subject: Re: [PATCH 3/6] ALSA: emu10k1: actually disassemble DSP instructions in /proc Message-ID: <202305280731.yycJIsaL-lkp@intel.com> References: <20230526101659.437969-4-oswald.buddenhagen@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230526101659.437969-4-oswald.buddenhagen@gmx.de> Message-ID-Hash: LSOBHOKX2U4JDIKE6H3Q6SIPF4TRAC4P X-Message-ID-Hash: LSOBHOKX2U4JDIKE6H3Q6SIPF4TRAC4P X-MailFrom: lkp@intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Hi Oswald, kernel test robot noticed the following build warnings: [auto build test WARNING on tiwai-sound/for-next] [also build test WARNING on tiwai-sound/for-linus linus/master v6.4-rc3 next-20230525] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Oswald-Buddenhagen/ALSA-emu10k1-hide-absent-2nd-pointer-offset-register-set-from-proc/20230526-182102 base: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next patch link: https://lore.kernel.org/r/20230526101659.437969-4-oswald.buddenhagen%40gmx.de patch subject: [PATCH 3/6] ALSA: emu10k1: actually disassemble DSP instructions in /proc config: x86_64-randconfig-a014-20230528 (https://download.01.org/0day-ci/archive/20230528/202305280731.yycJIsaL-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) reproduce (this is a W=1 build): mkdir -p ~/bin wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/13e0e28f29ed98ae73420158c2a879c4e32c694a git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Oswald-Buddenhagen/ALSA-emu10k1-hide-absent-2nd-pointer-offset-register-set-from-proc/20230526-182102 git checkout 13e0e28f29ed98ae73420158c2a879c4e32c694a # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash sound/pci/emu10k1/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202305280731.yycJIsaL-lkp@intel.com/ All warnings (new ones prefixed by >>): >> sound/pci/emu10k1/emuproc.c:417:41: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] " " + 30 - clamp(65 - len, 0, 30), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ include/sound/info.h:107:54: note: expanded from macro 'snd_iprintf' seq_printf((struct seq_file *)(buf)->buffer, fmt, ##args) ^~~~ sound/pci/emu10k1/emuproc.c:417:41: note: use array indexing to silence this warning " " + 30 - clamp(65 - len, 0, 30), ^ & [ include/sound/info.h:107:54: note: expanded from macro 'snd_iprintf' seq_printf((struct seq_file *)(buf)->buffer, fmt, ##args) ^ 1 warning generated. vim +/int +417 sound/pci/emu10k1/emuproc.c 380 381 static void snd_emu10k1_proc_acode_read(struct snd_info_entry *entry, 382 struct snd_info_buffer *buffer) 383 { 384 u32 pc; 385 struct snd_emu10k1 *emu = entry->private_data; 386 static const char * const insns[16] = { 387 "MAC0", "MAC1", "MAC2", "MAC3", "MACINT0", "MACINT1", "ACC3", "MACMV", 388 "ANDXOR", "TSTNEG", "LIMITGE", "LIMITLT", "LOG", "EXP", "INTERP", "SKIP", 389 }; 390 391 snd_iprintf(buffer, "FX8010 Instruction List '%s'\n", emu->fx8010.name); 392 snd_iprintf(buffer, " Code dump :\n"); 393 for (pc = 0; pc < (emu->audigy ? 1024 : 512); pc++) { 394 u32 low, high; 395 int len; 396 char buf[100]; 397 char *bufp = buf; 398 399 low = snd_emu10k1_efx_read(emu, pc * 2); 400 high = snd_emu10k1_efx_read(emu, pc * 2 + 1); 401 if (emu->audigy) { 402 bufp += sprintf(bufp, " %-7s ", insns[(high >> 24) & 0x0f]); 403 bufp += disasm_audigy_reg(bufp, (high >> 12) & 0x7ff, ""); 404 bufp += disasm_audigy_reg(bufp, (high >> 0) & 0x7ff, ", "); 405 bufp += disasm_audigy_reg(bufp, (low >> 12) & 0x7ff, ", "); 406 bufp += disasm_audigy_reg(bufp, (low >> 0) & 0x7ff, ", "); 407 } else { 408 bufp += sprintf(bufp, " %-7s ", insns[(high >> 20) & 0x0f]); 409 bufp += disasm_sblive_reg(bufp, (high >> 10) & 0x3ff, ""); 410 bufp += disasm_sblive_reg(bufp, (high >> 0) & 0x3ff, ", "); 411 bufp += disasm_sblive_reg(bufp, (low >> 10) & 0x3ff, ", "); 412 bufp += disasm_sblive_reg(bufp, (low >> 0) & 0x3ff, ", "); 413 } 414 len = (int)(ptrdiff_t)(bufp - buf); 415 snd_iprintf(buffer, "%s %s /* 0x%04x: 0x%08x%08x */\n", 416 buf, > 417 " " + 30 - clamp(65 - len, 0, 30), 418 pc, high, low); 419 } 420 } 421 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki