Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1656557pxy; Thu, 29 Apr 2021 11:26:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzr+5Jismhzxu0YoDTG3npLVjYvg1Aj3pmhVRU0buUqmsP1AnPeep8GxgoxUPAC1/vz+Gri X-Received: by 2002:a17:907:168e:: with SMTP id hc14mr1325629ejc.98.1619720773859; Thu, 29 Apr 2021 11:26:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619720773; cv=none; d=google.com; s=arc-20160816; b=epvXCdxT8xBxTK1LG+lq8pNmiiI8ncHQVfbf/f7a7q3uKRoRx71uLLiocPuEafO4Kd F/Uugw9xQE6YoC9/9kJOBsmMNbeHf01z2gwdmbCX25+JRqQEWdLhdFNAzZ2HQkXxAzLJ 621VyyFfNjLEnoFruxYq6qE7wfOVuL1OIOE2NLDZnIcZjifJbeXDpc0vRC5LVB5MfKfr y6w2e/UgtO3JZ90a2Hy9zItK95oZQTVWDS+We5aCWGbAGQ3PHcH7qIifAlC8dkNR/vtK I/T07iVHoYQ6TzmB9MzkK3Ma/q6+y2RBE8J3FDFhMSRswoyRlv/urNQ7LExUq4+y95gi vG/Q== 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=ykWrXGycxSeYLE6z1WE0zVh/XXJJOlGXtFhHyus2kiU=; b=Kpz3uvPU2FZ5cZs0uE8q0S/I5pYxmoRz6Iv9lp4ryHc2VChwkAbNgduiNlu/Vvd97k u13W4ZYJcZcv+Gg7hhaIV4hzq8QVHLkcAaUYOQYyzPWsdk6s2UJqxZaYJaUfbPgm5yHd 1TILb541uyN0bfouu5N1AGiVtAUQ27fQQ/TIa12/GVvqat4QX4V/WjsmjFvzVbjyZ9oh RrJD+jXrfqlKGq9DJNsVXISRcMmPaiBPQso4qI00t3qCc14j17iF3BNDFsL0OMPLMRPO TOQ0V/RS+pYpOlZzGT+q8H+Gze9iE1/zHTtJ1vo9YJ88aHg992NF7nwDnHX/6q7Ogow8 hO7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=DXTovYi6; 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 jg13si833407ejc.430.2021.04.29.11.25.26; Thu, 29 Apr 2021 11:26:13 -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=DXTovYi6; 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 S241007AbhD2SZU (ORCPT + 99 others); Thu, 29 Apr 2021 14:25:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233338AbhD2SZT (ORCPT ); Thu, 29 Apr 2021 14:25:19 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 299A7C06138B for ; Thu, 29 Apr 2021 11:24:32 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id x20so76008980lfu.6 for ; Thu, 29 Apr 2021 11:24:32 -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=ykWrXGycxSeYLE6z1WE0zVh/XXJJOlGXtFhHyus2kiU=; b=DXTovYi6u/rI4R6PUosmg+OSoth6e+DYO//fTTMJJQoT3qBj/rN3BitqhpxxjTzXNU /tJJsiKvrSYFQcbZPsgc5UVeFdvS3hezgrvlWe4wn/C5pucaV2p0tbXGRAu91LKcg9PY 7T01WkxzoIyUen9+PE2kIYtVl5R77vMTtQrKJ2AMliqIc8aRy837DomZpLwncprSZwC4 xeBEde2jOulktL1a5VqUWTUiEFIavDywzFBUJdKR6VzBt0LwOF0mU9eDRkTLmrgBqkRl wdzrma8nJpYv0Xe3tyX/luekMqSA8eyjJorGd0DbSMjEpmOgCdcj3EDZQ5p5ISVbZsXJ VvHw== 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=ykWrXGycxSeYLE6z1WE0zVh/XXJJOlGXtFhHyus2kiU=; b=CF9bO8xIDNBUThZZxJUHB3ZkRp4JXEXc/BkDiMiDTNN/4VXR2W5lqoc4YOScB68A69 wZC0yuOAco9usWFO1jaqg2s+n3fxEIci7YlEQrQmHCjQyq0IZ01GBQmk5IJDzv6Y6FDJ rr3B6YG+ZkTnqSCroJ9698oQcGvkixUu3p1ZJFiO/Z62Y6tw5eI8GhzXTMLiaWJ7W5tQ npGlNTLOY+UsvvHjM5gyzBbH66yqOSt6HtTAEXf4kMn8cKPJ3E8ZZlmdoGIBKxQc/d7V etHV+OPXEOos0u1yzRRhO6K911cEwEr8ZOLp5/iVGKaAEBRBqOonX3ss1bj2ZaejG9fn Zzmw== X-Gm-Message-State: AOAM530QkfKkwaDlduAHe79GKdDjcMHtyGJ/qVRYaoxph49Hp+w4Nqsd 21/dfR2AmWTQEvFM06otWQM9Wj3PoQKDyGqw98z3rg== X-Received: by 2002:a05:6512:94d:: with SMTP id u13mr588562lft.368.1619720668888; Thu, 29 Apr 2021 11:24:28 -0700 (PDT) MIME-Version: 1.0 References: <20210429150940.3256656-1-arnd@kernel.org> <20210429181716.2409874-1-ndesaulniers@google.com> In-Reply-To: <20210429181716.2409874-1-ndesaulniers@google.com> From: Nick Desaulniers Date: Thu, 29 Apr 2021 11:24:18 -0700 Message-ID: Subject: Re: [PATCH] smp: fix smp_call_function_single_async prototype To: Arnd Bergmann Cc: Arnd Bergmann , Jens Axboe , Borislav Petkov , eric.dumazet@gmail.com, Juergen Gross , Jian Cai , LKML , Guenter Roeck , Michael Ellerman , Peter Zijlstra , Thomas Gleixner , ying.huang@intel.com, Nathan Chancellor , clang-built-linux Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 29, 2021 at 11:17 AM Nick Desaulniers wrote: > > (replying manually to > https://lore.kernel.org/lkml/20210429150940.3256656-1-arnd@kernel.org/) > > Thanks for the patch; with this applied I observe the following new warnings > though (for x86_64 defconfig; make LLVM=1 LLVM_IAS=1 -j72) > > 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); > ^ Perhaps roll this into a v2? diff --git a/kernel/smp.c b/kernel/smp.c index 1ec771d9f91c..499be1eb5189 100644 --- a/kernel/smp.c +++ b/kernel/smp.c @@ -226,7 +226,7 @@ static void __csd_lock_record(call_single_data_t *csd) /* Or before unlock, as the case may be. */ } -static __always_inline void csd_lock_record(call_single_data_t *csd) +static __always_inline void csd_lock_record(struct __call_single_data *csd) { if (static_branch_unlikely(&csdlock_debug_enabled)) __csd_lock_record(csd); @@ -431,7 +431,7 @@ static void __smp_call_single_queue_debug(int cpu, struct llist_node *node) #else #define cfd_seq_store(var, src, dst, type) -static void csd_lock_record(call_single_data_t *csd) +static void csd_lock_record(struct __call_single_data *csd) { } @@ -454,7 +454,7 @@ static __always_inline void csd_lock(call_single_data_t *csd) smp_wmb(); } -static __always_inline void csd_unlock(call_single_data_t *csd) +static __always_inline void csd_unlock(struct __call_single_data *csd) { WARN_ON(!(csd->node.u_flags & CSD_FLAG_LOCK)); -- Thanks, ~Nick Desaulniers