Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp973129lqm; Thu, 2 May 2024 01:02:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVWlrYDQraFm9bBMj82O9AWhYwHSfvtdimOqE8Vth09DSlQBDxI+cEABSwaasntA0K5RwwKX+vrQ+VFQGCTHDqRVgoWPCYf07rBTf93Dw== X-Google-Smtp-Source: AGHT+IHaJkUYU0nCnrrF7nJf6GjSYfsrcSVoJFlN2yRFWAhIoSN6QaLLumswv1SRcfIJbxUW3+yD X-Received: by 2002:a05:6512:344e:b0:516:c44a:657d with SMTP id j14-20020a056512344e00b00516c44a657dmr3107914lfr.64.1714636971179; Thu, 02 May 2024 01:02:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714636971; cv=pass; d=google.com; s=arc-20160816; b=kQmH6aEbOMb5ONVlBrBRX/Sx6MWlVOxWC2hjsAixETHyzUieVkO17vyWTTPB+wYxT1 b4BTzUq10EwoBVdgkrgD78IQJ1NcmMOOGzpDtMTOf9Kf99qX7wVUD9jLzwwMS9az8Jrw 3CDPgBZ2VwQUBJcCeec7yUDJKgTdbIRdZZpHEamR0ieW+sGwS03dDT19b97+J15JfnoP 3b23vpMkv1QNkN9z+1QR4jqdxHM3Smp0c3e1gUSqMyjZgJZxSsP1ufEiduXB0bGXBU4J zxaWPW87rjb0IXUB7iUei4wBHmQie9bI2lRUh4UFpmp11zCiVNMbtTeHzr7F6+KvHj5n fnJA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=p9H/wqBVi9vRVe7vBxSwiksXVPFSNUIhqmT3FrZLtFE=; fh=eKXDlg06E0DW6HRxD8fUksY+KBz5cJvqTGAB+biEOO0=; b=d9Y2PEuGJtmzv0saFdzUeMmQ6+ydZ5rEAnjuCTstDHlwQO4wTWtuQkFSfY5rPIxzoH BMf8SWeANJe9i3iMS/xZH0FVMGQUsPHw1YnpMxfxEzaVUuGCepEwU08su1M9q0KoN4Ix ycfOYGSUhS4GKT6p5RqayNhYpoN35ETO2nUlJyvPld1lsJeisr5GT7QwVHvrHDIaa5Ls 5jWjLsTpi6herNOiw3coawZW4O6+gBDj/7ArnUfap2A1xieHKZ6pg379B4dKkPs5rEqD 1gCQly5KHaKmJjiRcn2UH2qKC3C0Rz9rYPCg6Vgzbr/gifhZIFy0oFvS6p6sc7dZ4wsC X6jA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="sm/T+0ui"; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-166089-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166089-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id b13-20020a17090636cd00b00a5931d646a4si256939ejc.10.2024.05.02.01.02.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 01:02:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166089-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="sm/T+0ui"; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-166089-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166089-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk 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 DF6D51F214C4 for ; Thu, 2 May 2024 08:02:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E942228DC3; Thu, 2 May 2024 08:02:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="sm/T+0ui" Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ECEFC200A0; Thu, 2 May 2024 08:02:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714636964; cv=none; b=Gsu9eARGyzknGAvxaVvfADiNIXlTICi/2LiUNIFS/XW7oYO+xsQn23/wbDusM2HpB9a09Dqi+mhmpGbXq9Y7n84i/xVwSS817dA2PdwUbSZt2KCu+lD3JuLnSzR5QxgYl9rszZOAdZYqiivcTwt2vAvo3Lw5QktM+CBaaXCQiQw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714636964; c=relaxed/simple; bh=oPGuPkHhcwOYBGws1FaAuOhDDi3Cpr/qlxKh7ABFSA0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TmLfcEBo4ox8vDTga9Q/tXZiJkl8isOcKmo4lpQt34RF8jKnlZcll/ORX9mjVn+JC5idok5fQpJMVLS1CoA+wstwpWC8qsJSXPUlETPTN2JDMlUZt1Ks159EM6fqWLRlYwNLyAUuyhBHFWLo1kB9HRfjU9Bmyz85bjTAnNkJFL0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=sm/T+0ui; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=p9H/wqBVi9vRVe7vBxSwiksXVPFSNUIhqmT3FrZLtFE=; b=sm/T+0uijlhMJTl12wtc8GNUj6 rvPAruOZTis2rW1LpVm4pcbvdCDk8GbfFPXh7pgP6GBYJOXPYA+PbID7eqsdjNfCbk1f69yX7bRKU WYyA8ohWtXF5Kyp+yyg1wrDMAyEE3GMa58en77DaSWGq2wG9/xBkqKgiHdTWmXR8f4rE+Up8a/zOL wKbOVpT6gUfDsN5opzV0pQMpy5uPl1LeFlRXkQvSlz3V6mwk4Z+VweqUveZ//z/Ri9ASOlGPCXn8k 6VSjuoD3z9/1HPwxxCg1tHBJM8OcwKb+G35SbnWJlCnMIGHT1zhm3kLo2c94FtZWn9YyrOoOJPmxE Ob0cUsoA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:46528) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1s2ROW-0006zn-0n; Thu, 02 May 2024 09:02:20 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1s2ROS-0003UY-MH; Thu, 02 May 2024 09:02:16 +0100 Date: Thu, 2 May 2024 09:02:16 +0100 From: "Russell King (Oracle)" To: Stephen Boyd Cc: linux-arm-kernel@lists.infradead.org, Duanqiang Wen , mturquette@baylibre.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] clkdev: report over-sized strings when creating clkdev entries Message-ID: References: <560549ed7db5da2f2727dc053a5d196d.sboyd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <560549ed7db5da2f2727dc053a5d196d.sboyd@kernel.org> Sender: Russell King (Oracle) On Wed, May 01, 2024 at 06:02:54PM -0700, Stephen Boyd wrote: > Quoting Stephen Boyd (2024-05-01 17:59:16) > > Quoting Russell King (Oracle) (2024-03-15 04:47:55) > > > Report an error when an attempt to register a clkdev entry results in a > > > truncated string so the problem can be easily spotted. > > > > > > Reported by: Duanqiang Wen > > > Signed-off-by: Russell King (Oracle) > > > --- > > > > Applied to clk-next > > > > And backed out because I get a compilation failure > > drivers/clk/clkdev.c: In function 'vclkdev_alloc': > drivers/clk/clkdev.c:182:17: error: function 'vclkdev_alloc' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format] > 182 | res = vsnprintf(cla->dev_id, sizeof(cla->dev_id), dev_fmt, ap); > | ^~~ > cc1: all warnings being treated as errors > make[5]: *** [scripts/Makefile.build:244: drivers/clk/clkdev.o] Error 1 > make[4]: *** [scripts/Makefile.build:485: drivers/clk] Error 2 It builds fine for me. I don't get this _error_, and it's really no different from what it originally was - instead of using vcsnprintf() we're now using vsnprintf(). That should make no difference what so ever. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!