Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2862229rdb; Mon, 12 Feb 2024 22:01:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVTLe6YwG8shZjPJM3u54kjMBUi3DZmV35YNW1MHKq9JHpFbRRn6UluD6AgFtedjxuuqf2q1mRr15+R3cCKMcb5CtiHkUXBHynzU1sSqA== X-Google-Smtp-Source: AGHT+IHMCvY+4yrvHfvB5dHW1PSoKtzSvMe1OCQTEHIlcblFdhZlsoVSESp8eTbpRsPyP8x2ecyJ X-Received: by 2002:ad4:5be2:0:b0:68c:96e2:1dc0 with SMTP id k2-20020ad45be2000000b0068c96e21dc0mr10634911qvc.23.1707804062215; Mon, 12 Feb 2024 22:01:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707804062; cv=pass; d=google.com; s=arc-20160816; b=np31CWhOmvrEy8qQcptfDfBxp1qjsIKJ4SZDDFYN5V3ES+MQFPtlmNDFfkaKBAgfP6 FyrK8Tg5ZlfnoOFq1KdpQPpsrv4nryo8h6hQu9MSfMowFWmAe/fbTyX5A3t1QGCPzjHR qJMNVqSZbUk2Wlqls3PE1NA4VjJ2Am+BZwzqS4GDGTyzyNuapeKrisLCK4oPXlJqR3hu ufFzUbQoYqIux2oR6PADhXobuOPCOwYEUwuJqGUhYCLVul05S/b7AYCOPwZuGZHNmmtz B41czK6KKHGb29YtXuIAyzLIXlEJuYVRN1FlObGrgSw/MHviYxPEa7Hwhs/Sy/NBQzIs 8GYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=9tQAtfu8nH8l9/NRcZpd1LGlmFyOheciVuVqnyMYRt0=; fh=PDFqHtbWUI9DWTRtzcaqeeQQf7hRgy46V5mWXa/pHrY=; b=jW7/Zkd2DxdNr/3xdlJKnAyKkJpRDwq8AanGdRJi9/fT3nzuzVZ+naJ6kTwaJQXmNc OSvSMJ/zNEKL+6LiePW8o4xpBTA1wdYglE9E/EzaHPAa54YtrumwI2/69PQY44x2ts5i sFubYL9PnP5A3BV5HLdX1joS8vaJKSiKuSgKAyz2FP5doW80Z8QPJahPk6xszK8pdwit OrgpnnVDedaRbxnMT3bqtcEUvTD1TjPYK9m7QGbAAxCCaR+59YDVTRwpSs6cfCZqdxdX 7G3/yahUEBk1uKJs0uzRUpFjicJwARZvkToHn9Uv+IIl9BG2UxImoTtM3RIzI0aCxBbO 9zww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-62972-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62972-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCUqqtgfvMDwAGQZIhTr1NosGmtzOS23yptCCnQ4RT+P3/aJMbKEywsSe2rbrDHC5MT/JNxKWecYzrlkFjUbtD0WcsSohctZcvbAF57vUg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id dv7-20020ad44ee7000000b0068cd144e023si2214181qvb.329.2024.02.12.22.01.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 22:01:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62972-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-62972-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62972-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C9B5F1C234F8 for ; Tue, 13 Feb 2024 06:01:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 08797134C9; Tue, 13 Feb 2024 05:57:15 +0000 (UTC) Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE8E9249E6; Tue, 13 Feb 2024 05:57:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707803834; cv=none; b=VnxyDjk6Y35wttsCcgqGIN3r5+CFzp/v5qeOK1ZArbPHsuXwkyUdlZTKEceZwS0SMWKhj3A5+/RlCTJKCVL72B1vI2fXkewmal31zMb9pn/w+9v7VrBZBOD87Z4/qequwVudwgxKOJfY6opqceXbmttJRx7CoKhBqNEtVZcpncQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707803834; c=relaxed/simple; bh=p/s/YHg/ofyuou1+HQj8mlBXfSUgw0Od8Z3nz/6sJrE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bRzuwwVwluY+9quH2h6dQ+lhw8zWKPowwY/dXNPlU4+1AddzvYqln7KhyE6UWkJlfQhc62SiRvXNXALlqJfIq7icsF5LgfLnQeVxBKGs59siZNAb1t6bsYy+M2VuITUU6ag41Vq+Nqvq0Z3O+yLsxIdfp1DSXNEaS2WhpeWM+70= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 5EE32227A87; Tue, 13 Feb 2024 06:57:07 +0100 (CET) Date: Tue, 13 Feb 2024 06:57:07 +0100 From: Christoph Hellwig To: Alexander Lobakin Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Christoph Hellwig , Marek Szyprowski , Robin Murphy , Joerg Roedel , Will Deacon , Greg Kroah-Hartman , "Rafael J. Wysocki" , Magnus Karlsson , Maciej Fijalkowski , Alexander Duyck , bpf@vger.kernel.org, netdev@vger.kernel.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v2 1/7] dma: compile-out DMA sync op calls when not used Message-ID: <20240213055707.GB22451@lst.de> References: <20240205110426.764393-1-aleksander.lobakin@intel.com> <20240205110426.764393-2-aleksander.lobakin@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240205110426.764393-2-aleksander.lobakin@intel.com> User-Agent: Mutt/1.5.17 (2007-11-01) > +void __dma_sync_single_for_cpu(struct device *dev, dma_addr_t addr, > + size_t size, enum dma_data_direction dir); > +void __dma_sync_single_for_device(struct device *dev, dma_addr_t addr, > + size_t size, enum dma_data_direction dir); > +void __dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, > + int nelems, enum dma_data_direction dir); > +void __dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, > + int nelems, enum dma_data_direction dir); Please stick to the two-tab indentation for continuing prototypes. The version here is not only much harder to read, but also keeps blowing up the diffs for current and future changes. Otherwise this looks good to me.