Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp147456rdf; Mon, 20 Nov 2023 20:33:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IHiHuUYn/PJEsdis9zC6QGz3EVeAeJrpU8zGV6phgzGNXS9aJYTry1gDP/uZ1be+dSvyq9U X-Received: by 2002:a9d:6858:0:b0:6d3:127b:6fba with SMTP id c24-20020a9d6858000000b006d3127b6fbamr10465522oto.9.1700541197579; Mon, 20 Nov 2023 20:33:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700541197; cv=none; d=google.com; s=arc-20160816; b=QS02YujnXuIwhdwLMt9R4ePbPR7MNORcdNmsTXeCCLdF2aYGGEK8X8HwYmCDd6/Uyz 84dyDMqcVMqSGER7uVh5xIeB8Ly6B9YSzRZyWLSvys9qSKTX1oBuDmL8b944OUItPyMq yP3DFOdKdKgkw9t71nR92JApoYZ28qwKdRTgL42voNmvGvZgasSpGO62iAQhAQ3CFPL6 iCb5tKh68X9kAAtj1QObycD8YDWTLL3kN/N30ubzddo8l16V0CyDbeaY6w3fVnkcd5Pn 9ddCSD0Z+OgjMoWCJTG1f7UxroZ9kPC8tqpnXZ1gmH7BYxcBrJRUKSC8jIW+YPClIG2W f+EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nk6/QDjCRqBUmji8uO9+WAlSzWbSTIO6Msu4Drdj0Fg=; fh=+5GR3TcF7KB9nb8PlMfA3XsfLoCsfsAJEX5sj2JzUkY=; b=0YztvoNLc/4+nZTlXa34WBHxLFBi8ZBwWDaqFus46uRJm4Vdub6bK11/kewAXUywLg qA8FaokoekQ96t+sRMAXTqq0SD4pmFawS796TZj8cU4Et+Os3RNtJCjyMQ6kSa5GDJXP X9UtaV0wpnXgxavBBRsZDdp4dP+n0VsDB1WR4Nw8TWD+n0VTTz2Ak1NPHyAqI0STWuS5 6KWRfe+Sqgy/YOOJxnqQ4JZtUCRvQTpqc13Nc2qibLXuPiGx8GHaY2Tvg93QdfcZvFF7 E+xJYhZkmbKZ/kYMJzdMGcGbcodDQhOT4fuSC1SbpdBofDcB3D3orW90YdDbPAGcnr+k Q0TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TRQdFy5g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id g129-20020a636b87000000b005aba9cdf091si9615704pgc.579.2023.11.20.20.33.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 20:33:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TRQdFy5g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 0FBFE8096463; Mon, 20 Nov 2023 20:32:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229618AbjKUEb4 (ORCPT + 99 others); Mon, 20 Nov 2023 23:31:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjKUEby (ORCPT ); Mon, 20 Nov 2023 23:31:54 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1864883 for ; Mon, 20 Nov 2023 20:31:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700541111; x=1732077111; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=5Fz+sy6tyvEBwrt2EV4TOIMesnoVWS1t06HQ4JYa/h4=; b=TRQdFy5gtHFVwZxwHhArKumKGaM0JgnoGxahUPDgXmobKyJ/T7WRMdFF PCrxG0N5uw2bpx4RRwHKnxj/6yzzW8XPJd8u9ySn0SH0yAuCvWIpepXHM LZAmsENQU4MEcoxxs0FSerwtqXiWuN9zU5n5pKl0vXcGsJqIkg3ZMZTub TIruKU4C4nTbDJPKj+y/ALNIsEiTr7pyOBLyPXqL1Q7ZD4t9mZYUPZTwR rcvW7Ff3rSuvCR9W4/w74OhTe4J52DnF8aoV7u6fcCw/KK2ctDUe6Fqeg g6dbhT+jesFA4MJxRp5bGFPAgnNveqn3iwkF1MX9A3J8X4PkPgQb69Kdg Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="4885296" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="4885296" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2023 20:31:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="832511211" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="832511211" Received: from lkp-server02.sh.intel.com (HELO b8de5498638e) ([10.239.97.151]) by fmsmga008.fm.intel.com with ESMTP; 20 Nov 2023 20:31:48 -0800 Received: from kbuild by b8de5498638e with local (Exim 4.96) (envelope-from ) id 1r5IQM-0007IY-2J; Tue, 21 Nov 2023 04:31:46 +0000 Date: Tue, 21 Nov 2023 12:30:38 +0800 From: kernel test robot To: Naresh Solanki , Liam Girdwood , Mark Brown Cc: oe-kbuild-all@lists.linux.dev, Naresh Solanki , linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] regulator: event: Add regulator netlink event support Message-ID: <202311211259.fKjbHG1i-lkp@intel.com> References: <20231120194311.3581036-1-naresh.solanki@9elements.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231120194311.3581036-1-naresh.solanki@9elements.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 20 Nov 2023 20:32:27 -0800 (PST) Hi Naresh, kernel test robot noticed the following build warnings: [auto build test WARNING on 753e4d5c433da57da75dd4c3e1aececc8e874a62] url: https://github.com/intel-lab-lkp/linux/commits/Naresh-Solanki/regulator-event-Add-regulator-netlink-event-support/20231121-034604 base: 753e4d5c433da57da75dd4c3e1aececc8e874a62 patch link: https://lore.kernel.org/r/20231120194311.3581036-1-naresh.solanki%409elements.com patch subject: [PATCH v1] regulator: event: Add regulator netlink event support config: arm-randconfig-003-20231121 (https://download.01.org/0day-ci/archive/20231121/202311211259.fKjbHG1i-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231121/202311211259.fKjbHG1i-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/202311211259.fKjbHG1i-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/linux/kernel.h:31, from include/linux/skbuff.h:13, from include/linux/netlink.h:7, from include/net/netlink.h:6, from drivers/regulator/event.c:3: drivers/regulator/event.c: In function 'reg_generate_netlink_event': >> drivers/regulator/event.c:92:18: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 92 | pr_debug("%s -> %lx , ret: %x %x", reg_name, event, size); | ^~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:345:21: note: in definition of macro 'pr_fmt' 345 | #define pr_fmt(fmt) fmt | ^~~ include/linux/dynamic_debug.h:248:9: note: in expansion of macro '__dynamic_func_call_cls' 248 | __dynamic_func_call_cls(__UNIQUE_ID(ddebug), cls, fmt, func, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/dynamic_debug.h:250:9: note: in expansion of macro '_dynamic_func_call_cls' 250 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/dynamic_debug.h:269:9: note: in expansion of macro '_dynamic_func_call' 269 | _dynamic_func_call(fmt, __dynamic_pr_debug, \ | ^~~~~~~~~~~~~~~~~~ include/linux/printk.h:579:9: note: in expansion of macro 'dynamic_pr_debug' 579 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ drivers/regulator/event.c:92:9: note: in expansion of macro 'pr_debug' 92 | pr_debug("%s -> %lx , ret: %x %x", reg_name, event, size); | ^~~~~~~~ drivers/regulator/event.c:92:27: note: format string is defined here 92 | pr_debug("%s -> %lx , ret: %x %x", reg_name, event, size); | ~~^ | | | long unsigned int | %llx >> drivers/regulator/event.c:92:18: warning: format '%x' expects a matching 'unsigned int' argument [-Wformat=] 92 | pr_debug("%s -> %lx , ret: %x %x", reg_name, event, size); | ^~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:345:21: note: in definition of macro 'pr_fmt' 345 | #define pr_fmt(fmt) fmt | ^~~ include/linux/dynamic_debug.h:248:9: note: in expansion of macro '__dynamic_func_call_cls' 248 | __dynamic_func_call_cls(__UNIQUE_ID(ddebug), cls, fmt, func, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/dynamic_debug.h:250:9: note: in expansion of macro '_dynamic_func_call_cls' 250 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/dynamic_debug.h:269:9: note: in expansion of macro '_dynamic_func_call' 269 | _dynamic_func_call(fmt, __dynamic_pr_debug, \ | ^~~~~~~~~~~~~~~~~~ include/linux/printk.h:579:9: note: in expansion of macro 'dynamic_pr_debug' 579 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ drivers/regulator/event.c:92:9: note: in expansion of macro 'pr_debug' 92 | pr_debug("%s -> %lx , ret: %x %x", reg_name, event, size); | ^~~~~~~~ drivers/regulator/event.c:92:40: note: format string is defined here 92 | pr_debug("%s -> %lx , ret: %x %x", reg_name, event, size); | ~^ | | | unsigned int vim +92 drivers/regulator/event.c 49 50 int reg_generate_netlink_event(const char *reg_name, u64 event) 51 { 52 struct sk_buff *skb; 53 struct nlattr *attr; 54 struct reg_genl_event *edata; 55 void *msg_header; 56 int size; 57 58 /* allocate memory */ 59 size = nla_total_size(sizeof(struct reg_genl_event)) + 60 nla_total_size(0); 61 62 skb = genlmsg_new(size, GFP_ATOMIC); 63 if (!skb) 64 return -ENOMEM; 65 66 /* add the genetlink message header */ 67 msg_header = genlmsg_put(skb, 0, reg_event_seqnum++, 68 ®_event_genl_family, 0, 69 REG_GENL_CMD_EVENT); 70 if (!msg_header) { 71 nlmsg_free(skb); 72 return -ENOMEM; 73 } 74 75 /* fill the data */ 76 attr = nla_reserve(skb, REG_GENL_ATTR_EVENT, sizeof(struct reg_genl_event)); 77 if (!attr) { 78 nlmsg_free(skb); 79 return -EINVAL; 80 } 81 82 edata = nla_data(attr); 83 memset(edata, 0, sizeof(struct reg_genl_event)); 84 85 strscpy(edata->reg_name, reg_name, sizeof(edata->reg_name)); 86 edata->event = event; 87 88 /* send multicast genetlink message */ 89 genlmsg_end(skb, msg_header); 90 size = genlmsg_multicast(®_event_genl_family, skb, 0, 0, GFP_ATOMIC); 91 > 92 pr_debug("%s -> %lx , ret: %x %x", reg_name, event, size); 93 if (size == -ESRCH) 94 pr_debug("multicast message sent, but nobody was listening...\n"); 95 else if (size) 96 pr_debug("failed to send multicast genl message\n"); 97 else 98 pr_debug("multicast message sent %d\n", reg_event_seqnum); 99 100 return 0; 101 } 102 EXPORT_SYMBOL(reg_generate_netlink_event); 103 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki