From nobody Sun Nov 24 14:32:49 2024 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 05FF81CD15 for ; Mon, 4 Nov 2024 17:16:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730740597; cv=none; b=H/OipgR7lc90+iWIxLrh+bqpYGs45DsFXtJMZFKUDxGw3vUXwA08/e/sMPbuh9wLR2GkcZBLG6ymhpOEO/QM8GiPW0s1lsCBdrTPjEHwBtK4Wy7flCmqgKtbCQtIQdD1s6K9e4TlYVOuAhSB98gvD5eof0/iRPtfjalW2O3iO5E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730740597; c=relaxed/simple; bh=Xirldkcby312bseXyHXIkJ6yKbI0ywDaWby/Unv81r0=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=YFO+/FTOdIAxuNs3pyQONIZjdGKMWxqxaW3ZDgtq96s9GQmB2sn1sq6Sjot5qHMdiXeivzHHpnU2AZcNwFP8BEQeKW205x9nH6l0mCnX2AuIOJ7YWCam2YhJrkIIVPQMNMKk95/zg35YPAItaOhR+pLZ6RoVbJr68/wh1pt2y+E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=HXQVaENg; arc=none smtp.client-ip=209.85.221.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="HXQVaENg" Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-37d4a5ecc44so2913641f8f.2 for ; Mon, 04 Nov 2024 09:16:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1730740594; x=1731345394; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=mz7FQ3FxnnjD3yMz5V8+bY6+RD8conEDHBBPgd6Mgy8=; b=HXQVaENgAVzvQgWpn7ZcVjuMSOXxRnEMlJILh6y0RHh/yLbezKeIjanQebI7+8j3V/ NtmPDK9WpBysKGJo58jxb9VTvKhECTxYRlVKRGH/JMym6guJZFbdx8cCEQp5hhIvN1Hx YfcsVn5422EvdNvRDxopAZnbPdB9iTt4lH6FTq1PF0tWY62gTKVGoQ88wnDhYQLuVN0O pJA5cquKjMDsC61oo5vfbpllS6JXNAextNcBwrIFoS+5Km1bzvoiTd1AozlGmKuf9J8d GF91j7kSJOruSqhsX5xm8v+PR8uWiVXtRk3o7g1zhqVv6/Vmr1nSKjWw9TMBqr7cZzUj 9eNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730740594; x=1731345394; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mz7FQ3FxnnjD3yMz5V8+bY6+RD8conEDHBBPgd6Mgy8=; b=ntn9dv/a4nhgLNLFiRwDswQSF8xzmqrw02JR/OGcgoxB4W7Bai1ho6sPo6Ky3ojUs0 I/ROXNk3fsIMk438Ufx6xwppe6GCE8NkZD2JKO+1cJ3rvysH+GN9BwXh6AahjypMLCtL CAmLry4bnbQwrBOWELzM0UivYfslDukTKNAvT0tHh3B0QuKjMauX/sd6Qcq5hV57q6dj 2Ns/YsYcsOcHS9a7z3LE9yOZpgQ9b01XgJCn6EPd3kmU3l7rCA8sDfY6na+oBjV/jMGS AFijsRXk2tmmLcj2zVFCwM5+M+fmoqTbLY8sRHENU9I1U07Dhh2b1ws8GF4juEs2Jw6i Kd3Q== X-Forwarded-Encrypted: i=1; AJvYcCXrEYcN8jASEylzk3nd+U67Hn9LjWYZTGxNBRCguew/UStw68zjxJ9XrbhQHBJo4/uwkM5Y9P1eW91TV5Y=@vger.kernel.org X-Gm-Message-State: AOJu0Yw3XD12JiUwtDxBiRNW/nkNYSQg5+J6hTnXPso7ohbJTDrjmfSC D9YPZfBzxVSUFPH3YsBslBl3tWPJ/2heWDMEFo0cxUYwfDoFwia7GKjwJ9c7EqBH6VxsNpVQWgg 0 X-Google-Smtp-Source: AGHT+IFSQQnkPJQJ9lUk8DLV1jIcd9nJjuwaEO70oN3T+acz9855Sjh80aCcaD5StAd7TvhDFC8jcQ== X-Received: by 2002:adf:edc2:0:b0:37d:4ebe:164b with SMTP id ffacd0b85a97d-380611e1252mr21410333f8f.44.1730740594471; Mon, 04 Nov 2024 09:16:34 -0800 (PST) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-381c116ad3fsm13604311f8f.95.2024.11.04.09.16.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Nov 2024 09:16:34 -0800 (PST) Date: Mon, 4 Nov 2024 20:16:30 +0300 From: Dan Carpenter To: Benjamin Berg Cc: Brendan Higgins , David Gow , Rae Moar , linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH] kunit: skb: use "gfp" variable instead of hardcoding GFP_KERNEL Message-ID: <57a8d38a-6299-4d2c-bb2e-c9d1e3bf1c99@stanley.mountain> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline X-Mailer: git-send-email haha only kidding Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The intent here was clearly to use the gfp variable flags instead of hardcoding GFP_KERNEL. All the callers pass GFP_KERNEL as the gfp flags so this doesn't affect runtime. Fixes: b3231d353a51 ("kunit: add a convenience allocation wrapper for SKBs") Signed-off-by: Dan Carpenter Reviewed-by: David Gow Reviewed-by: Kuan-Wei Chiu --- include/kunit/skbuff.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/kunit/skbuff.h b/include/kunit/skbuff.h index 44d12370939a..345e1e8f0312 100644 --- a/include/kunit/skbuff.h +++ b/include/kunit/skbuff.h @@ -29,7 +29,7 @@ static void kunit_action_kfree_skb(void *p) static inline struct sk_buff *kunit_zalloc_skb(struct kunit *test, int len, gfp_t gfp) { - struct sk_buff *res =3D alloc_skb(len, GFP_KERNEL); + struct sk_buff *res =3D alloc_skb(len, gfp); =20 if (!res || skb_pad(res, len)) return NULL; --=20 2.45.2