Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1913880lqo; Sun, 19 May 2024 04:56:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVjHhnnb2WrX6SfUCMt2w7Gjqv51+3sbfDw9YGBLtt70FZKjKmZnqbvHkTZurnyl+rKVRQaH5YTbA5FJ6cpgTqlQgPPqTIpqu+7nPKKvQ== X-Google-Smtp-Source: AGHT+IF31SLPJjz4/ARn1mGn7ua4q55PpRg1uzfrRQ8CnmhzAbREODQYjnu9evkjFTgFPIouijAl X-Received: by 2002:a05:6a00:1ad0:b0:6ed:e1c:1034 with SMTP id d2e1a72fcca58-6f4e038ac6cmr30419903b3a.34.1716119815346; Sun, 19 May 2024 04:56:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716119815; cv=pass; d=google.com; s=arc-20160816; b=DUXnpld636S7ahSaTFEhv/z5vpzBBE7J2ReJUyXeh0ms0Y8w5UEMsT6x2oU/w/GnxY cyf+JS07tfudYiIWBiUUkbtglnJEqO4y4KDOnD4C3xgu+1dvKywZSWxcO5kQGrCjQfjJ 5VegTaXpZjOywiWecCl8EdWAJpoEUOuYnqCQJArcNxvVW0+LpZ9LYFJQJZYcSGraenaH cZx8Y/k7TXM0NdmyRNVdYOzLZvOULzcb4ueBox634KEl9abTpMyBBXULxrtg07nq0xOn aHnSmh68+1h8SstNzb4UqnfS1wtOaq71fRTQ0jesEKNziR6Y5cFar48+LOr4Z4c+rF7l AFHw== 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:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yb49Tkeo7KTyZVhIF0gvZCFPqbYTHIG+jAB1LjqH1ug=; fh=4Hpaf3Y3/aFUkBaabe5t6EAxjNLLFvPIO7QpVpLT2iU=; b=JxHV9s1Itt6j+UaHiDOCtu3JNhzru1gt8K7fBiZYYMhQkykaTcWnSkJpVhiCZQUIU9 rhWRAvhHeU7CjSwFeqhWbGhZmuhSUygbaxWB7MjxKNpOvO4l3Y0colF6ac2eykxWZ4Dw 86a1PcWdxyVgyqLT34UCru3CqBYvL3lZAQ8vsk9gP30BhbL+gJgoEq6NLfUnY6V9cdRh pQrQYliqHofSRBlZIHprJTqdfP9ip8FqEMtoLTv3Vb3TlfG87y39QRQDO3PeF/TWHvBz FCzYzQG8bdLV6Fp6i4ryO3kt0iH2eVpvRS3fv7gJ/aaSiminJ81GszOp93dRKuzphGos 7Dcw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iYZPusQj; 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-183098-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183098-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2a729absi602656b3a.76.2024.05.19.04.56.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 May 2024 04:56:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183098-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iYZPusQj; 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-183098-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183098-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 73043B2130E for ; Sun, 19 May 2024 11:56:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5035A47A60; Sun, 19 May 2024 11:56:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="iYZPusQj" 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 58C1B8BEA; Sun, 19 May 2024 11:56:19 +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=1716119781; cv=none; b=TtRKQxrEE9HloCA1RRrcen9fZ4RPAjTKj95VWTdB2CtuAP8aX5QBgN+rONamvblDtPq1lTtloOX0LB4rYAPAKSdFUhmtgI97vUAoHm19+WW7jCg2Q1j4gyWOl8aBNxt7beJyUqoYG3d2Xl239V3XAwPbOvww5RNfP3zBe67CmnE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716119781; c=relaxed/simple; bh=cvI1px9O6st8lE8BzPkgS3iM0oL4c8mM9MP987YJZDU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=d3jUB7Q/0KRQr2tNTJtibNqoUbfvvr+H2zuVX1vFw9cPILUfLiKbyWkBAQgvA8jUVRbxqMwJlJBhsRIJfcD9A10QgJpHP/3uDNKsPMmSbJ6Yd9ipOU4oSZCcIyRSAiCps7Kt5o0jRfA3RbcLwodBxHV0hclJbxE36DVZ7AhKZ+A= 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=iYZPusQj; 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=1716119779; x=1747655779; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=cvI1px9O6st8lE8BzPkgS3iM0oL4c8mM9MP987YJZDU=; b=iYZPusQjHX/Bn97EIb5+DlQ9yBPDbl083kjVfnU8XKrUPw0b3HgtiUny B0OkrgEniDhaZ2+jCEGsBJZCkrEsJkPAjH4i82jppqeCITnz1Q+7G9x1d dh7nQrsDKAAzWlj7Nd3+WYSL2HTqHJ7JGAYTSQvHijoIGZ+dpH/FItiLf dBS3Owcju1Wc+bpQc7uxb/DHohUT/XLG8aW5Nm3L8lgUA8imsvm2OWf2B 11mKemxBLcJ0BXmKFfG+kIwH6TLSAFJJtknW3O767lEWHKHXSpfB0c/Bz w/+DZ9VB7Gz/3vb/lZZQbEvh3MAM0gs9m4tt9TS5JMf2IyB0Iua2en3uR A==; X-CSE-ConnectionGUID: BphWRI4rSpS3Yj/3x6nR1g== X-CSE-MsgGUID: M+bojiynReq1eJ8UwYZrfw== X-IronPort-AV: E=McAfee;i="6600,9927,11076"; a="22828833" X-IronPort-AV: E=Sophos;i="6.08,173,1712646000"; d="scan'208";a="22828833" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2024 04:56:19 -0700 X-CSE-ConnectionGUID: sr0koyjmRuCZYaFNK954jg== X-CSE-MsgGUID: UWeqezrhSamDUYPoGjS+AQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,173,1712646000"; d="scan'208";a="37079835" Received: from unknown (HELO 108735ec233b) ([10.239.97.151]) by orviesa005.jf.intel.com with ESMTP; 19 May 2024 04:56:15 -0700 Received: from kbuild by 108735ec233b with local (Exim 4.96) (envelope-from ) id 1s8f9B-0003bu-1L; Sun, 19 May 2024 11:56:13 +0000 Date: Sun, 19 May 2024 19:55:48 +0800 From: kernel test robot To: Christophe JAILLET , Ilya Dryomov , Xiubo Li , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , ceph-devel@vger.kernel.org Subject: Re: [PATCH 1/2 net-next] libceph: Use sruct_size() in ceph_create_snap_context() Message-ID: <202405191916.QmDasdJ5-lkp@intel.com> References: <5b7c72bdb52703bbfa5511ed500aed4babde1308.1716109606.git.christophe.jaillet@wanadoo.fr> 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: <5b7c72bdb52703bbfa5511ed500aed4babde1308.1716109606.git.christophe.jaillet@wanadoo.fr> Hi Christophe, kernel test robot noticed the following build errors: [auto build test ERROR on net-next/main] url: https://github.com/intel-lab-lkp/linux/commits/Christophe-JAILLET/libceph-Use-__counted_by-in-struct-ceph_snap_context/20240519-172142 base: net-next/main patch link: https://lore.kernel.org/r/5b7c72bdb52703bbfa5511ed500aed4babde1308.1716109606.git.christophe.jaillet%40wanadoo.fr patch subject: [PATCH 1/2 net-next] libceph: Use sruct_size() in ceph_create_snap_context() config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20240519/202405191916.QmDasdJ5-lkp@intel.com/config) compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240519/202405191916.QmDasdJ5-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/202405191916.QmDasdJ5-lkp@intel.com/ All errors (new ones prefixed by >>): >> net/ceph/snapshot.c:32:18: error: call to undeclared function 'sruct_size'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 32 | snapc = kzalloc(sruct_size(snapc, snaps, snap_count), gfp_flags); | ^ >> net/ceph/snapshot.c:32:36: error: use of undeclared identifier 'snaps'; did you mean 'snapc'? 32 | snapc = kzalloc(sruct_size(snapc, snaps, snap_count), gfp_flags); | ^~~~~ | snapc net/ceph/snapshot.c:30:28: note: 'snapc' declared here 30 | struct ceph_snap_context *snapc; | ^ 2 errors generated. vim +/sruct_size +32 net/ceph/snapshot.c 11 12 /* 13 * Ceph snapshot contexts are reference counted objects, and the 14 * returned structure holds a single reference. Acquire additional 15 * references with ceph_get_snap_context(), and release them with 16 * ceph_put_snap_context(). When the reference count reaches zero 17 * the entire structure is freed. 18 */ 19 20 /* 21 * Create a new ceph snapshot context large enough to hold the 22 * indicated number of snapshot ids (which can be 0). Caller has 23 * to fill in snapc->seq and snapc->snaps[0..snap_count-1]. 24 * 25 * Returns a null pointer if an error occurs. 26 */ 27 struct ceph_snap_context *ceph_create_snap_context(u32 snap_count, 28 gfp_t gfp_flags) 29 { 30 struct ceph_snap_context *snapc; 31 > 32 snapc = kzalloc(sruct_size(snapc, snaps, snap_count), gfp_flags); 33 if (!snapc) 34 return NULL; 35 36 refcount_set(&snapc->nref, 1); 37 snapc->num_snaps = snap_count; 38 39 return snapc; 40 } 41 EXPORT_SYMBOL(ceph_create_snap_context); 42 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki