Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1760011rdd; Thu, 11 Jan 2024 08:28:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGQoP+1tntd+u21j5J3O8oIIRuQpI5alAmX0HISiDUlhqz0yb7cob7pCjgpzVaBoX85h0Yh X-Received: by 2002:a05:6359:5ea0:b0:175:ac7d:19df with SMTP id px32-20020a0563595ea000b00175ac7d19dfmr66448rwb.32.1704990481101; Thu, 11 Jan 2024 08:28:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704990481; cv=none; d=google.com; s=arc-20160816; b=HqHdhcGMCCsPAcBGCYG1w1bk3huku9FeZY5+sg9yUYJ1uUt8KjfOHJ71awG4YZISPV e0Hcxe4AXnKoR93VBS2QOIBZXF2nCQs6BoCljrsiIVDg0d532w+HdP0eg6uBSUsS/BfZ QHClIchVfhiJm2xam2k0wSvnhatxc1tduEwqbdooj41RlG2pDEsqQejbK9Y1NZGu61Uy 9a+KtIKC8FQAJJGglRDlofOvVffbYpUsoGW6dRjIn1xGYR/dvikq6scFn3pRlIiuiskM TWgumArKb3bJZuF6lfboj7xxngpiUK6vzxpLRjg2M6KpCWGeVDQQZZdcoALpfk38dJGd x3SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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=plL10T18yoNF2cn1blPIOwyBNDgoNEpTCTt3sDg3Bg0=; fh=aiCoiroyZsQ3ErCoXfDWnmmGYOrtXpbOZa2BP30Rpjg=; b=Dvmsixhf+a2XopB9/VhSQd1ofPDlvAG7yS/Jdi7eN95UlVKTM5SjaySKRucwQpkQ7j UBK4m5yY1Lxi/+S0H7P719arbrgoSweeO/OcD+Fg6ucvLKmxQdt5/y0ZgKuuNKWThq6f bz3EezGf5WeZ0t38lVvjRR2tgoiAIx5QcVDTEKqld7Jol3rPSRDZer2ReKqw5HoSzKcA 94965kytiHCUhU3KO7tTLKpXS2vdQzjZmFuKLRAofK39vvWv3PJteX4B5Qdzx7cbC+2k Da8sR3E/KqiDXk+pzO5OIWFjVtkUejizqGUETB9XF8k9qWfY0h+JjhLqOvbDm3L3S8r8 TG2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=JkO7VKBo; spf=pass (google.com: domain of linux-kernel+bounces-23864-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23864-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k35-20020a635623000000b005c673abd811si1418740pgb.254.2024.01.11.08.28.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 08:28:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23864-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=JkO7VKBo; spf=pass (google.com: domain of linux-kernel+bounces-23864-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23864-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id ACF4D28226C for ; Thu, 11 Jan 2024 16:28:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F1944F8A5; Thu, 11 Jan 2024 16:27:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="JkO7VKBo" Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (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 C8CBA4F5FB for ; Thu, 11 Jan 2024 16:27:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a27733ae1dfso632097666b.3 for ; Thu, 11 Jan 2024 08:27:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1704990470; x=1705595270; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=plL10T18yoNF2cn1blPIOwyBNDgoNEpTCTt3sDg3Bg0=; b=JkO7VKBoq+mhNqY4DS8aZopgTQViY0z3WVNAyAlB9oO89t0XObaHJVgw2/iG8jiJJc lsCsozynZf3hVNh9B+lH+iYqzv5uz27yFBv0lOVBB2D0x5lSHYNqIAYSSnS+h3fkYYjV QM172zgYHL0SKMsJJJAh6LR30C5eNuZQrPmURxvHUxGMblMzXI27Ky9xlV51jLJ+Y8W5 bl2iRWA1bhGst6tUhQOAWUdpWCglTKZSLHEwx4osCiClVbV/CLiKJERDsKiPyn9lnD0v S+8MTwE63JpygAxPAvNMCOTGCcxPgkldtyOJ1/w3DjJaOdy62Rs6HmqhxAbpDOZO0x7S dDcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704990470; x=1705595270; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=plL10T18yoNF2cn1blPIOwyBNDgoNEpTCTt3sDg3Bg0=; b=dfZmioTuonsBy0n5lC0HxR0AtuOLgsYjFwqFt4im/SRxlG01u/kDQQupg3fy2ywlUr +d59xLFGgMMHrChkNOucAYZWoRvIkYNgOZh6fqRKSOxmAQOAHbfQMv0VAMMdGnBgcF94 3U5t26cIr6XdyFvckr+DV99Z/b8STHanDm8jnbk8zP4xV3uAhDiQntlERuwbbN2seCPq 5Lc5olbNGJOPn6oQ9gcSyIOp9dSLRWASrgTYXST+bM6W013AGfm3XYHI8GSK7IlJZWO0 oplpgLRSJoOX72aHFtMnBki0uN+lIsdNhClg98C5tjZOOxqLlBQVpG8CS4UFtodEyYYI dTLw== X-Gm-Message-State: AOJu0YzdDtLgfYxFntF6D0V7peonGdtcVEPAr9PxRNGHjMrSQ70yBr1K pNVnFQQ/khfhEybINg/uF0kgxeBE4CUt1A== X-Received: by 2002:a17:907:3f25:b0:a2c:33ce:8c80 with SMTP id hq37-20020a1709073f2500b00a2c33ce8c80mr631263ejc.36.1704990470057; Thu, 11 Jan 2024 08:27:50 -0800 (PST) Received: from alley ([176.114.240.50]) by smtp.gmail.com with ESMTPSA id j15-20020a1709066dcf00b00a2a6e8f693esm748186ejt.152.2024.01.11.08.27.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 08:27:49 -0800 (PST) Date: Thu, 11 Jan 2024 17:27:44 +0100 From: Petr Mladek To: kernel test robot Cc: Chris Down , oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: include/linux/printk.h:434:44: warning: '%s' directive argument is null Message-ID: References: <202401112002.AOjwMNM0-lkp@intel.com> 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: <202401112002.AOjwMNM0-lkp@intel.com> On Thu 2024-01-11 20:29:05, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: de927f6c0b07d9e698416c5b287c521b07694cac > commit: 337015573718b161891a3473d25f59273f2e626b printk: Userspace format indexing support > date: 2 years, 6 months ago > config: x86_64-randconfig-002-20240105 (https://download.01.org/0day-ci/archive/20240111/202401112002.AOjwMNM0-lkp@intel.com/config) > compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240111/202401112002.AOjwMNM0-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-kbuild-all/202401112002.AOjwMNM0-lkp@intel.com/ > > All warnings (new ones prefixed by >>): > > In file included from include/linux/kernel.h:19, > from arch/x86/include/asm/percpu.h:27, > from arch/x86/include/asm/current.h:6, > from include/linux/sched.h:12, > from include/linux/blkdev.h:5, > from drivers/scsi/scsi_devinfo.c:3: > drivers/scsi/scsi_devinfo.c: In function 'scsi_dev_info_list_add_str': > >> include/linux/printk.h:434:44: warning: '%s' directive argument is null [-Wformat-overflow=] > 434 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__) > | ^ > include/linux/printk.h:430:3: note: in definition of macro 'printk_index_wrap' > 430 | _p_func(_fmt, ##__VA_ARGS__); \ > | ^~~~~~~ > drivers/scsi/scsi_devinfo.c:551:4: note: in expansion of macro 'printk' > 551 | printk(KERN_ERR "%s: bad dev info string '%s' '%s'" > | ^~~~~~ > drivers/scsi/scsi_devinfo.c:552:14: note: format string is defined here > 552 | " '%s'\n", __func__, vendor, model, > | ^~ This should get fixed by https://lore.kernel.org/all/20240111162419.12406-1-pmladek@suse.com/ Best Regards, Petr