Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp687559pxa; Wed, 12 Aug 2020 11:02:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxj+9XcEm532aCnuA8FvKYNn6BeJVC4FXYQXzTklRhJ16h2Fj8AAyedhknqGvs1A80Lu8kQ X-Received: by 2002:a05:6402:22d5:: with SMTP id dm21mr1038983edb.211.1597255320662; Wed, 12 Aug 2020 11:02:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597255320; cv=none; d=google.com; s=arc-20160816; b=WKGosh9pBKeVhmWK7VRXZ5lPzs+BfSma+8LvMfC4jVUvQcmB5SOSWZEctzDRn8I47d LZJyniZtupSwyb7qnZ8KkSPDofd1dJ1a494/iduGvbv32Hlau6nZk44CM6ZHezLx/pcG XhhqMTz1HMyIpJGJSTajmp5YgePxicVDcnuDPUKos3HdyAB0FaeG6UMQ/PZcEs8KGJvo pbwLRtZZb5LwVb7/0UjV8SA7GXXtQf2mu2A7iiIY20DVzfSZisTe8/Lx6hwD9geJh1I+ J/MUlndOBisxibf++C6kw6SYHADYQz3JTAA/0pz3M4KTt7sBHzdGdHpwrxPZzvYHzMXm n+bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=WaYzmO9eCqJM7lNrBCVI9YqATymFGKlS89G3SwX63XI=; b=k2bLy99ljxCGMxJrwkM3P7TfVvb0iWcqT3g9bU66svI0FD92KEvrJpb1b5Ru1mIzJi brQ9Sugh6JZmaEBXMsDX88vjvWIiNpndPo5sRj1dL9OXN2Nsnkz1yIuth+EtB3KEi/Au FNVaqCTQKsLmSkbl/3W4OpiozJQrBhEwEzdkN14+Rf6FCFqcbSyLqrwH6zD6aP7KrjK5 qSAHvxlp+r9F0R7WH26Ug4BZLQSmC0Pp87iMHkk3V9FKZAVxMbhTmi4FV0dZwO6J4JNc u5W/MiAXlWYFzkhoBX628K/unpW64QBZqDNTweLi+0qQWpIrNuG5N6SPTusO2VZS1qmU 54pw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e17si2169521edc.382.2020.08.12.11.01.35; Wed, 12 Aug 2020 11:02:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726523AbgHLSAz (ORCPT + 99 others); Wed, 12 Aug 2020 14:00:55 -0400 Received: from mga07.intel.com ([134.134.136.100]:47124 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726276AbgHLSAz (ORCPT ); Wed, 12 Aug 2020 14:00:55 -0400 IronPort-SDR: vYXl8eOpZEajZA6Fzv49i6NDEV90ZOGy1KffjOhNBX5OnhGWDRfE3rtAm81EhORYCiTsnUyBe2 yZuDSA2PaJCg== X-IronPort-AV: E=McAfee;i="6000,8403,9711"; a="218365786" X-IronPort-AV: E=Sophos;i="5.76,305,1592895600"; d="scan'208";a="218365786" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Aug 2020 11:00:52 -0700 IronPort-SDR: gx2r74QMlfV1c8e6Z9N3Vljq7qt84CboLVDYJPcajrNR0b0AHhGqN7dEJ6e+gaPsfyRpOwn8rS 16xRZAaFuD1Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,305,1592895600"; d="scan'208";a="291118905" Received: from lkp-server01.sh.intel.com (HELO 7f1ebb311643) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 12 Aug 2020 11:00:49 -0700 Received: from kbuild by 7f1ebb311643 with local (Exim 4.92) (envelope-from ) id 1k5v3R-0000BX-8t; Wed, 12 Aug 2020 18:00:49 +0000 Date: Thu, 13 Aug 2020 01:59:58 +0800 From: kernel test robot To: Valentin Schneider , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: kbuild-all@lists.01.org, mingo@kernel.org, peterz@infradead.org, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, morten.rasmussen@arm.com, Quentin Perret Subject: [PATCH] sched/debug: fix noderef.cocci warnings Message-ID: <20200812175958.GA94389@b1d876c4bf9f> References: <20200812125300.11889-7-valentin.schneider@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200812125300.11889-7-valentin.schneider@arm.com> X-Patchwork-Hint: ignore User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: kernel test robot kernel/sched/debug.c:272:30-36: ERROR: application of sizeof to pointer sizeof when applied to a pointer typed expression gives the size of the pointer Generated by: scripts/coccinelle/misc/noderef.cocci CC: Valentin Schneider Signed-off-by: kernel test robot --- url: https://github.com/0day-ci/linux/commits/Valentin-Schneider/sched-Instrument-sched-domain-flags/20200812-205638 base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 949bcb8135a96a6923e676646bd29cbe69e8350f debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -269,7 +269,7 @@ static int sd_ctl_doflags(struct ctl_tab return 0; } - tmp = kcalloc(data_size + 1, sizeof(tmp), GFP_KERNEL); + tmp = kcalloc(data_size + 1, sizeof(*tmp), GFP_KERNEL); for_each_set_bit(idx, &flags, __SD_FLAG_CNT) { char *name = sd_flag_debug[idx].name;