Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp131277ybk; Tue, 12 May 2020 17:41:09 -0700 (PDT) X-Google-Smtp-Source: APiQypKZs27TDGigcIe5x2UGfHe0q4IWqR8N+kG2UQjcl1e9AE69QixFC4g+S5UNLeuaXjtZDB8o X-Received: by 2002:a50:c3c2:: with SMTP id i2mr21085422edf.227.1589330469023; Tue, 12 May 2020 17:41:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589330469; cv=none; d=google.com; s=arc-20160816; b=QXdm9t50rwnCndBT4Hcy2xFivbjgKIiTUI7m4kba4Z/Qai5ZypsJH2/XdV5bL4ZG9i z9rve4j6Ef/Z0MvLJ1tHwNDrqLl+9YSC9omoCzSD0sdQ2GbF8hT6EINEPfbN7EshSJgy 8MMHKL5H5F2XYW3prSY4rWd4EDciqkBvn9MhYTRFyhO//PUvfChUomAHwWyN+KHaLlE5 0SrJZniT2W/u156bDwqlPnp/ayze/S0CvOAMWoKjQLc/bf6k8a8HDWPTwg5mA6BKEWPV ++kjPJRUkeuOLA4HSNDSJLN6yvkvfp25UwTeyClKshxovxing2yIaxsn2cBfaxmkqq/P Rc6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=CwfbmlNBUU40Zjz8zlAOmtB3ueHeKYzt7ce5wGYgKFA=; b=drxWE5oRF+DzuvHshqZLppvTjcS+6WAxLpWGIvgeeUqeXL5VL3J9ViWcGd3/cPaCOw rmRuOhdy8lLveCX5FDkQSApIcvt5KVQOi5teFSw+1OdPHmBqNwoGFAE36Oxqo/ucy2vu NexUCY8rDTGIKe/mr07Aqs0oo84KpwIZrrCAC+sJ9yXuvwlhXu4K+emM3qyHFm4ZNeeC Cbrc2JfAdYA34fMyRS/9lXLKkygE4QzGlMeOVwngQTb34XYY03P+sxeV/5DqNtyl97sx 7SLZbYT4pvjZMCBH08O4J5zLkR8JxDlSUcKbprvaBusyrPuBuWKvcvnehQ5XZPx2/CXs Qb3Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ss21si6568575ejb.124.2020.05.12.17.40.42; Tue, 12 May 2020 17:41:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731683AbgEMAie (ORCPT + 99 others); Tue, 12 May 2020 20:38:34 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:33816 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728131AbgEMAie (ORCPT ); Tue, 12 May 2020 20:38:34 -0400 Received: by mail-pl1-f196.google.com with SMTP id g11so2895193plp.1; Tue, 12 May 2020 17:38:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=CwfbmlNBUU40Zjz8zlAOmtB3ueHeKYzt7ce5wGYgKFA=; b=aqH3pLaspKAfdvXZwLL+58pl/C0iJGFYNZL9atbYNikaxnaboV71owlw3D92JfvO52 9Sw7zuGnvVs3qsa0ApEweFJZjUZyrqNDe4obTWdgwjzpWrdfOV1AEAuu1Gb0eiql5upu 9LVVb1XJGntMunkvt9nun+ezBsbvd49ziTxGlXL3MsMZw81wPFh0LKzifFYt1cV6ioLL EwCj8D2NbAIvS8afGYccqfmo2wzaT+gzJQ7ZO06v36zTfe84tUOCJLqnY4UQbUyGTi5R OQx89I+OnxW6MV3WNoxvMZIDC3mBvful16jnzhkwCQ4RLPVDxTqLTO+jr1ocBfZLa7Kb 6Faw== X-Gm-Message-State: AGi0Puaq/9hTNvkY2An66cyZMbS8frs00te00VhubT+nvAq4qVCuIFHl omaUKZsGlJK1LxOqrl1SICQ= X-Received: by 2002:a17:902:bd81:: with SMTP id q1mr22856141pls.46.1589330312971; Tue, 12 May 2020 17:38:32 -0700 (PDT) Received: from 42.do-not-panic.com (42.do-not-panic.com. [157.230.128.187]) by smtp.gmail.com with ESMTPSA id j26sm13098929pfr.215.2020.05.12.17.38.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 May 2020 17:38:31 -0700 (PDT) Received: by 42.do-not-panic.com (Postfix, from userid 1000) id 60B934063E; Wed, 13 May 2020 00:38:30 +0000 (UTC) Date: Wed, 13 May 2020 00:38:30 +0000 From: Luis Chamberlain To: Scott Branden Cc: Greg Kroah-Hartman , David Brown , Alexander Viro , Shuah Khan , bjorn.andersson@linaro.org, Shuah Khan , Arnd Bergmann , "Rafael J . Wysocki" , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-fsdevel@vger.kernel.org, BCM Kernel Feedback , Olof Johansson , Andrew Morton , Dan Carpenter , Colin Ian King , Kees Cook , Takashi Iwai , linux-kselftest@vger.kernel.org, Andy Gross , Desmond Yan , James Hu Subject: Re: [PATCH v5 6/7] misc: bcm-vk: add Broadcom VK driver Message-ID: <20200513003830.GJ11244@42.do-not-panic.com> References: <20200508002739.19360-1-scott.branden@broadcom.com> <20200508002739.19360-7-scott.branden@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200508002739.19360-7-scott.branden@broadcom.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 07, 2020 at 05:27:38PM -0700, Scott Branden wrote: > +#if defined(CONFIG_REQ_FW_INTO_BUF_PRIV) > + > +#define KERNEL_PREAD_FLAG_PART 0x0001 /* Allow reading part of file */ > +#define REQUEST_FIRMWARE_INTO_BUF request_firmware_into_buf_priv > +int request_firmware_into_buf_priv(const struct firmware **firmware_p, > + const char *name, struct device *device, > + void *buf, size_t size, > + size_t offset, unsigned int pread_flags); > + > +#else > + > +#define REQUEST_FIRMWARE_INTO_BUF request_firmware_into_buf > + > +#endif > + > +#endif Please clean this up, the code must reflect only the code upstream. No config stuff like this should be used on the driver. I had to stop my review here. Luis