From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 27 Sep 2024 08:37:05 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-oo1-f56.google.com (mail-oo1-f56.google.com [209.85.161.56]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 48R6b30e023138 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 27 Sep 2024 08:37:04 +0200 Received: by mail-oo1-f56.google.com with SMTP id 006d021491bc7-5e1c26c85c2sf1523186eaf.0 for ; Thu, 26 Sep 2024 23:37:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1727419018; cv=pass; d=google.com; s=arc-20240605; b=WN0YTb0wZ8eTyxxdQekSpRKpZR5qzctCg+dYQbzaDc0Dxsr0qd/Fa7s1MVFVjSnuvT DpVsiZnudq02BuY2k4Cg1eVkNjWpo9DlWfn6zSvHFVoCJyXxNcQHeS+Mj+mnKfyP6cUI cEwxKEyCk3+5mC4ezuL+YP2EA8STJoP7VtQEVmf6fWi/oHnu5T8XwwTqEUaZhUSslFt4 fBWJiyHyWStPe4UxIfeygWN61G+Ww5imMpO7KEIUjFyph6cdpDmELTvvF7OUD4+MlB00 2yFXZ1Gjs6BSFHraq9NoGXo+6hERp7SlxsrbyKYcmtCPpFWW5XbmDbQ/9x8wMrnHtcWP hhfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:to:from:sender:dkim-signature; bh=YsN74hjmePVElFMPBRthrvg1UTpzLSexrIgu6Biezkk=; fh=yTuJM8VBOgzPP9+OtxNm/aG4sl7gEsRzitWohLOwKcA=; b=PelmLPPuRqVWRmpw+w5LEDg3ToD8qNkiZnoJBmyUTr+S0zUBRYGapJwUzyPdPfzJen 5AhX1rde2x4YuH39SwEaSqCsT7cPiuI6pgWGeyEvpCC1uzf2GIPTzCtx3LJb6SVmYZ7j L2gvHfHU/QfJBWJ1aElXTcoJOTR40bzajU0y3VvVkpl8zRbxy6lk0K81zKIlIYkx2/0X VwG1e+S48/jCVoUtiVs7Rg3O4YzyEq1OX8H5RaR0BgOa8wOXFmJYO4Alx01s4kUDMdzb eniHs2Fl3ci0kyUAKIKNow96mhG91O+SgChD475Kqars8YRuQNNQNl1tOsKu8bVFnw4w zusQ==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1727419018; x=1728023818; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:to:from :sender:from:to:cc:subject:date:message-id:reply-to; bh=YsN74hjmePVElFMPBRthrvg1UTpzLSexrIgu6Biezkk=; b=XO+FNwbZl/StQtisUkAkHJap79zxThfqUhD2QqqsQHFZ9sIyIqYsLIeDvy/iDoOnhJ jVcnp/Iju2FtF9wlC4HmW4Dup+c7eh6GwnP9KRv3FWkVu0gh0+SzSqhB5yjNhDRcOlL7 cknO/9v6eS3BH2IGcwNoXcYv8vnzijxGAlQ/C6tSchAO93ABUKRlhigiYAnD/56CG++U x4y6mHxQXTYNypoLkI+FhvmHVNu0ydj2wog9DyGrwPoCs4rZSZsKPaY9R4U1/nQmzLGt p9mPAMdAm64C0BAyZ4g4q7uXnmgB7l6lQXgmC54cWwmeLvkTKf8OgXwTANt9D5/Yzyfa lDLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727419018; x=1728023818; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:to:from:x-beenthere:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=YsN74hjmePVElFMPBRthrvg1UTpzLSexrIgu6Biezkk=; b=WKGftmKPvA3Pe5wvZHirzwIDK5dd+CUMBhkWfKDgJiLhcwFPZoIKQvVgrTeTADlxk8 y4EYy7xF0EvL1EBKTwCBzVqCH49nnywvQUBn6+J0fxloVlfFGw2FKikFNtXp1Q/DNoAC E84DTYcSDGPLgrYyNICdbhysMjosg4t+sugBMEx2VaWQ+lPCEHEhTnpR6dIcqXYBIOw1 pLiOG+fHlvi8u6VFLCynCdrER0TfWNoePSvNmAcAXh5sFDdt5oWoB2dyhvvonINBHPZ3 1tbVh4drKp9ByhIhUt9+NXR+/dqYuoITJdgHJN7DAbR0FIEF2SY8/q7RNLy0LUUevUdl gbfg== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCUE80BLzxSfFmygOGOSva/ZSG3g6uamCTWpmTPs5DnNtoNe5fLaORehus9FxYpKRR8VH357@ilbers.de X-Gm-Message-State: AOJu0YxivrXRePqhhDGodmxxeQJYbd6fQNlNMuRqM6dOj9ek5yGYSfDT vsvG/0pby0+lZK9kAofl9jjqIf3yS538xMIeuPIBzH4uAyyhzIbK X-Google-Smtp-Source: AGHT+IEfqeDXYh4DJNqK5QRntQmzutSZYSNTwoVZElZ/U40b8pdsvinK0F5jXpTv6rrWGM3u3kNMXg== X-Received: by 2002:a05:6820:160f:b0:5e1:ebaa:efc9 with SMTP id 006d021491bc7-5e7727c094fmr1020665eaf.8.1727419017716; Thu, 26 Sep 2024 23:36:57 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a4a:bb0e:0:b0:5e5:684f:4567 with SMTP id 006d021491bc7-5e5d4425d58ls934250eaf.1.-pod-prod-09-us; Thu, 26 Sep 2024 23:36:56 -0700 (PDT) X-Received: by 2002:a05:6820:54e:b0:5dc:9f44:7a3b with SMTP id 006d021491bc7-5e772761eebmr1107842eaf.4.1727419016634; Thu, 26 Sep 2024 23:36:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727419016; cv=none; d=google.com; s=arc-20240605; b=lutZ37O3FU5zyZwhy7mbd3jO2hbpK26I54ogr9sIOJtu3+g5iGi1j0j3BaYOTpKZCT MCUW3zlBNK9MioyJPok/lXYvU1IBt303ZhtO48lQPp4IemnXY/lkkqwie8gAaFh0+vLI ZUjQyJ8HIPrryVpjRPR5sQ2/yjO/9FQns85dVP2COGWZcaCt8IK6F1VBnxyEW3UDTFRc icz2sUvwu4ORJH5GDlHDSYKqmVg6/VAUUuHc411sJ1lM0srQp4LDhjKkU2kf7Kg35OAV gYLVkfuiQCOYXlWzAqI2FgDqi/EwPCb3NAX1yAYt2AxzLvI7YZZG1FI9GSw4WSD+um3S TNkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from; bh=aRzCQoPXwofdeEWLeHNGjAOzcDksbyGXnyXY/mi9fWc=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=H0A7JK5spByUDRtSM3c+0XJgTeO0u1gYPgYvkgDAsk4DFqjUWfHJn1TYIHDJP1O23I h+ynInd0tCJmzANvisZCWk/STmppUNjfXhlGtTDgql1cjsHyKnPUG0kZp0wu99d2UYX+ G7jzwgBSS7gOUu1fAA+r0OmdO+gUzrtOsym31/swr78DZCFYtAmV85gavZ15qsUhLUPQ TC3pUHTc4hJrjlhp9M1zqGbmr26GXL8Y9FlhOErmyvpHX9Ocv/Ll1ZsIEUIJP0RU4iic Ta8WI0nAZXV7HKlskKcqy8BWV8+PAzFga9Ff6PAKH4p30XxXJuA6lr6bJoSU4yDI3UzY Yq8w==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 006d021491bc7-5e770d082c5si77807eaf.0.2024.09.26.23.36.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 Sep 2024 23:36:56 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from hp15.localdomain (mm-3-0-121-178.gomel.dynamic.pppoe.byfly.by [178.121.0.3]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 48R6arsS023126 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 27 Sep 2024 08:36:54 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH] Fix linux build under sid and trixie Date: Fri, 27 Sep 2024 09:36:38 +0300 Message-ID: <20240927063647.25660-1-ubely@ilbers.de> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-Original-Sender: ubely@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-TUID: eQhciI1Wjcu4 The patch for kernel is taken from the upstream where it was applied since linux-6.8. Signed-off-by: Uladzimir Bely --- ...oc-arguments-order-in-btrfs_ioctl_se.patch | 43 +++++++++++++++++++ .../linux/linux-mainline_6.6.11.bb | 1 + .../linux/linux-starfive_6.6-visionfive2.bb | 1 + 3 files changed, 45 insertions(+) create mode 100644 meta-isar/recipes-kernel/linux/files/0001-btrfs-fix-kvcalloc-arguments-order-in-btrfs_ioctl_se.patch diff --git a/meta-isar/recipes-kernel/linux/files/0001-btrfs-fix-kvcalloc-arguments-order-in-btrfs_ioctl_se.patch b/meta-isar/recipes-kernel/linux/files/0001-btrfs-fix-kvcalloc-arguments-order-in-btrfs_ioctl_se.patch new file mode 100644 index 00000000..afe09eab --- /dev/null +++ b/meta-isar/recipes-kernel/linux/files/0001-btrfs-fix-kvcalloc-arguments-order-in-btrfs_ioctl_se.patch @@ -0,0 +1,43 @@ +From 6ff09b6b8c2fb6b3edda4ffaa173153a40653067 Mon Sep 17 00:00:00 2001 +From: Dmitry Antipov +Date: Thu, 21 Dec 2023 11:47:45 +0300 +Subject: [PATCH] btrfs: fix kvcalloc() arguments order in btrfs_ioctl_send() + +When compiling with gcc version 14.0.0 20231220 (experimental) +and W=1, I've noticed the following warning: + +fs/btrfs/send.c: In function 'btrfs_ioctl_send': +fs/btrfs/send.c:8208:44: warning: 'kvcalloc' sizes specified with 'sizeof' +in the earlier argument and not in the later argument [-Wcalloc-transposed-args] + 8208 | sctx->clone_roots = kvcalloc(sizeof(*sctx->clone_roots), + | ^ + +Since 'n' and 'size' arguments of 'kvcalloc()' are multiplied to +calculate the final size, their actual order doesn't affect the result +and so this is not a bug. But it's still worth to fix it. + +Signed-off-by: Dmitry Antipov +Reviewed-by: David Sterba +Signed-off-by: David Sterba +--- + fs/btrfs/send.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c +index 4e36550618e5..2d7519a6ce72 100644 +--- a/fs/btrfs/send.c ++++ b/fs/btrfs/send.c +@@ -8205,8 +8205,8 @@ long btrfs_ioctl_send(struct inode *inode, struct btrfs_ioctl_send_args *arg) + goto out; + } + +- sctx->clone_roots = kvcalloc(sizeof(*sctx->clone_roots), +- arg->clone_sources_count + 1, ++ sctx->clone_roots = kvcalloc(arg->clone_sources_count + 1, ++ sizeof(*sctx->clone_roots), + GFP_KERNEL); + if (!sctx->clone_roots) { + ret = -ENOMEM; +-- +2.45.2 + diff --git a/meta-isar/recipes-kernel/linux/linux-mainline_6.6.11.bb b/meta-isar/recipes-kernel/linux/linux-mainline_6.6.11.bb index 2287e763..147d05df 100644 --- a/meta-isar/recipes-kernel/linux/linux-mainline_6.6.11.bb +++ b/meta-isar/recipes-kernel/linux/linux-mainline_6.6.11.bb @@ -11,6 +11,7 @@ ARCHIVE_VERSION = "${@ d.getVar('PV')[:-2] if d.getVar('PV').endswith('.0') else SRC_URI += " \ https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${ARCHIVE_VERSION}.tar.xz \ + file://0001-btrfs-fix-kvcalloc-arguments-order-in-btrfs_ioctl_se.patch \ file://x86_64_defconfig \ file://ftpm-module.cfg \ file://subdir/no-ubifs-fs.cfg \ diff --git a/meta-isar/recipes-kernel/linux/linux-starfive_6.6-visionfive2.bb b/meta-isar/recipes-kernel/linux/linux-starfive_6.6-visionfive2.bb index f4dd5c9a..a267241f 100644 --- a/meta-isar/recipes-kernel/linux/linux-starfive_6.6-visionfive2.bb +++ b/meta-isar/recipes-kernel/linux/linux-starfive_6.6-visionfive2.bb @@ -8,6 +8,7 @@ require recipes-kernel/linux/linux-custom.inc SRC_URI += " \ https://github.com/starfive-tech/linux/archive/${SRCREV}.tar.gz;downloadfilename=linux-starfive-${SRCREV}.tar.gz \ file://0001-riscv-efistub-Ensure-GP-relative-addressing-is-not-u.patch \ + file://0001-btrfs-fix-kvcalloc-arguments-order-in-btrfs_ioctl_se.patch \ file://starfive2_extra.cfg" SRCREV = "9fe004eaf1aa5b23bd5d03b4cfe9c3858bd884c4" SRC_URI[sha256sum] = "9eaf7659aa57e2c5b399b7b33076f1376ec43ef343680e0a57e0a2a9bef6c0ae" -- 2.45.2 -- You received this message because you are subscribed to the Google Groups "isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/isar-users/20240927063647.25660-1-ubely%40ilbers.de.