<p>Subrata Banik has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/25985">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">src/device: Fix discarded-qualifiers compilation issue<br><br>coreboot build is broken due to<br>CL: I6830a65bc9cea2907f4209bb97a53ccebcbf248d<br><br>This patch ensures to build coreboot successfully.<br><br>Change-Id: I4c9dfc9b19ce159ce1abcfbb287be4ce273cbaf1<br>Signed-off-by: Subrata Banik <subrata.banik@intel.com><br>---<br>M src/console/post.c<br>M src/device/device_util.c<br>M src/include/console/console.h<br>M src/include/device/device.h<br>4 files changed, 4 insertions(+), 4 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/85/25985/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/console/post.c b/src/console/post.c</span><br><span>index 1caa4b5..969c7c7 100644</span><br><span>--- a/src/console/post.c</span><br><span>+++ b/src/console/post.c</span><br><span>@@ -108,7 +108,7 @@</span><br><span>       spin_unlock(&cmos_post_lock);</span><br><span> }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-void post_log_path(struct device *dev)</span><br><span style="color: hsl(120, 100%, 40%);">+void post_log_path(const struct device *dev)</span><br><span> {</span><br><span>  if (dev) {</span><br><span>           /* Encode path into lower 3 bytes */</span><br><span>diff --git a/src/device/device_util.c b/src/device/device_util.c</span><br><span>index 3d7f5a1..a64b63a 100644</span><br><span>--- a/src/device/device_util.c</span><br><span>+++ b/src/device/device_util.c</span><br><span>@@ -209,7 +209,7 @@</span><br><span>  * @param dev The device path to encode.</span><br><span>  * @return Device path encoded into lower 3 bytes of dword.</span><br><span>  */</span><br><span style="color: hsl(0, 100%, 40%);">-u32 dev_path_encode(struct device *dev)</span><br><span style="color: hsl(120, 100%, 40%);">+u32 dev_path_encode(const struct device *dev)</span><br><span> {</span><br><span>         u32 ret;</span><br><span> </span><br><span>diff --git a/src/include/console/console.h b/src/include/console/console.h</span><br><span>index 1ecf89c..535401f 100644</span><br><span>--- a/src/include/console/console.h</span><br><span>+++ b/src/include/console/console.h</span><br><span>@@ -31,7 +31,7 @@</span><br><span> #if IS_ENABLED(CONFIG_CMOS_POST_EXTRA)</span><br><span> void post_log_extra(u32 value);</span><br><span> struct device;</span><br><span style="color: hsl(0, 100%, 40%);">-void post_log_path(struct device *dev);</span><br><span style="color: hsl(120, 100%, 40%);">+void post_log_path(const struct device *dev);</span><br><span> void post_log_clear(void);</span><br><span> #else</span><br><span> #define post_log_extra(x) do {} while (0)</span><br><span>diff --git a/src/include/device/device.h b/src/include/device/device.h</span><br><span>index 48a5bcc..744836d 100644</span><br><span>--- a/src/include/device/device.h</span><br><span>+++ b/src/include/device/device.h</span><br><span>@@ -185,7 +185,7 @@</span><br><span> void assign_resources(struct bus *bus);</span><br><span> const char *dev_name(struct device *dev);</span><br><span> const char *dev_path(const struct device *dev);</span><br><span style="color: hsl(0, 100%, 40%);">-u32 dev_path_encode(struct device *dev);</span><br><span style="color: hsl(120, 100%, 40%);">+u32 dev_path_encode(const struct device *dev);</span><br><span> const char *bus_path(struct bus *bus);</span><br><span> void dev_set_enabled(struct device *dev, int enable);</span><br><span> void disable_children(struct bus *bus);</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/25985">change 25985</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/25985"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I4c9dfc9b19ce159ce1abcfbb287be4ce273cbaf1 </div>
<div style="display:none"> Gerrit-Change-Number: 25985 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Subrata Banik <subrata.banik@intel.com> </div>