Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp827904lqm; Wed, 1 May 2024 18:03:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU8S1CzQnGA0ve1S/8pVb/e4VtaugX92VUVt4yKzBAEV37rxd83UyXQ9nMnqS0TBY/xOC4I6iDQhO1d1RwSxr0ar3VYZB+1rrinHncIFQ== X-Google-Smtp-Source: AGHT+IEaG85Fba38XJXA2vfZkU5kBEiF8ohyBMv8uAF2Oz8/JgBRPkai3f5PQnR57dytaTU+nF5y X-Received: by 2002:a17:902:f681:b0:1dd:2eed:52a5 with SMTP id l1-20020a170902f68100b001dd2eed52a5mr4940454plg.37.1714611791135; Wed, 01 May 2024 18:03:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714611791; cv=pass; d=google.com; s=arc-20160816; b=OjE58SZ6XfiL2CDgd71EtKT5FWOJMTJvjcfEuT90P2T9eY3jz2Dt+upVwr8YoeixAJ MuGoo4flHROwTHp5QG4YofEI6xaqCq+tDqONBmfrUHytopuxUkzY3AJe4zlRgFc7fBsc jdH7eddm1ZJcXT5WRQIaZFKHwIce9L2I2GwLbFxBHmVsRWDAsS2hultQUcAvWdngl7sk tCF54HG7e3aCx5uchYpnB5nTu17Eho7ZwQnkbgDCzAhAFh81B/Iy2kYbF1sbJ5PEndlL v3IQ17SgD5QdWaNXRk21ydflAn33GruCRxgQvDfDnzsVJMOE/UvoTjEy/uhh2pWWPB0x R6vQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:date:to:cc:from:subject:references:in-reply-to :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:dkim-signature; bh=uta1wZJfp3B+xIZEUtku9XlSyztOvLjEyKppS7x29uY=; fh=7KuhQwajY81FuiSs/+szqSC+9dP3538Tqie9XXpNP+0=; b=dSBUPG1ib3NN/tqTDZ0efBRjcELs/vYDVjl+6Askp8i5zZqBmM5b2OfbtENLa05Sbk 5dCogfhaYZwqtlSQmi6hA8K7aby54a2zYAeakYY9gqaukYw+xcYdipStbkpur4eAZ+nY eQbuSEa5iJhOeS3bUkArZrHdkMyH08XqZSXft81ba1EQ9kukXd6W/1AFuj8Q7LixhQZX PWgKg0j9xD+L/lSzUdXhRhEl6pm2NGqHnU20Z1ljMayGF+ez0cTI+vgZGwucSS3TuBCu u18lbP6oeDqMgcxoNcZh/ZcB1IdDOXkOKkKP+kqxlksjFppAiBjYQlqAU9i6Q7ixYq5r chTw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RvFJNj9S; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-165891-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165891-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id u8-20020a170903124800b001e7d54c8bc2si25814085plh.254.2024.05.01.18.03.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 18:03:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165891-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RvFJNj9S; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-165891-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165891-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DDDDBB20DBA for ; Thu, 2 May 2024 01:03:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 711DB12B77; Thu, 2 May 2024 01:02:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RvFJNj9S" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 99483611E; Thu, 2 May 2024 01:02:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714611777; cv=none; b=IFrP/nd7gK381DVdI3ZWBneniwJD91HrFm2e0Ia3UHNOPNakl5l7XkOCelKpZGsn0bTXVmlXLY/NchjZQaWl8vPq9r4tlGFWgGIyKpS6cyw3SK7TiZEkIGfWJ7RoJM1bVvoAm6l8wS4dxsSPIGISKt/XPIujNICegygSmFlatJo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714611777; c=relaxed/simple; bh=Z4wEUkoqXJ4qv2ctmI0odJVCiqdNUxzglaJ5SXR0EzM=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=VBlKWCA7N/Sm1AOaIuFYz0HNNdoG81O46uo6burzTFqWokCeBuGsu20EwfRAmnC8zxwG7pgDcl2DIlpakZJbwi2xZFbBPjqURVAP7nibC5PV+eS1qmXIm239aCyVi+oMe3VcuLSPON7TTwMmIQFDnZelBpCwNMFcEHe26TplNwU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RvFJNj9S; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED7BCC072AA; Thu, 2 May 2024 01:02:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714611777; bh=Z4wEUkoqXJ4qv2ctmI0odJVCiqdNUxzglaJ5SXR0EzM=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=RvFJNj9Sxn9CGMekWBsimpAU2Ijs+j4atwYU/KYA6eFxPTZZGpAEyDHra4CgUm3w5 2doUiDbNvJQby6m/8wRR0VWELx/7svv5X8fjcuSQPL6JnE0HjFU1qoSyix055o1flj HaOzMacdriwBivnHCir4QH8ifKiP1U85sQoGWh04S97sLq0NzeCJydSnUtfhc7SS0I bxbjumGmXJGjwI3y618Ecttl54ikcqlAnkXETAI5+LsAnWLCEAw3UrMODPioHnGz+f cDjJN8J/CjmZsU63UcN3aM50xcPR6V6v81uIOGoDaxDQPR1KFe0P/q8zKnDpQG2l+A T+OXL1cTx/n0g== Message-ID: <560549ed7db5da2f2727dc053a5d196d.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: Subject: Re: [PATCH] clkdev: report over-sized strings when creating clkdev entries From: Stephen Boyd Cc: Duanqiang Wen , mturquette@baylibre.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org To: Russell King , linux-arm-kernel@lists.infradead.org Date: Wed, 01 May 2024 18:02:54 -0700 User-Agent: alot/0.10 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. > >=20 > > Reported by: Duanqiang Wen > > Signed-off-by: Russell King (Oracle) > > --- >=20 > Applied to clk-next >=20 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 can= didate for 'gnu_printf' format attribute [-Werror=3Dsuggest-attribute=3Dfor= mat] 182 | res =3D 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