On Fri, Aug 11, 2023 at 01:28:56PM +0300, Ilpo Järvinen wrote:
On Thu, 10 Aug 2023, Jiri Slaby (SUSE) wrote:
...
quoted
@@ -22,9 +22,9 @@ struct tty_buffer {
unsigned long data[];
};
-static inline unsigned char *char_buf_ptr(struct tty_buffer *b, int ofs)
+static inline u8 *char_buf_ptr(struct tty_buffer *b, int ofs)
{
- return ((unsigned char *)b->data) + ofs;
+ return ((u8 *)b->data) + ofs;
}
Any particular reason why b->data is left unsigned long?
It might be the performance issue due to unaligned accesses on some
architectures. But I'm just speculating...
--
With Best Regards,
Andy Shevchenko