Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1883846pxu; Sun, 13 Dec 2020 06:31:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+qHkfOZ3aE4RkOzkyIx7R8kk7jOMtFBsPr/QdJdtSmS9IdHgEVMEtZ9LBDb9bRqqbWalq X-Received: by 2002:a17:906:4bc5:: with SMTP id x5mr2454100ejv.55.1607869865457; Sun, 13 Dec 2020 06:31:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607869865; cv=none; d=google.com; s=arc-20160816; b=A3EJrEsF6EnJh7g22wAnGYPXMvuS/3h6EyNLYC4YIepmoojmK3E6F3nt5sky2PEHiJ 4Gt8acdMUrV0fnSaA5tEA9XYx0ZsGko40leVtnkG/SuBo1ZcemnT246Q69NPCigOXmk5 5Q/T6e8r3bpCexZ56Oo8Pmc+uhmSvcVT7tjYWO6TKztUVPDkGPm14ZVyrh4o+Kh47v2E /P01EzjW0t8AI6XawKYUBNP5ZE1c5Mrp5EHk9wXQ+2yZ3elQdamFKODexLvpzM6cFvcX oy83TxIo3IdP8jkXo/TC5hbHRNyehLQro6RLLg110+an4p6Irm17+a8rgYzkhatLo/SG JH5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=TPQjGRbDyM+G1ag5ATIWXe8K7MmYu5+Y1iqnmTuRU6A=; b=EgnYa9Yx6hdVwKJgR3yqbkSesJIEn1uLBIIb4hRaho4ozhmTgDcAYglaqCgYJtfenR KPaQ1uLApcpZPF6PF6QVmiDbTnFE7VkUazy4f6nAKNVc9SYfxPDaNeIAelf63nA/ckmQ hnVPflCot9qS9L9andXL9mLWvFZDlD7Z+qk3FExPiYkqvZiQIx/+mv4U1A01Ur3VliTK t2ZWVPQ9yEnN9dZ1P0p0dCSv7DHazwgA5eLQWEhwmcYKJew9+oXpu47bqsb1Fv7YZ+co EOQzkwkAdtiFYj5U65FFhM/zmrxftlR42rPii2p+6dPAHIU2I8EmPG5X0ZF4bxmvhrWh O58g== 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 co9si8677353edb.379.2020.12.13.06.30.43; Sun, 13 Dec 2020 06:31:05 -0800 (PST) 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 S2438518AbgLLJ7y (ORCPT + 99 others); Sat, 12 Dec 2020 04:59:54 -0500 Received: from mga02.intel.com ([134.134.136.20]:61275 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438508AbgLLJ7g (ORCPT ); Sat, 12 Dec 2020 04:59:36 -0500 IronPort-SDR: ifZ8E8h53bGYsOeUzY+Qy2LwopJQHsMDkbQPfPp7f0zQwa6SzJZtTItV3d9R1VCmgq9VVUPb0W J7FG4CvqQo4A== X-IronPort-AV: E=McAfee;i="6000,8403,9832"; a="161586165" X-IronPort-AV: E=Sophos;i="5.78,413,1599548400"; d="scan'208";a="161586165" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Dec 2020 00:51:09 -0800 IronPort-SDR: aSBz5MFlyrxBJJzgSWgWgFPnNZy+yYkUI01f1gEKuZmrrl5Qfun45FyAmLvVl/IFwKO0p7Bh7U 88DPh5b1fv1A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,413,1599548400"; d="scan'208";a="324863738" Received: from pl-dbox.sh.intel.com (HELO intel.com) ([10.239.159.39]) by fmsmga008.fm.intel.com with ESMTP; 12 Dec 2020 00:51:04 -0800 Date: Sat, 12 Dec 2020 16:47:08 +0800 From: Philip Li To: "Geva, Erez" Cc: kernel test robot , "kbuild-all@lists.01.org" , "clang-built-linux@googlegroups.com" , Jamal Hadi Salim , Jakub Kicinski , Hideaki YOSHIFUJI , "David S . Miller" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-arch@vger.kernel.org" , Alexey Kuznetsov , Arnd Bergmann , Cong Wang , Sudler@ml01.01.org, Andreas , "jan.kiszka@siemens.com" , "henning.schild@siemens.com" Subject: Re: [kbuild-all] Re: [PATCH 1/3] Add TX sending hardware timestamp. Message-ID: <20201212084708.GA31899@intel.com> References: <20201209143707.13503-2-erez.geva.ext@siemens.com> <202012101050.lTUKkbvy-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 10, 2020 at 12:41:32PM +0000, Geva, Erez wrote: > > On 10/12/2020 04:11, kernel test robot wrote: > > Hi Erez, > > > > Thank you for the patch! Yet something to improve: > > > Thanks for the robot, > as we rarely use clang for kernel. It is very helpful. > > > [auto build test ERROR on b65054597872ce3aefbc6a666385eabdf9e288da] > > > > url: https://github.com/0day-ci/linux/commits/Erez-Geva/Add-sending-TX-hardware-timestamp-for-TC-ETF-Qdisc/20201210-000521 > I can not find this commit > > > base: b65054597872ce3aefbc6a666385eabdf9e288da > > config: mips-randconfig-r026-20201209 (attached as .config) > > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 1968804ac726e7674d5de22bc2204b45857da344) > However the clang in > https://download.01.org/0day-ci/cross-package/clang-latest/clang.tar.xz is version 11 Sorry that these are issues at our side, including the branch/commit missing. The push to download.01.org failed and did not really work, we will look for recovering them. > > > reproduce (this is a W=1 build): > > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > Your make cross script tries to download the clang every time. > Please separate the download (which is ~400 MB and 2 GB after open) from the compilation. Hi Erez, thanks for your feedback, we will improve the reproduction side per these suggestions. > > Please use "wget" follow your own instructions in this email. > > > chmod +x ~/bin/make.cross > > # install mips cross compiling tool for clang build > > # apt-get install binutils-mips-linux-gnu > > # https://github.com/0day-ci/linux/commit/8a8f634bc74db16dc551cfcf3b63c1183f98eaac > > git remote add linux-review https://github.com/0day-ci/linux > > git fetch --no-tags linux-review Erez-Geva/Add-sending-TX-hardware-timestamp-for-TC-ETF-Qdisc/20201210-000521 > This branch is absent > > > git checkout 8a8f634bc74db16dc551cfcf3b63c1183f98eaac > This commit as well > > > # save the attached .config to linux build tree > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips > > > I use Debian 10.7. > I usually compile with GCC. I have not see any errors. > > When I use clang 11 from download.01.org I get a crash right away. > Please add a proper instructions how to use clang on Debian or provide > a Docker container with updated clang for testing. > > > If you fix the issue, kindly add following tag as appropriate > > Reported-by: kernel test robot > > > > All errors (new ones prefixed by >>): > > > >>> net/core/sock.c:2383:7: error: use of undeclared identifier 'SCM_HW_TXTIME'; did you mean 'SOCK_HW_TXTIME'? > > case SCM_HW_TXTIME: > > ^~~~~~~~~~~~~ > > SOCK_HW_TXTIME > > include/net/sock.h:862:2: note: 'SOCK_HW_TXTIME' declared here > > SOCK_HW_TXTIME, > > ^ > > 1 error generated. > > > > vim +2383 net/core/sock.c > > > > 2351 > > 2352 int __sock_cmsg_send(struct sock *sk, struct msghdr *msg, struct cmsghdr *cmsg, > > 2353 struct sockcm_cookie *sockc) > > 2354 { > > 2355 u32 tsflags; > > 2356 > > 2357 switch (cmsg->cmsg_type) { > > 2358 case SO_MARK: > > 2359 if (!ns_capable(sock_net(sk)->user_ns, CAP_NET_ADMIN)) > > 2360 return -EPERM; > > 2361 if (cmsg->cmsg_len != CMSG_LEN(sizeof(u32))) > > 2362 return -EINVAL; > > 2363 sockc->mark = *(u32 *)CMSG_DATA(cmsg); > > 2364 break; > > 2365 case SO_TIMESTAMPING_OLD: > > 2366 if (cmsg->cmsg_len != CMSG_LEN(sizeof(u32))) > > 2367 return -EINVAL; > > 2368 > > 2369 tsflags = *(u32 *)CMSG_DATA(cmsg); > > 2370 if (tsflags & ~SOF_TIMESTAMPING_TX_RECORD_MASK) > > 2371 return -EINVAL; > > 2372 > > 2373 sockc->tsflags &= ~SOF_TIMESTAMPING_TX_RECORD_MASK; > > 2374 sockc->tsflags |= tsflags; > > 2375 break; > > 2376 case SCM_TXTIME: > > 2377 if (!sock_flag(sk, SOCK_TXTIME)) > > 2378 return -EINVAL; > > 2379 if (cmsg->cmsg_len != CMSG_LEN(sizeof(u64))) > > 2380 return -EINVAL; > > 2381 sockc->transmit_time = get_unaligned((u64 *)CMSG_DATA(cmsg)); > > 2382 break; > >> 2383 case SCM_HW_TXTIME: > > 2384 if (!sock_flag(sk, SOCK_HW_TXTIME)) > > 2385 return -EINVAL; > > 2386 if (cmsg->cmsg_len != CMSG_LEN(sizeof(u64))) > > 2387 return -EINVAL; > > 2388 sockc->transmit_hw_time = get_unaligned((u64 *)CMSG_DATA(cmsg)); > > 2389 break; > > 2390 /* SCM_RIGHTS and SCM_CREDENTIALS are semantically in SOL_UNIX. */ > > 2391 case SCM_RIGHTS: > > 2392 case SCM_CREDENTIALS: > > 2393 break; > > 2394 default: > > 2395 return -EINVAL; > > 2396 } > > 2397 return 0; > > 2398 } > > 2399 EXPORT_SYMBOL(__sock_cmsg_send); > > 2400 > > > > --- > > 0-DAY CI Kernel Test Service, Intel Corporation > > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org > > > > Please improve the robot, so we can comply and properly support clang compilation. Got it, we will keep improving the bot. > > Thanks > Erez > _______________________________________________ > kbuild-all mailing list -- kbuild-all@lists.01.org > To unsubscribe send an email to kbuild-all-leave@lists.01.org