From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) (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 A75762472A6 for ; Fri, 27 Feb 2026 15:26:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772206005; cv=none; b=SvHEOEu11fiZYr49H/ILhBPcxCX1E3f3Tpljv1h9WjID7/Nb2IK6To2upIPFFSfHLAV6KsGbLOdEkwoYgbGNvpkcetdbBllfHrzJhHQY8NayEBn+00gxejmGQ6g5BpwT1IUKmuFqPqFmTpHWKZXcZ9mK+bn9PkQjdoXMQRbFLfc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772206005; c=relaxed/simple; bh=nB4dU5ro4rB0p1psB/tOgNtIOVTU8bVlg3/4Kp9rrRE=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=aKdcM6Ajk+c8dzGvS5eLxUSJ08T+DGq576sZUrk1SMppxE9Pp41Uy2kso6E5bkNqDMNXyCqis8k/n68HNmqmrrnSLMFqiB4T1Q13NHZo6N9ZGmMkRUP7QeiKvW9/+25RCpD2eIPN0CoZnXPMLrpIlwPH8yednuCC3dTcQUM8k1M= ARC-Authentication-Results:i=1; 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=hihaAwzv; arc=none smtp.client-ip=209.85.216.50 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="hihaAwzv" Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-358e16d7da4so1353202a91.3 for ; Fri, 27 Feb 2026 07:26:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772206003; x=1772810803; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=UetmJfyt896bziHLm83oQ5Y9tswodav8qMkgJQV6wLA=; b=hihaAwzvjQqo3nkDiM3b31Iv3mE5GEJwj5l/yTpAzoFQSbbccHT9cZPBmVuilOKrTR hvzhYzNwq8/JdmWkkNKldR2BAiGXp5d7PYZSHNdQNBqr9mUizmtdIefp3JbTq2EwtCDl S2lv68D8O5bDb6jnk7upw/9XFglHTn3jdAGgFF4apH0zN0HtE6W+jp3tI70MdsuyEibT M51y8m3mCJN1Ky8uL/O/E3vtIptwNfG5d3FJNIUm3O9lJV0SvDji9fX8y/7UX6tGL1md KtI8xGQDOPakcuH5qSVEFxATapfYf9KofmkF/Q2ENGtCLmKoHuoKJyKeEoZjNyVT8ZVe g2gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772206003; x=1772810803; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=UetmJfyt896bziHLm83oQ5Y9tswodav8qMkgJQV6wLA=; b=I0IzyMpKuZNni82jzO7kiAHY7RAvvjPOweJnML5e69pUBqvHdvD3hzkcXiidfB9tNP 2IKxb5LGB+TYjKVdRTG+QQhvhbfoC7T9QbAtJCucMLqAQF/faohD5kv/0Oz5JVLenKJ7 HuG7EnQ0sGYBSzq8I7FhM1VclkrNlUNcDUIwUKNxX2yGlQ/IvO4VVAMVX8EefP6zfVnk BfAqz2sPm/RY3SwIUM0MycrqaUwfG4PW7TPqaRjZcWKS5G1gzRWgZ9Hv+S4KqE2hLv7G H3QdTsOnLG/QIYiqNSso4kOdQfgjRL0f0qa5jqSlcysNdx3493Qg7wtmI/Fy8YXygDvf gpMg== X-Forwarded-Encrypted: i=1; AJvYcCVq7tWwnGNz9vIfPtrOSYKAyTcD5HIxnGhLscf4NitOQ0+6SpFVTok4m7uXy44KWjjbFeyl2KSq4OWoeVc=@vger.kernel.org X-Gm-Message-State: AOJu0YymMUoG/pdKaigA4tXhjQemHOPXiaOmA3LohhDbwT6zKctbSuLl ckl02B6UpzNXTPdWaGszsQ6oW2xjbd2JH7S0z1I/yMsiwrHEyAOH3gF8 X-Gm-Gg: ATEYQzxt3oaVyi7VkN0CJj5EMq0Y+eYO9SeKvtezqRl8jj5cLeAmA9FmpldU+DbjZHp kveZLGgFWnkacN+bYhkvz09CjxKIECXZczrpiB3HLz99J3gXrF302FvMUACz/Y6uWWBrzzFZDxX lWpGloFEvL0En6FWW1S6sKRwRbeRz2yxLnBYkGnTSi0v9iJSYrnzg0uD1TPCVpRx3k+5Q1/0Avo BB1oB+esbp2dKw5gfP8/Ka7BFDaFgpclCcsfdtu3wLzDU8vDk6x8u6uk5hr5FmQU6cseE3GIs8A 3VFPH+TOVfHQLz+V/DPQYtNhr4EbYOvchUtrYCK3sd2RqiNbAl/T9V0pW7DBSIIXNh6oPwPtDS8 Jzg09qIDrDIwk/ePHjDS4mzm6wRYMQAVHq0wG6CfYXZgqzSaLVW/+GPH6HKE0CzXBb+ytAloYtx kBefCNXrAnWyL7mXUht9UlO66zyqxYuCo+Cja9Xfa2UeZhftrZyy3ytZ1IzqbfVgPEJEe1Eb2qI zUE1T0= X-Received: by 2002:a17:90b:3f10:b0:359:5a82:5f98 with SMTP id 98e67ed59e1d1-35965b2fec7mr3609795a91.0.1772206003011; Fri, 27 Feb 2026 07:26:43 -0800 (PST) Received: from sean-All-Series.. (1-160-203-78.dynamic-ip.hinet.net. [1.160.203.78]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-35900700e69sm9053211a91.0.2026.02.27.07.26.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Feb 2026 07:26:42 -0800 (PST) From: Sean Chang To: Andrew Lunn , nicolas.ferre@microchip.com, claudiu.beznea@tuxon.dev, trond.myklebust@hammerspace.com, anna@kernel.org Cc: netdev@vger.kernel.org, linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, Sean Chang Subject: [PATCH v4 0/2] Fix warnings for RISC-V builds Date: Fri, 27 Feb 2026 23:26:22 +0800 Message-Id: <20260227152624.164964-1-seanwascoding@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series addresses several compiler warnings found when building the kernel for RISC-V. The first patch fixes unused variable warnings in the NFS client (including nfs4proc and flexfilelayout) that occur in certain build configurations. The second patch fixes a format-truncation warning in the MACB ethernet driver by ensuring the snprintf output fits within the destination buffer. v4: - Refactor patch 1 to use no_printk() in sunrpc headers instead of marking variables as __maybe_unused. This provides a cleaner, global fix and enables compiler type checking. v3: - Expand commit descriptions to include technical details regarding macro expansion, as requested by Andrew Lunn. - Test the different platform, such as ARM, ARM64, X86_64. v2: - Split the original treewide patch into subsystem-specific commits. - Added more detailed commit descriptions to satisfy checkpatch. Sean Chang (2): sunrpc: fix unused variable warnings by using no_printk net: macb: use ethtool_sprintf to fill ethtool stats strings drivers/net/ethernet/cadence/macb_main.c | 7 ++----- include/linux/sunrpc/debug.h | 4 ++-- 2 files changed, 4 insertions(+), 7 deletions(-) -- 2.34.1