Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp965712lqp; Thu, 23 May 2024 05:39:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVims7m0c0wekHe3QgNNClAK3v6dUzrlqUfkHNia+d/gAzNzogZiUpiRd2BuMfyQIiQncSbG/cdpirZn78okaFS89LY/p7Uk/xDx5CUYA== X-Google-Smtp-Source: AGHT+IHGww6Ahv+UgSFl0aTiziUf7gzieNq8WwDbNt9ROnm9QXf57XquP8KtUohMNtFX8a5jGOKG X-Received: by 2002:a50:ab53:0:b0:574:eb0f:df9b with SMTP id 4fb4d7f45d1cf-57832a461camr3785234a12.14.1716467952287; Thu, 23 May 2024 05:39:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716467951; cv=pass; d=google.com; s=arc-20160816; b=SY/iW5MKTfKCqms53BAt7DZr3at1rZ2TMUYxFqvPJmie+ETcA82aGyazeLJ0ARmGnl 1/mxPtZ4Cg7OU4TM8zQxwDpUPfXisLUIyAeY1l2B1TiHYrJuoxWXjGcyYJhExpy93qSD ay1Hw7FOF5H8nN4ley8xsSLb1ZhLE5ok4ZN6zPe2TQrake6TXioTYTiq9i6TnBix2Roi vhGPWFdYij0fFOfnCk51eB7ufrpgsi02aGZoyZy9Gp0XCgXw+dI24/ZecnWnxKJUmwUi pT2G2ZYjDd1VABdO0poTFDEJpl/STAGR9nOXecuIaZxnZqRunx67DSszD6uBviFiCDdn eidg== 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:to:from:date :dkim-signature; bh=9xpm8ImS0ahVngJzQ0vMg6vcFl1yKfZeaO8nncCbGHk=; fh=mZXc5/x7xXwSbldq+cYeWUVc+kQJbVE25QQSBRDuzV4=; b=T0mPfOykLOEWtcINo8AXawxDINB7Q7Fng34zgdcuxxZJDFGLI6MQr8kiRVaj4VqG3Y ZLVuJPO/6RG9JoJvQ3n5FuLK4TY7kbeNxgOq5I8AtNxwekDkzOT3HOGXQY0OIc5sKn90 YRdxiXiDJx655bEpjWWBCoXRkoN3b1s67vWeuloTTlQFe2enPutb+al71+kV5qpLZabL ZgcIAicY3yov1qA/355vw4XcaXtJbX27KGZbsoKtNgEIzcLx4540wNwE12gOOi0PWW4Y SHiKpOkwRFleJYKoMjFAGuvjdcLzJPWS++vgfsF4vo/ixkf+MCJEnkedei7dtHRmrYdF SZiA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Eee3lRyj; 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-187482-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187482-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733beaf263si15933123a12.97.2024.05.23.05.39.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 05:39:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187482-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Eee3lRyj; 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-187482-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187482-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 60DE01F21917 for ; Thu, 23 May 2024 12:39:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8EE6F1487F5; Thu, 23 May 2024 12:39:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Eee3lRyj" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (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 05C94144D26 for ; Thu, 23 May 2024 12:39:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716467945; cv=none; b=R2zCmQINFmho/OKQCDpypGxs4h9+s6b+qdAFUfwQ+GGonSEbglXETVFAIIk7iyEkB/A2d1Sd+nTH+aZb33cQlUpQkMNnUoDbLQxpqp6Oa02lH7080rbfMMgyl4spQohQ5AmFDNJqjShTPyMAoaMyl9Mli/r5PQW947JMTWWHeuU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716467945; c=relaxed/simple; bh=NxNHmDTyf45u7ZHwoFE+CVEyUDmnNLkRf5O6kktNz0o=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=mxotuHflejPK6XhaQ0rU0Ohp8LK8QdtL6FEYXtwVD2RhIdT0FRrsmmHrbqPgrvYWJOW5/CanFxFBS2FbPhZJHJb8S5xSMHXRV11z7/gLde+kQkIxPWS5bC4f08yBcDKB2BGlarjmIrhepIbisJlG+Em9SCMyQxg0+n4Yyf05srM= 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=Eee3lRyj; arc=none smtp.client-ip=198.175.65.14 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=1716467944; x=1748003944; h=date:from:to:cc:subject:message-id:mime-version; bh=NxNHmDTyf45u7ZHwoFE+CVEyUDmnNLkRf5O6kktNz0o=; b=Eee3lRyj6avt/C0fPRvx5vtvtyF02rNEsdZrHIfcSjo5gJzPaHtND2E8 3jK2gTcpKYll8QtiKd6dq4SWN/fyzg/JiBZXr1WRDCYFEExCi9hcnIgc/ +IzDEfUGvlDfCEJDdtZnqw5Isd5LZeyHBnuH/tR7vBSSwRfVtlJo+9jzu JNpePGs5yGxT5rOI4BNxEI7WvjS9Y1F9mSHhBhzeMq3PSxoHT6KiY4oIX 9MDiRGfT/plUv0ThACLrS0m5hpnXbKo6Q0bi2F1QiwRrrbNhLh73K0HRT OCOw51jle0byOlfud16M0tKN8ol3cbpTK3jxaHvUbRGWx3iKq+0In2a1Q Q==; X-CSE-ConnectionGUID: +smcLB/qThyh3uAfZ+BpmA== X-CSE-MsgGUID: 5JyL0qPmTCqxnas0Za+A6Q== X-IronPort-AV: E=McAfee;i="6600,9927,11081"; a="16608181" X-IronPort-AV: E=Sophos;i="6.08,182,1712646000"; d="scan'208";a="16608181" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2024 05:39:03 -0700 X-CSE-ConnectionGUID: N0+VvKRtTvKSyJ7zisdmkw== X-CSE-MsgGUID: yNXd5J9JSsKM+zgpr7BRxQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,182,1712646000"; d="scan'208";a="33666838" Received: from unknown (HELO 0610945e7d16) ([10.239.97.151]) by fmviesa006.fm.intel.com with ESMTP; 23 May 2024 05:39:00 -0700 Received: from kbuild by 0610945e7d16 with local (Exim 4.96) (envelope-from ) id 1sA7il-0002q4-1Y; Thu, 23 May 2024 12:38:59 +0000 Date: Thu, 23 May 2024 20:38:08 +0800 From: kernel test robot To: Shahab Vahedi Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, linux-snps-arc@lists.infradead.org, Alexei Starovoitov Subject: arch/arc/net/bpf_jit_core.c:170:47-52: WARNING: conversion to bool not needed here Message-ID: <202405232036.Xqoc3b0J-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: c760b3725e52403dc1b28644fb09c47a83cacea6 commit: f122668ddcce450c2585f0be4bf4478d6fd6176b ARC: Add eBPF JIT support date: 11 days ago config: arc-randconfig-r062-20240523 (https://download.01.org/0day-ci/archive/20240523/202405232036.Xqoc3b0J-lkp@intel.com/config) compiler: arceb-elf-gcc (GCC) 13.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 | Closes: https://lore.kernel.org/oe-kbuild-all/202405232036.Xqoc3b0J-lkp@intel.com/ cocci warnings: (new ones prefixed by >>) >> arch/arc/net/bpf_jit_core.c:170:47-52: WARNING: conversion to bool not needed here -- >> arch/arc/net/bpf_jit_core.c:162:16-22: ERROR: application of sizeof to pointer -- >> arch/arc/net/bpf_jit_core.c:586:5-8: Unneeded variable: "ret". Return "0" on line 638 vim +170 arch/arc/net/bpf_jit_core.c 158 159 /* Initialise the context so there's no garbage. */ 160 static int jit_ctx_init(struct jit_context *ctx, struct bpf_prog *prog) 161 { > 162 memset(ctx, 0, sizeof(ctx)); 163 164 ctx->orig_prog = prog; 165 166 /* If constant blinding was requested but failed, scram. */ 167 ctx->prog = bpf_jit_blind_constants(prog); 168 if (IS_ERR(ctx->prog)) 169 return PTR_ERR(ctx->prog); > 170 ctx->blinded = (ctx->prog == ctx->orig_prog ? false : true); 171 172 /* If the verifier doesn't zero-extend, then we have to do it. */ 173 ctx->do_zext = !ctx->prog->aux->verifier_zext; 174 175 ctx->is_extra_pass = ctx->prog->jited; 176 ctx->user_bpf_prog = ctx->prog->is_func; 177 178 return 0; 179 } 180 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki