Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1834806pxy; Thu, 29 Apr 2021 16:04:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdeOurzdUidVpQNj1CsbERioa5nJPnTTKBrludMoPiGfUFnX8A76oA02QufOnnoqZKLUqk X-Received: by 2002:a05:6402:5111:: with SMTP id m17mr2313972edd.343.1619737498285; Thu, 29 Apr 2021 16:04:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619737498; cv=none; d=google.com; s=arc-20160816; b=lWBVw+wYWAvBfoLqr5bW0yGBU922L95tNKsK8HzgHB6nZKlK7pspJ26BVV4Qjt2ebp RkivWwpG9KXx3592EgczAcBPAPMEs4kglLsmAg/46PiI+5v/4VCBCnt4WB3fIkzSOLlK VX4tdnatZIy90Dg8fUzBweXk3zOWb3GfqAkvVAP2mtzGhePpFHlXwwPnceGKgc0DAmK4 9YokTQIVKhKARRg0DkkwdpcLvwsP2GeK0p6NDcWqLzuwXiCw+DnfquP4piwlT/DEFCHa rHLgvoIj6k6dSkHKFv5c5AG8D7Tg977P6xnGufpF5gdSx+yxHaRKCvqOclYo5dc4Jm/n bEhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=GY8+NFNznc0uHAnSET8Mqpt9HOn2PDRsyzqQPuaEzLU=; b=WpWyz3UDe6PHms7r8XrDHBmSXdXYkPwuadCsxWVRWIZleY3rQeQQyQlcTsExqwVgvJ GxAnCBEGAzTVRRnz7sMynqI30H/pBI4AldfjZkf+FGRY+vWJFn3Sum+jBLQJ9dYaEtvi +EjkW7zZvXnuPu6nPqTRCASnZ1sLq/m2GJG75Qs02vh4qOUD00MZDHnsziXri69OCcpx 6ZRqOkV1BLLU8Q2i+fxFhCTsoooEf7EE83ktmYW7WbdYLyJMHpEYUk8dTPWvIUmo8RTN 23y+bSz5yLzGsvDPyzvDNGPVPx6C8UQO3WAenR+nMj3pVHbegVDz501EM74p31c46kFq Lx9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Nf2A9X+u; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c3si4076464edq.146.2021.04.29.16.04.35; Thu, 29 Apr 2021 16:04:58 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=Nf2A9X+u; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229947AbhD2XB2 (ORCPT + 99 others); Thu, 29 Apr 2021 19:01:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229847AbhD2XB2 (ORCPT ); Thu, 29 Apr 2021 19:01:28 -0400 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49031C06138B for ; Thu, 29 Apr 2021 16:00:41 -0700 (PDT) Received: by mail-yb1-xb33.google.com with SMTP id 130so36857780ybd.10 for ; Thu, 29 Apr 2021 16:00:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GY8+NFNznc0uHAnSET8Mqpt9HOn2PDRsyzqQPuaEzLU=; b=Nf2A9X+uMrg+yn9wRYcP32Q/OCmf8qpBLVncNs9qkU4PgOwNsVigargZmX7yQQxBHw sGbQrgdSIbvfeMEcxqUgeTfV6hJDaxBxon3maJK3VjFmvt5lmryM0s7xhdWYlpQGLvaY a2PLRsKPOgn3aC8ZRlA1cRmEA9gu89UoOUxoLL2FuWaOvM3ul/vLK/QAnojBFn1bWTgc VfIjvdGHcQKqCU53lhRPh4UQyc+AXZSorGFGQBYnBci//WGYwM2Ias3iqYTH/xnhlSSR /zVmnSvRk9PfkwlyStFJnLsD4kG+z6Zc61iShg5qhHaM9ijGhh8BnRwd5fFBPBdRZXbx gu7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GY8+NFNznc0uHAnSET8Mqpt9HOn2PDRsyzqQPuaEzLU=; b=EV+qH4otBGMc/cxTy/DO5zOSXMOJZ/aVn+fiOYcJsGIJf3k76O6MyKKhWMrpXt4Y5c QRMHFA3ujXLEyU2Yible62k58x2fU/4SjoRHBKttU16mCXam42pwwMHQ8mBWzraFpE1I QMbjTJBnTUd9ubWh9y9u68Z4M93yiBXBHxvh8udL5PNx3z3bKDcB1J2nSdkJ5DmjBv0N ZI/+GIXJPEnSU1jtCUp/QlT8P1KcW88LtDgl3W4/H2cH5/mEZqK3MDl4O4iSlMRH6SiE NRpfhI7eV7KaZXzY60lwQIExdm0rOZy8srQQyZTcOW392Eoa95FxZJC0rAC576M5KtnB O/Ag== X-Gm-Message-State: AOAM532RpuXc7AaMzwtwxbAL9m5qWL4KYq8xVNFAPRQ6DT0Vh9crMGnY 963kgMBNQQvqewCXqZ3ruX0yX00bnjcFLKNYq8ivYA== X-Received: by 2002:a25:d8cc:: with SMTP id p195mr2640360ybg.170.1619737240311; Thu, 29 Apr 2021 16:00:40 -0700 (PDT) MIME-Version: 1.0 References: <20210429150940.3256656-1-arnd@kernel.org> <202104300518.EF8t97XP-lkp@intel.com> In-Reply-To: <202104300518.EF8t97XP-lkp@intel.com> From: Jian Cai Date: Thu, 29 Apr 2021 16:00:29 -0700 Message-ID: Subject: Re: [PATCH] smp: fix smp_call_function_single_async prototype To: kernel test robot Cc: Arnd Bergmann , Linux Kernel Mailing List , kbuild-all@lists.01.org, clang-built-linux , Arnd Bergmann , Jens Axboe , Guenter Roeck , Peter Zijlstra , "Huang, Ying" , Borislav Petkov , Eric Dumazet , Juergen Gross Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for the patch! Some of the stable kernels also have this warning, but they don't seem to have the dependencies (4.14, 4,19, 5.4). Do we plan to fix those branches as well? On Thu, Apr 29, 2021 at 2:46 PM kernel test robot wrote: > > Hi Arnd, > > I love your patch! Perhaps something to improve: > > [auto build test WARNING on next-20210429] > [cannot apply to linux/master soc/for-next linus/master v5.12 v5.12-rc8 v5.12-rc7 v5.12] > [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/0day-ci/linux/commits/Arnd-Bergmann/smp-fix-smp_call_function_single_async-prototype/20210429-231235 > base: 9e5cff2a1315fec1da1f497714395670366506b6 > config: arm64-randconfig-r022-20210429 (attached as .config) > compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9131a078901b00e68248a27a4f8c4b11bb1db1ae) > 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 arm64 cross compiling tool for clang build > # apt-get install binutils-aarch64-linux-gnu > # https://github.com/0day-ci/linux/commit/be40015a8e0990182fa440f75adecf40cf5d0062 > git remote add linux-review https://github.com/0day-ci/linux > git fetch --no-tags linux-review Arnd-Bergmann/smp-fix-smp_call_function_single_async-prototype/20210429-231235 > git checkout be40015a8e0990182fa440f75adecf40cf5d0062 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All warnings (new ones prefixed by >>): > > >> kernel/smp.c:407:19: warning: passing 8-byte aligned argument to 32-byte aligned parameter 1 of '__csd_lock_wait' may result in an unaligned pointer access [-Walign-mismatch] > __csd_lock_wait(csd); > ^ > kernel/smp.c:515:19: warning: passing 8-byte aligned argument to 32-byte aligned parameter 1 of 'csd_lock_record' may result in an unaligned pointer access [-Walign-mismatch] > csd_lock_record(csd); > ^ > kernel/smp.c:516:14: warning: passing 8-byte aligned argument to 32-byte aligned parameter 1 of 'csd_unlock' may result in an unaligned pointer access [-Walign-mismatch] > csd_unlock(csd); > ^ > kernel/smp.c:525:14: warning: passing 8-byte aligned argument to 32-byte aligned parameter 1 of 'csd_unlock' may result in an unaligned pointer access [-Walign-mismatch] > csd_unlock(csd); > ^ > kernel/smp.c:684:6: warning: no previous prototype for function 'flush_smp_call_function_from_idle' [-Wmissing-prototypes] > void flush_smp_call_function_from_idle(void) > ^ > kernel/smp.c:684:1: note: declare 'static' if the function is not intended to be used outside of this translation unit > void flush_smp_call_function_from_idle(void) > ^ > static > 5 warnings generated. > > > vim +/__csd_lock_wait +407 kernel/smp.c > > 35feb60474bf4f Paul E. McKenney 2020-06-30 403 > be40015a8e0990 Arnd Bergmann 2021-04-29 404 static __always_inline void csd_lock_wait(struct __call_single_data *csd) > 8d0968cc6b8ffd Juergen Gross 2021-03-01 405 { > 8d0968cc6b8ffd Juergen Gross 2021-03-01 406 if (static_branch_unlikely(&csdlock_debug_enabled)) { > 8d0968cc6b8ffd Juergen Gross 2021-03-01 @407 __csd_lock_wait(csd); > 8d0968cc6b8ffd Juergen Gross 2021-03-01 408 return; > 8d0968cc6b8ffd Juergen Gross 2021-03-01 409 } > 8d0968cc6b8ffd Juergen Gross 2021-03-01 410 > 8d0968cc6b8ffd Juergen Gross 2021-03-01 411 smp_cond_load_acquire(&csd->node.u_flags, !(VAL & CSD_FLAG_LOCK)); > 8d0968cc6b8ffd Juergen Gross 2021-03-01 412 } > a5aabace5fb8ab Juergen Gross 2021-03-01 413 > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org