Re: [PATCH V1] um: Fix compilation warnings

2023-02-15 Thread Srinivasarao Pathipati
Hi Greert Uytterhoeven, On 2/15/2023 1:37 PM, Geert Uytterhoeven wrote: Hi Srinivasarao, On Wed, Feb 15, 2023 at 6:36 AM Srinivasarao Pathipati wrote: On 2/15/2023 3:27 AM, Richard Weinberger wrote: - Ursprüngliche Mail - Von: "Srinivasarao Pathipati" static void sig_handler_common

Re: [PATCH V1] um: Fix compilation warnings

2023-02-15 Thread Johannes Berg
On Tue, 2023-02-14 at 22:57 +0100, Richard Weinberger wrote: > - Ursprüngliche Mail - > > Von: "Srinivasarao Pathipati" > > static void sig_handler_common(int sig, struct siginfo *si, mcontext_t *mc) > > { > > - struct uml_pt_regs r; > > + struct uml_pt_regs *r; > > int save_errno

Re: [PATCH V1] um: Fix compilation warnings

2023-02-15 Thread Johannes Berg
On Wed, 2023-02-15 at 09:07 +0100, Geert Uytterhoeven wrote: > Hi Srinivasarao, > > On Wed, Feb 15, 2023 at 6:36 AM Srinivasarao Pathipati > wrote: > > On 2/15/2023 3:27 AM, Richard Weinberger wrote: > > > - Ursprüngliche Mail - > > > > Von: "Srinivasarao Pathipati" > > > > static void s

Re: [PATCH V1] um: Fix compilation warnings

2023-02-15 Thread Geert Uytterhoeven
Hi Srinivasarao, On Wed, Feb 15, 2023 at 6:36 AM Srinivasarao Pathipati wrote: > On 2/15/2023 3:27 AM, Richard Weinberger wrote: > > - Ursprüngliche Mail - > >> Von: "Srinivasarao Pathipati" > >> static void sig_handler_common(int sig, struct siginfo *si, mcontext_t *mc) > >> { > >> -

Re: [PATCH V1] um: Fix compilation warnings

2023-02-14 Thread Srinivasarao Pathipati
On 2/15/2023 3:27 AM, Richard Weinberger wrote: - Ursprüngliche Mail - Von: "Srinivasarao Pathipati" static void sig_handler_common(int sig, struct siginfo *si, mcontext_t *mc) { - struct uml_pt_regs r; + struct uml_pt_regs *r; int save_errno = errno; - r.is_

Re: [PATCH V1] um: Fix compilation warnings

2023-02-14 Thread Richard Weinberger
- Ursprüngliche Mail - > Von: "Srinivasarao Pathipati" > static void sig_handler_common(int sig, struct siginfo *si, mcontext_t *mc) > { > - struct uml_pt_regs r; > + struct uml_pt_regs *r; > int save_errno = errno; > > - r.is_user = 0; > + r = malloc(sizeof(struct u

[PATCH V1] um: Fix compilation warnings

2023-02-14 Thread Srinivasarao Pathipati
Use dynamic allocation in sig_handler_common() and in timer_real_alarm_handler() to fix below warnings and build failures where CONFIG_WERROR is enabled. arch/um/os-Linux/signal.c: In function ‘sig_handler_common’: arch/um/os-Linux/signal.c:51:1: error: the frame size of 2960 bytes is larger than