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 3F7D1C27C53 for ; Sat, 22 Jun 2024 04:24:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9BED38D01B7; Sat, 22 Jun 2024 00:24:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 96E988D01AF; Sat, 22 Jun 2024 00:24:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 85D038D01B7; Sat, 22 Jun 2024 00:24:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 647948D01AF for ; Sat, 22 Jun 2024 00:24:58 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id BF7F3A13CA for ; Sat, 22 Jun 2024 04:24:57 +0000 (UTC) X-FDA: 82257234234.17.95AD618 Received: from mail-vk1-f170.google.com (mail-vk1-f170.google.com [209.85.221.170]) by imf12.hostedemail.com (Postfix) with ESMTP id F16E140008 for ; Sat, 22 Jun 2024 04:24:55 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=XX1aJAE1; spf=pass (imf12.hostedemail.com: domain of 21cnbao@gmail.com designates 209.85.221.170 as permitted sender) smtp.mailfrom=21cnbao@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1719030281; 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=t5LUtvbklJ0OC7BwX1453vWX6X8qtNhByqH0/q7p/+c=; b=etXpMPAD2BHWsieuuXbNKl4I6L/h2AY/MW30ahvYaqx9LqPfXvndc4Qa9T59vF4nEzvmAN 09cm8/RF4p54EaHpuGFJphaz8Irrw2F53VYEnOqnHJ/atHbzr9NvfRZyixfR9GCBvW8Z2r B8FPm8TI1KVXACY4L7kT0Q1ZogH/df0= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=XX1aJAE1; spf=pass (imf12.hostedemail.com: domain of 21cnbao@gmail.com designates 209.85.221.170 as permitted sender) smtp.mailfrom=21cnbao@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1719030281; a=rsa-sha256; cv=none; b=DLacBTCQiNcTHEsq1W4xt2ppY/2rfTQl9b9RbPs34vud1ph7IJRgDwx9msj6iw9WN7yBLK VOGIizSTQafuFzJLnQiT2Bc0KAy2PlIj+nk2nOmC/JfYVTG3qMmJvvadlVeMn5yAfONsQW p3gXgldmpv239SRaKoCx7Da8agioAsQ= Received: by mail-vk1-f170.google.com with SMTP id 71dfb90a1353d-4ecf43f5537so1299876e0c.0 for ; Fri, 21 Jun 2024 21:24:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719030295; x=1719635095; darn=kvack.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=t5LUtvbklJ0OC7BwX1453vWX6X8qtNhByqH0/q7p/+c=; b=XX1aJAE1iBc0lVDhurb9riIQvXT03toz/f5FlnNwGlofNy4Iw+nI0EQKL+DBwFSU8X 3gPnNZDxcSbbytYZbQEVrstUhubOjpkWymJldc72AhArr2v9ZhSsestfMLdCeczj7HZ+ BsO66eqaxUTJcjZU5FZuDZWJeVuvDsu9B1oxs2xVrjy4328i3Qcu2/qhXe6QS3fJ0odK 6MfO+PYorqEii5DHm2IIEUPbFIwB7M+jO8WsC4JWjIYMQpfVarZ8qEfA+68FMo6RwWk5 STsd3IbmQ+n4HVPKZ+XdXeHd0JR+nnE25XZNuzJ/ir2pB2dNeFi7kRR0cx/hUmmjFMf6 ayIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719030295; x=1719635095; 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=t5LUtvbklJ0OC7BwX1453vWX6X8qtNhByqH0/q7p/+c=; b=RKovT0TToGNzqOGmwG8blV2eOeuXpeBtCrldLn3UyGSLfQaYehSra9AKuMk0RWb+St hAA0GAJ2d69+8ZxVGs+jEji46OE8I2N2kzQ7JkLVVsrR6CiRasYkLgDWQmUt+DMXlLfm yL3gIpEiC0/2hvol6JZe0ZVaRQzLXTsVM+oUD6FkI2u9H/FaR2S9vY4RNHyTcp2UdPM4 yN1wmo3TfLzhONhuA9n1X8psULtfes1pkW1xw9MX9yR9s8kB9lAGo0ovkbTLaIhgwCG8 P3gGVcaDH6dXoM3KfL+wdifhzijHD0YxcxdqySLJ2AvKBdBiQ3MFE4vwP+tLKEQtZQ5D k20A== X-Forwarded-Encrypted: i=1; AJvYcCVBUfe5Jd5CDqz5opzMNhXMMPeyaVedSV6nXQsyTG0hTndrQHNQ6ftj5yu1TPqF3NRfNfZZiYth9iGCpFoo5Fk+Tbw= X-Gm-Message-State: AOJu0YxJsi9r4ZAVDPzozbz9FrWkSMS2ecHET+5oYpjY6CBv1LTrgDc/ quzVJVvXlAWq2cSGE5ncPKQaQH+weptCbSudHp77FscX5PFMXLPYQ0GX6BCnr94KhUhqSXjIqQt mJCV67w01r6sSpbMfYs9EXKDtiNo= X-Google-Smtp-Source: AGHT+IFN+ilfdJ5aKTG+ZybpklgjM4CXArShZxiQtUHqxGXG7iBINXEeBe6pR85Vd1mDXObf5yR8BxFTJ5Oa+VZL6JM= X-Received: by 2002:a05:6122:4127:b0:4ee:244:b0ab with SMTP id 71dfb90a1353d-4ef6508a088mr196137e0c.2.1719030294879; Fri, 21 Jun 2024 21:24:54 -0700 (PDT) MIME-Version: 1.0 References: <202406220112.qjyQbasK-lkp@intel.com> In-Reply-To: <202406220112.qjyQbasK-lkp@intel.com> From: Barry Song <21cnbao@gmail.com> Date: Sat, 22 Jun 2024 16:24:43 +1200 Message-ID: Subject: Re: [linux-next:master 6448/7397] mm/swapfile.c:1388:6: error: redefinition of 'swap_free_nr' To: kernel test robot Cc: Chuanhua Han , oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Andrew Morton , Barry Song , Ryan Roberts , "Huang, Ying" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: F16E140008 X-Stat-Signature: buf8a3am3mbzjrxs4psddbbwsq77rbr1 X-Rspam-User: X-HE-Tag: 1719030295-630730 X-HE-Meta: U2FsdGVkX18FimXYX+KFXe8/FjkicXmxyodyloiz4MJfuGl2KGvNZ25J/xjU8V1hLGhjyxJEx+aeB5TnINPp9p0ThgafyBkfJ2n8/Atmd45yT/1oP3QYWQ76T8XKXeg9DLp1GYpdnf062CiLwACC4RZjrZCb7cAeAfuRs7mt5XRAR3Q25TQHCyNQf41gA7CYLy7CSzKnn+dz9uFeFw4EraNmvMEta236LheERaZUbQOjbOXdIGFNNcPfS8CdlcbYPTrQAkMOdxAES2ntsuPlSewfRu8UoI4AthQXhFYNu627c8XSO/ADy6h9pwVj6rSfp8cIAKMiRfw6/ICsJmQofMHpYnFgUT41qkeExoiuOJoMgfCa01CVQFBaSkRvRFsRztMjo0KfHiaj2JSyhF9newX5inUc1Jfx5dwGIgj9uatGqWM7GLizDmvRPiuvMw6IXf1XnPkiwMr7WD/jbbWhtO0sEl0L8DzBuuQ1y53vI+4Xdf8hPqDcIFto7pS4b4K+JEYUVOEzFzjqx7XHQOaPOMpvCqx1s+0qVBzspYh9LggGBAG/jKAGQ3J/PnVHAK5RNcnR8bP4cvxhAGLOu+xnCYNYanvST+zqnBkQFkbJbzO+NdMKPrlWGHYLnCIppROQ3gD0UQH8yL58dKopPyRx83BhZXlA8gAiXXDrmdiRuaNfLKUqXu+SCy2TuyTvMT3nalsrymvVfaTOnuMFh+bGnIf/aBwoAWKpFFD7GIMO0BRrds0FABs0e7QyRBF39QzXMCeszwNz78tJLRb23ZK0Lly7foOYXE2x09kqjfIBKk0K8EPA6rbmmQjiehNOJoXQo4X/jzfPR/7VoaWmNNxr7r/rmDroC6llf2K+lECsUDqoPuQVO/a4+UF4WrJMKMLyRiaJW0It3GMS9Uuf9kgpkJCVKWCJ7ETD4jT4Hasdw9OWwIKxCeuqEH+IkMhQMRJQpF3XcjwWQKgSli4Dqva HX1C07eK KyL2QkJR/DGniWcm71GW+14nK6RfFM24X0ExfCD4JsdifQVRCAkkWP05a7CKE3LFNXH2mh1djOZvlzvSZDCFuFhllVvhTqzYlC7HPfYrfnoJbLTQxb47LNZ5HbAbMhyMaqDl7isckf6qExIz2rWBBpyy5Rkgp8vaBgewEVSmLyG+FM3zCblRfEcvWBvihc/79jbmfFThBK2bORwVWr3q3HWvs/IUCimkj/C/ke6UMgF5u1zoYwdl+M4qRw1Q3HW7l0vlkjWmXCkLhM3ALBf6cw3LdTRyPizhgqdknukcrav1VMWzJSLPInbRg1UNB/UyR5udxRTUF5BgSUdxQMJcwhm6HsGC6e5Fa6M2pZwGVXLB+WOASVDqfIz6hrdRrEM3Qd2M1/IU2pprbMY2pHhVakBkZ7BzwVQgs9FlqLHX0c/RNtECSSw2TaX1GDEGER4qIaJ1jDAkv+C5C/7gdzqB9H0I9GYCXCTFiZ8b7901uocFpWMXiHNSEYkoSuAEkJyPPtV8U 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: List-Subscribe: List-Unsubscribe: On Sat, Jun 22, 2024 at 7:09=E2=80=AFAM kernel test robot w= rote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.g= it master > head: b992b79ca8bc336fa8e2c80990b5af80ed8f36fd > commit: b858a8a49e72678a7e0ac90b8135d746b31d7586 [6448/7397] mm: swap: in= troduce swap_free_nr() for batched swap_free() > config: x86_64-randconfig-014-20240202 (https://download.01.org/0day-ci/a= rchive/20240622/202406220112.qjyQbasK-lkp@intel.com/config) > compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0 > reproduce (this is a W=3D1 build): (https://download.01.org/0day-ci/archi= ve/20240622/202406220112.qjyQbasK-lkp@intel.com/reproduce) I'm not sure why this is happening. I've downloaded the config and kernel code and tried to reproduce the issue using the same GCC version, but everything seems fine. Is LKP experiencing issues today? > > 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/202406220112.qjyQbasK-lkp= @intel.com/ > > All errors (new ones prefixed by >>): > > In file included from mm/swapfile.c:17: > include/linux/swap.h:519:49: error: expected identifier or '(' before = numeric constant > 519 | #define total_swap_pages 0L > | ^~ > mm/swapfile.c:67:6: note: in expansion of macro 'total_swap_pages' > 67 | long total_swap_pages; > | ^~~~~~~~~~~~~~~~ > mm/swapfile.c:236:10: warning: no previous prototype for 'swap_folio_s= ector' [-Wmissing-prototypes] > 236 | sector_t swap_folio_sector(struct folio *folio) > | ^~~~~~~~~~~~~~~~~ > mm/swapfile.c: In function 'set_cluster_next': > mm/swapfile.c:797:22: error: 'SWAP_ADDRESS_SPACE_SHIFT' undeclared (fi= rst use in this function) > 797 | if ((prev >> SWAP_ADDRESS_SPACE_SHIFT) !=3D > | ^~~~~~~~~~~~~~~~~~~~~~~~ > mm/swapfile.c:797:22: note: each undeclared identifier is reported onl= y once for each function it appears in > In file included from include/vdso/const.h:5, > from include/linux/const.h:4, > from include/linux/list.h:9, > from include/linux/wait.h:7, > from include/linux/wait_bit.h:8, > from include/linux/fs.h:6, > from include/linux/highmem.h:5, > from include/linux/bvec.h:10, > from include/linux/blk_types.h:10, > from include/linux/blkdev.h:9, > from mm/swapfile.c:9: > mm/swapfile.c:803:41: error: 'SWAP_ADDRESS_SPACE_PAGES' undeclared (fi= rst use in this function) > 803 | next =3D ALIGN_DOWN(next, SWAP_ADDRESS_SPACE_P= AGES); > | ^~~~~~~~~~~~~~~~~~~~~~= ~~ > include/uapi/linux/const.h:32:44: note: in definition of macro '__ALIG= N_KERNEL_MASK' > 32 | #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(ma= sk)) > | ^ > include/linux/align.h:9:33: note: in expansion of macro '__ALIGN_KERNE= L' > 9 | #define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1)= , (a)) > | ^~~~~~~~~~~~~~ > mm/swapfile.c:803:24: note: in expansion of macro 'ALIGN_DOWN' > 803 | next =3D ALIGN_DOWN(next, SWAP_ADDRESS_SPACE_P= AGES); > | ^~~~~~~~~~ > mm/swapfile.c: At top level: > mm/swapfile.c:1071:5: warning: no previous prototype for 'get_swap_pag= es' [-Wmissing-prototypes] > 1071 | int get_swap_pages(int n_goal, swp_entry_t swp_entries[], int = entry_order) > | ^~~~~~~~~~~~~~ > mm/swapfile.c:1278:26: error: redefinition of 'get_swap_device' > 1278 | struct swap_info_struct *get_swap_device(swp_entry_t entry) > | ^~~~~~~~~~~~~~~ > include/linux/swap.h:509:40: note: previous definition of 'get_swap_de= vice' with type 'struct swap_info_struct *(swp_entry_t)' > 509 | static inline struct swap_info_struct *get_swap_device(swp_ent= ry_t entry) > | ^~~~~~~~~~~~~~~ > mm/swapfile.c:1350:6: error: redefinition of 'swap_free' > 1350 | void swap_free(swp_entry_t entry) > | ^~~~~~~~~ > include/linux/swap.h:559:20: note: previous definition of 'swap_free' = with type 'void(swp_entry_t)' > 559 | static inline void swap_free(swp_entry_t swp) > | ^~~~~~~~~ > >> mm/swapfile.c:1388:6: error: redefinition of 'swap_free_nr' > 1388 | void swap_free_nr(swp_entry_t entry, int nr_pages) > | ^~~~~~~~~~~~ > include/linux/swap.h:563:20: note: previous definition of 'swap_free_n= r' with type 'void(swp_entry_t, int)' > 563 | static inline void swap_free_nr(swp_entry_t entry, int nr_page= s) > | ^~~~~~~~~~~~ > mm/swapfile.c:1409:6: error: redefinition of 'put_swap_folio' > 1409 | void put_swap_folio(struct folio *folio, swp_entry_t entry) > | ^~~~~~~~~~~~~~ > include/linux/swap.h:567:20: note: previous definition of 'put_swap_fo= lio' with type 'void(struct folio *, swp_entry_t)' > 567 | static inline void put_swap_folio(struct folio *folio, swp_ent= ry_t swp) > | ^~~~~~~~~~~~~~ > mm/swapfile.c:1461:6: warning: no previous prototype for 'swapcache_fr= ee_entries' [-Wmissing-prototypes] > 1461 | void swapcache_free_entries(swp_entry_t *entries, int n) > | ^~~~~~~~~~~~~~~~~~~~~~ > mm/swapfile.c:1489:5: error: redefinition of '__swap_count' > 1489 | int __swap_count(swp_entry_t entry) > | ^~~~~~~~~~~~ > include/linux/swap.h:571:19: note: previous definition of '__swap_coun= t' with type 'int(swp_entry_t)' > 571 | static inline int __swap_count(swp_entry_t entry) > | ^~~~~~~~~~~~ > mm/swapfile.c:1502:5: error: redefinition of 'swap_swapcount' > 1502 | int swap_swapcount(struct swap_info_struct *si, swp_entry_t en= try) > | ^~~~~~~~~~~~~~ > include/linux/swap.h:576:19: note: previous definition of 'swap_swapco= unt' with type 'int(struct swap_info_struct *, swp_entry_t)' > 576 | static inline int swap_swapcount(struct swap_info_struct *si, = swp_entry_t entry) > | ^~~~~~~~~~~~~~ > mm/swapfile.c:1518:5: error: redefinition of 'swp_swapcount' > 1518 | int swp_swapcount(swp_entry_t entry) > | ^~~~~~~~~~~~~ > include/linux/swap.h:581:19: note: previous definition of 'swp_swapcou= nt' with type 'int(swp_entry_t)' > 581 | static inline int swp_swapcount(swp_entry_t entry) > | ^~~~~~~~~~~~~ > mm/swapfile.c:1611:6: error: redefinition of 'folio_free_swap' > 1611 | bool folio_free_swap(struct folio *folio) > | ^~~~~~~~~~~~~~~ > include/linux/swap.h:593:20: note: previous definition of 'folio_free_= swap' with type 'bool(struct folio *)' {aka '_Bool(struct folio *)'} > 593 | static inline bool folio_free_swap(struct folio *folio) > | ^~~~~~~~~~~~~~~ > mm/swapfile.c:1655:6: error: redefinition of 'free_swap_and_cache_nr' > 1655 | void free_swap_and_cache_nr(swp_entry_t entry, int nr) > | ^~~~~~~~~~~~~~~~~~~~~~ > include/linux/swap.h:532:20: note: previous definition of 'free_swap_a= nd_cache_nr' with type 'void(swp_entry_t, int)' > 532 | static inline void free_swap_and_cache_nr(swp_entry_t entry, i= nt nr) > | ^~~~~~~~~~~~~~~~~~~~~~ > mm/swapfile.c:2303:1: error: redefinition of 'add_swap_extent' > 2303 | add_swap_extent(struct swap_info_struct *sis, unsigned long st= art_page, > | ^~~~~~~~~~~~~~~ > include/linux/swap.h:598:19: note: previous definition of 'add_swap_ex= tent' with type 'int(struct swap_info_struct *, long unsigned int, long un= signed int, sector_t)' {aka 'int(struct swap_info_struct *, long unsigned = int, long unsigned int, long long unsigned int)'} > 598 | static inline int add_swap_extent(struct swap_info_struct *sis= , > | ^~~~~~~~~~~~~~~ > mm/swapfile.c: In function 'setup_swap_extents': > mm/swapfile.c:2389:21: error: implicit declaration of function 'sio_po= ol_init'; did you mean 'mempool_init'? [-Werror=3Dimplicit-function-declara= tion] > 2389 | sio_pool_init() !=3D 0) { > | ^~~~~~~~~~~~~ > | mempool_init > mm/swapfile.c:2396:16: error: implicit declaration of function 'generi= c_swapfile_activate' [-Werror=3Dimplicit-function-declaration] > 2396 | return generic_swapfile_activate(sis, swap_file, span)= ; > | ^~~~~~~~~~~~~~~~~~~~~~~~~ > mm/swapfile.c: In function '_enable_swap_info': > mm/swapfile.c:2444:26: error: lvalue required as left operand of assig= nment > 2444 | total_swap_pages +=3D p->pages; > | ^~ > mm/swapfile.c: At top level: > mm/swapfile.c:2499:6: warning: no previous prototype for 'has_usable_s= wap' [-Wmissing-prototypes] > 2499 | bool has_usable_swap(void) > | ^~~~~~~~~~~~~~~ > mm/swapfile.c: In function '__do_sys_swapoff': > mm/swapfile.c:2574:26: error: lvalue required as left operand of assig= nment > 2574 | total_swap_pages -=3D p->pages; > | ^~ > mm/swapfile.c:2650:9: error: implicit declaration of function 'exit_sw= ap_address_space'; did you mean 'swap_address_space'? [-Werror=3Dimplicit-f= unction-declaration] > 2650 | exit_swap_address_space(p->type); > | ^~~~~~~~~~~~~~~~~~~~~~~ > | swap_address_space > In file included from include/linux/export.h:5, > from include/linux/linkage.h:7, > from include/linux/fs.h:5: > mm/swapfile.c: In function 'setup_swap_map_and_extents': > mm/swapfile.c:2995:22: error: 'SWAP_ADDRESS_SPACE_PAGES' undeclared (f= irst use in this function) > 2995 | DIV_ROUND_UP(SWAP_ADDRESS_SPACE_PAGES, SWAPFILE_CLUSTE= R) > | ^~~~~~~~~~~~~~~~~~~~~~~~ > include/linux/compiler.h:284:55: note: in definition of macro '__is_co= nstexpr' > 284 | (sizeof(int) =3D=3D sizeof(*(8 ? ((void *)((long)(x) *= 0l)) : (int *)8))) > | ^ > include/linux/minmax.h:169:33: note: in expansion of macro '__careful_= cmp' > 169 | #define max_t(type, x, y) __careful_cmp(max, (type)(x), = (type)(y)) > | ^~~~~~~~~~~~~ > mm/swapfile.c:2997:9: note: in expansion of macro 'max_t' > 2997 | max_t(unsigned int, SWAP_CLUSTER_INFO_COLS, SWAP_CLUST= ER_SPACE_COLS) > | ^~~~~ > include/linux/math.h:37:22: note: in expansion of macro '__KERNEL_DIV_= ROUND_UP' > 37 | #define DIV_ROUND_UP __KERNEL_DIV_ROUND_UP > | ^~~~~~~~~~~~~~~~~~~~~ > mm/swapfile.c:2997:53: note: in expansion of macro 'SWAP_CLUSTER_SPACE= _COLS' > 2997 | max_t(unsigned int, SWAP_CLUSTER_INFO_COLS, SWAP_CLUST= ER_SPACE_COLS) > | ^~~~~~~~~~= ~~~~~~~~~~~~~ > mm/swapfile.c:3010:66: note: in expansion of macro 'SWAP_CLUSTER_COLS' > 3010 | unsigned long col =3D p->cluster_next / SWAPFILE_CLUST= ER % SWAP_CLUSTER_COLS; > | = ^~~~~~~~~~~~~~~~~ > In file included from include/linux/container_of.h:5, > > > vim +/swap_free_nr +1388 mm/swapfile.c > > 1387 > > 1388 void swap_free_nr(swp_entry_t entry, int nr_pages) > 1389 { > 1390 int nr; > 1391 struct swap_info_struct *sis; > 1392 unsigned long offset =3D swp_offset(entry); > 1393 > 1394 sis =3D _swap_info_get(entry); > 1395 if (!sis) > 1396 return; > 1397 > 1398 while (nr_pages) { > 1399 nr =3D min_t(int, nr_pages, SWAPFILE_CLUSTER - of= fset % SWAPFILE_CLUSTER); > 1400 cluster_swap_free_nr(sis, offset, nr); > 1401 offset +=3D nr; > 1402 nr_pages -=3D nr; > 1403 } > 1404 } > 1405 > > -- > 0-DAY CI Kernel Test Service > https://github.com/intel/lkp-tests/wiki > Thanks Barry