Received: by 2002:ab2:78c:0:b0:1ec:b906:25e5 with SMTP id h12csp252777lqe; Fri, 23 Feb 2024 03:30:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVvwdpSIivdcIyk26CpmF8+7hWeTlP74VmQ39Q3vTd6PHzucaFT7iJoFV3fZM7a7euGBtXvBxma/Nnh+HkbUHPdH1NJQ7808bW9vGlmxA== X-Google-Smtp-Source: AGHT+IG+0rcN9BQKhGbpNY7qsfkA6C36888ekrBP97c97HeIZoCqQwOQRxxHzI0WWSKlQm/qP6wK X-Received: by 2002:a05:6a21:1014:b0:19e:99ee:3b23 with SMTP id nk20-20020a056a21101400b0019e99ee3b23mr1661922pzb.51.1708687309660; Fri, 23 Feb 2024 03:21:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708687309; cv=pass; d=google.com; s=arc-20160816; b=IbZsb1T8ev3zVymhgHovs90NRdaSfCr9i9i/FldU+AR4GVaploCtO3Ib1Vzr1vDO46 /l603CSDyiP9V8bwrU7dqX2dHXyZk8Tm6U0GXO6pePCojT7pwVDSb+n1QRi0EyDiRaPH 9NpP94KcT1+ttazlXGFOi0yIDEdb7LSPQ65Ip24HTj8FeM8EsipDXRIsRzhyt992lEv2 0WyywQ6H6efHar8pnjqCOvXZo6J5iWh9dANQqk1pWhu+jTeMmJXB/YDT1ZySyiHYMEg/ vI+EMC2lE0QCEd3CPChZWjVHiDmVD5D1OGXMyFtVsxNqv9O6usOSWKCawB/iO+kQ4Egz W3fg== ARC-Message-Signature: i=2; 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:message-id:subject:cc:to:from :date:dkim-signature; bh=PIi3EjXiGTvmOHi052KsOnRzwJ+f4mQvPVKEwEMfxSE=; fh=/7oeR2XJ8awFl6XKXUlNSTaz3I7lwg3NEfmvt1DBSi0=; b=iFi5wOm89Ld51N1AN6I6jvAP154CdoIf69HEFDnEgkoK5GoVKL6SU5NCGq2IBraeIk gpSEMiTNg3rqrRVRDppTkGwSl6JAax6MV6CsQpp3hTemZc8aaNZYDFRPmOQ517T37Emb Jw2FoPUDnkqbjGhQo5ukPYTQrcwXlE45rraosCH1osO39CK8+0oHGXE7c5DcFSnYo3/7 kD+ONhHSnIy+BQODJ/DEh+4G6iQ0+ig6gw9LYOW0v5K824/CCQiliL25EuH8OKVprgWo TgE07SZZKWprGcarJQRJfOEGDNzO7A58b2G8bJjmD1YVwn3O4HoG9vVKGzkWuLGd4K4j a8lQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E9J6PLby; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-78206-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78206-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id f10-20020a170902684a00b001dc3dfe9fa6si4023109pln.614.2024.02.23.03.21.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 03:21:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78206-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=@linaro.org header.s=google header.b=E9J6PLby; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-78206-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78206-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id EE8E52868B4 for ; Fri, 23 Feb 2024 11:21:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 36F2B763F0; Fri, 23 Feb 2024 11:21:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="E9J6PLby" Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 6035B63104 for ; Fri, 23 Feb 2024 11:21:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708687298; cv=none; b=XiXCY3QXdBA1/4t5lgsWtNfABi2YkC54+4f4LTKmJM13eGLa6gR1Hf6QMW9dV80qh++BcRddUnA7tRPNaP5ZR9k49+ZHLz54iWPk6jO0+1ipDzIQfwlqhWAVohealbKMwqsqV5JDwvHHGbe3BlpDtGYvw47oq6Af9UFjGg3WAf0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708687298; c=relaxed/simple; bh=MGjiNoY5/PZus3tHurBrNW463HaZZAyrMoHg2GAQPfI=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=fImKH4Maz86+ito3f/Fj4v0WCYJNkYygdKH5rANW4uMkS7YUAb6+gcWPOPmGTkc2tSJkjkhcijtlC0r+o9rt/HAu5QZgB8+MARw/up3JpY0SS9NQ2uv4zFVMWqf6AU/McQyOWzNfJqNsa5bHUVYBaTujwEMWixZP77mgxFWacyQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=E9J6PLby; arc=none smtp.client-ip=209.85.221.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-33d90dfe73cso479826f8f.0 for ; Fri, 23 Feb 2024 03:21:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708687295; x=1709292095; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=PIi3EjXiGTvmOHi052KsOnRzwJ+f4mQvPVKEwEMfxSE=; b=E9J6PLbyxU3SxXfRiqmCejtk3OnxuI7XzLmH1SuDvADEkcyTgoWsA1hhH+i6r0KZGV YGELgLEmLtUjmxqy38hZben9gmtqYwF3+O8te3zqpDxIWi5ANHYloZCIhYHsPTn2YXet 491EH8a7kxzBd8CyZHes89oaU+cStUgNpBKtu6GHSrOrVMtlpzs+kD20TkBynZuNOsSp Pvg7fSGXmJ4pFKNgogc5HxbKQaWp60FbCmC64Gs6HAJa9Il6Gn8n3Qo5pJJ4sK096Ffu dOxVkNdCPyYUTwuknGscLjnara4Z7FGdLP8mC59wFdlSVkVVi8c11YqHVGIPa24phvbC TP8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708687295; x=1709292095; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PIi3EjXiGTvmOHi052KsOnRzwJ+f4mQvPVKEwEMfxSE=; b=msSxgs0BiPzvETaQppt9mmWS291htj88eW6V/QGzXHqYqeNtcnIEUonT6PJ5ff98DB 3/ocxWYgsrrXAB0ywUbZOdeZ1YDv5TCpF+NZQ3J/e58bigxLjFK1tA5ssrhFM5AppNpW JHFh3YNxsgMBycv6tNxE4KADxL56G7CrE1DSEr2gH7r3NLbI78Djbmi+CY5mgIHjbsl4 F3Iu3AkmfUmBaCzqARB+4RgEUr7mBa4C7gkAKFULwitj4NFCspc2cXI3kXGi+r+9OQhh 1Y5ztntuetoJ1pCJ+EAoWnzhKhOdKRHRPiJSCJQVqdVlB747gQnPCt6LH/Vm37pCsQ3/ rHyg== X-Forwarded-Encrypted: i=1; AJvYcCXOkIIcawiBrpO5oAKONPUuCjURhaJANyqI2rSLaI7N5le71wwH26nX2zVd1Og5HPtDHeG7ltfFsix4e/eZkfcg5AgKE658PuX7u+OF X-Gm-Message-State: AOJu0Yybn21PdZbFvHk1PJGGDnSmOHatkVri/bV+5OHDFcfkWLWMMtdH hbLIkqNUZRVeh8De5bTneEzaeNsosIbbwGq446aP08LtSdGj8flHmsOQcNKg95g= X-Received: by 2002:adf:da41:0:b0:33d:7e9:9543 with SMTP id r1-20020adfda41000000b0033d07e99543mr1358279wrl.32.1708687294766; Fri, 23 Feb 2024 03:21:34 -0800 (PST) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id b8-20020a5d4b88000000b0033cfc035940sm2426016wrt.34.2024.02.23.03.21.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 03:21:34 -0800 (PST) Date: Fri, 23 Feb 2024 14:21:30 +0300 From: Dan Carpenter To: oe-kbuild@lists.linux.dev, Joe Damato , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev, Joe Damato , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jesper Dangaard Brouer , Stanislav Fomichev , Amritha Nambiar , Larysa Zaremba , Lorenzo Bianconi , Tariq Toukan , Sridhar Samudrala , Alexei Starovoitov , Maciej Fijalkowski Subject: Re: [PATCH net-next 1/2] netdev-genl: Add ifname for queue and NAPI APIs Message-ID: <5f3777e9-c056-4765-9d43-9338a11c1703@moroto.mountain> 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: <1708531057-67392-2-git-send-email-jdamato@fastly.com> Hi Joe, kernel test robot noticed the following build warnings: url: https://github.com/intel-lab-lkp/linux/commits/Joe-Damato/netdev-genl-Add-ifname-for-queue-and-NAPI-APIs/20240222-000134 base: net-next/main patch link: https://lore.kernel.org/r/1708531057-67392-2-git-send-email-jdamato%40fastly.com patch subject: [PATCH net-next 1/2] netdev-genl: Add ifname for queue and NAPI APIs config: i386-randconfig-141-20240222 (https://download.01.org/0day-ci/archive/20240223/202402231851.2NeORqwi-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 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 | Reported-by: Dan Carpenter | Closes: https://lore.kernel.org/r/202402231851.2NeORqwi-lkp@intel.com/ New smatch warnings: net/core/netdev-genl.c:388 netdev_nl_queue_get_doit() error: uninitialized symbol 'ifname'. vim +/ifname +388 net/core/netdev-genl.c bc877956272f05 Amritha Nambiar 2023-12-01 371 int netdev_nl_queue_get_doit(struct sk_buff *skb, struct genl_info *info) bc877956272f05 Amritha Nambiar 2023-12-01 372 { 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 373 u32 q_id, q_type, ifindex; 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 374 struct net_device *netdev; 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 375 struct sk_buff *rsp; f340b224321fa6 Joe Damato 2024-02-21 376 char *ifname; 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 377 int err; 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 378 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 379 if (GENL_REQ_ATTR_CHECK(info, NETDEV_A_QUEUE_ID) || 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 380 GENL_REQ_ATTR_CHECK(info, NETDEV_A_QUEUE_TYPE) || f340b224321fa6 Joe Damato 2024-02-21 381 GENL_REQ_ATTR_CHECK(info, NETDEV_A_QUEUE_IFINDEX) || f340b224321fa6 Joe Damato 2024-02-21 382 GENL_REQ_ATTR_CHECK(info, NETDEV_A_QUEUE_IFNAME)) 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 383 return -EINVAL; 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 384 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 385 q_id = nla_get_u32(info->attrs[NETDEV_A_QUEUE_ID]); 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 386 q_type = nla_get_u32(info->attrs[NETDEV_A_QUEUE_TYPE]); 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 387 ifindex = nla_get_u32(info->attrs[NETDEV_A_QUEUE_IFINDEX]); f340b224321fa6 Joe Damato 2024-02-21 @388 nla_strscpy(ifname, info->attrs[NETDEV_A_QUEUE_IFNAME], IFNAMSIZ); ^^^^^^ missing initialization 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 389 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 390 rsp = genlmsg_new(GENLMSG_DEFAULT_SIZE, GFP_KERNEL); 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 391 if (!rsp) 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 392 return -ENOMEM; 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 393 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 394 rtnl_lock(); 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 395 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 396 netdev = __dev_get_by_index(genl_info_net(info), ifindex); f340b224321fa6 Joe Damato 2024-02-21 397 f340b224321fa6 Joe Damato 2024-02-21 398 if (strcmp(netdev->name, ifname)) { f340b224321fa6 Joe Damato 2024-02-21 399 err = -ENODEV; f340b224321fa6 Joe Damato 2024-02-21 400 } else { 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 401 if (netdev) 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 402 err = netdev_nl_queue_fill(rsp, netdev, q_id, q_type, info); 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 403 else 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 404 err = -ENODEV; f340b224321fa6 Joe Damato 2024-02-21 405 } 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 406 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 407 rtnl_unlock(); 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 408 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 409 if (err) 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 410 goto err_free_msg; 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 411 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 412 return genlmsg_reply(rsp, info); 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 413 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 414 err_free_msg: 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 415 nlmsg_free(rsp); 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 416 return err; 6b6171db7fc8f7 Amritha Nambiar 2023-12-01 417 } -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki