Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1666913rdb; Thu, 25 Jan 2024 02:33:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IFLDlfuOlEev03cEms9qquRmZVpvSTSp5Q2U+KDsgsA8gBnsPS339OzpwIozc24wFIAH8dq X-Received: by 2002:aa7:d405:0:b0:55c:c918:a076 with SMTP id z5-20020aa7d405000000b0055cc918a076mr1091770edq.3.1706178823361; Thu, 25 Jan 2024 02:33:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706178823; cv=pass; d=google.com; s=arc-20160816; b=EaNwu+Mfoi6L+2ABBEPPH+6D0662NRMUuCTiaeHRCM8xhL9HI/VjbpnF4r0j60b/uL iF6vO5001RQS3u/R0WsDbiONFmcv1TPWWw7AezD1G4efYiv4GkVIMQCYiqUO0JKA3bmL ec3EQa0LsISPiQ0yt1ZO0rLDGeP4tfufl/0LQzskIyHpZI6JKJUhrmiFdoQrVIIG/9XI mjR871354nGfjoZBolFpc36MtwnZeiuysgmelS3cdH12/meXJYUnlBGK0z2TVdSLehxI qVFwDtQUHNEvCsGWSCzeF9x266/g0yGlcm7kWSuSq+5TA2ueixnUMAciMV4BpRXoJSOS XDKQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:from:date:dkim-signature; bh=8xaDSavhRXhmZcb1vojRqpeGtE+i6mIlqqYdD8lCits=; fh=n4Mcye+iKgv4kib6E1bCHAyvTyStDA7ySJEkye7M5iw=; b=VvwAlGM6l93gpGLbR75yEA82PYDU1EsGGcToevagQNsB7i7W7/aw4MH+6TtqIzWMeJ YFS8KjsWrNIGkP4Api4BhYC6wz2t638/SrnYhxgkt9cQ+FpnXdmijzYmyTi+vnalbgBe gUbv9GQCr21cjHeD+iHL1Xdryjvsrfjlb96luqUqpQsX58HtUwR0vxj0dPb9ZIfqoSSN U5TP+0EEMdkgEvIs/6fipba8J+F167vAtji+SoA/B8EYhvMEYlTOWxxxJAxjTwAK/yzj ni7lIqEzRu6uPW2nbGg03Yf714bpYz3tCvrFXA8VMVFnxcdUwblr4mblsAs8Wc6TQz8N T6Gw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NW2YDOx+; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-38397-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38397-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id y4-20020a50e604000000b0055a52853f3bsi6933803edm.582.2024.01.25.02.33.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 02:33:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38397-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=pass header.i=@intel.com header.s=Intel header.b=NW2YDOx+; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-38397-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38397-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1F0E21F27D9D for ; Thu, 25 Jan 2024 10:33:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E4B901CAB9; Thu, 25 Jan 2024 10:33:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="NW2YDOx+" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 4710D1CAA5 for ; Thu, 25 Jan 2024 10:33:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706178816; cv=none; b=DUDMvpdyLQW2wWQZa8ST0vnfwWr5On0chUW5ojjozAB3jMkcV3xqhX6kYJcSAF4sMXA3eNd8SlwNBlw5J+NgFfb6968+yzjUcB4Y0luF2OeiHjKqAkClPl6y/CKJ2BpAbsvYpr+APJUmRfY71io0wrLP4m+ot0N4S21sLWt0bgI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706178816; c=relaxed/simple; bh=g48t549HCnhx6cd9qj2p1n8VJWFKnnXsnpS6xM0HJDM=; h=Date:From:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=IUz6+qb6/WPhaTyF81vTECmqmbOtaF3AS15M03mdPNDOuZH1ClzhS+Fa1lb6xceXVR4s1k7SCMPCUJxVx8N+f5wbkWsTMdR4+9D1mm/fIsaQYJkLNK68LDkU/WXSCgYmlerjvz5QvDAZ1n8B3qrYhC/9Y+ZZYdsg+KBmRIr6zfU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=NW2YDOx+; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706178814; x=1737714814; h=date:from:cc:subject:message-id:mime-version; bh=g48t549HCnhx6cd9qj2p1n8VJWFKnnXsnpS6xM0HJDM=; b=NW2YDOx+LUx9lGTKeD4oEKGQ2Kk0FxowJSwFUjRsfRrN23RkFo8IHqNB clDhNuP0hOyc3AS2XAaZ3N9ZnaHContQTe9us+6JB0p96RPAcuK5LpT4d SDTpsD9mI1u6zBLPO3hpxy2mGHJ+AGTGJObpvTS2xo6xGhUwlTuYKW/Ow PL91RYTLawCnrL3yNZYJ2KN6xqfbY+TQYMJp7QyaoTvxHMofPpLUfF0rG hWaKEhWy3hfQZiMy2pQMVRtvtGa9vIpxpwp/cc5hPpD7Zs6gkqyacYItk 2/7JgkXNE7XWI1chpBtq0gsAsyVArocX4S10L2dSgI0uYSFuz78yggfdA w==; X-IronPort-AV: E=McAfee;i="6600,9927,10962"; a="8779958" X-IronPort-AV: E=Sophos;i="6.05,216,1701158400"; d="scan'208";a="8779958" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jan 2024 02:33:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10962"; a="909954008" X-IronPort-AV: E=Sophos;i="6.05,216,1701158400"; d="scan'208";a="909954008" Received: from lkp-server01.sh.intel.com (HELO 961aaaa5b03c) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 25 Jan 2024 02:33:32 -0800 Received: from kbuild by 961aaaa5b03c with local (Exim 4.96) (envelope-from ) id 1rSx34-0008uf-1X; Thu, 25 Jan 2024 10:33:30 +0000 Date: Thu, 25 Jan 2024 18:32:48 +0800 From: kernel test robot Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org Subject: include/linux/dev_printk.h:110:2: warning: '%s' directive argument is null Message-ID: <202401251824.Vie9Sa4X-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 tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 6098d87eaf31f48153c984e2adadf14762520a87 commit: af628aae8640c268938a0c9344b4ec0d102c0a0a device.h: move dev_printk()-like functions to dev_printk.h date: 4 years, 1 month ago config: x86_64-randconfig-012-20240106 (https://download.01.org/0day-ci/archive/20240125/202401251824.Vie9Sa4X-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/20240125/202401251824.Vie9Sa4X-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/202401251824.Vie9Sa4X-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/input/mouse/synaptics.c: In function 'synaptics_process_packet': drivers/input/mouse/synaptics.c:1103:6: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 1103 | ; /* Nothing, treat a pen as a single finger */ | ^ In file included from include/linux/device.h:15, from include/linux/input.h:19, from include/linux/input/mt.h:11, from drivers/input/mouse/synaptics.c:26: drivers/input/mouse/synaptics.c: In function 'synaptics_init_ps2': >> include/linux/dev_printk.h:110:2: warning: '%s' directive argument is null [-Wformat-overflow=] 110 | _dev_info(dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/input/mouse/psmouse.h:202:2: note: in expansion of macro 'dev_info' 202 | dev_info(&(psmouse)->ps2dev.serio->dev, \ | ^~~~~~~~ drivers/input/mouse/synaptics.c:1628:3: note: in expansion of macro 'psmouse_info' 1628 | psmouse_info(psmouse, | ^~~~~~~~~~~~ vim +110 include/linux/dev_printk.h 91 92 /* 93 * #defines for all the dev_ macros to prefix with whatever 94 * possible use of #define dev_fmt(fmt) ... 95 */ 96 97 #define dev_emerg(dev, fmt, ...) \ 98 _dev_emerg(dev, dev_fmt(fmt), ##__VA_ARGS__) 99 #define dev_crit(dev, fmt, ...) \ 100 _dev_crit(dev, dev_fmt(fmt), ##__VA_ARGS__) 101 #define dev_alert(dev, fmt, ...) \ 102 _dev_alert(dev, dev_fmt(fmt), ##__VA_ARGS__) 103 #define dev_err(dev, fmt, ...) \ 104 _dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__) 105 #define dev_warn(dev, fmt, ...) \ 106 _dev_warn(dev, dev_fmt(fmt), ##__VA_ARGS__) 107 #define dev_notice(dev, fmt, ...) \ 108 _dev_notice(dev, dev_fmt(fmt), ##__VA_ARGS__) 109 #define dev_info(dev, fmt, ...) \ > 110 _dev_info(dev, dev_fmt(fmt), ##__VA_ARGS__) 111 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki