Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp836100iob; Thu, 12 May 2022 05:49:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLwbwybzBXycu6t0L2JSHpbNL4iqOa3xTvJfStv6Ut4AAyQ8w/412JiluCog9f4GC4lTFA X-Received: by 2002:a17:903:1d1:b0:15e:9607:d4c9 with SMTP id e17-20020a17090301d100b0015e9607d4c9mr30267532plh.41.1652359749197; Thu, 12 May 2022 05:49:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652359749; cv=none; d=google.com; s=arc-20160816; b=rqda1I9kQqroTeJHBxFGscPz+c03/CKG5qhlQQOtPeuO2/x+DdG6z7noKSvRaVUdFD v/qnnl9L2GdvDfQQRrXKFlglmktTI3etuTIJyFedvvMB4z4usL7XwvSeM7Cmp88m7SFG qg6DfGfUnq6Bo4qF3NrRB5jwwTn+9sR1Z8RnxD3haT41RDqw/MUku18CBX2zM8MP+E9Y uIMQa1Qy4HpMQgtx0fWcSrYdi5SE6qdNUphmhgMeV19yiVoLriuheM1SVn+UwR7oca8X CIi1izCsIV7V/1ZecqQA+nXfcDxMI+uAk2fW6Ruoro/HH0/qytpnIOBIItkxC8ZEaO5S leqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=fBxMjfOO74WU/5onEJvdMPUR6WuIE1EbEvkxKemvch8=; b=lXjQxW/DLC3AIdpm+PjngruEKWAakTdOhINMapyod1PO9loVAdRrVzvTVnmTRQiZcA ZjRCWOyRxG0p0c31yqIt6pWuvJzEaCE9EH6Mp5Stcs1JrU+zAQnSjQgyRsr1zN5g9o6e nvfCF0UGLXOtmwFyleFQtZIN6mFBN5azkwoQhK5Zn0+ZEIIoRsJDyQdOo4UbjwdJvgaB vsmHCkgjMQ9Wn7qNMPhnt2EAUO78gnuHEmZrZv0ErWHARvZfxqb3Md+zlPdsHQQkwLtU dRuNrQsVw5EmGocphlpxPj89WKw2SB5Tt1imTOyzz/RZxbcxAPlDC4VFDk2JPsQIotMq CCtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=LxIwoQmM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j17-20020a170903029100b0015efb0677f4si7120925plr.418.2022.05.12.05.48.56; Thu, 12 May 2022 05:49:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=LxIwoQmM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238856AbiEKLfk (ORCPT + 99 others); Wed, 11 May 2022 07:35:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240099AbiEKLfX (ORCPT ); Wed, 11 May 2022 07:35:23 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A3B65469C for ; Wed, 11 May 2022 04:35:21 -0700 (PDT) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id BA77E22205; Wed, 11 May 2022 13:35:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1652268919; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fBxMjfOO74WU/5onEJvdMPUR6WuIE1EbEvkxKemvch8=; b=LxIwoQmMbD18/LTL1HymORRMKdrt6BMI6A9PZgP48ewHwtu1+8HzJHelfaxd316z5/Mffk 8LOQ1lZGALk97YFSIp3XyJhBozStBpUd7ItIpijbqXqgZe9mojO0Q2vtV59UejBeGV6Jbn smtdaC7xn6NaAuTKvJR/S6qYEfi7e/k= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 11 May 2022 13:35:16 +0200 From: Michael Walle To: Dan Carpenter Cc: kbuild@lists.01.org, lkp@intel.com, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Pratyush Yadav Subject: Re: [mtd:spi-nor/next 16/18] drivers/mtd/spi-nor/debugfs.c:84 spi_nor_params_show() warn: '%ph' cannot be followed by 'n' In-Reply-To: <202205110320.WNi7ZQaB-lkp@intel.com> References: <202205110320.WNi7ZQaB-lkp@intel.com> User-Agent: Roundcube Webmail/1.4.13 Message-ID: X-Sender: michael@walle.cc X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2022-05-11 12:17, schrieb Dan Carpenter: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git > spi-nor/next > head: cdbc44dbb2c73d8bafa1a8ae0d780608be5dbd40 > commit: 0257be79fc4a16a3252ce80aa13b3640f728c425 [16/18] mtd: spi-nor: > expose internal parameters via debugfs > config: x86_64-randconfig-m001-20220509 > (https://download.01.org/0day-ci/archive/20220511/202205110320.WNi7ZQaB-lkp@intel.com/config) > compiler: gcc-11 (Debian 11.2.0-20) 11.2.0 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > Reported-by: Dan Carpenter > > smatch warnings: > drivers/mtd/spi-nor/debugfs.c:84 spi_nor_params_show() warn: '%ph' > cannot be followed by 'n' > > vim +84 drivers/mtd/spi-nor/debugfs.c > > 0257be79fc4a16 Michael Walle 2022-04-29 73 static int > spi_nor_params_show(struct seq_file *s, void *data) > 0257be79fc4a16 Michael Walle 2022-04-29 74 { > 0257be79fc4a16 Michael Walle 2022-04-29 75 struct spi_nor *nor = > s->private; > 0257be79fc4a16 Michael Walle 2022-04-29 76 struct > spi_nor_flash_parameter *params = nor->params; > 0257be79fc4a16 Michael Walle 2022-04-29 77 struct > spi_nor_erase_map *erase_map = ¶ms->erase_map; > 0257be79fc4a16 Michael Walle 2022-04-29 78 struct > spi_nor_erase_region *region; > 0257be79fc4a16 Michael Walle 2022-04-29 79 const struct flash_info > *info = nor->info; > 0257be79fc4a16 Michael Walle 2022-04-29 80 char buf[16], *str; > 0257be79fc4a16 Michael Walle 2022-04-29 81 int i; > 0257be79fc4a16 Michael Walle 2022-04-29 82 > 0257be79fc4a16 Michael Walle 2022-04-29 83 seq_printf(s, > "name\t\t%s\n", info->name); > 0257be79fc4a16 Michael Walle 2022-04-29 @84 seq_printf(s, > "id\t\t%*phn\n", info->id_len, info->id); > > Maybe N was intended instead of n? (I have no idea). Thanks for reporting. Yeah I had %*phN previously but then I wanted to switch to "xx xx xx" style and i missed checking printk-formats.rst. %*phn worked as intended ;) I'll send a fixup patch. -michael