From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE205C04A6A for ; Wed, 9 Aug 2023 15:53:47 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3F2516B0071; Wed, 9 Aug 2023 11:53:47 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3A2D68E0001; Wed, 9 Aug 2023 11:53:47 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 290BC6B0075; Wed, 9 Aug 2023 11:53:47 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 15DA06B0071 for ; Wed, 9 Aug 2023 11:53:47 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id D2B16808E3 for ; Wed, 9 Aug 2023 15:53:46 +0000 (UTC) X-FDA: 81105011652.29.9E8D4BE Received: from mail-qv1-f41.google.com (mail-qv1-f41.google.com [209.85.219.41]) by imf18.hostedemail.com (Postfix) with ESMTP id 1F5B51C0009 for ; Wed, 9 Aug 2023 15:53:44 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=google.com header.s=20221208 header.b=WSG9VJ4k; spf=pass (imf18.hostedemail.com: domain of ndesaulniers@google.com designates 209.85.219.41 as permitted sender) smtp.mailfrom=ndesaulniers@google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1691596425; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Jj7DTrNGm2MlP+wWjRwlCn2slphii4CREHOcaRrbpRQ=; b=gVZRI/QJVOBGYQOWzQm+h8FTPzCIlvdCCFlzlymkgUidnqF6BWq7dUkvZkCfaW3qBUh5Ei y3x9b+PG3p6/ycBhPfnycpY3kG46a3ezgd90SHSlVIpvb/67kDn5Mv5iAgdCKsMERbfZzQ sDv1x++17Qt3X6bQ9P8zjqOUHTmp3E0= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1691596425; a=rsa-sha256; cv=none; b=FxmV2QdD3h8g7+K20BlYxJAKJUwwYm5H6aInloodUYTuRZua6mIpPNmeDq+/sCxyYn60nk VqnW1vsUboAW8fOf32NpnxFZ0XgeYL05QBASj1nu38WXd9wio2nVRH4fjJklszPeQRcXtW nwRXjCEmFllO+VcTakmknOiEKEfG5UY= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=google.com header.s=20221208 header.b=WSG9VJ4k; spf=pass (imf18.hostedemail.com: domain of ndesaulniers@google.com designates 209.85.219.41 as permitted sender) smtp.mailfrom=ndesaulniers@google.com; dmarc=pass (policy=reject) header.from=google.com Received: by mail-qv1-f41.google.com with SMTP id 6a1803df08f44-63cf8754d95so33434656d6.1 for ; Wed, 09 Aug 2023 08:53:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1691596424; x=1692201224; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Jj7DTrNGm2MlP+wWjRwlCn2slphii4CREHOcaRrbpRQ=; b=WSG9VJ4kqh5Mtb3jRAk1eax3vy+FN1e6ulga7XaOG+bzATV1T6AoSZZJ6tHaRPIT09 wbSLjuf/2gvyw13A5P7eg74i74L0f3MiOnykHXQxRGMZiWG+0fGMD4LtRv2syrrT2+Du paTp70rkBJeO8msKahuMyka6nLK/0dobgJXfI8oVoiXkx2Hk4Kiyz3HnuzPvfIPbnQx5 LUrYHQqnArLjbFJE+hM8M4VWI2t61QLGIJN5aQrU/nWupmh7gIHMAlVf4UJXOTVBYr5R Mja3euKHWPwwm9d+I27DWXeePSQcr+J0wV9c1iiYFbfpkHy3nl1PYEUIuUPmH0KdfR0l fkOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691596424; x=1692201224; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Jj7DTrNGm2MlP+wWjRwlCn2slphii4CREHOcaRrbpRQ=; b=hfFcrVqy9vGy4S001uykCcfJsp5UjYDbyt1zDUaCIDld6TtBHdMQIK2JIZi+Yxvy8r 1rAP+lB8ZVR1sNgfkIHMyFPrHLK9vWm0B1jK3OWOuKWBT1jv1MeNK5iW5u12/02Uhxgh ZwBH0lW5ITMGDwLDAULIUNXUxUKO/hJUuRZSrIR9l6E94+aGH4mlmDdlMIn4y/H7/rXL f7rYI3vpoMsDeFynG+TBviV35yKEc37OD+gNCca+seVosQGUSmHxcNl7vXHFv8hqo5IN lq+Qgm5RR1+mJVbgXUVjwj1ZdGi4u70AlhXfnJWRD1RzUY5BHahZop5BtCoRDvBV4TsE jnPw== X-Gm-Message-State: AOJu0YxdisyLSmkIWyH/9DkidSuVxIlhRq+x7TL1YDh028DLRxNzJeat vq6uyIGrrszZWuUBWvWRtxbe/jqzkJ/bJBekoLeJgg== X-Google-Smtp-Source: AGHT+IGnyYPoPMY+tg6XgaKZ0G9p7zeftFr4iFQivgyeuEqZld3kQzaAkN0BHMAs8BjKKZUovUnhvDLX56wgHF/CjlY= X-Received: by 2002:a0c:da90:0:b0:63d:87e9:2e56 with SMTP id z16-20020a0cda90000000b0063d87e92e56mr2830195qvj.8.1691596424062; Wed, 09 Aug 2023 08:53:44 -0700 (PDT) MIME-Version: 1.0 References: <202308091820.0dPY7D6f-lkp@intel.com> In-Reply-To: From: Nick Desaulniers Date: Wed, 9 Aug 2023 08:53:33 -0700 Message-ID: Subject: Re: [linux-next:master 8173/8441] include/linux/list.h:53:13: warning: '__preserve_most__' calling convention is not supported for this target To: Marco Elver Cc: kernel test robot , llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Andrew Morton , Miguel Ojeda Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Stat-Signature: 8cc68mpy8n616wfnma4998aqtxbpqgtp X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 1F5B51C0009 X-Rspam-User: X-HE-Tag: 1691596424-7925 X-HE-Meta: U2FsdGVkX1/JnIRsWSB64dXPD3idS+x21ThjhAZER0/ZSmRcbkbXT0SG/7to++rUuI2iV5Ws/NaN4aLlr1h71cXd+bPGU+6sCIjRqo+R9MG8BaDv2GWmtlpXH1TBXCyI3DaXojBr5vJxYojRreYGuogV0PsyyewdfnyaFTOHyEE0ow8gQT3QttDCMKaDBcwQDKz/nCq9Lzv5GJRBeleY02iDxuMKXOh7u3yxPEGZWzJRGs4oCNplFvpDLT4g558xzgTq2irNxZj/tkw3ESsBPxzjF4+8qgGZDNddB2b+3w77BTQFBuFqL1bj7jOmWavKaaaT6B7t9MnKL6ZUI9sEr8BvMQKEnwy5BbQCiGpyRpiKtZBXBvt5tdDX9mOBDUzSZgzafE/H+hoN54i0MPKEI5GBLTGB0lGCRlw+WxLk53rU2ZH/Qc2bxUZ4Ish4BeeXXXGExYIdY+NkQiDgllsdxta9BK8mYoEzr9aLtuBHZUvLFc2YtJez0wy6lt51VI7cNMjLoMrmhN22OV4nNxQcWV+jhnLJjZh77OwV86Op0rtDRlO0sNFZBtVGA3PzJ/4nAdzjaA33NxbgFlgpSYuFTJp8CKJnvE2xWzgXq64xILrgjo9e+FNc+e/J4CmW7XAkgA45wk/68JIm/8kPp1v2HhztSlWXARYDUDr1bxn9tnh4hdjhfNY2VpS6+/bs74oVsKcLrgf8FiyIjgRpHicDfed/N2Qyt8IkEpdkIIPnh6DaScKIE2kRfBkZzog2V7pwwYdNr4kO4mUP+EGHK9mwWEJuZP58y0SRkV+pLKngIBLkIZjjc01frrogTMr64e738Or1ZDRjGjEEOgBKTLRwRpQA6iMCrzLMvPyJuRLWkIx8B5WL4TZCviuA99+Kmb4xJSegi2sMG7NQf2KOWliOnZcqWDQxhrt/NgDDODjEd5jmffRe3yi37Utpq1un/hTrmm++b2fGmTNSb/B4PAo QNyYLB+7 pm3yMs9BlN6INw5JHstaA0cQ4cQyby6YiCU1KHtkMDvXAt4kce78qr4x4Tq2MYBjX1zHzVjKVu8TRhTqM8bbZq/pXzz9ezGXO2/7ScuflsECeQJBSKBNWos2umJWKnJ3UBdLXW0yRMm4mtjvt4WAiB784tz0lJYoDtwJOQG9pGOWUkBVG8sjBOdIFSs2xGtBHpexFGRangMdjAxnt1Tq8xsREYCha+llRiIAV4YJtxmPvPT/zPTI6KxlXJRhKdQm+cUH1tVZeT9IRg27Q+aic7aXi7JpblmZJuCmYy4grhsARbgQHJj6s+nNjTNFfrDbmDbcFgW5+fh69vKckVWpUMOMAdZ4wNDrnHJ71O7RvsmS1OCz87V2poROTKc7TS/Vk1DpyOiO0CFrVNXVFhk7A5YQLcPIZgwdfAS9DMqpZC6MTfDItTDbgeVwk3Atdi8I34gXYvEStCzEkcoKP6RmTv6gIJ4+4VxajJB+ht/UFobpKK4jVAf8IXwZTxNvYD17pgtWkwNTApIww80iVeERfFCaI/rw9FQY9mkH/ X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, Aug 9, 2023 at 4:15=E2=80=AFAM Marco Elver wrote= : > > On Wed, Aug 09, 2023 at 06:27PM +0800, kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next= .git master > > head: 21ef7b1e17d039053edaeaf41142423810572741 > > commit: fee8feb67f0b2954eb7a2a259122e43a15cf3a52 [8173/8441] list_debug= : introduce CONFIG_DEBUG_LIST_MINIMAL > > config: hexagon-randconfig-r041-20230808 (https://download.01.org/0day-= ci/archive/20230809/202308091820.0dPY7D6f-lkp@intel.com/config) > > compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.gi= t 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a) > > reproduce: (https://download.01.org/0day-ci/archive/20230809/2023080918= 20.0dPY7D6f-lkp@intel.com/reproduce) > > > > If you fix the issue in a separate patch/commit (i.e. not just a new ve= rsion of > > the same patch/commit), kindly add following tags > > | Reported-by: kernel test robot > > | Closes: https://lore.kernel.org/oe-kbuild-all/202308091820.0dPY7D6f-l= kp@intel.com/ > > > > All warnings (new ones prefixed by >>): > > > > In file included from arch/hexagon/kernel/asm-offsets.c:12: > > In file included from include/linux/compat.h:14: > > In file included from include/linux/sem.h:5: > > In file included from include/uapi/linux/sem.h:5: > > In file included from include/linux/ipc.h:5: > > In file included from include/linux/spinlock.h:56: > > In file included from include/linux/preempt.h:12: > > >> include/linux/list.h:53:13: warning: '__preserve_most__' calling con= vention is not supported for this target [-Wignored-attributes] > > extern bool __list_valid_slowpath __list_add_valid_or_report(struct = list_head *new, > > ^ > > include/linux/list.h:44:39: note: expanded from macro '__list_valid_= slowpath' > > # define __list_valid_slowpath __cold __preserve_most > > ^ > > include/linux/compiler_types.h:132:49: note: expanded from macro '__= preserve_most' > > # define __preserve_most notrace __attribute__((__preserve_most__)) > > To silence this warning, we can just guard it based on known-supported ar= chitectures: As a band-aid, sure. Reviewed-by: Nick Desaulniers Long term, perhaps we can fix in clang what __has_attribute evaluates to for this attribute depending on the target. Filed: https://github.com/ClangBuiltLinux/linux/issues/1908 ^ Consider adding a comment linking to that in the sources. > > diff --git a/include/linux/compiler_types.h b/include/linux/compiler_type= s.h > index c88488715a39..c523c6683789 100644 > --- a/include/linux/compiler_types.h > +++ b/include/linux/compiler_types.h > @@ -128,7 +128,7 @@ static inline void __chk_io_ptr(const volatile void _= _iomem *ptr) { } > * > * clang: https://clang.llvm.org/docs/AttributeReference.html#preserve-m= ost > */ > -#if __has_attribute(__preserve_most__) > +#if __has_attribute(__preserve_most__) && (defined(CONFIG_X86_64) || def= ined(CONFIG_ARM64)) > # define __preserve_most notrace __attribute__((__preserve_most__)) > #else > # define __preserve_most > --=20 Thanks, ~Nick Desaulniers