From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0A8422FD685 for ; Mon, 26 Jan 2026 08:28:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=209.85.218.49 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769416123; cv=pass; b=ZdQAd6CkpHY5ba0gyGkE8efo/bDHDZEAA9+65mRvpQge75LcheqpDLe38VDwc6iEIJFj8yI2PbeJ5kH+xtmGnGlvtpOJmuSKDsaLo2zM2WP5DtJTHr7mptc4AjMBmdL3FksjAkOo7HkFaEFaZhSMzsqKzbg9DLCjAr1zpKBXtW4= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769416123; c=relaxed/simple; bh=IChdIJUhRMDHLJJyyMM7C09xoDho5XgoklbM0lDLFHQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=hY8Jw1I4ptBYYohECadNDiYlpwiAi8eAnO7rJuLMiAyjOY3WxZSY4yl2HlVB+sw/0pUag1m9aHrO/aLAfjgY/7muEfaBL0/UYpzZFdAJG3LGWLjmV5q/fW2IMVI8HS9tDytiNjybX+atV8eDo+ZRGax3jiUEdyVW/ZscbmqzfxE= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=nApYHIlQ; arc=pass smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nApYHIlQ" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-b8869cd7bb1so438768666b.1 for ; Mon, 26 Jan 2026 00:28:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1769416120; cv=none; d=google.com; s=arc-20240605; b=R0XQKucnXdVNbba26+67Y4LrrfBjmeXNR1S/W3AT82+ki7umO8tdHKYzPqPAHxKevf gTebdP6/tfMNcPwdUi0H80nU+o0U8+v+r86TpKRYbzkf0uUKxrz/ZoYgj2OMGYEOyG7E BCmfw32mSf7JcZsnPx/qmXcq7ybsuZEQ2CjA5PKOJWwqMS2/XDviZa6Y78wSkVlvFzff vtJcadDlxMrXmS+klNQOleTeSAo3zOEw6WJHEA66+iP/JDl0WTIOGW6yG7Rg9esJxHy9 zWGn0h8k5SQNiUm89YEIOFafc4lXcZshXhnkmCNqJCxIM56kjpsBWF5hqae4DG8VMHy7 fGTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=cq+fCPk8KJ9iRXfyMvxZCksWGZNw2PsDH5Tkw+tm140=; fh=ps72z2OdlkP4ukLjMiccVj3zXDa9lxmaZJmn8oW5zmE=; b=YIUZju9KbY3dZcz+0SZAV7+Exl9wkOpRAYXY9FShTwkyh7KRAwKYOPjOw18K5XUv+T 0QvEIvO5vSzOWtipLNL1jt/o1iL5KxSuy07v9C6LUHCSGczekMm2MaQDS6mTEHsNImRs F5ludxFB9lyiAv0+iUtFDVQD1HZCcZuegVlvZ00HBvpEgZQBA3z1N+BJ0TU1ys/DM6Oz 0CUx8niq0w0D+ij5FQ/QgmkQOVSNsbnOIq2ix2A62ksg8JKuJmscT103h6txBsNSdEqo Zykhr48ZH1kBdXm8dnjdTZCw++sb1YQbU74EpLt4A+pEvnXLFLwLNxEWXmKcAZHrgdB7 ueEw==; darn=vger.kernel.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769416120; x=1770020920; darn=vger.kernel.org; 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=cq+fCPk8KJ9iRXfyMvxZCksWGZNw2PsDH5Tkw+tm140=; b=nApYHIlQYlLupu386mGVKyB9BjWs93T0lGnGEBEXvTXURPPe8IxkVSq05UpczFG08o n4e+BbCRvJdQeFLgc2df2cPI3WPUl25sen01uBGTynP1bVtbR5XQe49dhHaPVVOMX22b 0Gy2BS5q0q3TTS++bvckUQfbVESZNi7dANaUFQ/pS6M8+hlc3sSWnOJXplOOUavsg0hv dwRZcO+bk7Hj0e6hI4GwvWPUQADeKlmRCXyViwr4P+0npjtIM3TsDKg2JVgTX5v5TKgE 3VIS5zNCMv8YdTsh22GXdupouHKOzOP57cE9FJNqaDZHpV9XpRgaX4tK2gt5ElpWJBwQ ZN8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769416120; x=1770020920; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=cq+fCPk8KJ9iRXfyMvxZCksWGZNw2PsDH5Tkw+tm140=; b=gbz1OULp+jo2KOKrDwOn5dRnnCrDIZrcUG9FdpkyD4/JOwtsZBiCdi7z+ounQZFx/T ocg0K4QZTDMirwK6NnRqz0dMnV6NKZAs+cfaVCaklAqujY4Q1R8685jtSymrpgE9L8X7 p51YkC1aW0Kv42jI6R5vNHyJyY3UAxLAlg/0U+VvHq738IiwZXh4p5l+qtbNS/4//TxO jgsHfb+vNZUrP55UFLTAq+2hE+zw8Wq25WHcVJyI9EdvOCei2oGMEZTTB2+Pt3T16/5+ ZkV/TbiCAqXfyDM92Zb/WAWBgBQx1BSZVgsADUbVzPORQAYYyA5gVNzG4XrDAJpoh0Co QRzQ== X-Forwarded-Encrypted: i=1; AJvYcCXwV1grGjZBzzbDsFkxNeaJWn0q2ISCCNeVUwCeGoUpaDkos4KKgUaX18fpd0yfX3cxNBOA9PIg+831qw0=@vger.kernel.org X-Gm-Message-State: AOJu0YyG6RyeX2lkr0lUFPZNIB0M4CZ43r8N4dV2GqMKtJDwyKsnXDF3 spsKv+I/fO5gHDAOQ2LHtPnLn4OlCvfveWA3PN0gtd34OlbraV4Ko1vF1UJaKLeMYoLcWv1IxfD OQ57XKRaLqGZkyXsnYF/e84YQyW/XWQo= X-Gm-Gg: AZuq6aLycB+XMq3C5obt9DKMM7QyYBytS7ZpAlSlm5c7asd4cIIIUGdqlnu5eW/bMO2 Y4qH4uMX9/GaaOszVB1FkWxpE1NUMisZkAHc4PSyOIjOnzZzoZDhc8QmDj206XMiSA+ZoG1jzcB 5ng8IzYqLrzd//HRwv7NNgXhX+i6sBU9Zd2y/AfblWlSpG6RgwCEIPQLfvzavyyZRolrMSpJzTU qRb/xvapegKeUTADfA66RIJd6NppXz39jo/AzBaiafci3AUs4wMkgUh+qDG3shuLoeh1N26t4c8 6j4kbZjJIdQUrBuhtRHOvPViXd4= X-Received: by 2002:a17:907:745:b0:b88:5158:d10e with SMTP id a640c23a62f3a-b8d3f9fbc54mr259128766b.21.1769416120083; Mon, 26 Jan 2026 00:28:40 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20260126-swap-table-p3-v1-6-a74155fab9b0@tencent.com> <202601261555.3oBvFZIt-lkp@intel.com> In-Reply-To: <202601261555.3oBvFZIt-lkp@intel.com> From: Kairui Song Date: Mon, 26 Jan 2026 16:28:02 +0800 X-Gm-Features: AZwV_Qgonn_1_M6o2-084NZVOdJiyhj0M59xAlSN4R8mXMx23SHqrmLkmWC0ORo Message-ID: Subject: Re: [PATCH 06/12] mm, swap: implement helpers for reserving data in the swap table To: kernel test robot Cc: linux-mm@kvack.org, oe-kbuild-all@lists.linux.dev, Andrew Morton , Kemeng Shi , Nhat Pham , Baoquan He , Barry Song , Johannes Weiner , David Hildenbrand , Lorenzo Stoakes , linux-kernel@vger.kernel.org, Chris Li Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jan 26, 2026 at 3:16=E2=80=AFPM kernel test robot w= rote: > > Hi Kairui, > > kernel test robot noticed the following build errors: > > [auto build test ERROR on 10de4550639e9df9242e32e9affc90ed75a27c7d] > > url: https://github.com/intel-lab-lkp/linux/commits/Kairui-Song/mm-swa= p-protect-si-swap_file-properly-and-use-as-a-mount-indicator/20260126-02014= 9 > base: 10de4550639e9df9242e32e9affc90ed75a27c7d > patch link: https://lore.kernel.org/r/20260126-swap-table-p3-v1-6-a741= 55fab9b0%40tencent.com > patch subject: [PATCH 06/12] mm, swap: implement helpers for reserving da= ta in the swap table > config: arc-allyesconfig (https://download.01.org/0day-ci/archive/2026012= 6/202601261555.3oBvFZIt-lkp@intel.com/config) > compiler: arc-linux-gcc (GCC) 15.2.0 > reproduce (this is a W=3D1 build): (https://download.01.org/0day-ci/archi= ve/20260126/202601261555.3oBvFZIt-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new vers= ion of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-kbuild-all/202601261555.3oBvFZIt-lkp= @intel.com/ > > All errors (new ones prefixed by >>): > > In file included from : > In function 'pfn_to_swp_tb', > inlined from 'folio_to_swp_tb' at mm/swap_table.h:115:9, > inlined from '__swap_cache_add_folio' at mm/swap_state.c:151:11: > >> include/linux/compiler_types.h:631:45: error: call to '__compiletime_a= ssert_601' declared with attribute error: BUILD_BUG_ON failed: SWAP_CACHE_P= FN_BITS > (BITS_PER_LONG - SWP_TB_PFN_MARK_BITS - SWP_TB_COUNT_BITS) So IIUC ARC may have MAX_POSSIBLE_PHYSMEM_BITS =3D=3D 40 with PAGE_SHIFT =3D=3D 13, BITS_PER_LONG =3D=3D 32. So SWAP_CACHE_PFN_BITS has to be shrunk= to 3 on that arch (Currently SWAP_CACHE_PFN_BITS =3D=3D 4). That is acceptable, swap count value beyond (1 << 3) is still offloaded to the extended table just fine and that's the unlikely case. I'll update the macro definitions to let SWAP_CACHE_PFN_BITS shrink automatically when there are not enough bits, and trigger a build error if SWAP_CACHE_PFN_BITS <=3D 1, and test the ARC build.