Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4364994ybe; Mon, 9 Sep 2019 08:16:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxrGAYZHnlV32fItE9MpxPvLxC0ICcgE0YC/e9po7iuSxXv79JyhQzPNA6pqNGNJsj7qx1q X-Received: by 2002:aa7:ce81:: with SMTP id y1mr24168538edv.188.1568042199632; Mon, 09 Sep 2019 08:16:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568042199; cv=none; d=google.com; s=arc-20160816; b=0C57way8GXnxthbD8kgnN3+GLegk0WCqg3DBQycymhAAGcWFibi7qwfJVYm3Z7/jtl vmqcUFtq++ihglSvR80+iZUXe0Q9l/uCsTQOkNlDACk/rPJEXVA1zAEgrDvRtL7PRsot jzlFaG3LPoH/1H4hCcmYRt9KeICiL5EcTy9isjcD9DfxsWC+SlMbWghLg99EvYaW62l0 XTbqgSnBjZHhJfPXjQbeG5JFHK1HJUhFnT1NaOEvERa1KWolJDFkuN+XGgUC1mOxUzwE qncZlXkBCca8akklqEQkLMlUce+FQSADD8LhsAwthnMShp9MohfkyOx/IfVuGfpnZM+6 9iKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr; bh=DxfVOjmDg9f4SzTWHHWhCKQdG57Z+Nx80Zr/p+hg9r0=; b=AIH+S9g1qcU1R6Tkaja7xahv9oTEQ2UV2bmm4Djy+nqfDlSoO1QVbpCawXQb9aPJjj 4sDahhEeBWWsm0uVMF+hION16yn5G4S8hvgwpjJRdIT5w/7hP5P1UlEq3qL3IIuIdU96 cFc+c/MAmwO/gUQJrEEvjcXQamOYp1rC2Tvo5ht54As9b6ipEEmclEAkyJxb6LPnyANB sCnEeFEXhLYk5GYEDwaCbAWi9V0VYi0QYhynUAeZK5DCUM+ovCT1yqp94DSo3Bm6zpfN cIKni2ekAUNE+PA30AXtWvqOMv+hltvBns7z4+vMtuVfzp3Ly54/cz8QRY9ZFMNh1t3k 3v+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t26si5472878ejt.0.2019.09.09.08.16.13; Mon, 09 Sep 2019 08:16:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728633AbfIIJ0R (ORCPT + 99 others); Mon, 9 Sep 2019 05:26:17 -0400 Received: from hel-mailgw-01.vaisala.com ([193.143.230.17]:59721 "EHLO hel-mailgw-01.vaisala.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726121AbfIIJ0Q (ORCPT ); Mon, 9 Sep 2019 05:26:16 -0400 IronPort-SDR: NsSH+SvlG6j2k/h3NcPDr6vZrSNXKX09gqiUnCe9iTpEFKAjEOvd0jaJN1TRDmFF9XbJtcLusB hkJa8AtMkAi/Sg7bKfh2QxpZjq/nJI2rCmJg7T8Y0UgGL5dtq9UZXOMgUPZOe38Zf/EfCvHjbV CSGG7i9HEEBULULoN0SCZLuJhFzRiILA/tY9w8DMuDVLVRAEIBY+lBiCBGeVMIs6wLZTjEdiw8 WPxBQ17HFkuMP+erYZrGEz1G0C0EyJyMZUIKpWFvV7E/pseOxsQqSfKPZlrR6yK0nh7sXL0xHJ AwI= X-IronPort-AV: E=Sophos;i="5.64,484,1559509200"; d="scan'208";a="231491365" Subject: Re: [PATCH] nvmem: core: fix nvmem_cell_write inline function To: Sebastian Reichel , Srinivas Kandagatla Cc: Sebastian Reichel , kbuild test robot , linux-kernel@vger.kernel.org References: <20190908121038.6877-1-sre@kernel.org> From: Nandor Han Message-ID: Date: Mon, 9 Sep 2019 12:26:06 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190908121038.6877-1-sre@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 09 Sep 2019 09:26:11.0244 (UTC) FILETIME=[9E5DF6C0:01D566F0] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/8/19 3:10 PM, Sebastian Reichel wrote: > From: Sebastian Reichel > > nvmem_cell_write's buf argument uses different types based on > the configuration of CONFIG_NVMEM. The function prototype for > enabled NVMEM uses 'void *' type, but the static dummy function > for disabled NVMEM uses 'const char *' instead. Fix the different > behaviour by always expecting a 'void *' typed buf argument. > > Fixes: 7a78a7f7695b ("power: reset: nvmem-reboot-mode: use NVMEM as reboot mode write interface") > Reported-by: kbuild test robot > Cc: Han Nandor > Cc: Srinivas Kandagatla > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Sebastian Reichel > --- > include/linux/nvmem-consumer.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/nvmem-consumer.h b/include/linux/nvmem-consumer.h > index 8f8be5b00060..5c17cb733224 100644 > --- a/include/linux/nvmem-consumer.h > +++ b/include/linux/nvmem-consumer.h > @@ -118,7 +118,7 @@ static inline void *nvmem_cell_read(struct nvmem_cell *cell, size_t *len) > } > > static inline int nvmem_cell_write(struct nvmem_cell *cell, > - const char *buf, size_t len) > + void *buf, size_t len) nitpick: alignment issue? Review-By: Han Nandor Nandor