Received: by 2002:ab2:23c8:0:b0:1f2:fdbc:cb93 with SMTP id a8csp189533lqe; Wed, 27 Mar 2024 02:54:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV7iy0EAnQi+GHLnL6YYvT9+k/QDv3nPux3c8SjvJkKZWa2HyZHm8tdH6/NAgzUXZ0FtjFXAd4umeVE5mmBP6vV3tssOjqrG0SczoJlpQ== X-Google-Smtp-Source: AGHT+IHpd/7T/ZxMSH7awMoDG78HainKBcMohRzTLu/oksQJYaRrFTuL/GTAJbgdGJMP7vmcSZMf X-Received: by 2002:a17:907:78d0:b0:a47:3b6a:a29b with SMTP id kv16-20020a17090778d000b00a473b6aa29bmr1508492ejc.13.1711533262225; Wed, 27 Mar 2024 02:54:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711533262; cv=pass; d=google.com; s=arc-20160816; b=inxG4ZEjdQ0MWkaOF8N3UQfL6t28EutV7+vsHxExDWFh1ZDQ1Weze7IZ6T5UvCsEsk CQBNd38FK82oz5+H3ZDPGFbCCDDcGLuTN8Se6ZeGrmWXrD5viZIPsQifqbIkvB3bSH7N waEEiUliJfiQ5jbH5XcBFd5IZBRoICjrTwhBPiHm5Xz9ouuZFuP2M1VCptxfkBveHNlt 8T7yVgadB0xwU1oJnxH1PwH987CR9khNPUBdRZe6WZdvf722v8niIfBaaCWt5KmcId9j MedRh/VXU+jj0aW9KFUL10Hp9V7sirf8ffLgHT9Fg1TKJIhIkB0kOCe3fYXGSJEWgxhH /zjg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature:dkim-signature:dkim-signature:dkim-signature; bh=nYySJVDEu2ItYGQHILPTW390eiYeDpkVRciD4RPI5YM=; fh=yYYXCW62Rgd5LvhwmCgZwBueofjpudDnvGQkQkHwK0c=; b=NcW8PvXjTRgwGxzhGUlJP87Z8EvsdmZUrbHg9AsBA8ZFP2bWYqquj9jVegdhb+pquC aeE79EkGTwjY06XvAvHV5yiv7PtkErRZrnyBcbKPgHi47/MFCe1bUZXtXkCTwbt/+Yvs +olmlvBazskgTrcr0JrkKAmppMACFYI0T9utozu88+NAE564Ad3mkIdDnUDUgJc5i26e SPfG8qZLhEH2VSxZrDxORAGIMeDXvJI/SMyXX731DAfPdmGNgq1nvzlen/A2KZCo2Vna B1Ih0vkMwkDQQ7Xj8xO24mdcd2GXxUf827oUDd4QJenGkPetOCWgstNB/us1qxXSCD01 ZsUw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=qZ2Pkttu; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=qZ2Pkttu; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-120632-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120632-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id hp6-20020a1709073e0600b00a48613140b9si3101217ejc.718.2024.03.27.02.54.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 02:54:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-120632-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=qZ2Pkttu; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=qZ2Pkttu; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-120632-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120632-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C97DA1F284D4 for ; Wed, 27 Mar 2024 09:54:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1620838FA1; Wed, 27 Mar 2024 09:54:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="qZ2Pkttu"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="gG1XQHzO"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="qZ2Pkttu"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="gG1XQHzO" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (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 7B0051CA9C; Wed, 27 Mar 2024 09:54:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711533254; cv=none; b=I8DOqZ2CflYjv91eSGbznQneeGdSY7Qd+6RKoDrag9CDBZ1eLAU77zp6ietafLlT23kSTvq9tpaRlm82P06jTEHwPEACCp0ivxJxdw31CTAFaKLQ/E8tZI8+EYaVxgRpCuRappyqGz77Y62yQGJxI+HlYDgZ/TmktWpStWFuV0A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711533254; c=relaxed/simple; bh=/RSGL1gNTTk+E2Qxud2oSKiTaC1ct0/6iam11UaSoM4=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=ILg52E0p0mzqsuxccXJRdRWOst8jsqBhW1VKaWqDUsAo/j6VjbTF3NdC5t1XIfti03FV4vP8Ger0tVNqPO1cWk5/KVUKutzFoTBUEkWyEvNDI0GBL92LHFk4i+SIkoVXBzneSjDNI+iOGwsINSsL7+pdcYszDY3S1AOPNFyfYU8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=qZ2Pkttu; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=gG1XQHzO; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=qZ2Pkttu; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=gG1XQHzO; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id B9078601E9; Wed, 27 Mar 2024 09:54:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1711533250; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=nYySJVDEu2ItYGQHILPTW390eiYeDpkVRciD4RPI5YM=; b=qZ2PkttutCx3A9rM55tb41fQ0opeVQtVnXNICDaifyiWQ2jrBk7Wpkf56XZi7MUiFBjYig dOS+pMYWboQDTEzoLFbq5MN90hcCMqZLpYhnqTIui3L0e4/6UQg2PTEPOSCB1R5Y0cD5bt Pj3Ty139KnGos/+Nj8TZEfWymm0VRZU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1711533250; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=nYySJVDEu2ItYGQHILPTW390eiYeDpkVRciD4RPI5YM=; b=gG1XQHzOzWGD2lMQFjyWo+j5As2FUbTuYo9fqU3Z/I+zh8rd88Fsp0okf2pfVfGczHGrVx YFRmfQaFYu8O8BAg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1711533250; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=nYySJVDEu2ItYGQHILPTW390eiYeDpkVRciD4RPI5YM=; b=qZ2PkttutCx3A9rM55tb41fQ0opeVQtVnXNICDaifyiWQ2jrBk7Wpkf56XZi7MUiFBjYig dOS+pMYWboQDTEzoLFbq5MN90hcCMqZLpYhnqTIui3L0e4/6UQg2PTEPOSCB1R5Y0cD5bt Pj3Ty139KnGos/+Nj8TZEfWymm0VRZU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1711533250; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=nYySJVDEu2ItYGQHILPTW390eiYeDpkVRciD4RPI5YM=; b=gG1XQHzOzWGD2lMQFjyWo+j5As2FUbTuYo9fqU3Z/I+zh8rd88Fsp0okf2pfVfGczHGrVx YFRmfQaFYu8O8BAg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 4E1411369F; Wed, 27 Mar 2024 09:54:10 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id bs/bEcLsA2ZFHQAAD6G6ig (envelope-from ); Wed, 27 Mar 2024 09:54:10 +0000 Date: Wed, 27 Mar 2024 10:54:12 +0100 Message-ID: <87il1880fv.wl-tiwai@suse.de> From: Takashi Iwai To: Arnd Bergmann Cc: llvm@lists.linux.dev, Johannes Berg , Jaroslav Kysela , Takashi Iwai , Nathan Chancellor , Rob Herring , Arnd Bergmann , Nick Desaulniers , Bill Wendling , Justin Stitt , Jakub Kicinski , Dawei Li , linuxppc-dev@lists.ozlabs.org, alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 8/9] ALSA: aoa: avoid false-positive format truncation warning In-Reply-To: <20240326223825.4084412-9-arnd@kernel.org> References: <20240326223825.4084412-1-arnd@kernel.org> <20240326223825.4084412-9-arnd@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Authentication-Results: smtp-out2.suse.de; none X-Spam-Level: X-Spam-Score: -1.10 X-Spamd-Result: default: False [-1.10 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[outlook.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCPT_COUNT_TWELVE(0.00)[17]; MID_CONTAINS_FROM(1.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[arndb.de:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_CC(0.00)[lists.linux.dev,sipsolutions.net,perex.cz,suse.com,kernel.org,arndb.de,google.com,outlook.com,lists.ozlabs.org,alsa-project.org,vger.kernel.org]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.80)[84.71%] X-Spam-Flag: NO On Tue, 26 Mar 2024 23:38:07 +0100, Arnd Bergmann wrote: > > From: Arnd Bergmann > > clang warns about what it interprets as a truncated snprintf: > > sound/aoa/soundbus/i2sbus/core.c:171:6: error: 'snprintf' will always be truncated; specified size is 6, but format string expands to at least 7 [-Werror,-Wformat-truncation-non-kprintf] > > The actual problem here is that it does not understand the special > %pOFn format string and assumes that it is a pointer followed by > the string "OFn", which would indeed not fit. > > Slightly increasing the size of the buffer to its natural alignment > avoids the warning, as it is now long enough for the correct and > the incorrect interprations. > > Fixes: b917d58dcfaa ("ALSA: aoa: Convert to using %pOFn instead of device_node.name") > Signed-off-by: Arnd Bergmann Applied this one now to sound.git tree. Thanks. Takashi