Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1105387iob; Fri, 13 May 2022 23:23:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxt2f8RQAV8oSk5cs8A3xHwIvFWX38DjvIzsH3AanjAWJwUnpbswu4KWcefhLGxMymP8Dki X-Received: by 2002:a5d:4c4e:0:b0:20a:d006:79f8 with SMTP id n14-20020a5d4c4e000000b0020ad00679f8mr6287615wrt.600.1652509425818; Fri, 13 May 2022 23:23:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652509425; cv=none; d=google.com; s=arc-20160816; b=HR4hAJ123PpZwo6PqrxvO5nMG9vU2EcqjfvrEXkReZWq08BxvXseTZmQyfcDv31O61 dyCpcQ9nvwKI4MNdsHP3uOyF1GIAOUaz5W4nPtXohv+Id0ih732nVZEJ8ag+kHY7LYfC RgI3/Jk3FTzXFaXjLw351wATqNtg/qimSMNAuzKH/gcGN7rrVqV9Wmli1eyzGciYDXsw RShuBY7B4L8DNArBsKXkM3GnFjYDoW17zdZqQWneoa3/Szlp3zKc6FX9Vprq7K/b2Ckm 0bIUP7tUkFxoCRnB/qq423nGvIurLAM65Cu2VzqRBmzYs0BXQHIdHkLTkEyZn+OOtBPz qVYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=ierT24MOJSl7A9nYg6A1a2/3+5IGd5xddNbB0ladta8=; b=zdH1l1/UlaLdhRghlkDkqZtbrjjx9xmbuCAXTZ0bgJ4CKIUYJaV5XzvAZpli8XLItv 785vc/8UZrOzYOWPHGmP+rrsmFXdHDvYqn40RKI/ZengXi+Vdvf0jzjkjAoqr3VpiIyC 7CxR5E/lcD5kOeabWyELLTLYYnruYVipJhmSi+tr6pRbvGOkErz4cp8ou8BZKqPhpMrj 9TmVvaIBaaCy8VQUKBB0QbsndXUGahgY2mQSavAqRAl/vFuW8oiLPcw+H3JrYHJEUgXa OGVEZpRvXoHYvSCe2orbDg42uU8hWz48hRdW4jOu4vyNupS63ACv4lV3ygePBd9R1wef GqEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k16-20020a05600c1c9000b0038c77be9d15si4821594wms.221.2022.05.13.23.23.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 23:23:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7257863CF; Fri, 13 May 2022 22:16:36 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231924AbiENFQ2 convert rfc822-to-8bit (ORCPT + 99 others); Sat, 14 May 2022 01:16:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231923AbiENFQX (ORCPT ); Sat, 14 May 2022 01:16:23 -0400 Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com [209.85.128.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFC2C27A; Fri, 13 May 2022 22:16:21 -0700 (PDT) Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-2fb9a85a124so105231177b3.13; Fri, 13 May 2022 22:16:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=tgxGrfbnOUDbxRi/HopYzJN2PHchIMqDSJY9CbCOcv4=; b=Q88tpX1YsdLzak5i4dP3hibTDT31N3zIBNglDNwf0DReN08EiQDtojLfPmKvGkMas9 /b0fJRtD5+XqpSLahoGsXuLQoIvUTF0qZ3XABddBENhfKx2uu0Zl9blEAi1/V+ukdhJZ 0zzsqRQyuNd28uKM2TMqJlWGlIR8Uh+ogKjoMYdWFcuKPaBIUE7yw0DYDBpxgdJQWDHg a6i7bS3uHjFdz8tOwi4EkTuPxLT80XMNeUMwgL/K/+oPEml3YY8U2t+pRHW5JjXA3zae ta37t0XYkzui4rDXqCZTheipYqx47ItralHWCZ2YiSgBUm/u2X8FsNd+1tG4g9ue8LUq GlFg== X-Gm-Message-State: AOAM533SndEP44Isy42+Xai9N8xtmT/CBaqzEsLEBHoe0YhG/4MHHmKI yilj1zkAQrMP201/2UXFGGUShEz34LQ/5q8mOgg= X-Received: by 2002:a81:8cf:0:b0:2f4:da59:9eef with SMTP id 198-20020a8108cf000000b002f4da599eefmr9502079ywi.78.1652505380856; Fri, 13 May 2022 22:16:20 -0700 (PDT) MIME-Version: 1.0 References: <20220513153606.302464-2-mailhol.vincent@wanadoo.fr> <202205141221.H0aZXRak-lkp@intel.com> In-Reply-To: <202205141221.H0aZXRak-lkp@intel.com> From: Vincent MAILHOL Date: Sat, 14 May 2022 14:16:09 +0900 Message-ID: Subject: Re: [PATCH v2 1/2] can: skb:: move can_dropped_invalid_skb and can_skb_headroom_valid to skb.c To: kernel test robot Cc: Marc Kleine-Budde , llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-can@vger.kernel.org, linux-kernel@vger.kernel.org, Max Staudt Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat. 14 May 2022 à 13:20, kernel test robot wrote: > Hi Vincent, > > I love your patch! Yet something to improve: > > [auto build test ERROR on mkl-can-next/testing] > [also build test ERROR on v5.18-rc6 next-20220513] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch] > > url: https://github.com/intel-lab-lkp/linux/commits/Vincent-Mailhol/can-skb-move-can_dropped_invalid_skb-and-can_skb_headroom_valid-to-skb-c/20220514-003707 > base: https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git testing > config: arm-randconfig-r021-20220512 (https://download.01.org/0day-ci/archive/20220514/202205141221.H0aZXRak-lkp@intel.com/config) > compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 38189438b69ca27b4c6ce707c52dbd217583d046) > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # install arm cross compiling tool for clang build > # apt-get install binutils-arm-linux-gnueabi > # https://github.com/intel-lab-lkp/linux/commit/8f56e6b1b9945ea47c9f410d1254451df9d6fe22 > git remote add linux-review https://github.com/intel-lab-lkp/linux > git fetch --no-tags linux-review Vincent-Mailhol/can-skb-move-can_dropped_invalid_skb-and-can_skb_headroom_valid-to-skb-c/20220514-003707 > git checkout 8f56e6b1b9945ea47c9f410d1254451df9d6fe22 > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > ld.lld: warning: lld uses blx instruction, no object with architecture supporting feature detected > ld.lld: warning: lld uses blx instruction, no object with architecture supporting feature detected > >> ld.lld: error: undefined symbol: can_dropped_invalid_skb > >>> referenced by vxcan.c:45 (drivers/net/can/vxcan.c:45) > >>> net/can/vxcan.o:(vxcan_xmit) in archive drivers/built-in.a OK, so the issue is that VCAN and VXCAN are users of can_dropped_invalid_skb() but do not depend on CAN_DEV. Above error will appear if CONFIG_CAN_DEV is not set (or if CONFIG_V{,X}CAN is set to "yes" and CAN_DEV is set to "module"). I see three choices here: 1. move can_dropped_invalid_skb() outside of drivers/net/can (i.e. move it somewhere in net/can). 2. split CAN_DEV into one additional sub module: CAN_SKB and add a dependency to it in VCAN and VXCAN. 3. Add a dependency to CAN_DEV in VCAN and VXCAN 1. is I think the worse, 2. the best, 3. is the laziest option and is kind of acceptable. @Marc (and anyone else), what are your thoughts? Yours sincerely, Vincent Mailhol